[Orc] Move delta-handling for trampoline sizes into the resolver block.
[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 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 enable_searchengine
709 enable_external_search
710 enable_server_based_search
711 searchengine_url
712 extra_search_mappings
713 QHELPGENERATOR
714 llvm_doxygen_generate_qhp
715 llvm_doxygen_qch_filename
716 llvm_doxygen_qhp_namespace
717 llvm_doxygen_qhelpgenerator_path
718 llvm_doxygen_qhp_cust_filter_name
719 llvm_doxygen_qhp_cust_filter_attrs
720 clang_doxygen_generate_qhp
721 clang_doxygen_qch_filename
722 clang_doxygen_qhp_namespace
723 clang_doxygen_qhelpgenerator_path
724 clang_doxygen_qhp_cust_filter_name
725 clang_doxygen_qhp_cust_filter_attrs
726 LLVM_ENABLE_THREADS
727 ENABLE_PTHREADS
728 LLVM_ENABLE_ZLIB
729 ENABLE_PIC
730 ENABLE_SHARED
731 ENABLE_EMBED_STDCXX
732 ENABLE_TIMESTAMPS
733 ALL_TARGETS
734 TARGETS_TO_BUILD
735 LLVM_ENUM_TARGETS
736 LLVM_ENUM_ASM_PRINTERS
737 LLVM_ENUM_ASM_PARSERS
738 LLVM_ENUM_DISASSEMBLERS
739 OPTIMIZE_OPTION
740 EXTRA_OPTIONS
741 EXTRA_LD_OPTIONS
742 CLANG_SRC_ROOT
743 BINUTILS_INCDIR
744 ENABLE_TERMINFO
745 INTERNAL_PREFIX
746 ifGNUmake
747 LN_S
748 NM
749 CMP
750 CP
751 DATE
752 FIND
753 GREP
754 MKDIR
755 MV
756 RANLIB
757 AR
758 RM
759 SED
760 TAR
761 BINPWD
762 DOT
763 INSTALL_PROGRAM
764 INSTALL_SCRIPT
765 INSTALL_DATA
766 BZIP2
767 CAT
768 DOXYGEN
769 GROFF
770 GZIPBIN
771 PDFROFF
772 ZIP
773 GO
774 OCAMLFIND
775 GAS
776 HAVE_LINK_VERSION_SCRIPT
777 EGREP
778 NO_VARIADIC_MACROS
779 NO_MISSING_FIELD_INITIALIZERS
780 COVERED_SWITCH_DEFAULT
781 NO_MAYBE_UNINITIALIZED
782 NO_UNINITIALIZED
783 NO_COMMENT
784 PYTHON
785 HAVE_DLOPEN
786 HAVE_TERMINFO
787 USE_OPROFILE
788 USE_INTEL_JITEVENTS
789 XML2CONFIG
790 LIBXML2_LIBS
791 LIBXML2_INC
792 HAVE_PTHREAD
793 HAVE_LIBZ
794 HUGE_VAL_SANITY
795 MMAP_FILE
796 SHLIBEXT
797 LLVM_PREFIX
798 LLVM_BINDIR
799 LLVM_DATADIR
800 LLVM_DOCSDIR
801 LLVM_ETCDIR
802 LLVM_INCLUDEDIR
803 LLVM_INFODIR
804 LLVM_MANDIR
805 LLVM_CONFIGTIME
806 BINDINGS_TO_BUILD
807 HAVE_OCAMLOPT
808 HAVE_OCAML_OUNIT
809 OCAML_LIBDIR
810 ENABLE_VISIBILITY_INLINES_HIDDEN
811 RPATH
812 RDYNAMIC
813 program_prefix
814 LIBOBJS
815 LTLIBOBJS'
816 ac_subst_files=''
817       ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 CXX
825 CXXFLAGS
826 CCC
827 CPP'
828 ac_subdirs_all='projects/test-suite
829 projects/llvm-test
830 projects/poolalloc
831 projects/llvm-poolalloc
832 projects/safecode
833 tools/polly'
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940    { (exit 1); exit 1; }; }
941     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942     eval enable_$ac_feature=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959    { (exit 1); exit 1; }; }
960     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961     eval enable_$ac_feature=\$ac_optarg ;;
962
963   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965   | --exec | --exe | --ex)
966     ac_prev=exec_prefix ;;
967   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969   | --exec=* | --exe=* | --ex=*)
970     exec_prefix=$ac_optarg ;;
971
972   -gas | --gas | --ga | --g)
973     # Obsolete; use --with-gas.
974     with_gas=yes ;;
975
976   -help | --help | --hel | --he | -h)
977     ac_init_help=long ;;
978   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979     ac_init_help=recursive ;;
980   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981     ac_init_help=short ;;
982
983   -host | --host | --hos | --ho)
984     ac_prev=host_alias ;;
985   -host=* | --host=* | --hos=* | --ho=*)
986     host_alias=$ac_optarg ;;
987
988   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989     ac_prev=htmldir ;;
990   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991   | --ht=*)
992     htmldir=$ac_optarg ;;
993
994   -includedir | --includedir | --includedi | --included | --include \
995   | --includ | --inclu | --incl | --inc)
996     ac_prev=includedir ;;
997   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998   | --includ=* | --inclu=* | --incl=* | --inc=*)
999     includedir=$ac_optarg ;;
1000
1001   -infodir | --infodir | --infodi | --infod | --info | --inf)
1002     ac_prev=infodir ;;
1003   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004     infodir=$ac_optarg ;;
1005
1006   -libdir | --libdir | --libdi | --libd)
1007     ac_prev=libdir ;;
1008   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009     libdir=$ac_optarg ;;
1010
1011   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012   | --libexe | --libex | --libe)
1013     ac_prev=libexecdir ;;
1014   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015   | --libexe=* | --libex=* | --libe=*)
1016     libexecdir=$ac_optarg ;;
1017
1018   -localedir | --localedir | --localedi | --localed | --locale)
1019     ac_prev=localedir ;;
1020   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021     localedir=$ac_optarg ;;
1022
1023   -localstatedir | --localstatedir | --localstatedi | --localstated \
1024   | --localstate | --localstat | --localsta | --localst | --locals)
1025     ac_prev=localstatedir ;;
1026   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028     localstatedir=$ac_optarg ;;
1029
1030   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031     ac_prev=mandir ;;
1032   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033     mandir=$ac_optarg ;;
1034
1035   -nfp | --nfp | --nf)
1036     # Obsolete; use --without-fp.
1037     with_fp=no ;;
1038
1039   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040   | --no-cr | --no-c | -n)
1041     no_create=yes ;;
1042
1043   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045     no_recursion=yes ;;
1046
1047   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049   | --oldin | --oldi | --old | --ol | --o)
1050     ac_prev=oldincludedir ;;
1051   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054     oldincludedir=$ac_optarg ;;
1055
1056   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057     ac_prev=prefix ;;
1058   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059     prefix=$ac_optarg ;;
1060
1061   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062   | --program-pre | --program-pr | --program-p)
1063     ac_prev=program_prefix ;;
1064   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066     program_prefix=$ac_optarg ;;
1067
1068   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069   | --program-suf | --program-su | --program-s)
1070     ac_prev=program_suffix ;;
1071   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073     program_suffix=$ac_optarg ;;
1074
1075   -program-transform-name | --program-transform-name \
1076   | --program-transform-nam | --program-transform-na \
1077   | --program-transform-n | --program-transform- \
1078   | --program-transform | --program-transfor \
1079   | --program-transfo | --program-transf \
1080   | --program-trans | --program-tran \
1081   | --progr-tra | --program-tr | --program-t)
1082     ac_prev=program_transform_name ;;
1083   -program-transform-name=* | --program-transform-name=* \
1084   | --program-transform-nam=* | --program-transform-na=* \
1085   | --program-transform-n=* | --program-transform-=* \
1086   | --program-transform=* | --program-transfor=* \
1087   | --program-transfo=* | --program-transf=* \
1088   | --program-trans=* | --program-tran=* \
1089   | --progr-tra=* | --program-tr=* | --program-t=*)
1090     program_transform_name=$ac_optarg ;;
1091
1092   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093     ac_prev=pdfdir ;;
1094   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095     pdfdir=$ac_optarg ;;
1096
1097   -psdir | --psdir | --psdi | --psd | --ps)
1098     ac_prev=psdir ;;
1099   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100     psdir=$ac_optarg ;;
1101
1102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103   | -silent | --silent | --silen | --sile | --sil)
1104     silent=yes ;;
1105
1106   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107     ac_prev=sbindir ;;
1108   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109   | --sbi=* | --sb=*)
1110     sbindir=$ac_optarg ;;
1111
1112   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114   | --sharedst | --shareds | --shared | --share | --shar \
1115   | --sha | --sh)
1116     ac_prev=sharedstatedir ;;
1117   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120   | --sha=* | --sh=*)
1121     sharedstatedir=$ac_optarg ;;
1122
1123   -site | --site | --sit)
1124     ac_prev=site ;;
1125   -site=* | --site=* | --sit=*)
1126     site=$ac_optarg ;;
1127
1128   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129     ac_prev=srcdir ;;
1130   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131     srcdir=$ac_optarg ;;
1132
1133   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134   | --syscon | --sysco | --sysc | --sys | --sy)
1135     ac_prev=sysconfdir ;;
1136   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138     sysconfdir=$ac_optarg ;;
1139
1140   -target | --target | --targe | --targ | --tar | --ta | --t)
1141     ac_prev=target_alias ;;
1142   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143     target_alias=$ac_optarg ;;
1144
1145   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146     verbose=yes ;;
1147
1148   -version | --version | --versio | --versi | --vers | -V)
1149     ac_init_version=: ;;
1150
1151   -with-* | --with-*)
1152     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid package name: $ac_package" >&2
1156    { (exit 1); exit 1; }; }
1157     ac_package=`echo $ac_package| sed 's/-/_/g'`
1158     eval with_$ac_package=\$ac_optarg ;;
1159
1160   -without-* | --without-*)
1161     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1164       { echo "$as_me: error: invalid package name: $ac_package" >&2
1165    { (exit 1); exit 1; }; }
1166     ac_package=`echo $ac_package | sed 's/-/_/g'`
1167     eval with_$ac_package=no ;;
1168
1169   --x)
1170     # Obsolete; use --with-x.
1171     with_x=yes ;;
1172
1173   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174   | --x-incl | --x-inc | --x-in | --x-i)
1175     ac_prev=x_includes ;;
1176   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178     x_includes=$ac_optarg ;;
1179
1180   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182     ac_prev=x_libraries ;;
1183   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185     x_libraries=$ac_optarg ;;
1186
1187   -*) { echo "$as_me: error: unrecognized option: $ac_option
1188 Try \`$0 --help' for more information." >&2
1189    { (exit 1); exit 1; }; }
1190     ;;
1191
1192   *=*)
1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1196       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1197    { (exit 1); exit 1; }; }
1198     eval $ac_envvar=\$ac_optarg
1199     export $ac_envvar ;;
1200
1201   *)
1202     # FIXME: should be removed in autoconf 3.0.
1203     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207     ;;
1208
1209   esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214   { echo "$as_me: error: missing argument to $ac_option" >&2
1215    { (exit 1); exit 1; }; }
1216 fi
1217
1218 # Be sure to have absolute directory names.
1219 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220                 datadir sysconfdir sharedstatedir localstatedir includedir \
1221                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222                 libdir localedir mandir
1223 do
1224   eval ac_val=\$$ac_var
1225   case $ac_val in
1226     [\\/$]* | ?:[\\/]* )  continue;;
1227     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228   esac
1229   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230    { (exit 1); exit 1; }; }
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242   if test "x$build_alias" = x; then
1243     cross_compiling=maybe
1244     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245     If a cross compiler is detected then cross compile mode will be used." >&2
1246   elif test "x$build_alias" != "x$host_alias"; then
1247     cross_compiling=yes
1248   fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260   { echo "$as_me: error: Working directory cannot be determined" >&2
1261    { (exit 1); exit 1; }; }
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263   { echo "$as_me: error: pwd does not report name of working directory" >&2
1264    { (exit 1); exit 1; }; }
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269   ac_srcdir_defaulted=yes
1270   # Try the directory containing this script, then the parent directory.
1271   ac_confdir=`$as_dirname -- "$0" ||
1272 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273          X"$0" : 'X\(//\)[^/]' \| \
1274          X"$0" : 'X\(//\)$' \| \
1275          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 echo X"$0" |
1277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)[^/].*/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\/\)$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\).*/{
1290             s//\1/
1291             q
1292           }
1293           s/.*/./; q'`
1294   srcdir=$ac_confdir
1295   if test ! -r "$srcdir/$ac_unique_file"; then
1296     srcdir=..
1297   fi
1298 else
1299   ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304    { (exit 1); exit 1; }; }
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1309    { (exit 1); exit 1; }; }
1310         pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313   srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_env_${ac_var}_value=\$${ac_var}
1324   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332   # Omit some internal or obsolete options to make the list less imposing.
1333   # This message is too long to be a string in the A/UX 3.1 sh.
1334   cat <<_ACEOF
1335 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345   -h, --help              display this help and exit
1346       --help=short        display options specific to this package
1347       --help=recursive    display the short help of all the included packages
1348   -V, --version           display version information and exit
1349   -q, --quiet, --silent   do not print \`checking...' messages
1350       --cache-file=FILE   cache test results in FILE [disabled]
1351   -C, --config-cache      alias for \`--cache-file=config.cache'
1352   -n, --no-create         do not create output files
1353       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356   --prefix=PREFIX         install architecture-independent files in PREFIX
1357                           [$ac_default_prefix]
1358   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                           [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369   --bindir=DIR           user executables [EPREFIX/bin]
1370   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1371   --libexecdir=DIR       program executables [EPREFIX/libexec]
1372   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1373   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1374   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1375   --libdir=DIR           object code libraries [EPREFIX/lib]
1376   --includedir=DIR       C header files [PREFIX/include]
1377   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1378   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1379   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1380   --infodir=DIR          info documentation [DATAROOTDIR/info]
1381   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1382   --mandir=DIR           man documentation [DATAROOTDIR/man]
1383   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1384   --htmldir=DIR          html documentation [DOCDIR]
1385   --dvidir=DIR           dvi documentation [DOCDIR]
1386   --pdfdir=DIR           pdf documentation [DOCDIR]
1387   --psdir=DIR            ps documentation [DOCDIR]
1388 _ACEOF
1389
1390   cat <<\_ACEOF
1391
1392 System types:
1393   --build=BUILD     configure for building on BUILD [guessed]
1394   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395   --target=TARGET   configure for building compilers for TARGET [HOST]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400   case $ac_init_help in
1401      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1402    esac
1403   cat <<\_ACEOF
1404
1405 Optional Features:
1406   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408   --enable-polly          Use polly if available (default is YES)
1409   --enable-libcpp         Use libc++ if available (default is NO)
1410   --enable-compiler-version-checks
1411                           Check the version of the host compiler (default is
1412                           YES)
1413   --enable-cxx1y          Use c++1y if available (default is NO)
1414   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1415   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1416   --enable-clang-plugin-support
1417                           Enable plugin support in clang (default is YES)
1418   --enable-clang-static-analyzer
1419                           Enable building of clang Static Analyzer (default is
1420                           YES)
1421   --enable-optimized      Compile with optimizations enabled (default is NO)
1422   --enable-profiling      Compile with profiling enabled (default is NO)
1423   --enable-assertions     Compile with assertion checks enabled (default is
1424                           YES)
1425   --enable-werror         Compile with -Werror enabled (default is NO)
1426   --enable-expensive-checks
1427                           Compile with expensive debug checks enabled (default
1428                           is NO)
1429   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1430                           NO)
1431   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1432                           optimization is on and YES if it's off)
1433   --enable-keep-symbols   Do not strip installed executables)
1434   --enable-jit            Enable Just In Time Compiling (default is YES)
1435   --enable-docs           Build documents (default is YES)
1436   --enable-doxygen        Build doxygen documentation (default is NO)
1437   --enable-doxygen-search Enable doxygen search support (default is NO)
1438   --enable-doxygen-external-search
1439                           Enable doxygen exteranl search (default is NO)
1440   --enable-doxygen-qt-help
1441                           Build Qt help files (default is NO)
1442   --enable-threads        Use threads if available (default is YES)
1443   --enable-pthreads       Use pthreads if available (default is YES)
1444   --enable-zlib           Use zlib for compression/decompression if available
1445                           (default is YES)
1446   --enable-pic            Build LLVM with Position Independent Code (default
1447                           is YES)
1448   --enable-shared         Build a shared library and link tools against it
1449                           (default is NO)
1450   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1451                           Win32 DLL (default is NO)
1452   --enable-timestamps     Enable embedding timestamp information in build
1453                           (default is YES)
1454   --enable-backtraces     Enable embedding backtraces on crash (default is
1455                           YES)
1456   --enable-crash-overrides
1457                           Enable crash handling overrides (default is YES)
1458   --enable-targets        Build specific host targets: all or
1459                           target1,target2,... Valid targets are: host, x86,
1460                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1461                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1462                           cpp (default=all)
1463   --enable-experimental-targets
1464                           Build experimental host targets: disable or
1465                           target1,target2,... (default=disable)
1466   --enable-bindings       Build specific language bindings:
1467                           all,auto,none,{binding-name} (default=auto)
1468   --enable-terminfo       Query the terminfo database if available (default is
1469                           YES)
1470   --enable-libedit        Use libedit if available (default is YES)
1471   --enable-libffi         Check for the presence of libffi (default is NO)
1472
1473 Optional Packages:
1474   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476   --with-doxygen-search-engine-url
1477                           Specify the external search engine for doxygen
1478   --with-doxygen-search-mappings
1479                           Specify the extra search mapping for doxygen
1480   --with-optimize-option  Select the compiler options to use for optimized
1481                           builds
1482   --with-extra-options    Specify additional options to compile LLVM with
1483   --with-extra-ld-options Specify additional options to link LLVM with
1484   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1485                           is stdlib)
1486   --with-clang-srcdir     Directory to the out-of-tree Clang source
1487   --with-clang-resource-dir
1488                           Relative directory from the Clang binary for
1489                           resource files
1490   --with-c-include-dirs   Colon separated list of directories clang will
1491                           search for headers
1492   --with-gcc-toolchain    Directory where gcc is installed.
1493   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1494   --with-binutils-include Specify path to binutils/include/ containing
1495                           plugin-api.h file for gold plugin.
1496   --with-bug-report-url   Specify the URL where bug reports should be
1497                           submitted (default=http://llvm.org/bugs/)
1498   --with-internal-prefix  Installation directory for internal files
1499   --with-python           path to python
1500   --with-oprofile=<prefix>
1501                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1502   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1503
1504
1505 Some influential environment variables:
1506   CC          C compiler command
1507   CFLAGS      C compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CXX         C++ compiler command
1513   CXXFLAGS    C++ compiler flags
1514   CPP         C preprocessor
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <http://llvm.org/bugs/>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" || continue
1528     ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534   # A ".." for each directory in $ac_dir_suffix.
1535   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536   case $ac_top_builddir_sub in
1537   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539   esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547   .)  # We are building in place.
1548     ac_srcdir=.
1549     ac_top_srcdir=$ac_top_builddir_sub
1550     ac_abs_top_srcdir=$ac_pwd ;;
1551   [\\/]* | ?:[\\/]* )  # Absolute name.
1552     ac_srcdir=$srcdir$ac_dir_suffix;
1553     ac_top_srcdir=$srcdir
1554     ac_abs_top_srcdir=$srcdir ;;
1555   *) # Relative name.
1556     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557     ac_top_srcdir=$ac_top_build_prefix$srcdir
1558     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562     cd "$ac_dir" || { ac_status=$?; continue; }
1563     # Check for guested configure.
1564     if test -f "$ac_srcdir/configure.gnu"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567     elif test -f "$ac_srcdir/configure"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure" --help=recursive
1570     else
1571       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572     fi || ac_status=$?
1573     cd "$ac_pwd" || { ac_status=$?; break; }
1574   done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579   cat <<\_ACEOF
1580 LLVM configure 3.7.0svn
1581 generated by GNU Autoconf 2.60
1582
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587
1588 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1589 _ACEOF
1590   exit
1591 fi
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1595
1596 It was created by LLVM $as_me 3.7.0svn, which was
1597 generated by GNU Autoconf 2.60.  Invocation command line was
1598
1599   $ $0 $@
1600
1601 _ACEOF
1602 exec 5>>config.log
1603 {
1604 cat <<_ASUNAME
1605 ## --------- ##
1606 ## Platform. ##
1607 ## --------- ##
1608
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1617
1618 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1619 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1622 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1623 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1624 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1625
1626 _ASUNAME
1627
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   echo "PATH: $as_dir"
1634 done
1635 IFS=$as_save_IFS
1636
1637 } >&5
1638
1639 cat >&5 <<_ACEOF
1640
1641
1642 ## ----------- ##
1643 ## Core tests. ##
1644 ## ----------- ##
1645
1646 _ACEOF
1647
1648
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_configure_args=
1655 ac_configure_args0=
1656 ac_configure_args1=
1657 ac_must_keep_next=false
1658 for ac_pass in 1 2
1659 do
1660   for ac_arg
1661   do
1662     case $ac_arg in
1663     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665     | -silent | --silent | --silen | --sile | --sil)
1666       continue ;;
1667     *\'*)
1668       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669     esac
1670     case $ac_pass in
1671     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672     2)
1673       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1674       if test $ac_must_keep_next = true; then
1675         ac_must_keep_next=false # Got value, back to normal.
1676       else
1677         case $ac_arg in
1678           *=* | --config-cache | -C | -disable-* | --disable-* \
1679           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681           | -with-* | --with-* | -without-* | --without-* | --x)
1682             case "$ac_configure_args0 " in
1683               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684             esac
1685             ;;
1686           -* ) ac_must_keep_next=true ;;
1687         esac
1688       fi
1689       ac_configure_args="$ac_configure_args '$ac_arg'"
1690       ;;
1691     esac
1692   done
1693 done
1694 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1695 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log.  We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703   # Save into config.log some information that might help in debugging.
1704   {
1705     echo
1706
1707     cat <<\_ASBOX
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1711 _ASBOX
1712     echo
1713     # The following way of writing the cache mishandles newlines in values,
1714 (
1715   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716     eval ac_val=\$$ac_var
1717     case $ac_val in #(
1718     *${as_nl}*)
1719       case $ac_var in #(
1720       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722       esac
1723       case $ac_var in #(
1724       _ | IFS | as_nl) ;; #(
1725       *) $as_unset $ac_var ;;
1726       esac ;;
1727     esac
1728   done
1729   (set) 2>&1 |
1730     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1731     *${as_nl}ac_space=\ *)
1732       sed -n \
1733         "s/'\''/'\''\\\\'\'''\''/g;
1734           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735       ;; #(
1736     *)
1737       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738       ;;
1739     esac |
1740     sort
1741 )
1742     echo
1743
1744     cat <<\_ASBOX
1745 ## ----------------- ##
1746 ## Output variables. ##
1747 ## ----------------- ##
1748 _ASBOX
1749     echo
1750     for ac_var in $ac_subst_vars
1751     do
1752       eval ac_val=\$$ac_var
1753       case $ac_val in
1754       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755       esac
1756       echo "$ac_var='\''$ac_val'\''"
1757     done | sort
1758     echo
1759
1760     if test -n "$ac_subst_files"; then
1761       cat <<\_ASBOX
1762 ## ------------------- ##
1763 ## File substitutions. ##
1764 ## ------------------- ##
1765 _ASBOX
1766       echo
1767       for ac_var in $ac_subst_files
1768       do
1769         eval ac_val=\$$ac_var
1770         case $ac_val in
1771         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772         esac
1773         echo "$ac_var='\''$ac_val'\''"
1774       done | sort
1775       echo
1776     fi
1777
1778     if test -s confdefs.h; then
1779       cat <<\_ASBOX
1780 ## ----------- ##
1781 ## confdefs.h. ##
1782 ## ----------- ##
1783 _ASBOX
1784       echo
1785       cat confdefs.h
1786       echo
1787     fi
1788     test "$ac_signal" != 0 &&
1789       echo "$as_me: caught signal $ac_signal"
1790     echo "$as_me: exit $exit_status"
1791   } >&5
1792   rm -f core *.core core.conftest.* &&
1793     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794     exit $exit_status
1795 ' 0
1796 for ac_signal in 1 2 13 15; do
1797   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 done
1799 ac_signal=0
1800
1801 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1802 rm -f -r conftest* confdefs.h
1803
1804 # Predefined preprocessor variables.
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 _ACEOF
1829
1830
1831 # Let the site file select an alternate cache file if it wants to.
1832 # Prefer explicitly selected file to automatically selected ones.
1833 if test -n "$CONFIG_SITE"; then
1834   set x "$CONFIG_SITE"
1835 elif test "x$prefix" != xNONE; then
1836   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 else
1838   set x "$ac_default_prefix/share/config.site" \
1839         "$ac_default_prefix/etc/config.site"
1840 fi
1841 shift
1842 for ac_site_file
1843 do
1844   if test -r "$ac_site_file"; then
1845     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846 echo "$as_me: loading site script $ac_site_file" >&6;}
1847     sed 's/^/| /' "$ac_site_file" >&5
1848     . "$ac_site_file"
1849   fi
1850 done
1851
1852 if test -r "$cache_file"; then
1853   # Some versions of bash will fail to source /dev/null (special
1854   # files actually), so we avoid doing that.
1855   if test -f "$cache_file"; then
1856     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857 echo "$as_me: loading cache $cache_file" >&6;}
1858     case $cache_file in
1859       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1860       *)                      . "./$cache_file";;
1861     esac
1862   fi
1863 else
1864   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865 echo "$as_me: creating cache $cache_file" >&6;}
1866   >$cache_file
1867 fi
1868
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874   eval ac_new_set=\$ac_env_${ac_var}_set
1875   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876   eval ac_new_val=\$ac_env_${ac_var}_value
1877   case $ac_old_set,$ac_new_set in
1878     set,)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,set)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,);;
1887     *)
1888       if test "x$ac_old_val" != "x$ac_new_val"; then
1889         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1890 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1891         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1892 echo "$as_me:   former value:  $ac_old_val" >&2;}
1893         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1894 echo "$as_me:   current value: $ac_new_val" >&2;}
1895         ac_cache_corrupted=:
1896       fi;;
1897   esac
1898   # Pass precious variables to config.status.
1899   if test "$ac_new_set" = set; then
1900     case $ac_new_val in
1901     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902     *) ac_arg=$ac_var=$ac_new_val ;;
1903     esac
1904     case " $ac_configure_args " in
1905       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1906       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907     esac
1908   fi
1909 done
1910 if $ac_cache_corrupted; then
1911   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915    { (exit 1); exit 1; }; }
1916 fi
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942 ac_ext=c
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949
1950 LLVM_VERSION_MAJOR=3
1951 LLVM_VERSION_MINOR=7
1952 LLVM_VERSION_PATCH=0
1953 LLVM_VERSION_SUFFIX=svn
1954
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1958 _ACEOF
1959
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1963 _ACEOF
1964
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1968 _ACEOF
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1973 _ACEOF
1974
1975
1976
1977
1978
1979
1980
1981 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1982
1983
1984
1985
1986
1987
1988
1989 ac_aux_dir=
1990 for ac_dir in autoconf "$srcdir"/autoconf; do
1991   if test -f "$ac_dir/install-sh"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/install-sh -c"
1994     break
1995   elif test -f "$ac_dir/install.sh"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/install.sh -c"
1998     break
1999   elif test -f "$ac_dir/shtool"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/shtool install -c"
2002     break
2003   fi
2004 done
2005 if test -z "$ac_aux_dir"; then
2006   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2018
2019
2020
2021 if test ${srcdir} != "." ; then
2022   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2023     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2024 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2025    { (exit 1); exit 1; }; }
2026   fi
2027 fi
2028
2029 : ${CFLAGS=}
2030 : ${CXXFLAGS=}
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 if test -n "$ac_tool_prefix"; then
2038   for ac_prog in clang gcc
2039   do
2040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$CC"; then
2048   ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063 IFS=$as_save_IFS
2064
2065 fi
2066 fi
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069   { echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6; }
2071 else
2072   { echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6; }
2074 fi
2075
2076
2077     test -n "$CC" && break
2078   done
2079 fi
2080 if test -z "$CC"; then
2081   ac_ct_CC=$CC
2082   for ac_prog in clang gcc
2083 do
2084   # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$ac_ct_CC"; then
2092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2101     ac_cv_prog_ac_ct_CC="$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6; }
2115 else
2116   { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 fi
2119
2120
2121   test -n "$ac_ct_CC" && break
2122 done
2123
2124   if test "x$ac_ct_CC" = x; then
2125     CC=""
2126   else
2127     case $cross_compiling:$ac_tool_warned in
2128 yes:)
2129 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2130 whose name does not start with the host triplet.  If you think this
2131 configuration is useful to you, please write to autoconf@gnu.org." >&5
2132 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2133 whose name does not start with the host triplet.  If you think this
2134 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2135 ac_tool_warned=yes ;;
2136 esac
2137     CC=$ac_ct_CC
2138   fi
2139 fi
2140
2141
2142 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: no acceptable C compiler found in \$PATH
2145 See \`config.log' for more details." >&2;}
2146    { (exit 1); exit 1; }; }
2147
2148 # Provide some information about the compiler.
2149 echo "$as_me:$LINENO: checking for C compiler version" >&5
2150 ac_compiler=`set X $ac_compile; echo $2`
2151 { (ac_try="$ac_compiler --version >&5"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157   (eval "$ac_compiler --version >&5") 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161 { (ac_try="$ac_compiler -v >&5"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167   (eval "$ac_compiler -v >&5") 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }
2171 { (ac_try="$ac_compiler -V >&5"
2172 case "(($ac_try" in
2173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174   *) ac_try_echo=$ac_try;;
2175 esac
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177   (eval "$ac_compiler -V >&5") 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }
2181
2182 cat >conftest.$ac_ext <<_ACEOF
2183 /* confdefs.h.  */
2184 _ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h.  */
2188
2189 int
2190 main ()
2191 {
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 ac_clean_files_save=$ac_clean_files
2198 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2199 # Try to create an executable without -o first, disregard a.out.
2200 # It will help us diagnose broken compilers, and finding out an intuition
2201 # of exeext.
2202 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2203 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2204 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2205 #
2206 # List of possible output files, starting from the most likely.
2207 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2208 # only as a last resort.  b.out is created by i960 compilers.
2209 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2210 #
2211 # The IRIX 6 linker writes into existing files which may not be
2212 # executable, retaining their permissions.  Remove them first so a
2213 # subsequent execution test works.
2214 ac_rmfiles=
2215 for ac_file in $ac_files
2216 do
2217   case $ac_file in
2218     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2219     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2220   esac
2221 done
2222 rm -f $ac_rmfiles
2223
2224 if { (ac_try="$ac_link_default"
2225 case "(($ac_try" in
2226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227   *) ac_try_echo=$ac_try;;
2228 esac
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230   (eval "$ac_link_default") 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; then
2234   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2236 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2237 # so that the user can short-circuit this test for compilers unknown to
2238 # Autoconf.
2239 for ac_file in $ac_files
2240 do
2241   test -f "$ac_file" || continue
2242   case $ac_file in
2243     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2244         ;;
2245     [ab].out )
2246         # We found the default executable, but exeext='' is most
2247         # certainly right.
2248         break;;
2249     *.* )
2250         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2251         then :; else
2252            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253         fi
2254         # We set ac_cv_exeext here because the later test for it is not
2255         # safe: cross compilers may not add the suffix if given an `-o'
2256         # argument, so we may need to know it at that point already.
2257         # Even if this section looks crufty: it has the advantage of
2258         # actually working.
2259         break;;
2260     * )
2261         break;;
2262   esac
2263 done
2264 test "$ac_cv_exeext" = no && ac_cv_exeext=
2265
2266 else
2267   echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&2;}
2274    { (exit 77); exit 77; }; }
2275 fi
2276
2277 ac_exeext=$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_file" >&5
2279 echo "${ECHO_T}$ac_file" >&6; }
2280
2281 # Check that the compiler produces executables we can run.  If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2286 # If not cross compiling, check that we can run a simple program.
2287 if test "$cross_compiling" != yes; then
2288   if { ac_try='./$ac_file'
2289   { (case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_try") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298     cross_compiling=no
2299   else
2300     if test "$cross_compiling" = maybe; then
2301         cross_compiling=yes
2302     else
2303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310     fi
2311   fi
2312 fi
2313 { echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6; }
2315
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check that the compiler produces executables we can run.  If not, either
2319 # the compiler is broken, or we cross compile.
2320 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2322 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6; }
2324
2325 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2327 if { (ac_try="$ac_link"
2328 case "(($ac_try" in
2329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330   *) ac_try_echo=$ac_try;;
2331 esac
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333   (eval "$ac_link") 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; then
2337   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2338 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2339 # work properly (i.e., refer to `conftest.exe'), while it won't with
2340 # `rm'.
2341 for ac_file in conftest.exe conftest conftest.*; do
2342   test -f "$ac_file" || continue
2343   case $ac_file in
2344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2345     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346           break;;
2347     * ) break;;
2348   esac
2349 done
2350 else
2351   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2354 See \`config.log' for more details." >&2;}
2355    { (exit 1); exit 1; }; }
2356 fi
2357
2358 rm -f conftest$ac_cv_exeext
2359 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2360 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2361
2362 rm -f conftest.$ac_ext
2363 EXEEXT=$ac_cv_exeext
2364 ac_exeext=$EXEEXT
2365 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2366 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2367 if test "${ac_cv_objext+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.o conftest.obj
2386 if { (ac_try="$ac_compile"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_compile") 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; then
2396   for ac_file in conftest.o conftest.obj conftest.*; do
2397   test -f "$ac_file" || continue;
2398   case $ac_file in
2399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2400     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2401        break;;
2402   esac
2403 done
2404 else
2405   echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2409 See \`config.log' for more details." >&5
2410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2411 See \`config.log' for more details." >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414
2415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2416 fi
2417 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418 echo "${ECHO_T}$ac_cv_objext" >&6; }
2419 OBJEXT=$ac_cv_objext
2420 ac_objext=$OBJEXT
2421 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436 #ifndef __GNUC__
2437        choke me
2438 #endif
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (ac_try="$ac_compile"
2446 case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451   (eval "$ac_compile") 2>conftest.er1
2452   ac_status=$?
2453   grep -v '^ *+' conftest.er1 >conftest.err
2454   rm -f conftest.er1
2455   cat conftest.err >&5
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); } &&
2458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2459   { (case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_try") 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474   (eval "$ac_try") 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; }; then
2478   ac_compiler_gnu=yes
2479 else
2480   echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483         ac_compiler_gnu=no
2484 fi
2485
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2488
2489 fi
2490 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2492 GCC=`test $ac_compiler_gnu = yes && echo yes`
2493 ac_test_CFLAGS=${CFLAGS+set}
2494 ac_save_CFLAGS=$CFLAGS
2495 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2496 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_cc_g+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   ac_save_c_werror_flag=$ac_c_werror_flag
2501    ac_c_werror_flag=yes
2502    ac_cv_prog_cc_g=no
2503    CFLAGS="-g"
2504    cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h.  */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h.  */
2510
2511 int
2512 main ()
2513 {
2514
2515   ;
2516   return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2521 case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_compile") 2>conftest.er1
2527   ac_status=$?
2528   grep -v '^ *+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2534   { (case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539   (eval "$ac_try") 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; } &&
2543          { ac_try='test -s conftest.$ac_objext'
2544   { (case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549   (eval "$ac_try") 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553   ac_cv_prog_cc_g=yes
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558         CFLAGS=""
2559       cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   :
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613         ac_c_werror_flag=$ac_save_c_werror_flag
2614          CFLAGS="-g"
2615          cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621
2622 int
2623 main ()
2624 {
2625
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2632 case "(($ac_try" in
2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634   *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637   (eval "$ac_compile") 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645   { (case "(($ac_try" in
2646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647   *) ac_try_echo=$ac_try;;
2648 esac
2649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650   (eval "$ac_try") 2>&5
2651   ac_status=$?
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); }; } &&
2654          { ac_try='test -s conftest.$ac_objext'
2655   { (case "(($ac_try" in
2656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657   *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660   (eval "$ac_try") 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; }; then
2664   ac_cv_prog_cc_g=yes
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669
2670 fi
2671
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 fi
2674
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679    ac_c_werror_flag=$ac_save_c_werror_flag
2680 fi
2681 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2683 if test "$ac_test_CFLAGS" = set; then
2684   CFLAGS=$ac_save_CFLAGS
2685 elif test $ac_cv_prog_cc_g = yes; then
2686   if test "$GCC" = yes; then
2687     CFLAGS="-g -O2"
2688   else
2689     CFLAGS="-g"
2690   fi
2691 else
2692   if test "$GCC" = yes; then
2693     CFLAGS="-O2"
2694   else
2695     CFLAGS=
2696   fi
2697 fi
2698 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2699 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2700 if test "${ac_cv_prog_cc_c89+set}" = set; then
2701   echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703   ac_cv_prog_cc_c89=no
2704 ac_save_CC=$CC
2705 cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711 #include <stdarg.h>
2712 #include <stdio.h>
2713 #include <sys/types.h>
2714 #include <sys/stat.h>
2715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2716 struct buf { int x; };
2717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2718 static char *e (p, i)
2719      char **p;
2720      int i;
2721 {
2722   return p[i];
2723 }
2724 static char *f (char * (*g) (char **, int), char **p, ...)
2725 {
2726   char *s;
2727   va_list v;
2728   va_start (v,p);
2729   s = g (p, va_arg (v,int));
2730   va_end (v);
2731   return s;
2732 }
2733
2734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2735    function prototypes and stuff, but not '\xHH' hex character constants.
2736    These don't provoke an error unfortunately, instead are silently treated
2737    as 'x'.  The following induces an error, until -std is added to get
2738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2739    array size at least.  It's necessary to write '\x00'==0 to get something
2740    that's true only with -std.  */
2741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2742
2743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2744    inside strings and character constants.  */
2745 #define FOO(x) 'x'
2746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2763         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2764 do
2765   CC="$ac_save_CC $ac_arg"
2766   rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_compile") 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781   { (case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_try") 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_try") 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_c89=$ac_arg
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805
2806 fi
2807
2808 rm -f core conftest.err conftest.$ac_objext
2809   test "x$ac_cv_prog_cc_c89" != "xno" && break
2810 done
2811 rm -f conftest.$ac_ext
2812 CC=$ac_save_CC
2813
2814 fi
2815 # AC_CACHE_VAL
2816 case "x$ac_cv_prog_cc_c89" in
2817   x)
2818     { echo "$as_me:$LINENO: result: none needed" >&5
2819 echo "${ECHO_T}none needed" >&6; } ;;
2820   xno)
2821     { echo "$as_me:$LINENO: result: unsupported" >&5
2822 echo "${ECHO_T}unsupported" >&6; } ;;
2823   *)
2824     CC="$CC $ac_cv_prog_cc_c89"
2825     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2826 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2827 esac
2828
2829
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835
2836 ac_ext=cpp
2837 ac_cpp='$CXXCPP $CPPFLAGS'
2838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2841 if test -z "$CXX"; then
2842   if test -n "$CCC"; then
2843     CXX=$CCC
2844   else
2845     if test -n "$ac_tool_prefix"; then
2846   for ac_prog in clang++ g++
2847   do
2848     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_CXX+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -n "$CXX"; then
2856   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863   for ac_exec_ext in '' $ac_executable_extensions; do
2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2865     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CXX=$ac_cv_prog_CXX
2876 if test -n "$CXX"; then
2877   { echo "$as_me:$LINENO: result: $CXX" >&5
2878 echo "${ECHO_T}$CXX" >&6; }
2879 else
2880   { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2882 fi
2883
2884
2885     test -n "$CXX" && break
2886   done
2887 fi
2888 if test -z "$CXX"; then
2889   ac_ct_CXX=$CXX
2890   for ac_prog in clang++ g++
2891 do
2892   # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$ac_ct_CXX"; then
2900   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_ac_ct_CXX="$ac_prog"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2920 if test -n "$ac_ct_CXX"; then
2921   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2922 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2923 else
2924   { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2926 fi
2927
2928
2929   test -n "$ac_ct_CXX" && break
2930 done
2931
2932   if test "x$ac_ct_CXX" = x; then
2933     CXX="g++"
2934   else
2935     case $cross_compiling:$ac_tool_warned in
2936 yes:)
2937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2938 whose name does not start with the host triplet.  If you think this
2939 configuration is useful to you, please write to autoconf@gnu.org." >&5
2940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2941 whose name does not start with the host triplet.  If you think this
2942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945     CXX=$ac_ct_CXX
2946   fi
2947 fi
2948
2949   fi
2950 fi
2951 # Provide some information about the compiler.
2952 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2953 ac_compiler=`set X $ac_compile; echo $2`
2954 { (ac_try="$ac_compiler --version >&5"
2955 case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_compiler --version >&5") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }
2964 { (ac_try="$ac_compiler -v >&5"
2965 case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_compiler -v >&5") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }
2974 { (ac_try="$ac_compiler -V >&5"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_compiler -V >&5") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }
2984
2985 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2986 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2987 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000 #ifndef __GNUC__
3001        choke me
3002 #endif
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3023   { (case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_try") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; }; then
3042   ac_compiler_gnu=yes
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047         ac_compiler_gnu=no
3048 fi
3049
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3052
3053 fi
3054 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3055 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3056 GXX=`test $ac_compiler_gnu = yes && echo yes`
3057 ac_test_CXXFLAGS=${CXXFLAGS+set}
3058 ac_save_CXXFLAGS=$CXXFLAGS
3059 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3060 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3061 if test "${ac_cv_prog_cxx_g+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3065    ac_cxx_werror_flag=yes
3066    ac_cv_prog_cxx_g=no
3067    CXXFLAGS="-g"
3068    cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074
3075 int
3076 main ()
3077 {
3078
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_compile") 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } &&
3097          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3098   { (case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_try") 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_try") 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; }; then
3117   ac_cv_prog_cxx_g=yes
3118 else
3119   echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122         CXXFLAGS=""
3123       cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   :
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178          CXXFLAGS="-g"
3179          cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_compile") 2>conftest.er1
3202   ac_status=$?
3203   grep -v '^ *+' conftest.er1 >conftest.err
3204   rm -f conftest.er1
3205   cat conftest.err >&5
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); } &&
3208          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209   { (case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214   (eval "$ac_try") 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; } &&
3218          { ac_try='test -s conftest.$ac_objext'
3219   { (case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_try") 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; }; then
3228   ac_cv_prog_cxx_g=yes
3229 else
3230   echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3244 fi
3245 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3246 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3247 if test "$ac_test_CXXFLAGS" = set; then
3248   CXXFLAGS=$ac_save_CXXFLAGS
3249 elif test $ac_cv_prog_cxx_g = yes; then
3250   if test "$GXX" = yes; then
3251     CXXFLAGS="-g -O2"
3252   else
3253     CXXFLAGS="-g"
3254   fi
3255 else
3256   if test "$GXX" = yes; then
3257     CXXFLAGS="-O2"
3258   else
3259     CXXFLAGS=
3260   fi
3261 fi
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268 ac_ext=c
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3274 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3275 # On Suns, sometimes $CPP names a directory.
3276 if test -n "$CPP" && test -d "$CPP"; then
3277   CPP=
3278 fi
3279 if test -z "$CPP"; then
3280   if test "${ac_cv_prog_CPP+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283       # Double quotes because CPP needs to be expanded
3284     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3285     do
3286       ac_preproc_ok=false
3287 for ac_c_preproc_warn_flag in '' yes
3288 do
3289   # Use a header file that comes with gcc, so configuring glibc
3290   # with a fresh cross-compiler works.
3291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292   # <limits.h> exists even on freestanding compilers.
3293   # On the NeXT, cc -E runs the code through the compiler's parser,
3294   # not just through cpp. "Syntax error" is here to catch this case.
3295   cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301 #ifdef __STDC__
3302 # include <limits.h>
3303 #else
3304 # include <assert.h>
3305 #endif
3306                      Syntax error
3307 _ACEOF
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } >/dev/null; then
3321   if test -s conftest.err; then
3322     ac_cpp_err=$ac_c_preproc_warn_flag
3323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324   else
3325     ac_cpp_err=
3326   fi
3327 else
3328   ac_cpp_err=yes
3329 fi
3330 if test -z "$ac_cpp_err"; then
3331   :
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336   # Broken: fails on valid input.
3337 continue
3338 fi
3339
3340 rm -f conftest.err conftest.$ac_ext
3341
3342   # OK, works on sane cases.  Now check whether nonexistent headers
3343   # can be detected and how.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 #include <ac_nonexistent.h>
3351 _ACEOF
3352 if { (ac_try="$ac_cpp conftest.$ac_ext"
3353 case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3359   ac_status=$?
3360   grep -v '^ *+' conftest.er1 >conftest.err
3361   rm -f conftest.er1
3362   cat conftest.err >&5
3363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364   (exit $ac_status); } >/dev/null; then
3365   if test -s conftest.err; then
3366     ac_cpp_err=$ac_c_preproc_warn_flag
3367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368   else
3369     ac_cpp_err=
3370   fi
3371 else
3372   ac_cpp_err=yes
3373 fi
3374 if test -z "$ac_cpp_err"; then
3375   # Broken: success on invalid input.
3376 continue
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381   # Passes both tests.
3382 ac_preproc_ok=:
3383 break
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388 done
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3392   break
3393 fi
3394
3395     done
3396     ac_cv_prog_CPP=$CPP
3397
3398 fi
3399   CPP=$ac_cv_prog_CPP
3400 else
3401   ac_cv_prog_CPP=$CPP
3402 fi
3403 { echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6; }
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408   # Use a header file that comes with gcc, so configuring glibc
3409   # with a fresh cross-compiler works.
3410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411   # <limits.h> exists even on freestanding compilers.
3412   # On the NeXT, cc -E runs the code through the compiler's parser,
3413   # not just through cpp. "Syntax error" is here to catch this case.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425                      Syntax error
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } >/dev/null; then
3440   if test -s conftest.err; then
3441     ac_cpp_err=$ac_c_preproc_warn_flag
3442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   :
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Broken: fails on valid input.
3456 continue
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461   # OK, works on sane cases.  Now check whether nonexistent headers
3462   # can be detected and how.
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null; then
3484   if test -s conftest.err; then
3485     ac_cpp_err=$ac_c_preproc_warn_flag
3486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487   else
3488     ac_cpp_err=
3489   fi
3490 else
3491   ac_cpp_err=yes
3492 fi
3493 if test -z "$ac_cpp_err"; then
3494   # Broken: success on invalid input.
3495 continue
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500   # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3503 fi
3504
3505 rm -f conftest.err conftest.$ac_ext
3506
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3511   :
3512 else
3513   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3516 See \`config.log' for more details." >&2;}
3517    { (exit 1); exit 1; }; }
3518 fi
3519
3520 ac_ext=c
3521 ac_cpp='$CPP $CPPFLAGS'
3522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525
3526
3527 if test "$CXX" = "clang++" ; then
3528   { echo "$as_me:$LINENO: checking whether clang works" >&5
3529 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3530   ac_ext=cpp
3531 ac_cpp='$CXXCPP $CPPFLAGS'
3532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3535
3536
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <limits>
3544 #if __has_include (<cxxabi.h>)
3545 #include <cxxabi.h>
3546 #endif
3547 #if __has_include (<unwind.h>)
3548 #include <unwind.h>
3549 #endif
3550
3551 int
3552 main ()
3553 {
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_compile") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } &&
3573          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3574   { (case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579   (eval "$ac_try") 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; } &&
3583          { ac_try='test -s conftest.$ac_objext'
3584   { (case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_try") 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; }; then
3593
3594   { echo "$as_me:$LINENO: result: yes" >&5
3595 echo "${ECHO_T}yes" >&6; }
3596
3597 else
3598   echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601
3602   { echo "$as_me:$LINENO: result: no" >&5
3603 echo "${ECHO_T}no" >&6; }
3604   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3605 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3606    { (exit 1); exit 1; }; }
3607
3608 fi
3609
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611   ac_ext=c
3612 ac_cpp='$CPP $CPPFLAGS'
3613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
3617 fi
3618
3619 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3620 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3621 ac_ext=cpp
3622 ac_cpp='$CXXCPP $CPPFLAGS'
3623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3626
3627 llvm_cv_cxx_compiler=unknown
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #if ! __clang__
3635                                     #error
3636                                     #endif
3637
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646   (eval "$ac_compile") 2>conftest.er1
3647   ac_status=$?
3648   grep -v '^ *+' conftest.er1 >conftest.err
3649   rm -f conftest.er1
3650   cat conftest.err >&5
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); } &&
3653          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3654   { (case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659   (eval "$ac_try") 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; } &&
3663          { ac_try='test -s conftest.$ac_objext'
3664   { (case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669   (eval "$ac_try") 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; }; then
3673   llvm_cv_cxx_compiler=clang
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678         cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684 #if ! __GNUC__
3685                                                        #error
3686                                                        #endif
3687
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3697   ac_status=$?
3698   grep -v '^ *+' conftest.er1 >conftest.err
3699   rm -f conftest.er1
3700   cat conftest.err >&5
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } &&
3703          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3704   { (case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709   (eval "$ac_try") 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); }; } &&
3713          { ac_try='test -s conftest.$ac_objext'
3714   { (case "(($ac_try" in
3715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716   *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719   (eval "$ac_try") 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   llvm_cv_cxx_compiler=gcc
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728
3729 fi
3730
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_ext=c
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
3741 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3742 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3743
3744
3745
3746 if test -d ${srcdir}/projects/test-suite ; then
3747   subdirs="$subdirs projects/test-suite"
3748
3749 fi
3750
3751 if test -d ${srcdir}/projects/llvm-test ; then
3752   subdirs="$subdirs projects/llvm-test"
3753
3754 fi
3755
3756 if test -d ${srcdir}/projects/poolalloc ; then
3757   subdirs="$subdirs projects/poolalloc"
3758
3759 fi
3760
3761 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3762   subdirs="$subdirs projects/llvm-poolalloc"
3763
3764 fi
3765
3766 for i in `ls ${srcdir}/projects`
3767 do
3768   if test -d ${srcdir}/projects/${i} ; then
3769     case ${i} in
3770       safecode)     subdirs="$subdirs projects/safecode"
3771  ;;
3772       compiler-rt)       ;;
3773       test-suite)     ;;
3774       llvm-test)      ;;
3775       poolalloc)      ;;
3776       llvm-poolalloc) ;;
3777       *)
3778         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3779 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3780         ;;
3781     esac
3782   fi
3783 done
3784
3785 # Check whether --enable-polly was given.
3786 if test "${enable_polly+set}" = set; then
3787   enableval=$enable_polly;
3788 else
3789   enableval=default
3790 fi
3791
3792 case "$enableval" in
3793   yes) ENABLE_POLLY=1
3794  ;;
3795   no)  ENABLE_POLLY=0
3796  ;;
3797   default) ENABLE_POLLY=1
3798  ;;
3799   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3800 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3801    { (exit 1); exit 1; }; } ;;
3802 esac
3803
3804
3805 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3806   LLVM_HAS_POLLY=1
3807
3808   subdirs="$subdirs tools/polly"
3809
3810 fi
3811
3812
3813 # Make sure we can run config.sub.
3814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3815   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3816 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3817    { (exit 1); exit 1; }; }
3818
3819 { echo "$as_me:$LINENO: checking build system type" >&5
3820 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3821 if test "${ac_cv_build+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   ac_build_alias=$build_alias
3825 test "x$ac_build_alias" = x &&
3826   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3827 test "x$ac_build_alias" = x &&
3828   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3829 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3830    { (exit 1); exit 1; }; }
3831 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3832   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3833 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3834    { (exit 1); exit 1; }; }
3835
3836 fi
3837 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3838 echo "${ECHO_T}$ac_cv_build" >&6; }
3839 case $ac_cv_build in
3840 *-*-*) ;;
3841 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3842 echo "$as_me: error: invalid value of canonical build" >&2;}
3843    { (exit 1); exit 1; }; };;
3844 esac
3845 build=$ac_cv_build
3846 ac_save_IFS=$IFS; IFS='-'
3847 set x $ac_cv_build
3848 shift
3849 build_cpu=$1
3850 build_vendor=$2
3851 shift; shift
3852 # Remember, the first character of IFS is used to create $*,
3853 # except with old shells:
3854 build_os=$*
3855 IFS=$ac_save_IFS
3856 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3857
3858
3859 { echo "$as_me:$LINENO: checking host system type" >&5
3860 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3861 if test "${ac_cv_host+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   if test "x$host_alias" = x; then
3865   ac_cv_host=$ac_cv_build
3866 else
3867   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3868     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3870    { (exit 1); exit 1; }; }
3871 fi
3872
3873 fi
3874 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3875 echo "${ECHO_T}$ac_cv_host" >&6; }
3876 case $ac_cv_host in
3877 *-*-*) ;;
3878 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3879 echo "$as_me: error: invalid value of canonical host" >&2;}
3880    { (exit 1); exit 1; }; };;
3881 esac
3882 host=$ac_cv_host
3883 ac_save_IFS=$IFS; IFS='-'
3884 set x $ac_cv_host
3885 shift
3886 host_cpu=$1
3887 host_vendor=$2
3888 shift; shift
3889 # Remember, the first character of IFS is used to create $*,
3890 # except with old shells:
3891 host_os=$*
3892 IFS=$ac_save_IFS
3893 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3894
3895
3896 { echo "$as_me:$LINENO: checking target system type" >&5
3897 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3898 if test "${ac_cv_target+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   if test "x$target_alias" = x; then
3902   ac_cv_target=$ac_cv_host
3903 else
3904   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3905     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3906 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3907    { (exit 1); exit 1; }; }
3908 fi
3909
3910 fi
3911 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3912 echo "${ECHO_T}$ac_cv_target" >&6; }
3913 case $ac_cv_target in
3914 *-*-*) ;;
3915 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3916 echo "$as_me: error: invalid value of canonical target" >&2;}
3917    { (exit 1); exit 1; }; };;
3918 esac
3919 target=$ac_cv_target
3920 ac_save_IFS=$IFS; IFS='-'
3921 set x $ac_cv_target
3922 shift
3923 target_cpu=$1
3924 target_vendor=$2
3925 shift; shift
3926 # Remember, the first character of IFS is used to create $*,
3927 # except with old shells:
3928 target_os=$*
3929 IFS=$ac_save_IFS
3930 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3931
3932
3933 # The aliases save the names the user supplied, while $host etc.
3934 # will get canonicalized.
3935 test -n "$target_alias" &&
3936   test "$program_prefix$program_suffix$program_transform_name" = \
3937     NONENONEs,x,x, &&
3938   program_prefix=${target_alias}-
3939
3940 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3941 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3942 if test "${llvm_cv_os_type+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   case $host in
3946   *-*-aix*)
3947     llvm_cv_link_all_option="-Wl,--whole-archive"
3948     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3949     llvm_cv_os_type="AIX"
3950     llvm_cv_platform_type="Unix" ;;
3951   *-*-irix*)
3952     llvm_cv_link_all_option="-Wl,--whole-archive"
3953     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954     llvm_cv_os_type="IRIX"
3955     llvm_cv_platform_type="Unix" ;;
3956   *-*-cygwin*)
3957     llvm_cv_link_all_option="-Wl,--whole-archive"
3958     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959     llvm_cv_os_type="Cygwin"
3960     llvm_cv_platform_type="Unix" ;;
3961   *-*-darwin*)
3962     llvm_cv_link_all_option="-Wl,-all_load"
3963     llvm_cv_no_link_all_option="-Wl,-noall_load"
3964     llvm_cv_os_type="Darwin"
3965     llvm_cv_platform_type="Unix" ;;
3966   *-*-minix*)
3967     llvm_cv_link_all_option="-Wl,-all_load"
3968     llvm_cv_no_link_all_option="-Wl,-noall_load"
3969     llvm_cv_os_type="Minix"
3970     llvm_cv_platform_type="Unix" ;;
3971   *-*-freebsd*)
3972     llvm_cv_link_all_option="-Wl,--whole-archive"
3973     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974     llvm_cv_os_type="FreeBSD"
3975     llvm_cv_platform_type="Unix" ;;
3976   *-*-kfreebsd-gnu)
3977     llvm_cv_link_all_option="-Wl,--whole-archive"
3978     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979     llvm_cv_os_type="GNU/kFreeBSD"
3980     llvm_cv_platform_type="Unix" ;;
3981   *-*-openbsd*)
3982     llvm_cv_link_all_option="-Wl,--whole-archive"
3983     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984     llvm_cv_os_type="OpenBSD"
3985     llvm_cv_platform_type="Unix" ;;
3986   *-*-netbsd*)
3987     llvm_cv_link_all_option="-Wl,--whole-archive"
3988     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989     llvm_cv_os_type="NetBSD"
3990     llvm_cv_platform_type="Unix" ;;
3991   *-*-dragonfly*)
3992     llvm_cv_link_all_option="-Wl,--whole-archive"
3993     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994     llvm_cv_os_type="DragonFly"
3995     llvm_cv_platform_type="Unix" ;;
3996   *-*-bitrig*)
3997     llvm_cv_link_all_option="-Wl,--whole-archive"
3998     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999     llvm_cv_os_type="Bitrig"
4000     llvm_cv_platform_type="Unix" ;;
4001   *-*-hpux*)
4002     llvm_cv_link_all_option="-Wl,--whole-archive"
4003     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004     llvm_cv_os_type="HP-UX"
4005     llvm_cv_platform_type="Unix" ;;
4006   *-*-interix*)
4007     llvm_cv_link_all_option="-Wl,--whole-archive"
4008     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009     llvm_cv_os_type="Interix"
4010     llvm_cv_platform_type="Unix" ;;
4011   *-*-linux*)
4012     llvm_cv_link_all_option="-Wl,--whole-archive"
4013     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014     llvm_cv_os_type="Linux"
4015     llvm_cv_platform_type="Unix" ;;
4016   *-*-gnu*)
4017     llvm_cv_link_all_option="-Wl,--whole-archive"
4018     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019     llvm_cv_os_type="GNU"
4020     llvm_cv_platform_type="Unix" ;;
4021   *-*-solaris*)
4022     llvm_cv_link_all_option="-Wl,-z,allextract"
4023     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4024     llvm_cv_os_type="SunOS"
4025     llvm_cv_platform_type="Unix" ;;
4026   *-*-win32*)
4027     llvm_cv_link_all_option="-Wl,--whole-archive"
4028     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029     llvm_cv_os_type="Win32"
4030     llvm_cv_platform_type="Win32" ;;
4031   *-*-mingw*)
4032     llvm_cv_link_all_option="-Wl,--whole-archive"
4033     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034     llvm_cv_os_type="MingW"
4035     llvm_cv_platform_type="Win32" ;;
4036   *-*-haiku*)
4037     llvm_cv_link_all_option="-Wl,--whole-archive"
4038     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4039     llvm_cv_os_type="Haiku"
4040     llvm_cv_platform_type="Unix" ;;
4041   *-unknown-eabi*)
4042     llvm_cv_link_all_option="-Wl,--whole-archive"
4043     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044     llvm_cv_os_type="Freestanding"
4045     llvm_cv_platform_type="Unix" ;;
4046   *-unknown-elf*)
4047     llvm_cv_link_all_option="-Wl,--whole-archive"
4048     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4049     llvm_cv_os_type="Freestanding"
4050     llvm_cv_platform_type="Unix" ;;
4051   *)
4052     llvm_cv_link_all_option=""
4053     llvm_cv_no_link_all_option=""
4054     llvm_cv_os_type="Unknown"
4055     llvm_cv_platform_type="Unknown" ;;
4056 esac
4057 fi
4058 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4059 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4060
4061 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4062 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4063 if test "${llvm_cv_target_os_type+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   case $target in
4067   *-*-aix*)
4068     llvm_cv_target_os_type="AIX" ;;
4069   *-*-irix*)
4070     llvm_cv_target_os_type="IRIX" ;;
4071   *-*-cygwin*)
4072     llvm_cv_target_os_type="Cygwin" ;;
4073   *-*-darwin*)
4074     llvm_cv_target_os_type="Darwin" ;;
4075   *-*-minix*)
4076     llvm_cv_target_os_type="Minix" ;;
4077   *-*-freebsd*)
4078     llvm_cv_target_os_type="FreeBSD" ;;
4079   *-*-kfreebsd-gnu)
4080     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4081   *-*-openbsd*)
4082     llvm_cv_target_os_type="OpenBSD" ;;
4083   *-*-netbsd*)
4084     llvm_cv_target_os_type="NetBSD" ;;
4085   *-*-dragonfly*)
4086     llvm_cv_target_os_type="DragonFly" ;;
4087   *-*-bitrig*)
4088     llvm_cv_target_os_type="Bitrig" ;;
4089   *-*-hpux*)
4090     llvm_cv_target_os_type="HP-UX" ;;
4091   *-*-interix*)
4092     llvm_cv_target_os_type="Interix" ;;
4093   *-*-linux*)
4094     llvm_cv_target_os_type="Linux" ;;
4095   *-*-gnu*)
4096     llvm_cv_target_os_type="GNU" ;;
4097   *-*-solaris*)
4098     llvm_cv_target_os_type="SunOS" ;;
4099   *-*-win32*)
4100     llvm_cv_target_os_type="Win32" ;;
4101   *-*-mingw*)
4102     llvm_cv_target_os_type="MingW" ;;
4103   *-*-haiku*)
4104     llvm_cv_target_os_type="Haiku" ;;
4105   *-*-rtems*)
4106     llvm_cv_target_os_type="RTEMS" ;;
4107   *-*-nacl*)
4108     llvm_cv_target_os_type="NativeClient" ;;
4109   *-unknown-eabi*)
4110     llvm_cv_target_os_type="Freestanding" ;;
4111   *-*-ps4)
4112     llvm_cv_target_os_type="PS4" ;;
4113   *)
4114     llvm_cv_target_os_type="Unknown" ;;
4115 esac
4116 fi
4117 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4118 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4119
4120 if test "$llvm_cv_os_type" = "Unknown" ; then
4121   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4122 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 OS=$llvm_cv_os_type
4127
4128 HOST_OS=$llvm_cv_os_type
4129
4130 TARGET_OS=$llvm_cv_target_os_type
4131
4132
4133 LINKALL=$llvm_cv_link_all_option
4134
4135 NOLINKALL=$llvm_cv_no_link_all_option
4136
4137
4138 case $llvm_cv_platform_type in
4139   Unix)
4140
4141 cat >>confdefs.h <<\_ACEOF
4142 #define LLVM_ON_UNIX 1
4143 _ACEOF
4144
4145     LLVM_ON_UNIX=1
4146
4147     LLVM_ON_WIN32=0
4148
4149     ;;
4150   Win32)
4151
4152 cat >>confdefs.h <<\_ACEOF
4153 #define LLVM_ON_WIN32 1
4154 _ACEOF
4155
4156     LLVM_ON_UNIX=0
4157
4158     LLVM_ON_WIN32=1
4159
4160     ;;
4161 esac
4162
4163 { echo "$as_me:$LINENO: checking target architecture" >&5
4164 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4165 if test "${llvm_cv_target_arch+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $target in
4169   i?86-*)                 llvm_cv_target_arch="x86" ;;
4170   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4171   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4172   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4173   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4174   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4175   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4176   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4177   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4178   xcore-*)                llvm_cv_target_arch="XCore" ;;
4179   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4180   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4181   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4182   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4183   *)                      llvm_cv_target_arch="Unknown" ;;
4184 esac
4185 fi
4186 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4187 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4188
4189 if test "$llvm_cv_target_arch" = "Unknown" ; then
4190   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4191 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4192 fi
4193
4194 case "$llvm_cv_target_arch" in
4195     x86)     LLVM_NATIVE_ARCH="X86" ;;
4196     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4197     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4198 esac
4199
4200 ARCH=$llvm_cv_target_arch
4201
4202 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4203
4204
4205 case $host in
4206   i?86-*)                 host_arch="x86" ;;
4207   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4208   sparc*-*)               host_arch="Sparc" ;;
4209   powerpc*-*)             host_arch="PowerPC" ;;
4210   arm64*-*)               host_arch="AArch64" ;;
4211   arm*-*)                 host_arch="ARM" ;;
4212   aarch64*-*)             host_arch="AArch64" ;;
4213   mips-* | mips64-*)      host_arch="Mips" ;;
4214   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4215   xcore-*)                host_arch="XCore" ;;
4216   msp430-*)               host_arch="MSP430" ;;
4217   hexagon-*)              host_arch="Hexagon" ;;
4218   s390x-*)                host_arch="SystemZ" ;;
4219   *)                      host_arch="Unknown" ;;
4220 esac
4221
4222 if test "$host_arch" = "Unknown" ; then
4223   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4224 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4225 fi
4226
4227 HOST_ARCH=$host_arch
4228
4229
4230 if test "$cross_compiling" = yes; then
4231   LLVM_CROSS_COMPILING=1
4232
4233
4234 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4235 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4236 if test "${ac_cv_build_exeext+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4240   ac_cv_build_exeext=.exe
4241 else
4242   ac_build_prefix=${build_alias}-
4243
4244   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4245 set dummy ${ac_build_prefix}gcc; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   if test -n "$BUILD_CC"; then
4252   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4261     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 BUILD_CC=$ac_cv_prog_BUILD_CC
4272 if test -n "$BUILD_CC"; then
4273   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274 echo "${ECHO_T}$BUILD_CC" >&6; }
4275 else
4276   { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278 fi
4279
4280
4281   if test -z "$BUILD_CC"; then
4282      # Extract the first word of "gcc", so it can be a program name with args.
4283 set dummy gcc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   if test -n "$BUILD_CC"; then
4290   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297   for ac_exec_ext in '' $ac_executable_extensions; do
4298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4299     ac_cv_prog_BUILD_CC="gcc"
4300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 BUILD_CC=$ac_cv_prog_BUILD_CC
4310 if test -n "$BUILD_CC"; then
4311   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4312 echo "${ECHO_T}$BUILD_CC" >&6; }
4313 else
4314   { echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6; }
4316 fi
4317
4318
4319      if test -z "$BUILD_CC"; then
4320        # Extract the first word of "cc", so it can be a program name with args.
4321 set dummy cc; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if test -n "$BUILD_CC"; then
4328   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4329 else
4330   ac_prog_rejected=no
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4338     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4339        ac_prog_rejected=yes
4340        continue
4341      fi
4342     ac_cv_prog_BUILD_CC="cc"
4343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347 done
4348 IFS=$as_save_IFS
4349
4350 if test $ac_prog_rejected = yes; then
4351   # We found a bogon in the path, so make sure we never use it.
4352   set dummy $ac_cv_prog_BUILD_CC
4353   shift
4354   if test $# != 0; then
4355     # We chose a different compiler from the bogus one.
4356     # However, it has the same basename, so the bogon will be chosen
4357     # first if we set BUILD_CC to just the basename; use the full file name.
4358     shift
4359     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4360   fi
4361 fi
4362 fi
4363 fi
4364 BUILD_CC=$ac_cv_prog_BUILD_CC
4365 if test -n "$BUILD_CC"; then
4366   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4367 echo "${ECHO_T}$BUILD_CC" >&6; }
4368 else
4369   { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4371 fi
4372
4373
4374      fi
4375   fi
4376   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4377 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4378    { (exit 1); exit 1; }; }
4379   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4380   rm -f conftest*
4381   echo 'int main () { return 0; }' > conftest.$ac_ext
4382   ac_cv_build_exeext=
4383   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4384   (eval $ac_build_link) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; then
4388     for file in conftest.*; do
4389       case $file in
4390       *.c | *.o | *.obj | *.dSYM) ;;
4391       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4392       esac
4393     done
4394   else
4395     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4396 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4397    { (exit 1); exit 1; }; }
4398   fi
4399   rm -f conftest*
4400   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4401 fi
4402 fi
4403
4404 BUILD_EXEEXT=""
4405 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4406 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4407 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4408 ac_build_exeext=$BUILD_EXEEXT
4409
4410   ac_build_prefix=${build_alias}-
4411   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4412 set dummy ${ac_build_prefix}g++; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test -n "$BUILD_CXX"; then
4419   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439 if test -n "$BUILD_CXX"; then
4440   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441 echo "${ECHO_T}$BUILD_CXX" >&6; }
4442 else
4443   { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4445 fi
4446
4447
4448   if test -z "$BUILD_CXX"; then
4449      # Extract the first word of "g++", so it can be a program name with args.
4450 set dummy g++; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   if test -n "$BUILD_CXX"; then
4457   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_prog_BUILD_CXX="g++"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474 fi
4475 fi
4476 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4477 if test -n "$BUILD_CXX"; then
4478   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4479 echo "${ECHO_T}$BUILD_CXX" >&6; }
4480 else
4481   { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4483 fi
4484
4485
4486      if test -z "$BUILD_CXX"; then
4487        # Extract the first word of "c++", so it can be a program name with args.
4488 set dummy c++; ac_word=$2
4489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4491 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494   if test -n "$BUILD_CXX"; then
4495   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4496 else
4497   ac_prog_rejected=no
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503   for ac_exec_ext in '' $ac_executable_extensions; do
4504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4505     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4506        ac_prog_rejected=yes
4507        continue
4508      fi
4509     ac_cv_prog_BUILD_CXX="c++"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515 IFS=$as_save_IFS
4516
4517 if test $ac_prog_rejected = yes; then
4518   # We found a bogon in the path, so make sure we never use it.
4519   set dummy $ac_cv_prog_BUILD_CXX
4520   shift
4521   if test $# != 0; then
4522     # We chose a different compiler from the bogus one.
4523     # However, it has the same basename, so the bogon will be chosen
4524     # first if we set BUILD_CXX to just the basename; use the full file name.
4525     shift
4526     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4527   fi
4528 fi
4529 fi
4530 fi
4531 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4532 if test -n "$BUILD_CXX"; then
4533   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4534 echo "${ECHO_T}$BUILD_CXX" >&6; }
4535 else
4536   { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4538 fi
4539
4540
4541      fi
4542   fi
4543 else
4544   LLVM_CROSS_COMPILING=0
4545
4546 fi
4547
4548 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4549   cvsbuild="yes"
4550   optimize="no"
4551   CVSBUILD=CVSBUILD=1
4552
4553 else
4554   cvsbuild="no"
4555   optimize="yes"
4556 fi
4557
4558
4559 # Check whether --enable-libcpp was given.
4560 if test "${enable_libcpp+set}" = set; then
4561   enableval=$enable_libcpp;
4562 else
4563   enableval=default
4564 fi
4565
4566 case "$enableval" in
4567   yes) ENABLE_LIBCPP=1
4568  ;;
4569   no)  ENABLE_LIBCPP=0
4570  ;;
4571   default) ENABLE_LIBCPP=0
4572 ;;
4573   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4574 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4575    { (exit 1); exit 1; }; } ;;
4576 esac
4577
4578 # Check whether --enable-compiler-version-checks was given.
4579 if test "${enable_compiler_version_checks+set}" = set; then
4580   enableval=$enable_compiler_version_checks;
4581 else
4582   enableval=default
4583 fi
4584
4585 case "$enableval" in
4586   no)
4587     ;;
4588   yes|default)
4589     ac_ext=cpp
4590 ac_cpp='$CXXCPP $CPPFLAGS'
4591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594
4595     case "$llvm_cv_cxx_compiler" in
4596     clang)
4597       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4598 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4599       cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605
4606 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4607 #error This version of Clang is too old to build LLVM
4608 #endif
4609
4610 _ACEOF
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4613 case "(($ac_try" in
4614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615   *) ac_try_echo=$ac_try;;
4616 esac
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618   (eval "$ac_compile") 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4626   { (case "(($ac_try" in
4627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628   *) ac_try_echo=$ac_try;;
4629 esac
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631   (eval "$ac_try") 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; } &&
4635          { ac_try='test -s conftest.$ac_objext'
4636   { (case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641   (eval "$ac_try") 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   { echo "$as_me:$LINENO: result: yes" >&5
4646 echo "${ECHO_T}yes" >&6; }
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651         { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653            { { echo "$as_me:$LINENO: error:
4654 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4655 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4656 bypass these sanity checks." >&5
4657 echo "$as_me: error:
4658 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4659 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4660 bypass these sanity checks." >&2;}
4661    { (exit 1); exit 1; }; }
4662 fi
4663
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665
4666                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4667         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4668 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4669         llvm_cv_old_cxxflags="$CXXFLAGS"
4670         CXXFLAGS="$CXXFLAGS -std=c++0x"
4671         cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677
4678 #include <atomic>
4679 std::atomic<float> x(0.0f);
4680 int main() { return (float)x; }
4681
4682 _ACEOF
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (ac_try="$ac_link"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_link") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } &&
4697          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4698   { (case "(($ac_try" in
4699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700   *) ac_try_echo=$ac_try;;
4701 esac
4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703   (eval "$ac_try") 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); }; } &&
4707          { ac_try='test -s conftest$ac_exeext'
4708   { (case "(($ac_try" in
4709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710   *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713   (eval "$ac_try") 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; }; then
4717   { echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6; }
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723         { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4725              { { echo "$as_me:$LINENO: error:
4726 We detected a missing feature in the standard C++ library that was known to be
4727 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4728 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4729 than 4.7. You will need to update your system and ensure Clang uses the newer
4730 standard library.
4731
4732 If this error is incorrect or you need to force things to work, you may pass
4733 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4734 echo "$as_me: error:
4735 We detected a missing feature in the standard C++ library that was known to be
4736 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4737 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4738 than 4.7. You will need to update your system and ensure Clang uses the newer
4739 standard library.
4740
4741 If this error is incorrect or you need to force things to work, you may pass
4742 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4743    { (exit 1); exit 1; }; }
4744 fi
4745
4746 rm -f core conftest.err conftest.$ac_objext \
4747       conftest$ac_exeext conftest.$ac_ext
4748         CXXFLAGS="$llvm_cv_old_cxxflags"
4749       fi
4750       ;;
4751     gcc)
4752       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4753 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4754       cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760
4761 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4762 #error This version of GCC is too old to build LLVM
4763 #endif
4764
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4768 case "(($ac_try" in
4769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770   *) ac_try_echo=$ac_try;;
4771 esac
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773   (eval "$ac_compile") 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4781   { (case "(($ac_try" in
4782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783   *) ac_try_echo=$ac_try;;
4784 esac
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786   (eval "$ac_try") 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; } &&
4790          { ac_try='test -s conftest.$ac_objext'
4791   { (case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796   (eval "$ac_try") 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   { echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6; }
4802 else
4803   echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4805
4806         { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4808            { { echo "$as_me:$LINENO: error:
4809 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4810 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4811 bypass these sanity checks." >&5
4812 echo "$as_me: error:
4813 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4814 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4815 bypass these sanity checks." >&2;}
4816    { (exit 1); exit 1; }; }
4817 fi
4818
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820       ;;
4821     unknown)
4822       ;;
4823     esac
4824     ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830     ;;
4831   *)
4832     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4834    { (exit 1); exit 1; }; }
4835     ;;
4836 esac
4837
4838 # Check whether --enable-cxx1y was given.
4839 if test "${enable_cxx1y+set}" = set; then
4840   enableval=$enable_cxx1y;
4841 else
4842   enableval=default
4843 fi
4844
4845 case "$enableval" in
4846   yes) ENABLE_CXX1Y=1
4847  ;;
4848   no)  ENABLE_CXX1Y=0
4849  ;;
4850   default) ENABLE_CXX1Y=0
4851 ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 # Check whether --enable-split-dwarf was given.
4858 if test "${enable_split_dwarf+set}" = set; then
4859   enableval=$enable_split_dwarf;
4860 else
4861   enableval=default
4862 fi
4863
4864 case "$enableval" in
4865   yes) ENABLE_SPLIT_DWARF=1
4866  ;;
4867   no)  ENABLE_SPLIT_DWARF=0
4868  ;;
4869   default) ENABLE_SPLIT_DWARF=0
4870 ;;
4871   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4872 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4873    { (exit 1); exit 1; }; } ;;
4874 esac
4875
4876 clang_arcmt="yes"
4877 # Check whether --enable-clang-arcmt was given.
4878 if test "${enable_clang_arcmt+set}" = set; then
4879   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4880 else
4881   enableval="yes"
4882 fi
4883
4884 case "$enableval" in
4885   yes) ENABLE_CLANG_ARCMT=1
4886  ;;
4887   no)  ENABLE_CLANG_ARCMT=0
4888  ;;
4889   default) ENABLE_CLANG_ARCMT=1
4890 ;;
4891   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4892 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4893    { (exit 1); exit 1; }; } ;;
4894 esac
4895
4896 clang_plugin_support="yes"
4897 # Check whether --enable-clang-plugin-support was given.
4898 if test "${enable_clang_plugin_support+set}" = set; then
4899   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4900 else
4901   enableval="yes"
4902 fi
4903
4904 case "$enableval" in
4905   yes) CLANG_PLUGIN_SUPPORT=1
4906  ;;
4907   no)  CLANG_PLUGIN_SUPPORT=0
4908  ;;
4909   default) CLANG_PLUGIN_SUPPORT=1
4910 ;;
4911   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4913    { (exit 1); exit 1; }; } ;;
4914 esac
4915
4916 clang_static_analyzer="yes"
4917 # Check whether --enable-clang-static-analyzer was given.
4918 if test "${enable_clang_static_analyzer+set}" = set; then
4919   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4920 else
4921   enableval="yes"
4922 fi
4923
4924 case "$enableval" in
4925   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4926  ;;
4927   no)
4928     if test ${clang_arcmt} != "no" ; then
4929       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4930 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4931    { (exit 1); exit 1; }; }
4932     fi
4933     ENABLE_CLANG_STATIC_ANALYZER=0
4934
4935     ;;
4936   default) ENABLE_CLANG_STATIC_ANALYZER=1
4937 ;;
4938   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941 esac
4942
4943 # Check whether --enable-optimized was given.
4944 if test "${enable_optimized+set}" = set; then
4945   enableval=$enable_optimized;
4946 else
4947   enableval=$optimize
4948 fi
4949
4950 if test ${enableval} = "no" ; then
4951   ENABLE_OPTIMIZED=
4952
4953 else
4954   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4955
4956 fi
4957
4958 # Check whether --enable-profiling was given.
4959 if test "${enable_profiling+set}" = set; then
4960   enableval=$enable_profiling;
4961 else
4962   enableval="no"
4963 fi
4964
4965 if test ${enableval} = "no" ; then
4966   ENABLE_PROFILING=
4967
4968 else
4969   ENABLE_PROFILING=ENABLE_PROFILING=1
4970
4971 fi
4972
4973 # Check whether --enable-assertions was given.
4974 if test "${enable_assertions+set}" = set; then
4975   enableval=$enable_assertions;
4976 else
4977   enableval="yes"
4978 fi
4979
4980 if test ${enableval} = "yes" ; then
4981   DISABLE_ASSERTIONS=
4982
4983 else
4984   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4985
4986 fi
4987
4988 # Check whether --enable-werror was given.
4989 if test "${enable_werror+set}" = set; then
4990   enableval=$enable_werror;
4991 else
4992   enableval="no"
4993 fi
4994
4995 case "$enableval" in
4996   yes) ENABLE_WERROR=1
4997  ;;
4998   no)  ENABLE_WERROR=0
4999  ;;
5000   default) ENABLE_WERROR=0
5001 ;;
5002   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5003 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5004    { (exit 1); exit 1; }; } ;;
5005 esac
5006
5007 # Check whether --enable-expensive-checks was given.
5008 if test "${enable_expensive_checks+set}" = set; then
5009   enableval=$enable_expensive_checks;
5010 else
5011   enableval="no"
5012 fi
5013
5014 if test ${enableval} = "yes" ; then
5015   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016
5017   EXPENSIVE_CHECKS=yes
5018
5019 else
5020   ENABLE_EXPENSIVE_CHECKS=
5021
5022   EXPENSIVE_CHECKS=no
5023
5024 fi
5025
5026 # Check whether --enable-debug-runtime was given.
5027 if test "${enable_debug_runtime+set}" = set; then
5028   enableval=$enable_debug_runtime;
5029 else
5030   enableval=no
5031 fi
5032
5033 if test ${enableval} = "no" ; then
5034   DEBUG_RUNTIME=
5035
5036 else
5037   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5038
5039 fi
5040
5041 # Check whether --enable-debug-symbols was given.
5042 if test "${enable_debug_symbols+set}" = set; then
5043   enableval=$enable_debug_symbols;
5044 else
5045   enableval=no
5046 fi
5047
5048 if test ${enableval} = "no" ; then
5049   DEBUG_SYMBOLS=
5050
5051 else
5052   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5053
5054 fi
5055
5056 # Check whether --enable-keep-symbols was given.
5057 if test "${enable_keep_symbols+set}" = set; then
5058   enableval=$enable_keep_symbols;
5059 else
5060   enableval=no
5061 fi
5062
5063 if test ${enableval} = "no" ; then
5064   KEEP_SYMBOLS=
5065
5066 else
5067   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5068
5069 fi
5070
5071 # Check whether --enable-jit was given.
5072 if test "${enable_jit+set}" = set; then
5073   enableval=$enable_jit;
5074 else
5075   enableval=default
5076 fi
5077
5078 if test ${enableval} = "no"
5079 then
5080   JIT=
5081
5082 else
5083   case "$llvm_cv_target_arch" in
5084     x86)         TARGET_HAS_JIT=1
5085  ;;
5086     Sparc)       TARGET_HAS_JIT=0
5087  ;;
5088     PowerPC)     TARGET_HAS_JIT=1
5089  ;;
5090     x86_64)      TARGET_HAS_JIT=1
5091  ;;
5092     ARM)         TARGET_HAS_JIT=1
5093  ;;
5094     Mips)        TARGET_HAS_JIT=1
5095  ;;
5096     XCore)       TARGET_HAS_JIT=0
5097  ;;
5098     MSP430)      TARGET_HAS_JIT=0
5099  ;;
5100     Hexagon)     TARGET_HAS_JIT=0
5101  ;;
5102     NVPTX)       TARGET_HAS_JIT=0
5103  ;;
5104     SystemZ)     TARGET_HAS_JIT=1
5105  ;;
5106     *)           TARGET_HAS_JIT=0
5107  ;;
5108   esac
5109 fi
5110
5111 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5112 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5113
5114
5115 # Check whether --enable-docs was given.
5116 if test "${enable_docs+set}" = set; then
5117   enableval=$enable_docs;
5118 else
5119   enableval=default
5120 fi
5121
5122 case "$enableval" in
5123   yes) ENABLE_DOCS=1
5124  ;;
5125   no)  ENABLE_DOCS=0
5126  ;;
5127   default) ENABLE_DOCS=1
5128  ;;
5129   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5131    { (exit 1); exit 1; }; } ;;
5132 esac
5133
5134 # Check whether --enable-doxygen was given.
5135 if test "${enable_doxygen+set}" = set; then
5136   enableval=$enable_doxygen;
5137 else
5138   enableval=default
5139 fi
5140
5141 case "$enableval" in
5142   yes) ENABLE_DOXYGEN=1
5143  ;;
5144   no|default) ENABLE_DOXYGEN=0
5145  ;;
5146   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149 esac
5150
5151 # Check whether --enable-doxygen-search was given.
5152 if test "${enable_doxygen_search+set}" = set; then
5153   enableval=$enable_doxygen_search;
5154 else
5155   enableval=default
5156 fi
5157
5158 ENABLE_DOXYGEN_SEARCH="$enableval"
5159
5160 case "$enableval" in
5161   yes|no|default) ;;
5162   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5164    { (exit 1); exit 1; }; } ;;
5165 esac
5166
5167 # Check whether --enable-doxygen-external-search was given.
5168 if test "${enable_doxygen_external_search+set}" = set; then
5169   enableval=$enable_doxygen_external_search;
5170 else
5171   enableval=default
5172 fi
5173
5174 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5175
5176 case "$enableval" in
5177   yes)
5178             case "$ENABLE_DOXYGEN_SEARCH" in
5179       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5180       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5181 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5182    { (exit 1); exit 1; }; } ;;
5183     esac
5184     ;;
5185   no|default) ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190
5191
5192 # Check whether --with-doxygen-search-engine-url was given.
5193 if test "${with_doxygen_search_engine_url+set}" = set; then
5194   withval=$with_doxygen_search_engine_url;
5195 fi
5196
5197 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5198
5199
5200 # Check whether --with-doxygen-search-mappings was given.
5201 if test "${with_doxygen_search_mappings+set}" = set; then
5202   withval=$with_doxygen_search_mappings;
5203 fi
5204
5205 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5206
5207 case "$ENABLE_DOXYGEN_SEARCH" in
5208   yes)
5209     if test "$ENABLE_DOXYGEN" = "0" ; then
5210       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5211 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5212    { (exit 1); exit 1; }; }
5213     fi
5214
5215     enable_searchengine=YES
5216
5217
5218     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5219       yes)
5220         enable_external_search=YES
5221
5222         enable_server_based_search=YES
5223
5224         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5225
5226         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5227
5228         ;;
5229
5230       no|default)
5231         enable_external_search=NO
5232
5233         enable_server_based_search=NO
5234
5235
5236
5237         ;;
5238     esac
5239     ;;
5240
5241   no|default)
5242     enable_searchengine=NO
5243
5244
5245     enable_server_based_search=NO
5246
5247     enable_external_search=NO
5248
5249
5250     ;;
5251
5252   *)
5253     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; }
5256     ;;
5257 esac
5258
5259 # Check whether --enable-doxygen-qt-help was given.
5260 if test "${enable_doxygen_qt_help+set}" = set; then
5261   enableval=$enable_doxygen_qt_help;
5262 else
5263   enableval=default
5264 fi
5265
5266 case "$enableval" in
5267   yes)
5268     if test "$ENABLE_DOXYGEN" = "0" ; then
5269       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5270 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5271    { (exit 1); exit 1; }; }
5272     fi
5273
5274     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5275 set dummy qhelpgenerator; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   case $QHELPGENERATOR in
5282   [\\/]* | ?:[\\/]*)
5283   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5284   ;;
5285   *)
5286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291   for ac_exec_ext in '' $ac_executable_extensions; do
5292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5293     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295     break 2
5296   fi
5297 done
5298 done
5299 IFS=$as_save_IFS
5300
5301   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5302   ;;
5303 esac
5304 fi
5305 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5306 if test -n "$QHELPGENERATOR"; then
5307   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5308 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5309 else
5310   { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5312 fi
5313
5314
5315
5316         llvm_doxygen_generate_qhp=YES
5317
5318     llvm_doxygen_qch_filename=org.llvm.qch
5319
5320     llvm_doxygen_qhp_namespace=org.llvm
5321
5322     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5323
5324     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5325
5326     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5327
5328
5329         clang_doxygen_generate_qhp=YES
5330
5331     clang_doxygen_qch_filename=org.llvm.clang.qch
5332
5333     clang_doxygen_qhp_namespace=org.llvm.clang
5334
5335     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5336
5337     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5338
5339     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5340
5341     ;;
5342
5343   no|default)
5344     llvm_doxygen_generate_qhp=NO
5345
5346
5347
5348
5349
5350
5351
5352     clang_doxygen_generate_qhp=NO
5353
5354
5355
5356
5357     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5358
5359     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5360
5361     ;;
5362
5363   *)
5364     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5365 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5366    { (exit 1); exit 1; }; } ;;
5367 esac
5368
5369 # Check whether --enable-threads was given.
5370 if test "${enable_threads+set}" = set; then
5371   enableval=$enable_threads;
5372 else
5373   enableval=default
5374 fi
5375
5376 case "$enableval" in
5377   yes) LLVM_ENABLE_THREADS=1
5378  ;;
5379   no)  LLVM_ENABLE_THREADS=0
5380  ;;
5381   default) LLVM_ENABLE_THREADS=1
5382  ;;
5383   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5384 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5385    { (exit 1); exit 1; }; } ;;
5386 esac
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5390 _ACEOF
5391
5392
5393 # Check whether --enable-pthreads was given.
5394 if test "${enable_pthreads+set}" = set; then
5395   enableval=$enable_pthreads;
5396 else
5397   enableval=default
5398 fi
5399
5400 case "$enableval" in
5401   yes) ENABLE_PTHREADS=1
5402  ;;
5403   no)  ENABLE_PTHREADS=0
5404  ;;
5405   default) ENABLE_PTHREADS=1
5406  ;;
5407   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5408 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5409    { (exit 1); exit 1; }; } ;;
5410 esac
5411
5412 # Check whether --enable-zlib was given.
5413 if test "${enable_zlib+set}" = set; then
5414   enableval=$enable_zlib;
5415 else
5416   enableval=default
5417 fi
5418
5419 case "$enableval" in
5420   yes) LLVM_ENABLE_ZLIB=1
5421  ;;
5422   no)  LLVM_ENABLE_ZLIB=0
5423  ;;
5424   default) LLVM_ENABLE_ZLIB=1
5425  ;;
5426   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5428    { (exit 1); exit 1; }; } ;;
5429 esac
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5433 _ACEOF
5434
5435
5436 # Check whether --enable-pic was given.
5437 if test "${enable_pic+set}" = set; then
5438   enableval=$enable_pic;
5439 else
5440   enableval=default
5441 fi
5442
5443 case "$enableval" in
5444   yes) ENABLE_PIC=1
5445  ;;
5446   no)  ENABLE_PIC=0
5447  ;;
5448   default) ENABLE_PIC=1
5449  ;;
5450   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453 esac
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define ENABLE_PIC $ENABLE_PIC
5457 _ACEOF
5458
5459
5460 # Check whether --enable-shared was given.
5461 if test "${enable_shared+set}" = set; then
5462   enableval=$enable_shared;
5463 else
5464   enableval=default
5465 fi
5466
5467 case "$enableval" in
5468   yes) ENABLE_SHARED=1
5469  ;;
5470   no)  ENABLE_SHARED=0
5471  ;;
5472   default) ENABLE_SHARED=0
5473  ;;
5474   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477 esac
5478
5479 # Check whether --enable-embed-stdcxx was given.
5480 if test "${enable_embed_stdcxx+set}" = set; then
5481   enableval=$enable_embed_stdcxx;
5482 else
5483   enableval=default
5484 fi
5485
5486 case "$enableval" in
5487   yes) ENABLE_EMBED_STDCXX=1
5488  ;;
5489   no)  ENABLE_EMBED_STDCXX=0
5490  ;;
5491   default) ENABLE_EMBED_STDCXX=0
5492  ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498 # Check whether --enable-timestamps was given.
5499 if test "${enable_timestamps+set}" = set; then
5500   enableval=$enable_timestamps;
5501 else
5502   enableval=default
5503 fi
5504
5505 case "$enableval" in
5506   yes) ENABLE_TIMESTAMPS=1
5507  ;;
5508   no)  ENABLE_TIMESTAMPS=0
5509  ;;
5510   default) ENABLE_TIMESTAMPS=1
5511  ;;
5512   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5513 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5514    { (exit 1); exit 1; }; } ;;
5515 esac
5516
5517 cat >>confdefs.h <<_ACEOF
5518 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5519 _ACEOF
5520
5521
5522 # Check whether --enable-backtraces was given.
5523 if test "${enable_backtraces+set}" = set; then
5524   enableval=$enable_backtraces; case "$enableval" in
5525     yes) llvm_cv_enable_backtraces="yes" ;;
5526     no)  llvm_cv_enable_backtraces="no"  ;;
5527     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5528 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5529    { (exit 1); exit 1; }; } ;;
5530   esac
5531 else
5532   llvm_cv_enable_backtraces="yes"
5533 fi
5534
5535 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5536
5537 cat >>confdefs.h <<\_ACEOF
5538 #define ENABLE_BACKTRACES 1
5539 _ACEOF
5540
5541 fi
5542
5543 # Check whether --enable-crash-overrides was given.
5544 if test "${enable_crash_overrides+set}" = set; then
5545   enableval=$enable_crash_overrides; case "$enableval" in
5546     yes) llvm_cv_enable_crash_overrides="yes" ;;
5547     no)  llvm_cv_enable_crash_overrides="no"  ;;
5548     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5549 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5550    { (exit 1); exit 1; }; } ;;
5551   esac
5552 else
5553   llvm_cv_enable_crash_overrides="yes"
5554 fi
5555
5556 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5557
5558 cat >>confdefs.h <<\_ACEOF
5559 #define ENABLE_CRASH_OVERRIDES 1
5560 _ACEOF
5561
5562 fi
5563
5564 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5565 ALL_TARGETS=$ALL_TARGETS
5566
5567
5568 TARGETS_TO_BUILD=""
5569 # Check whether --enable-targets was given.
5570 if test "${enable_targets+set}" = set; then
5571   enableval=$enable_targets;
5572 else
5573   enableval=all
5574 fi
5575
5576 if test "$enableval" = host-only ; then
5577   enableval=host
5578 fi
5579 case "$enableval" in
5580   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5581   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5582       case "$a_target" in
5583         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5584         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5585         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5586         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5587         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5588         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5589         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5590         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5591         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5592         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5593         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5594         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5595         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5596         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5597         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5598         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5599         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5600         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5601         host) case "$llvm_cv_target_arch" in
5602             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5603             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5604             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5605             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5606             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5607             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5608             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5609             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5610             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5611             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5612             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5613             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5614             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5615 echo "$as_me: error: Can not set target to build" >&2;}
5616    { (exit 1); exit 1; }; } ;;
5617           esac ;;
5618         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5619 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5620    { (exit 1); exit 1; }; } ;;
5621       esac
5622   done
5623   ;;
5624 esac
5625
5626 # Check whether --enable-experimental-targets was given.
5627 if test "${enable_experimental_targets+set}" = set; then
5628   enableval=$enable_experimental_targets;
5629 else
5630   enableval=disable
5631 fi
5632
5633
5634 if test ${enableval} != "disable"
5635 then
5636   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5637 fi
5638
5639 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5640
5641
5642 for a_target in $TARGETS_TO_BUILD; do
5643   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5644
5645 cat >>confdefs.h <<_ACEOF
5646 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5647 _ACEOF
5648
5649     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5650     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5651     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5652     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5653     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5654       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5655     fi
5656     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5657       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5658     fi
5659
5660 cat >>confdefs.h <<_ACEOF
5661 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5662 _ACEOF
5663
5664
5665 cat >>confdefs.h <<_ACEOF
5666 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5667 _ACEOF
5668
5669
5670 cat >>confdefs.h <<_ACEOF
5671 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5672 _ACEOF
5673
5674
5675 cat >>confdefs.h <<_ACEOF
5676 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5677 _ACEOF
5678
5679     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5680
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5683 _ACEOF
5684
5685     fi
5686     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5690 _ACEOF
5691
5692     fi
5693   fi
5694 done
5695
5696 LLVM_ENUM_TARGETS=""
5697 LLVM_ENUM_ASM_PRINTERS=""
5698 LLVM_ENUM_ASM_PARSERS=""
5699 LLVM_ENUM_DISASSEMBLERS=""
5700 for target_to_build in $TARGETS_TO_BUILD; do
5701   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5702   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5703     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5704   fi
5705   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5706     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5707   fi
5708   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5709     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5710   fi
5711 done
5712
5713
5714
5715
5716
5717
5718 # Check whether --with-optimize-option was given.
5719 if test "${with_optimize_option+set}" = set; then
5720   withval=$with_optimize_option;
5721 else
5722   withval=default
5723 fi
5724
5725 { echo "$as_me:$LINENO: checking optimization flags" >&5
5726 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5727 case "$withval" in
5728   default)
5729     case "$llvm_cv_os_type" in
5730     FreeBSD) optimize_option=-O2 ;;
5731     MingW) optimize_option=-O2 ;;
5732     *)     optimize_option=-O3 ;;
5733     esac ;;
5734   *) optimize_option="$withval" ;;
5735 esac
5736 OPTIMIZE_OPTION=$optimize_option
5737
5738 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5739 echo "${ECHO_T}$optimize_option" >&6; }
5740
5741
5742 # Check whether --with-extra-options was given.
5743 if test "${with_extra_options+set}" = set; then
5744   withval=$with_extra_options;
5745 else
5746   withval=default
5747 fi
5748
5749 case "$withval" in
5750   default) EXTRA_OPTIONS= ;;
5751   *) EXTRA_OPTIONS=$withval ;;
5752 esac
5753 EXTRA_OPTIONS=$EXTRA_OPTIONS
5754
5755
5756
5757 # Check whether --with-extra-ld-options was given.
5758 if test "${with_extra_ld_options+set}" = set; then
5759   withval=$with_extra_ld_options;
5760 else
5761   withval=default
5762 fi
5763
5764 case "$withval" in
5765   default) EXTRA_LD_OPTIONS= ;;
5766   *) EXTRA_LD_OPTIONS=$withval ;;
5767 esac
5768 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5769
5770
5771 # Check whether --enable-bindings was given.
5772 if test "${enable_bindings+set}" = set; then
5773   enableval=$enable_bindings;
5774 else
5775   enableval=default
5776 fi
5777
5778 BINDINGS_TO_BUILD=""
5779 case "$enableval" in
5780   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5781   all ) BINDINGS_TO_BUILD="ocaml" ;;
5782   none | no) BINDINGS_TO_BUILD="" ;;
5783   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5784       case "$a_binding" in
5785         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5786         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5787 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5788    { (exit 1); exit 1; }; } ;;
5789       esac
5790   done
5791   ;;
5792 esac
5793
5794
5795 # Check whether --with-ocaml-libdir was given.
5796 if test "${with_ocaml_libdir+set}" = set; then
5797   withval=$with_ocaml_libdir;
5798 else
5799   withval=auto
5800 fi
5801
5802 case "$withval" in
5803   auto) with_ocaml_libdir="$withval" ;;
5804   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5805   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5806 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5807    { (exit 1); exit 1; }; } ;;
5808 esac
5809
5810
5811 # Check whether --with-clang-srcdir was given.
5812 if test "${with_clang_srcdir+set}" = set; then
5813   withval=$with_clang_srcdir;
5814 else
5815   withval="-"
5816 fi
5817
5818 case "$withval" in
5819   -) clang_src_root="" ;;
5820   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5821   *) clang_src_root="$ac_pwd/$withval" ;;
5822 esac
5823 CLANG_SRC_ROOT=$clang_src_root
5824
5825
5826
5827 # Check whether --with-clang-resource-dir was given.
5828 if test "${with_clang_resource_dir+set}" = set; then
5829   withval=$with_clang_resource_dir;
5830 else
5831   withval=""
5832 fi
5833
5834
5835 cat >>confdefs.h <<_ACEOF
5836 #define CLANG_RESOURCE_DIR "$withval"
5837 _ACEOF
5838
5839
5840
5841 # Check whether --with-c-include-dirs was given.
5842 if test "${with_c_include_dirs+set}" = set; then
5843   withval=$with_c_include_dirs;
5844 else
5845   withval=""
5846 fi
5847
5848
5849 cat >>confdefs.h <<_ACEOF
5850 #define C_INCLUDE_DIRS "$withval"
5851 _ACEOF
5852
5853
5854 # Clang normally uses the system c++ headers and libraries. With this option,
5855 # clang will use the ones provided by a gcc installation instead. This option should
5856 # be passed the same value that was used with --prefix when configuring gcc.
5857
5858 # Check whether --with-gcc-toolchain was given.
5859 if test "${with_gcc_toolchain+set}" = set; then
5860   withval=$with_gcc_toolchain;
5861 else
5862   withval=""
5863 fi
5864
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define GCC_INSTALL_PREFIX "$withval"
5868 _ACEOF
5869
5870
5871
5872 # Check whether --with-default-sysroot was given.
5873 if test "${with_default_sysroot+set}" = set; then
5874   withval=$with_default_sysroot;
5875 else
5876   withval=""
5877 fi
5878
5879
5880 cat >>confdefs.h <<_ACEOF
5881 #define DEFAULT_SYSROOT "$withval"
5882 _ACEOF
5883
5884
5885
5886 # Check whether --with-binutils-include was given.
5887 if test "${with_binutils_include+set}" = set; then
5888   withval=$with_binutils_include;
5889 else
5890   withval=default
5891 fi
5892
5893 case "$withval" in
5894   default) WITH_BINUTILS_INCDIR=default ;;
5895   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5896   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5897 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5898    { (exit 1); exit 1; }; } ;;
5899 esac
5900 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5901   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5902
5903   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5904      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5905      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5906 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5907    { (exit 1); exit 1; }; };
5908   fi
5909 fi
5910
5911
5912 # Check whether --with-bug-report-url was given.
5913 if test "${with_bug_report_url+set}" = set; then
5914   withval=$with_bug_report_url;
5915 else
5916   withval="http://llvm.org/bugs/"
5917 fi
5918
5919
5920 cat >>confdefs.h <<_ACEOF
5921 #define BUG_REPORT_URL "$withval"
5922 _ACEOF
5923
5924
5925 # Check whether --enable-terminfo was given.
5926 if test "${enable_terminfo+set}" = set; then
5927   enableval=$enable_terminfo; case "$enableval" in
5928     yes) llvm_cv_enable_terminfo="yes" ;;
5929     no)  llvm_cv_enable_terminfo="no"  ;;
5930     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5931 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5932    { (exit 1); exit 1; }; } ;;
5933   esac
5934 else
5935   llvm_cv_enable_terminfo="yes"
5936 fi
5937
5938 case "$llvm_cv_enable_terminfo" in
5939   yes) ENABLE_TERMINFO=1
5940  ;;
5941   no)  ENABLE_TERMINFO=0
5942  ;;
5943 esac
5944
5945 # Check whether --enable-libedit was given.
5946 if test "${enable_libedit+set}" = set; then
5947   enableval=$enable_libedit; case "$enableval" in
5948     yes) llvm_cv_enable_libedit="yes" ;;
5949     no)  llvm_cv_enable_libedit="no"  ;;
5950     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5951 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5952    { (exit 1); exit 1; }; } ;;
5953   esac
5954 else
5955   llvm_cv_enable_libedit="yes"
5956 fi
5957
5958
5959 # Check whether --enable-libffi was given.
5960 if test "${enable_libffi+set}" = set; then
5961   enableval=$enable_libffi; case "$enableval" in
5962     yes) llvm_cv_enable_libffi="yes" ;;
5963     no)  llvm_cv_enable_libffi="no"  ;;
5964     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5965 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5966    { (exit 1); exit 1; }; } ;;
5967   esac
5968 else
5969   llvm_cv_enable_libffi=no
5970 fi
5971
5972
5973
5974 # Check whether --with-internal-prefix was given.
5975 if test "${with_internal_prefix+set}" = set; then
5976   withval=$with_internal_prefix;
5977 else
5978   withval=""
5979 fi
5980
5981 INTERNAL_PREFIX=$withval
5982
5983
5984
5985 { echo "$as_me:$LINENO: checking for GNU make" >&5
5986 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5987 if test "${llvm_cv_gnu_make_command+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   llvm_cv_gnu_make_command=''
5991  for a in "$MAKE" make gmake gnumake ; do
5992   if test -z "$a" ; then continue ; fi ;
5993   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5994   then
5995    llvm_cv_gnu_make_command=$a ;
5996    break;
5997   fi
5998  done
5999 fi
6000 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6001 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6002  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6003    ifGNUmake='' ;
6004  else
6005    ifGNUmake='#' ;
6006    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6007 echo "${ECHO_T}\"Not found\"" >&6; };
6008  fi
6009
6010
6011 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6013 LN_S=$as_ln_s
6014 if test "$LN_S" = "ln -s"; then
6015   { echo "$as_me:$LINENO: result: yes" >&5
6016 echo "${ECHO_T}yes" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6019 echo "${ECHO_T}no, using $LN_S" >&6; }
6020 fi
6021
6022 # Extract the first word of "nm", so it can be a program name with args.
6023 set dummy nm; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_path_NM+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   case $NM in
6030   [\\/]* | ?:[\\/]*)
6031   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6032   ;;
6033   *)
6034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6050   ;;
6051 esac
6052 fi
6053 NM=$ac_cv_path_NM
6054 if test -n "$NM"; then
6055   { echo "$as_me:$LINENO: result: $NM" >&5
6056 echo "${ECHO_T}$NM" >&6; }
6057 else
6058   { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6061
6062
6063 # Extract the first word of "cmp", so it can be a program name with args.
6064 set dummy cmp; ac_word=$2
6065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067 if test "${ac_cv_path_CMP+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   case $CMP in
6071   [\\/]* | ?:[\\/]*)
6072   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6073   ;;
6074   *)
6075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080   for ac_exec_ext in '' $ac_executable_extensions; do
6081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6091   ;;
6092 esac
6093 fi
6094 CMP=$ac_cv_path_CMP
6095 if test -n "$CMP"; then
6096   { echo "$as_me:$LINENO: result: $CMP" >&5
6097 echo "${ECHO_T}$CMP" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6101 fi
6102
6103
6104 # Extract the first word of "cp", so it can be a program name with args.
6105 set dummy cp; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_CP+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   case $CP in
6112   [\\/]* | ?:[\\/]*)
6113   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6114   ;;
6115   *)
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6132   ;;
6133 esac
6134 fi
6135 CP=$ac_cv_path_CP
6136 if test -n "$CP"; then
6137   { echo "$as_me:$LINENO: result: $CP" >&5
6138 echo "${ECHO_T}$CP" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143
6144
6145 # Extract the first word of "date", so it can be a program name with args.
6146 set dummy date; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_DATE+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   case $DATE in
6153   [\\/]* | ?:[\\/]*)
6154   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6155   ;;
6156   *)
6157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6173   ;;
6174 esac
6175 fi
6176 DATE=$ac_cv_path_DATE
6177 if test -n "$DATE"; then
6178   { echo "$as_me:$LINENO: result: $DATE" >&5
6179 echo "${ECHO_T}$DATE" >&6; }
6180 else
6181   { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6183 fi
6184
6185
6186 # Extract the first word of "find", so it can be a program name with args.
6187 set dummy find; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_FIND+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   case $FIND in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6214   ;;
6215 esac
6216 fi
6217 FIND=$ac_cv_path_FIND
6218 if test -n "$FIND"; then
6219   { echo "$as_me:$LINENO: result: $FIND" >&5
6220 echo "${ECHO_T}$FIND" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227 # Extract the first word of "grep", so it can be a program name with args.
6228 set dummy grep; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_GREP+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   case $GREP in
6235   [\\/]* | ?:[\\/]*)
6236   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6237   ;;
6238   *)
6239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244   for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6255   ;;
6256 esac
6257 fi
6258 GREP=$ac_cv_path_GREP
6259 if test -n "$GREP"; then
6260   { echo "$as_me:$LINENO: result: $GREP" >&5
6261 echo "${ECHO_T}$GREP" >&6; }
6262 else
6263   { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6265 fi
6266
6267
6268 # Extract the first word of "mkdir", so it can be a program name with args.
6269 set dummy mkdir; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_MKDIR+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   case $MKDIR in
6276   [\\/]* | ?:[\\/]*)
6277   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6278   ;;
6279   *)
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285   for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6296   ;;
6297 esac
6298 fi
6299 MKDIR=$ac_cv_path_MKDIR
6300 if test -n "$MKDIR"; then
6301   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6302 echo "${ECHO_T}$MKDIR" >&6; }
6303 else
6304   { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6306 fi
6307
6308
6309 # Extract the first word of "mv", so it can be a program name with args.
6310 set dummy mv; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_MV+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   case $MV in
6317   [\\/]* | ?:[\\/]*)
6318   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6319   ;;
6320   *)
6321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326   for ac_exec_ext in '' $ac_executable_extensions; do
6327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6337   ;;
6338 esac
6339 fi
6340 MV=$ac_cv_path_MV
6341 if test -n "$MV"; then
6342   { echo "$as_me:$LINENO: result: $MV" >&5
6343 echo "${ECHO_T}$MV" >&6; }
6344 else
6345   { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6347 fi
6348
6349
6350 if test -n "$ac_tool_prefix"; then
6351   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_prog_RANLIB+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   if test -n "$RANLIB"; then
6359   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6360 else
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_prog_RANLIB="${ac_tool_prefix}ranlib"
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 fi
6377 fi
6378 RANLIB=$ac_cv_prog_RANLIB
6379 if test -n "$RANLIB"; then
6380   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6381 echo "${ECHO_T}$RANLIB" >&6; }
6382 else
6383   { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6385 fi
6386
6387
6388 fi
6389 if test -z "$ac_cv_prog_RANLIB"; then
6390   ac_ct_RANLIB=$RANLIB
6391   # Extract the first word of "ranlib", so it can be a program name with args.
6392 set dummy ranlib; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -n "$ac_ct_RANLIB"; then
6399   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_prog_ac_ct_RANLIB="ranlib"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416 fi
6417 fi
6418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419 if test -n "$ac_ct_RANLIB"; then
6420   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6421 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6422 else
6423   { echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6; }
6425 fi
6426
6427   if test "x$ac_ct_RANLIB" = x; then
6428     RANLIB=":"
6429   else
6430     case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet.  If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&5
6435 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436 whose name does not start with the host triplet.  If you think this
6437 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440     RANLIB=$ac_ct_RANLIB
6441   fi
6442 else
6443   RANLIB="$ac_cv_prog_RANLIB"
6444 fi
6445
6446 if test -n "$ac_tool_prefix"; then
6447   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}ar; ac_word=$2
6449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451 if test "${ac_cv_prog_AR+set}" = set; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454   if test -n "$AR"; then
6455   ac_cv_prog_AR="$AR" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_prog_AR="${ac_tool_prefix}ar"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 AR=$ac_cv_prog_AR
6475 if test -n "$AR"; then
6476   { echo "$as_me:$LINENO: result: $AR" >&5
6477 echo "${ECHO_T}$AR" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_AR"; then
6486   ac_ct_AR=$AR
6487   # Extract the first word of "ar", so it can be a program name with args.
6488 set dummy ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$ac_ct_AR"; then
6495   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_ac_ct_AR="ar"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515 if test -n "$ac_ct_AR"; then
6516   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6517 echo "${ECHO_T}$ac_ct_AR" >&6; }
6518 else
6519   { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6521 fi
6522
6523   if test "x$ac_ct_AR" = x; then
6524     AR="false"
6525   else
6526     case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet.  If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&5
6531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532 whose name does not start with the host triplet.  If you think this
6533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     AR=$ac_ct_AR
6537   fi
6538 else
6539   AR="$ac_cv_prog_AR"
6540 fi
6541
6542 # Extract the first word of "rm", so it can be a program name with args.
6543 set dummy rm; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_path_RM+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   case $RM in
6550   [\\/]* | ?:[\\/]*)
6551   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6552   ;;
6553   *)
6554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559   for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6570   ;;
6571 esac
6572 fi
6573 RM=$ac_cv_path_RM
6574 if test -n "$RM"; then
6575   { echo "$as_me:$LINENO: result: $RM" >&5
6576 echo "${ECHO_T}$RM" >&6; }
6577 else
6578   { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6580 fi
6581
6582
6583 # Extract the first word of "sed", so it can be a program name with args.
6584 set dummy sed; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_SED+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   case $SED in
6591   [\\/]* | ?:[\\/]*)
6592   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6593   ;;
6594   *)
6595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6611   ;;
6612 esac
6613 fi
6614 SED=$ac_cv_path_SED
6615 if test -n "$SED"; then
6616   { echo "$as_me:$LINENO: result: $SED" >&5
6617 echo "${ECHO_T}$SED" >&6; }
6618 else
6619   { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6621 fi
6622
6623
6624 # Extract the first word of "tar", so it can be a program name with args.
6625 set dummy tar; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_TAR+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   case $TAR in
6632   [\\/]* | ?:[\\/]*)
6633   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6634   ;;
6635   *)
6636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641   for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6652   ;;
6653 esac
6654 fi
6655 TAR=$ac_cv_path_TAR
6656 if test -n "$TAR"; then
6657   { echo "$as_me:$LINENO: result: $TAR" >&5
6658 echo "${ECHO_T}$TAR" >&6; }
6659 else
6660   { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6662 fi
6663
6664
6665 # Extract the first word of "pwd", so it can be a program name with args.
6666 set dummy pwd; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_BINPWD+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   case $BINPWD in
6673   [\\/]* | ?:[\\/]*)
6674   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6675   ;;
6676   *)
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682   for ac_exec_ext in '' $ac_executable_extensions; do
6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6693   ;;
6694 esac
6695 fi
6696 BINPWD=$ac_cv_path_BINPWD
6697 if test -n "$BINPWD"; then
6698   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6699 echo "${ECHO_T}$BINPWD" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706
6707 # Extract the first word of "dot", so it can be a program name with args.
6708 set dummy dot; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_DOT+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   case $DOT in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6735   ;;
6736 esac
6737 fi
6738 DOT=$ac_cv_path_DOT
6739 if test -n "$DOT"; then
6740   { echo "$as_me:$LINENO: result: $DOT" >&5
6741 echo "${ECHO_T}$DOT" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 if test "$DOT" != "echo dot" ; then
6749
6750 cat >>confdefs.h <<\_ACEOF
6751 #define HAVE_DOT 1
6752 _ACEOF
6753
6754     if test "$llvm_cv_os_type" = "MingW" ; then
6755     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6756   fi
6757
6758 cat >>confdefs.h <<_ACEOF
6759 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6760 _ACEOF
6761
6762 fi
6763
6764 # Find a good install program.  We prefer a C program (faster),
6765 # so one script is as good as another.  But avoid the broken or
6766 # incompatible versions:
6767 # SysV /etc/install, /usr/sbin/install
6768 # SunOS /usr/etc/install
6769 # IRIX /sbin/install
6770 # AIX /bin/install
6771 # AmigaOS /C/install, which installs bootblocks on floppy discs
6772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6775 # OS/2's system install, which has a completely different semantic
6776 # ./install, which can be erroneously created by make from ./install.sh.
6777 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6778 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6779 if test -z "$INSTALL"; then
6780 if test "${ac_cv_path_install+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   # Account for people who put trailing slashes in PATH elements.
6789 case $as_dir/ in
6790   ./ | .// | /cC/* | \
6791   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6792   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6793   /usr/ucb/* ) ;;
6794   *)
6795     # OSF1 and SCO ODT 3.0 have their own names for install.
6796     # Don't use installbsd from OSF since it installs stuff as root
6797     # by default.
6798     for ac_prog in ginstall scoinst install; do
6799       for ac_exec_ext in '' $ac_executable_extensions; do
6800         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6801           if test $ac_prog = install &&
6802             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6803             # AIX install.  It has an incompatible calling convention.
6804             :
6805           elif test $ac_prog = install &&
6806             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6807             # program-specific install script used by HP pwplus--don't use.
6808             :
6809           else
6810             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6811             break 3
6812           fi
6813         fi
6814       done
6815     done
6816     ;;
6817 esac
6818 done
6819 IFS=$as_save_IFS
6820
6821
6822 fi
6823   if test "${ac_cv_path_install+set}" = set; then
6824     INSTALL=$ac_cv_path_install
6825   else
6826     # As a last resort, use the slow shell script.  Don't cache a
6827     # value for INSTALL within a source directory, because that will
6828     # break other packages using the cache if that directory is
6829     # removed, or if the value is a relative name.
6830     INSTALL=$ac_install_sh
6831   fi
6832 fi
6833 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6834 echo "${ECHO_T}$INSTALL" >&6; }
6835
6836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6837 # It thinks the first close brace ends the variable substitution.
6838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6839
6840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6841
6842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6843
6844 case "$INSTALL" in
6845  [\\/$]* | ?:[\\/]* ) ;;
6846  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6847 esac
6848
6849 # Extract the first word of "bzip2", so it can be a program name with args.
6850 set dummy bzip2; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_BZIP2+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   case $BZIP2 in
6857   [\\/]* | ?:[\\/]*)
6858   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6859   ;;
6860   *)
6861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876   ;;
6877 esac
6878 fi
6879 BZIP2=$ac_cv_path_BZIP2
6880 if test -n "$BZIP2"; then
6881   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6882 echo "${ECHO_T}$BZIP2" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 # Extract the first word of "cat", so it can be a program name with args.
6890 set dummy cat; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_CAT+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   case $CAT in
6897   [\\/]* | ?:[\\/]*)
6898   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6899   ;;
6900   *)
6901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916   ;;
6917 esac
6918 fi
6919 CAT=$ac_cv_path_CAT
6920 if test -n "$CAT"; then
6921   { echo "$as_me:$LINENO: result: $CAT" >&5
6922 echo "${ECHO_T}$CAT" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928
6929 # Extract the first word of "doxygen", so it can be a program name with args.
6930 set dummy doxygen; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   case $DOXYGEN in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956   ;;
6957 esac
6958 fi
6959 DOXYGEN=$ac_cv_path_DOXYGEN
6960 if test -n "$DOXYGEN"; then
6961   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6962 echo "${ECHO_T}$DOXYGEN" >&6; }
6963 else
6964   { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6966 fi
6967
6968
6969 # Extract the first word of "groff", so it can be a program name with args.
6970 set dummy groff; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_path_GROFF+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   case $GROFF in
6977   [\\/]* | ?:[\\/]*)
6978   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6979   ;;
6980   *)
6981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986   for ac_exec_ext in '' $ac_executable_extensions; do
6987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996   ;;
6997 esac
6998 fi
6999 GROFF=$ac_cv_path_GROFF
7000 if test -n "$GROFF"; then
7001   { echo "$as_me:$LINENO: result: $GROFF" >&5
7002 echo "${ECHO_T}$GROFF" >&6; }
7003 else
7004   { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7006 fi
7007
7008
7009 # Extract the first word of "gzip", so it can be a program name with args.
7010 set dummy gzip; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   case $GZIPBIN in
7017   [\\/]* | ?:[\\/]*)
7018   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7019   ;;
7020   *)
7021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026   for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036   ;;
7037 esac
7038 fi
7039 GZIPBIN=$ac_cv_path_GZIPBIN
7040 if test -n "$GZIPBIN"; then
7041   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7042 echo "${ECHO_T}$GZIPBIN" >&6; }
7043 else
7044   { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7046 fi
7047
7048
7049 # Extract the first word of "pdfroff", so it can be a program name with args.
7050 set dummy pdfroff; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_PDFROFF+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   case $PDFROFF in
7057   [\\/]* | ?:[\\/]*)
7058   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7059   ;;
7060   *)
7061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066   for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076   ;;
7077 esac
7078 fi
7079 PDFROFF=$ac_cv_path_PDFROFF
7080 if test -n "$PDFROFF"; then
7081   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7082 echo "${ECHO_T}$PDFROFF" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089 # Extract the first word of "zip", so it can be a program name with args.
7090 set dummy zip; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_ZIP+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   case $ZIP in
7097   [\\/]* | ?:[\\/]*)
7098   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7099   ;;
7100   *)
7101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116   ;;
7117 esac
7118 fi
7119 ZIP=$ac_cv_path_ZIP
7120 if test -n "$ZIP"; then
7121   { echo "$as_me:$LINENO: result: $ZIP" >&5
7122 echo "${ECHO_T}$ZIP" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128
7129 # Extract the first word of "go", so it can be a program name with args.
7130 set dummy go; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_GO+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   case $GO in
7137   [\\/]* | ?:[\\/]*)
7138   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7139   ;;
7140   *)
7141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146   for ac_exec_ext in '' $ac_executable_extensions; do
7147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156   ;;
7157 esac
7158 fi
7159 GO=$ac_cv_path_GO
7160 if test -n "$GO"; then
7161   { echo "$as_me:$LINENO: result: $GO" >&5
7162 echo "${ECHO_T}$GO" >&6; }
7163 else
7164   { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7166 fi
7167
7168
7169 for ac_prog in ocamlfind
7170 do
7171   # Extract the first word of "$ac_prog", so it can be a program name with args.
7172 set dummy $ac_prog; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $OCAMLFIND in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198   ;;
7199 esac
7200 fi
7201 OCAMLFIND=$ac_cv_path_OCAMLFIND
7202 if test -n "$OCAMLFIND"; then
7203   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7204 echo "${ECHO_T}$OCAMLFIND" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211   test -n "$OCAMLFIND" && break
7212 done
7213
7214 for ac_prog in gas as
7215 do
7216   # Extract the first word of "$ac_prog", so it can be a program name with args.
7217 set dummy $ac_prog; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_GAS+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   case $GAS in
7224   [\\/]* | ?:[\\/]*)
7225   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7226   ;;
7227   *)
7228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233   for ac_exec_ext in '' $ac_executable_extensions; do
7234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243   ;;
7244 esac
7245 fi
7246 GAS=$ac_cv_path_GAS
7247 if test -n "$GAS"; then
7248   { echo "$as_me:$LINENO: result: $GAS" >&5
7249 echo "${ECHO_T}$GAS" >&6; }
7250 else
7251   { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255
7256   test -n "$GAS" && break
7257 done
7258
7259
7260 { echo "$as_me:$LINENO: checking for linker version" >&5
7261 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7262 if test "${llvm_cv_link_version+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265
7266    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7267
7268    # Check for ld64.
7269    if (echo "$version_string" | grep -q "ld64"); then
7270      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7271    else
7272      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7273    fi
7274
7275 fi
7276 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7277 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7278
7279 cat >>confdefs.h <<_ACEOF
7280 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7281 _ACEOF
7282
7283
7284
7285
7286 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7287 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7288 if test "${llvm_cv_link_use_r+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291    ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297   oldcflags="$CFLAGS"
7298   CFLAGS="$CFLAGS -Wl,-R."
7299   cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305
7306 int
7307 main ()
7308 {
7309
7310   ;
7311   return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (ac_try="$ac_link"
7316 case "(($ac_try" in
7317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318   *) ac_try_echo=$ac_try;;
7319 esac
7320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321   (eval "$ac_link") 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } &&
7328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7329   { (case "(($ac_try" in
7330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331   *) ac_try_echo=$ac_try;;
7332 esac
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334   (eval "$ac_try") 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; } &&
7338          { ac_try='test -s conftest$ac_exeext'
7339   { (case "(($ac_try" in
7340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341   *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344   (eval "$ac_try") 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); }; }; then
7348   llvm_cv_link_use_r=yes
7349 else
7350   echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353         llvm_cv_link_use_r=no
7354 fi
7355
7356 rm -f core conftest.err conftest.$ac_objext \
7357       conftest$ac_exeext conftest.$ac_ext
7358   CFLAGS="$oldcflags"
7359   ac_ext=c
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365
7366 fi
7367 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7368 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7369 if test "$llvm_cv_link_use_r" = yes ; then
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_LINK_R 1
7373 _ACEOF
7374
7375   fi
7376
7377
7378 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7379 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7380 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383    ac_ext=c
7384 ac_cpp='$CPP $CPPFLAGS'
7385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388
7389   oldcflags="$CFLAGS"
7390   CFLAGS="$CFLAGS -rdynamic"
7391   cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397
7398 int
7399 main ()
7400 {
7401
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (ac_try="$ac_link"
7408 case "(($ac_try" in
7409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410   *) ac_try_echo=$ac_try;;
7411 esac
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413   (eval "$ac_link") 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } &&
7420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7421   { (case "(($ac_try" in
7422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423   *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426   (eval "$ac_try") 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; } &&
7430          { ac_try='test -s conftest$ac_exeext'
7431   { (case "(($ac_try" in
7432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433   *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436   (eval "$ac_try") 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }; }; then
7440   llvm_cv_link_use_export_dynamic=yes
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445         llvm_cv_link_use_export_dynamic=no
7446 fi
7447
7448 rm -f core conftest.err conftest.$ac_objext \
7449       conftest$ac_exeext conftest.$ac_ext
7450   CFLAGS="$oldcflags"
7451   ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457
7458 fi
7459 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7460 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7461 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7462
7463 cat >>confdefs.h <<\_ACEOF
7464 #define HAVE_LINK_EXPORT_DYNAMIC 1
7465 _ACEOF
7466
7467   fi
7468
7469
7470 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7471 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7472 if test "${llvm_cv_link_use_version_script+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475    ac_ext=c
7476 ac_cpp='$CPP $CPPFLAGS'
7477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7480
7481   oldcflags="$CFLAGS"
7482
7483   # The following code is from the autoconf manual,
7484   # "11.13: Limitations of Usual Tools".
7485   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7486   # Use mktemp if possible; otherwise fall back on mkdir,
7487   # with $RANDOM to make collisions less likely.
7488   : ${TMPDIR=/tmp}
7489   {
7490     tmp=`
7491       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7492     ` &&
7493     test -n "$tmp" && test -d "$tmp"
7494   } || {
7495     tmp=$TMPDIR/foo$$-$RANDOM
7496     (umask 077 && mkdir "$tmp")
7497   } || exit $?
7498
7499   echo "{" > "$tmp/export.map"
7500   echo "  global: main;" >> "$tmp/export.map"
7501   echo "  local: *;" >> "$tmp/export.map"
7502   echo "};" >> "$tmp/export.map"
7503
7504   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7505   cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511
7512 int
7513 main ()
7514 {
7515
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
7522 case "(($ac_try" in
7523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524   *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527   (eval "$ac_link") 2>conftest.er1
7528   ac_status=$?
7529   grep -v '^ *+' conftest.er1 >conftest.err
7530   rm -f conftest.er1
7531   cat conftest.err >&5
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } &&
7534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535   { (case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_try") 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; } &&
7544          { ac_try='test -s conftest$ac_exeext'
7545   { (case "(($ac_try" in
7546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547   *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550   (eval "$ac_try") 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }; }; then
7554   llvm_cv_link_use_version_script=yes
7555 else
7556   echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559         llvm_cv_link_use_version_script=no
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext \
7563       conftest$ac_exeext conftest.$ac_ext
7564   rm "$tmp/export.map"
7565   rmdir "$tmp"
7566   CFLAGS="$oldcflags"
7567   ac_ext=c
7568 ac_cpp='$CPP $CPPFLAGS'
7569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572
7573
7574 fi
7575 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7576 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7577 if test "$llvm_cv_link_use_version_script" = yes ; then
7578   HAVE_LINK_VERSION_SCRIPT=1
7579
7580   fi
7581
7582
7583
7584 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7585 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GREP+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   # Extract the first word of "grep ggrep" to use in msg output
7590 if test -z "$GREP"; then
7591 set dummy grep ggrep; ac_prog_name=$2
7592 if test "${ac_cv_path_GREP+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   ac_path_GREP_found=false
7596 # Loop through the user's path and test for each of PROGNAME-LIST
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_prog in grep ggrep; do
7603   for ac_exec_ext in '' $ac_executable_extensions; do
7604     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7605     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7606     # Check for GNU ac_path_GREP and select it if it is found.
7607   # Check for GNU $ac_path_GREP
7608 case `"$ac_path_GREP" --version 2>&1` in
7609 *GNU*)
7610   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7611 *)
7612   ac_count=0
7613   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7614   while :
7615   do
7616     cat "conftest.in" "conftest.in" >"conftest.tmp"
7617     mv "conftest.tmp" "conftest.in"
7618     cp "conftest.in" "conftest.nl"
7619     echo 'GREP' >> "conftest.nl"
7620     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7622     ac_count=`expr $ac_count + 1`
7623     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7624       # Best one so far, save it but keep looking for a better one
7625       ac_cv_path_GREP="$ac_path_GREP"
7626       ac_path_GREP_max=$ac_count
7627     fi
7628     # 10*(2^10) chars as input seems more than enough
7629     test $ac_count -gt 10 && break
7630   done
7631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7632 esac
7633
7634
7635     $ac_path_GREP_found && break 3
7636   done
7637 done
7638
7639 done
7640 IFS=$as_save_IFS
7641
7642
7643 fi
7644
7645 GREP="$ac_cv_path_GREP"
7646 if test -z "$GREP"; then
7647   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7648 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7649    { (exit 1); exit 1; }; }
7650 fi
7651
7652 else
7653   ac_cv_path_GREP=$GREP
7654 fi
7655
7656
7657 fi
7658 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7659 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7660  GREP="$ac_cv_path_GREP"
7661
7662
7663 { echo "$as_me:$LINENO: checking for egrep" >&5
7664 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_EGREP+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7669    then ac_cv_path_EGREP="$GREP -E"
7670    else
7671      # Extract the first word of "egrep" to use in msg output
7672 if test -z "$EGREP"; then
7673 set dummy egrep; ac_prog_name=$2
7674 if test "${ac_cv_path_EGREP+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   ac_path_EGREP_found=false
7678 # Loop through the user's path and test for each of PROGNAME-LIST
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_prog in egrep; do
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7687     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7688     # Check for GNU ac_path_EGREP and select it if it is found.
7689   # Check for GNU $ac_path_EGREP
7690 case `"$ac_path_EGREP" --version 2>&1` in
7691 *GNU*)
7692   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7693 *)
7694   ac_count=0
7695   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7696   while :
7697   do
7698     cat "conftest.in" "conftest.in" >"conftest.tmp"
7699     mv "conftest.tmp" "conftest.in"
7700     cp "conftest.in" "conftest.nl"
7701     echo 'EGREP' >> "conftest.nl"
7702     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7703     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7704     ac_count=`expr $ac_count + 1`
7705     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7706       # Best one so far, save it but keep looking for a better one
7707       ac_cv_path_EGREP="$ac_path_EGREP"
7708       ac_path_EGREP_max=$ac_count
7709     fi
7710     # 10*(2^10) chars as input seems more than enough
7711     test $ac_count -gt 10 && break
7712   done
7713   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7714 esac
7715
7716
7717     $ac_path_EGREP_found && break 3
7718   done
7719 done
7720
7721 done
7722 IFS=$as_save_IFS
7723
7724
7725 fi
7726
7727 EGREP="$ac_cv_path_EGREP"
7728 if test -z "$EGREP"; then
7729   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7731    { (exit 1); exit 1; }; }
7732 fi
7733
7734 else
7735   ac_cv_path_EGREP=$EGREP
7736 fi
7737
7738
7739    fi
7740 fi
7741 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7742 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7743  EGREP="$ac_cv_path_EGREP"
7744
7745
7746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7748 if test "${ac_cv_header_stdc+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757 #include <stdlib.h>
7758 #include <stdarg.h>
7759 #include <string.h>
7760 #include <float.h>
7761
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (ac_try="$ac_compile"
7772 case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777   (eval "$ac_compile") 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } &&
7784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785   { (case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_try") 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; } &&
7794          { ac_try='test -s conftest.$ac_objext'
7795   { (case "(($ac_try" in
7796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797   *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800   (eval "$ac_try") 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   ac_cv_header_stdc=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809         ac_cv_header_stdc=no
7810 fi
7811
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813
7814 if test $ac_cv_header_stdc = yes; then
7815   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7816   cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822 #include <string.h>
7823
7824 _ACEOF
7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826   $EGREP "memchr" >/dev/null 2>&1; then
7827   :
7828 else
7829   ac_cv_header_stdc=no
7830 fi
7831 rm -f conftest*
7832
7833 fi
7834
7835 if test $ac_cv_header_stdc = yes; then
7836   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 #include <stdlib.h>
7844
7845 _ACEOF
7846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7847   $EGREP "free" >/dev/null 2>&1; then
7848   :
7849 else
7850   ac_cv_header_stdc=no
7851 fi
7852 rm -f conftest*
7853
7854 fi
7855
7856 if test $ac_cv_header_stdc = yes; then
7857   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7858   if test "$cross_compiling" = yes; then
7859   :
7860 else
7861   cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867 #include <ctype.h>
7868 #include <stdlib.h>
7869 #if ((' ' & 0x0FF) == 0x020)
7870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7872 #else
7873 # define ISLOWER(c) \
7874                    (('a' <= (c) && (c) <= 'i') \
7875                      || ('j' <= (c) && (c) <= 'r') \
7876                      || ('s' <= (c) && (c) <= 'z'))
7877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7878 #endif
7879
7880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7881 int
7882 main ()
7883 {
7884   int i;
7885   for (i = 0; i < 256; i++)
7886     if (XOR (islower (i), ISLOWER (i))
7887         || toupper (i) != TOUPPER (i))
7888       return 2;
7889   return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest$ac_exeext
7893 if { (ac_try="$ac_link"
7894 case "(($ac_try" in
7895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896   *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899   (eval "$ac_link") 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7903   { (case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908   (eval "$ac_try") 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   :
7913 else
7914   echo "$as_me: program exited with status $ac_status" >&5
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ( exit $ac_status )
7919 ac_cv_header_stdc=no
7920 fi
7921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7922 fi
7923
7924
7925 fi
7926 fi
7927 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7928 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7929 if test $ac_cv_header_stdc = yes; then
7930
7931 cat >>confdefs.h <<\_ACEOF
7932 #define STDC_HEADERS 1
7933 _ACEOF
7934
7935 fi
7936
7937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7948                   inttypes.h stdint.h unistd.h
7949 do
7950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 $ac_includes_default
7963
7964 #include <$ac_header>
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (ac_try="$ac_compile"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_compile") 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981   { (case "(($ac_try" in
7982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983   *) ac_try_echo=$ac_try;;
7984 esac
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986   (eval "$ac_try") 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; } &&
7990          { ac_try='test -s conftest.$ac_objext'
7991   { (case "(($ac_try" in
7992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993   *) ac_try_echo=$ac_try;;
7994 esac
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996   (eval "$ac_try") 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); }; }; then
8000   eval "$as_ac_Header=yes"
8001 else
8002   echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005         eval "$as_ac_Header=no"
8006 fi
8007
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 fi
8010 ac_res=`eval echo '${'$as_ac_Header'}'`
8011                { echo "$as_me:$LINENO: result: $ac_res" >&5
8012 echo "${ECHO_T}$ac_res" >&6; }
8013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8014   cat >>confdefs.h <<_ACEOF
8015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8016 _ACEOF
8017
8018 fi
8019
8020 done
8021
8022
8023
8024 for ac_header in errno.h
8025 do
8026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 fi
8033 ac_res=`eval echo '${'$as_ac_Header'}'`
8034                { echo "$as_me:$LINENO: result: $ac_res" >&5
8035 echo "${ECHO_T}$ac_res" >&6; }
8036 else
8037   # Is the header compilable?
8038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046 $ac_includes_default
8047 #include <$ac_header>
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_compile") 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064   { (case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_try") 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; } &&
8073          { ac_try='test -s conftest.$ac_objext'
8074   { (case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_try") 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; }; then
8083   ac_header_compiler=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         ac_header_compiler=no
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8093 echo "${ECHO_T}$ac_header_compiler" >&6; }
8094
8095 # Is the header present?
8096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104 #include <$ac_header>
8105 _ACEOF
8106 if { (ac_try="$ac_cpp conftest.$ac_ext"
8107 case "(($ac_try" in
8108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109   *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8113   ac_status=$?
8114   grep -v '^ *+' conftest.er1 >conftest.err
8115   rm -f conftest.er1
8116   cat conftest.err >&5
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } >/dev/null; then
8119   if test -s conftest.err; then
8120     ac_cpp_err=$ac_c_preproc_warn_flag
8121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8122   else
8123     ac_cpp_err=
8124   fi
8125 else
8126   ac_cpp_err=yes
8127 fi
8128 if test -z "$ac_cpp_err"; then
8129   ac_header_preproc=yes
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134   ac_header_preproc=no
8135 fi
8136
8137 rm -f conftest.err conftest.$ac_ext
8138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8139 echo "${ECHO_T}$ac_header_preproc" >&6; }
8140
8141 # So?  What about this header?
8142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8143   yes:no: )
8144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8148     ac_header_preproc=yes
8149     ;;
8150   no:yes:* )
8151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8163     ( cat <<\_ASBOX
8164 ## ------------------------------------ ##
8165 ## Report this to http://llvm.org/bugs/ ##
8166 ## ------------------------------------ ##
8167 _ASBOX
8168      ) | sed "s/^/$as_me: WARNING:     /" >&2
8169     ;;
8170 esac
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   eval "$as_ac_Header=\$ac_header_preproc"
8177 fi
8178 ac_res=`eval echo '${'$as_ac_Header'}'`
8179                { echo "$as_me:$LINENO: result: $ac_res" >&5
8180 echo "${ECHO_T}$ac_res" >&6; }
8181
8182 fi
8183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8184   cat >>confdefs.h <<_ACEOF
8185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8186 _ACEOF
8187
8188 fi
8189
8190 done
8191
8192
8193 case "$llvm_cv_os_type" in
8194   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8195   Darwin) llvm_shlib_ext=.dylib ;;
8196   *) llvm_shlib_ext=.so ;;
8197 esac
8198
8199
8200 cat >>confdefs.h <<_ACEOF
8201 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8202 _ACEOF
8203
8204
8205 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8206 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8207
8208 ICC=no
8209 IXX=no
8210 case $CC in
8211   icc*|icpc*)
8212     ICC=yes
8213     IXX=yes
8214     ;;
8215    *)
8216     ;;
8217 esac
8218
8219 if test "$GCC" != "yes" && test "$ICC" != "yes"
8220 then
8221   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8222 echo "$as_me: error: gcc|icc required but not found" >&2;}
8223    { (exit 1); exit 1; }; }
8224 fi
8225
8226 if test "$GXX" != "yes" && test "$IXX" != "yes"
8227 then
8228   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8229 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8230    { (exit 1); exit 1; }; }
8231 fi
8232
8233 if test "$GCC" = "yes"
8234 then
8235   cat >conftest.$ac_ext <<_ACEOF
8236
8237   /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242
8243     #if !defined(__GNUC__) || __GNUC__ < 3
8244     #error Unsupported GCC version
8245     #endif
8246
8247
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (ac_try="$ac_compile"
8251 case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256   (eval "$ac_compile") 2>conftest.er1
8257   ac_status=$?
8258   grep -v '^ *+' conftest.er1 >conftest.err
8259   rm -f conftest.er1
8260   cat conftest.err >&5
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } &&
8263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264   { (case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_try") 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); }; } &&
8273          { ac_try='test -s conftest.$ac_objext'
8274   { (case "(($ac_try" in
8275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276   *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279   (eval "$ac_try") 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   :
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8289 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8290    { (exit 1); exit 1; }; }
8291 fi
8292
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295
8296 if test -z "$llvm_cv_gnu_make_command"
8297 then
8298   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8299 echo "$as_me: error: GNU Make required but not found" >&2;}
8300    { (exit 1); exit 1; }; }
8301 fi
8302
8303 { echo "$as_me:$LINENO: result: ok" >&5
8304 echo "${ECHO_T}ok" >&6; }
8305
8306 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8307 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8308 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8309
8310 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8311
8312 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8313
8314
8315 NO_UNINITIALIZED=
8316 NO_MAYBE_UNINITIALIZED=
8317 if test "$GXX" = "yes"
8318 then
8319   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8320
8321         if test -z "$NO_MAYBE_UNINITIALIZED"
8322   then
8323     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8324
8325   fi
8326 fi
8327
8328 no_comment=
8329 llvm_cv_old_cxxflags="$CXXFLAGS"
8330 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8331 cat >conftest.$ac_ext <<_ACEOF
8332
8333   /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 // Comment \o\
8339 // Another comment
8340 int main() { return 0; }
8341
8342
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8346 case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_compile") 2>conftest.er1
8352   ac_status=$?
8353   grep -v '^ *+' conftest.er1 >conftest.err
8354   rm -f conftest.er1
8355   cat conftest.err >&5
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359   { (case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_try") 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; } &&
8368          { ac_try='test -s conftest.$ac_objext'
8369   { (case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_try") 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378
8379   no_comment=-Wno-comment
8380
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 NO_COMMENT=$no_comment
8390
8391 CXXFLAGS="$llvm_cv_old_cxxflags"
8392
8393 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8394 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8395
8396
8397 # Check whether --with-python was given.
8398 if test "${with_python+set}" = set; then
8399   withval=$with_python; PYTHON="$withval"
8400 fi
8401
8402
8403 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8404   { echo "$as_me:$LINENO: checking for python" >&5
8405 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8406   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8407 echo "${ECHO_T}user defined: $with_python" >&6; }
8408 else
8409   if test -n "$PYTHON" ; then
8410     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8411 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8412   fi
8413
8414   # Extract the first word of "python python2 python27", so it can be a program name with args.
8415 set dummy python python2 python27; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_PYTHON+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   case $PYTHON in
8422   [\\/]* | ?:[\\/]*)
8423   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8424   ;;
8425   *)
8426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431   for ac_exec_ext in '' $ac_executable_extensions; do
8432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8442 echo "${ECHO_T}not found" >&6; }
8443                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8444 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8445    { (exit 1); exit 1; }; }"
8446   ;;
8447 esac
8448 fi
8449 PYTHON=$ac_cv_path_PYTHON
8450 if test -n "$PYTHON"; then
8451   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8452 echo "${ECHO_T}$PYTHON" >&6; }
8453 else
8454   { echo "$as_me:$LINENO: result: no" >&5
8455 echo "${ECHO_T}no" >&6; }
8456 fi
8457
8458
8459 fi
8460
8461 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8462 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8463 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8464 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8465 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8466 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8467 if test "$ac_python_version_major" -gt "2" || \
8468    (test "$ac_python_version_major" -eq "2" && \
8469     test "$ac_python_version_minor" -ge "7") ; then
8470   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8471 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8472 else
8473   { echo "$as_me:$LINENO: result: not found" >&5
8474 echo "${ECHO_T}not found" >&6; }
8475   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8476 See \`config.log' for more details." >&5
8477 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8478 See \`config.log' for more details." >&2;}
8479    { (exit 1); exit 1; }; }
8480 fi
8481
8482
8483
8484 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8485 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8486 if test "${ac_cv_lib_m_sin+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lm  $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497
8498 /* Override any GCC internal prototype to avoid an error.
8499    Use char because int might match the return type of a GCC
8500    builtin and then its argument prototype would still apply.  */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char sin ();
8505 int
8506 main ()
8507 {
8508 return sin ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_link") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } &&
8527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528   { (case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_try") 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest$ac_exeext'
8538   { (case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543   (eval "$ac_try") 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_cv_lib_m_sin=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552         ac_cv_lib_m_sin=no
8553 fi
8554
8555 rm -f core conftest.err conftest.$ac_objext \
8556       conftest$ac_exeext conftest.$ac_ext
8557 LIBS=$ac_check_lib_save_LIBS
8558 fi
8559 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8560 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8561 if test $ac_cv_lib_m_sin = yes; then
8562   cat >>confdefs.h <<_ACEOF
8563 #define HAVE_LIBM 1
8564 _ACEOF
8565
8566   LIBS="-lm $LIBS"
8567
8568 fi
8569
8570 if test "$llvm_cv_os_type" = "MingW" ; then
8571
8572 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8573 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8574 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8575   echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577   ac_check_lib_save_LIBS=$LIBS
8578 LIBS="-limagehlp  $LIBS"
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585
8586
8587 int
8588 main ()
8589 {
8590 return main ();
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (ac_try="$ac_link"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_link") 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610   { (case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_try") 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest$ac_exeext'
8620   { (case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_try") 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   ac_cv_lib_imagehlp_main=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_cv_lib_imagehlp_main=no
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext \
8638       conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8640 fi
8641 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8642 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8643 if test $ac_cv_lib_imagehlp_main = yes; then
8644   cat >>confdefs.h <<_ACEOF
8645 #define HAVE_LIBIMAGEHLP 1
8646 _ACEOF
8647
8648   LIBS="-limagehlp $LIBS"
8649
8650 fi
8651
8652
8653 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8654 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8655 if test "${ac_cv_lib_psapi_main+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lpsapi  $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_psapi_main=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         ac_cv_lib_psapi_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_psapi_main" >&5
8723 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8724 if test $ac_cv_lib_psapi_main = yes; then
8725   cat >>confdefs.h <<_ACEOF
8726 #define HAVE_LIBPSAPI 1
8727 _ACEOF
8728
8729   LIBS="-lpsapi $LIBS"
8730
8731 fi
8732
8733
8734 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8735 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8736 if test "${ac_cv_lib_shell32_main+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   ac_check_lib_save_LIBS=$LIBS
8740 LIBS="-lshell32  $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_shell32_main=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796         ac_cv_lib_shell32_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_shell32_main" >&5
8804 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8805 if test $ac_cv_lib_shell32_main = yes; then
8806   cat >>confdefs.h <<_ACEOF
8807 #define HAVE_LIBSHELL32 1
8808 _ACEOF
8809
8810   LIBS="-lshell32 $LIBS"
8811
8812 fi
8813
8814 fi
8815
8816 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8817 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8818 if test "${ac_cv_search_dlopen+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   ac_func_search_save_LIBS=$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 /* Override any GCC internal prototype to avoid an error.
8830    Use char because int might match the return type of a GCC
8831    builtin and then its argument prototype would still apply.  */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 char dlopen ();
8836 int
8837 main ()
8838 {
8839 return dlopen ();
8840   ;
8841   return 0;
8842 }
8843 _ACEOF
8844 for ac_lib in '' dl; do
8845   if test -z "$ac_lib"; then
8846     ac_res="none required"
8847   else
8848     ac_res=-l$ac_lib
8849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8850   fi
8851   rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866   { (case "(($ac_try" in
8867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868   *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871   (eval "$ac_try") 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; } &&
8875          { ac_try='test -s conftest$ac_exeext'
8876   { (case "(($ac_try" in
8877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878   *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881   (eval "$ac_try") 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; }; then
8885   ac_cv_search_dlopen=$ac_res
8886 else
8887   echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8889
8890
8891 fi
8892
8893 rm -f core conftest.err conftest.$ac_objext \
8894       conftest$ac_exeext
8895   if test "${ac_cv_search_dlopen+set}" = set; then
8896   break
8897 fi
8898 done
8899 if test "${ac_cv_search_dlopen+set}" = set; then
8900   :
8901 else
8902   ac_cv_search_dlopen=no
8903 fi
8904 rm conftest.$ac_ext
8905 LIBS=$ac_func_search_save_LIBS
8906 fi
8907 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8908 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8909 ac_res=$ac_cv_search_dlopen
8910 if test "$ac_res" != no; then
8911   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8912
8913
8914 cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_DLOPEN 1
8916 _ACEOF
8917
8918 HAVE_DLOPEN='1'
8919
8920
8921 else
8922   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8923 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8924 fi
8925
8926
8927 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8928 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8929 if test "${ac_cv_search_clock_gettime+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932   ac_func_search_save_LIBS=$LIBS
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939
8940 /* Override any GCC internal prototype to avoid an error.
8941    Use char because int might match the return type of a GCC
8942    builtin and then its argument prototype would still apply.  */
8943 #ifdef __cplusplus
8944 extern "C"
8945 #endif
8946 char clock_gettime ();
8947 int
8948 main ()
8949 {
8950 return clock_gettime ();
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 for ac_lib in '' rt; do
8956   if test -z "$ac_lib"; then
8957     ac_res="none required"
8958   else
8959     ac_res=-l$ac_lib
8960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8961   fi
8962   rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8964 case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969   (eval "$ac_link") 2>conftest.er1
8970   ac_status=$?
8971   grep -v '^ *+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8977   { (case "(($ac_try" in
8978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979   *) ac_try_echo=$ac_try;;
8980 esac
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982   (eval "$ac_try") 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; } &&
8986          { ac_try='test -s conftest$ac_exeext'
8987   { (case "(($ac_try" in
8988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989   *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992   (eval "$ac_try") 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   ac_cv_search_clock_gettime=$ac_res
8997 else
8998   echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001
9002 fi
9003
9004 rm -f core conftest.err conftest.$ac_objext \
9005       conftest$ac_exeext
9006   if test "${ac_cv_search_clock_gettime+set}" = set; then
9007   break
9008 fi
9009 done
9010 if test "${ac_cv_search_clock_gettime+set}" = set; then
9011   :
9012 else
9013   ac_cv_search_clock_gettime=no
9014 fi
9015 rm conftest.$ac_ext
9016 LIBS=$ac_func_search_save_LIBS
9017 fi
9018 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9019 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9020 ac_res=$ac_cv_search_clock_gettime
9021 if test "$ac_res" != no; then
9022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9023
9024 fi
9025
9026
9027 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9028     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9029 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9030 if test "${ac_cv_search_setupterm+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033   ac_func_search_save_LIBS=$LIBS
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040
9041 /* Override any GCC internal prototype to avoid an error.
9042    Use char because int might match the return type of a GCC
9043    builtin and then its argument prototype would still apply.  */
9044 #ifdef __cplusplus
9045 extern "C"
9046 #endif
9047 char setupterm ();
9048 int
9049 main ()
9050 {
9051 return setupterm ();
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9057   if test -z "$ac_lib"; then
9058     ac_res="none required"
9059   else
9060     ac_res=-l$ac_lib
9061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9062   fi
9063   rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9065 case "(($ac_try" in
9066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067   *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070   (eval "$ac_link") 2>conftest.er1
9071   ac_status=$?
9072   grep -v '^ *+' conftest.er1 >conftest.err
9073   rm -f conftest.er1
9074   cat conftest.err >&5
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } &&
9077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9078   { (case "(($ac_try" in
9079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080   *) ac_try_echo=$ac_try;;
9081 esac
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083   (eval "$ac_try") 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; } &&
9087          { ac_try='test -s conftest$ac_exeext'
9088   { (case "(($ac_try" in
9089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090   *) ac_try_echo=$ac_try;;
9091 esac
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093   (eval "$ac_try") 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_cv_search_setupterm=$ac_res
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9101
9102
9103 fi
9104
9105 rm -f core conftest.err conftest.$ac_objext \
9106       conftest$ac_exeext
9107   if test "${ac_cv_search_setupterm+set}" = set; then
9108   break
9109 fi
9110 done
9111 if test "${ac_cv_search_setupterm+set}" = set; then
9112   :
9113 else
9114   ac_cv_search_setupterm=no
9115 fi
9116 rm conftest.$ac_ext
9117 LIBS=$ac_func_search_save_LIBS
9118 fi
9119 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9120 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9121 ac_res=$ac_cv_search_setupterm
9122 if test "$ac_res" != no; then
9123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9124
9125
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_TERMINFO 1
9128 _ACEOF
9129
9130 HAVE_TERMINFO='1'
9131
9132
9133 fi
9134
9135 fi
9136
9137 if test "$llvm_cv_enable_libedit" = "yes" ; then
9138   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9139 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9140 if test "${ac_cv_search_el_init+set}" = set; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   ac_func_search_save_LIBS=$LIBS
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h.  */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h.  */
9150
9151 /* Override any GCC internal prototype to avoid an error.
9152    Use char because int might match the return type of a GCC
9153    builtin and then its argument prototype would still apply.  */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 char el_init ();
9158 int
9159 main ()
9160 {
9161 return el_init ();
9162   ;
9163   return 0;
9164 }
9165 _ACEOF
9166 for ac_lib in '' edit; do
9167   if test -z "$ac_lib"; then
9168     ac_res="none required"
9169   else
9170     ac_res=-l$ac_lib
9171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9172   fi
9173   rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9175 case "(($ac_try" in
9176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177   *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180   (eval "$ac_link") 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } &&
9187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9188   { (case "(($ac_try" in
9189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190   *) ac_try_echo=$ac_try;;
9191 esac
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193   (eval "$ac_try") 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; } &&
9197          { ac_try='test -s conftest$ac_exeext'
9198   { (case "(($ac_try" in
9199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200   *) ac_try_echo=$ac_try;;
9201 esac
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203   (eval "$ac_try") 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   ac_cv_search_el_init=$ac_res
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212
9213 fi
9214
9215 rm -f core conftest.err conftest.$ac_objext \
9216       conftest$ac_exeext
9217   if test "${ac_cv_search_el_init+set}" = set; then
9218   break
9219 fi
9220 done
9221 if test "${ac_cv_search_el_init+set}" = set; then
9222   :
9223 else
9224   ac_cv_search_el_init=no
9225 fi
9226 rm conftest.$ac_ext
9227 LIBS=$ac_func_search_save_LIBS
9228 fi
9229 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9230 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9231 ac_res=$ac_cv_search_el_init
9232 if test "$ac_res" != no; then
9233   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9234
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_LIBEDIT 1
9237 _ACEOF
9238
9239 fi
9240
9241 fi
9242
9243 if test "$llvm_cv_enable_libffi" = "yes" ; then
9244   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9245 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9246 if test "${ac_cv_search_ffi_call+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249   ac_func_search_save_LIBS=$LIBS
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256
9257 /* Override any GCC internal prototype to avoid an error.
9258    Use char because int might match the return type of a GCC
9259    builtin and then its argument prototype would still apply.  */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char ffi_call ();
9264 int
9265 main ()
9266 {
9267 return ffi_call ();
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 for ac_lib in '' ffi; do
9273   if test -z "$ac_lib"; then
9274     ac_res="none required"
9275   else
9276     ac_res=-l$ac_lib
9277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9278   fi
9279   rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_link") 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9294   { (case "(($ac_try" in
9295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296   *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299   (eval "$ac_try") 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); }; } &&
9303          { ac_try='test -s conftest$ac_exeext'
9304   { (case "(($ac_try" in
9305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306   *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309   (eval "$ac_try") 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; }; then
9313   ac_cv_search_ffi_call=$ac_res
9314 else
9315   echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318
9319 fi
9320
9321 rm -f core conftest.err conftest.$ac_objext \
9322       conftest$ac_exeext
9323   if test "${ac_cv_search_ffi_call+set}" = set; then
9324   break
9325 fi
9326 done
9327 if test "${ac_cv_search_ffi_call+set}" = set; then
9328   :
9329 else
9330   ac_cv_search_ffi_call=no
9331 fi
9332 rm conftest.$ac_ext
9333 LIBS=$ac_func_search_save_LIBS
9334 fi
9335 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9336 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9337 ac_res=$ac_cv_search_ffi_call
9338 if test "$ac_res" != no; then
9339   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9340
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_FFI_CALL 1
9343 _ACEOF
9344
9345 else
9346   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9347 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9348    { (exit 1); exit 1; }; }
9349 fi
9350
9351 fi
9352
9353 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9354 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9355 if test "${ac_cv_search_mallinfo+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   ac_func_search_save_LIBS=$LIBS
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365
9366 /* Override any GCC internal prototype to avoid an error.
9367    Use char because int might match the return type of a GCC
9368    builtin and then its argument prototype would still apply.  */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char mallinfo ();
9373 int
9374 main ()
9375 {
9376 return mallinfo ();
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 for ac_lib in '' malloc; do
9382   if test -z "$ac_lib"; then
9383     ac_res="none required"
9384   else
9385     ac_res=-l$ac_lib
9386     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9387   fi
9388   rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9390 case "(($ac_try" in
9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392   *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395   (eval "$ac_link") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } &&
9402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9403   { (case "(($ac_try" in
9404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405   *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408   (eval "$ac_try") 2>&5
9409   ac_status=$?
9410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411   (exit $ac_status); }; } &&
9412          { ac_try='test -s conftest$ac_exeext'
9413   { (case "(($ac_try" in
9414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415   *) ac_try_echo=$ac_try;;
9416 esac
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418   (eval "$ac_try") 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; }; then
9422   ac_cv_search_mallinfo=$ac_res
9423 else
9424   echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427
9428 fi
9429
9430 rm -f core conftest.err conftest.$ac_objext \
9431       conftest$ac_exeext
9432   if test "${ac_cv_search_mallinfo+set}" = set; then
9433   break
9434 fi
9435 done
9436 if test "${ac_cv_search_mallinfo+set}" = set; then
9437   :
9438 else
9439   ac_cv_search_mallinfo=no
9440 fi
9441 rm conftest.$ac_ext
9442 LIBS=$ac_func_search_save_LIBS
9443 fi
9444 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9445 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9446 ac_res=$ac_cv_search_mallinfo
9447 if test "$ac_res" != no; then
9448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9449
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_MALLINFO 1
9452 _ACEOF
9453
9454 fi
9455
9456
9457 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9458
9459 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9460 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9461 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-lpthread  $LIBS"
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474    Use char because int might match the return type of a GCC
9475    builtin and then its argument prototype would still apply.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char pthread_mutex_init ();
9480 int
9481 main ()
9482 {
9483 return pthread_mutex_init ();
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495   (eval "$ac_link") 2>conftest.er1
9496   ac_status=$?
9497   grep -v '^ *+' conftest.er1 >conftest.err
9498   rm -f conftest.er1
9499   cat conftest.err >&5
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } &&
9502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503   { (case "(($ac_try" in
9504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505   *) ac_try_echo=$ac_try;;
9506 esac
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508   (eval "$ac_try") 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; } &&
9512          { ac_try='test -s conftest$ac_exeext'
9513   { (case "(($ac_try" in
9514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515   *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518   (eval "$ac_try") 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); }; }; then
9522   ac_cv_lib_pthread_pthread_mutex_init=yes
9523 else
9524   echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9526
9527         ac_cv_lib_pthread_pthread_mutex_init=no
9528 fi
9529
9530 rm -f core conftest.err conftest.$ac_objext \
9531       conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9533 fi
9534 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9535 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9536 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9537   cat >>confdefs.h <<_ACEOF
9538 #define HAVE_LIBPTHREAD 1
9539 _ACEOF
9540
9541   LIBS="-lpthread $LIBS"
9542
9543 fi
9544
9545   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9546 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9547 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550   ac_func_search_save_LIBS=$LIBS
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557
9558 /* Override any GCC internal prototype to avoid an error.
9559    Use char because int might match the return type of a GCC
9560    builtin and then its argument prototype would still apply.  */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char pthread_mutex_lock ();
9565 int
9566 main ()
9567 {
9568 return pthread_mutex_lock ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 for ac_lib in '' pthread; do
9574   if test -z "$ac_lib"; then
9575     ac_res="none required"
9576   else
9577     ac_res=-l$ac_lib
9578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9579   fi
9580   rm -f conftest.$ac_objext conftest$ac_exeext
9581 if { (ac_try="$ac_link"
9582 case "(($ac_try" in
9583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584   *) ac_try_echo=$ac_try;;
9585 esac
9586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587   (eval "$ac_link") 2>conftest.er1
9588   ac_status=$?
9589   grep -v '^ *+' conftest.er1 >conftest.err
9590   rm -f conftest.er1
9591   cat conftest.err >&5
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); } &&
9594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9595   { (case "(($ac_try" in
9596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597   *) ac_try_echo=$ac_try;;
9598 esac
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600   (eval "$ac_try") 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; } &&
9604          { ac_try='test -s conftest$ac_exeext'
9605   { (case "(($ac_try" in
9606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607   *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610   (eval "$ac_try") 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; }; then
9614   ac_cv_search_pthread_mutex_lock=$ac_res
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619
9620 fi
9621
9622 rm -f core conftest.err conftest.$ac_objext \
9623       conftest$ac_exeext
9624   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9625   break
9626 fi
9627 done
9628 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9629   :
9630 else
9631   ac_cv_search_pthread_mutex_lock=no
9632 fi
9633 rm conftest.$ac_ext
9634 LIBS=$ac_func_search_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9637 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9638 ac_res=$ac_cv_search_pthread_mutex_lock
9639 if test "$ac_res" != no; then
9640   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9641
9642 cat >>confdefs.h <<\_ACEOF
9643 #define HAVE_PTHREAD_MUTEX_LOCK 1
9644 _ACEOF
9645
9646 fi
9647
9648   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9649 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9650 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   ac_func_search_save_LIBS=$LIBS
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any GCC internal prototype to avoid an error.
9662    Use char because int might match the return type of a GCC
9663    builtin and then its argument prototype would still apply.  */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char pthread_rwlock_init ();
9668 int
9669 main ()
9670 {
9671 return pthread_rwlock_init ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 for ac_lib in '' pthread; do
9677   if test -z "$ac_lib"; then
9678     ac_res="none required"
9679   else
9680     ac_res=-l$ac_lib
9681     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9682   fi
9683   rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687   *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690   (eval "$ac_link") 2>conftest.er1
9691   ac_status=$?
9692   grep -v '^ *+' conftest.er1 >conftest.err
9693   rm -f conftest.er1
9694   cat conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698   { (case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_try") 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; } &&
9707          { ac_try='test -s conftest$ac_exeext'
9708   { (case "(($ac_try" in
9709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710   *) ac_try_echo=$ac_try;;
9711 esac
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713   (eval "$ac_try") 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   ac_cv_search_pthread_rwlock_init=$ac_res
9718 else
9719   echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722
9723 fi
9724
9725 rm -f core conftest.err conftest.$ac_objext \
9726       conftest$ac_exeext
9727   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9728   break
9729 fi
9730 done
9731 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9732   :
9733 else
9734   ac_cv_search_pthread_rwlock_init=no
9735 fi
9736 rm conftest.$ac_ext
9737 LIBS=$ac_func_search_save_LIBS
9738 fi
9739 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9740 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9741 ac_res=$ac_cv_search_pthread_rwlock_init
9742 if test "$ac_res" != no; then
9743   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_PTHREAD_RWLOCK_INIT 1
9747 _ACEOF
9748
9749 fi
9750
9751   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9752 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9753 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9754   echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756   ac_func_search_save_LIBS=$LIBS
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763
9764 /* Override any GCC internal prototype to avoid an error.
9765    Use char because int might match the return type of a GCC
9766    builtin and then its argument prototype would still apply.  */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char pthread_getspecific ();
9771 int
9772 main ()
9773 {
9774 return pthread_getspecific ();
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 for ac_lib in '' pthread; do
9780   if test -z "$ac_lib"; then
9781     ac_res="none required"
9782   else
9783     ac_res=-l$ac_lib
9784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9785   fi
9786   rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_link") 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801   { (case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_try") 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; } &&
9810          { ac_try='test -s conftest$ac_exeext'
9811   { (case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_try") 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_search_pthread_getspecific=$ac_res
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825
9826 fi
9827
9828 rm -f core conftest.err conftest.$ac_objext \
9829       conftest$ac_exeext
9830   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9831   break
9832 fi
9833 done
9834 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9835   :
9836 else
9837   ac_cv_search_pthread_getspecific=no
9838 fi
9839 rm conftest.$ac_ext
9840 LIBS=$ac_func_search_save_LIBS
9841 fi
9842 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9843 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9844 ac_res=$ac_cv_search_pthread_getspecific
9845 if test "$ac_res" != no; then
9846   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_PTHREAD_GETSPECIFIC 1
9850 _ACEOF
9851
9852 fi
9853
9854 fi
9855
9856 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9857
9858 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9859 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9860 if test "${ac_cv_lib_z_compress2+set}" = set; then
9861   echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863   ac_check_lib_save_LIBS=$LIBS
9864 LIBS="-lz  $LIBS"
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871
9872 /* Override any GCC internal prototype to avoid an error.
9873    Use char because int might match the return type of a GCC
9874    builtin and then its argument prototype would still apply.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 char compress2 ();
9879 int
9880 main ()
9881 {
9882 return compress2 ();
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_link") 2>conftest.er1
9895   ac_status=$?
9896   grep -v '^ *+' conftest.er1 >conftest.err
9897   rm -f conftest.er1
9898   cat conftest.err >&5
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); } &&
9901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902   { (case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907   (eval "$ac_try") 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; } &&
9911          { ac_try='test -s conftest$ac_exeext'
9912   { (case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_try") 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; }; then
9921   ac_cv_lib_z_compress2=yes
9922 else
9923   echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         ac_cv_lib_z_compress2=no
9927 fi
9928
9929 rm -f core conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9932 fi
9933 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9934 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9935 if test $ac_cv_lib_z_compress2 = yes; then
9936   cat >>confdefs.h <<_ACEOF
9937 #define HAVE_LIBZ 1
9938 _ACEOF
9939
9940   LIBS="-lz $LIBS"
9941
9942 fi
9943
9944 fi
9945
9946
9947 # Check whether --with-oprofile was given.
9948 if test "${with_oprofile+set}" = set; then
9949   withval=$with_oprofile;
9950       USE_OPROFILE=1
9951
9952       case "$withval" in
9953         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9954         no) llvm_cv_oppath=
9955             USE_OPROFILE=0
9956  ;;
9957         *) llvm_cv_oppath="${withval}/lib/oprofile"
9958            CPPFLAGS="-I${withval}/include";;
9959       esac
9960       case $llvm_cv_os_type in
9961         Linux)
9962           if test -n "$llvm_cv_oppath" ; then
9963             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9964                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9965 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9966 if test "${ac_cv_search_bfd_init+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   ac_func_search_save_LIBS=$LIBS
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978    Use char because int might match the return type of a GCC
9979    builtin and then its argument prototype would still apply.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char bfd_init ();
9984 int
9985 main ()
9986 {
9987 return bfd_init ();
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 for ac_lib in '' bfd; do
9993   if test -z "$ac_lib"; then
9994     ac_res="none required"
9995   else
9996     ac_res=-l$ac_lib
9997     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9998   fi
9999   rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_link") 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } &&
10013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014   { (case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_try") 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; } &&
10023          { ac_try='test -s conftest$ac_exeext'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_cv_search_bfd_init=$ac_res
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038
10039 fi
10040
10041 rm -f core conftest.err conftest.$ac_objext \
10042       conftest$ac_exeext
10043   if test "${ac_cv_search_bfd_init+set}" = set; then
10044   break
10045 fi
10046 done
10047 if test "${ac_cv_search_bfd_init+set}" = set; then
10048   :
10049 else
10050   ac_cv_search_bfd_init=no
10051 fi
10052 rm conftest.$ac_ext
10053 LIBS=$ac_func_search_save_LIBS
10054 fi
10055 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10056 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10057 ac_res=$ac_cv_search_bfd_init
10058 if test "$ac_res" != no; then
10059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10060
10061 fi
10062
10063             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10064 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10065 if test "${ac_cv_search_op_open_agent+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   ac_func_search_save_LIBS=$LIBS
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075
10076 /* Override any GCC internal prototype to avoid an error.
10077    Use char because int might match the return type of a GCC
10078    builtin and then its argument prototype would still apply.  */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 char op_open_agent ();
10083 int
10084 main ()
10085 {
10086 return op_open_agent ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 for ac_lib in '' opagent; do
10092   if test -z "$ac_lib"; then
10093     ac_res="none required"
10094   else
10095     ac_res=-l$ac_lib
10096     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10097   fi
10098   rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } &&
10112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113   { (case "(($ac_try" in
10114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115   *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118   (eval "$ac_try") 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_try") 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; }; then
10132   ac_cv_search_op_open_agent=$ac_res
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137
10138 fi
10139
10140 rm -f core conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext
10142   if test "${ac_cv_search_op_open_agent+set}" = set; then
10143   break
10144 fi
10145 done
10146 if test "${ac_cv_search_op_open_agent+set}" = set; then
10147   :
10148 else
10149   ac_cv_search_op_open_agent=no
10150 fi
10151 rm conftest.$ac_ext
10152 LIBS=$ac_func_search_save_LIBS
10153 fi
10154 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10155 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10156 ac_res=$ac_cv_search_op_open_agent
10157 if test "$ac_res" != no; then
10158   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10159
10160 else
10161
10162               echo "Error! You need to have libopagent around."
10163               exit 1
10164
10165 fi
10166
10167             if test "${ac_cv_header_opagent_h+set}" = set; then
10168   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10169 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10170 if test "${ac_cv_header_opagent_h+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 fi
10173 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10174 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10175 else
10176   # Is the header compilable?
10177 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10178 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185 $ac_includes_default
10186 #include <opagent.h>
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (ac_try="$ac_compile"
10190 case "(($ac_try" in
10191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192   *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195   (eval "$ac_compile") 2>conftest.er1
10196   ac_status=$?
10197   grep -v '^ *+' conftest.er1 >conftest.err
10198   rm -f conftest.er1
10199   cat conftest.err >&5
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203   { (case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_try") 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; } &&
10212          { ac_try='test -s conftest.$ac_objext'
10213   { (case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_try") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   ac_header_compiler=yes
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227         ac_header_compiler=no
10228 fi
10229
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10232 echo "${ECHO_T}$ac_header_compiler" >&6; }
10233
10234 # Is the header present?
10235 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10236 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h.  */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h.  */
10243 #include <opagent.h>
10244 _ACEOF
10245 if { (ac_try="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248   *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } >/dev/null; then
10258   if test -s conftest.err; then
10259     ac_cpp_err=$ac_c_preproc_warn_flag
10260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10261   else
10262     ac_cpp_err=
10263   fi
10264 else
10265   ac_cpp_err=yes
10266 fi
10267 if test -z "$ac_cpp_err"; then
10268   ac_header_preproc=yes
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273   ac_header_preproc=no
10274 fi
10275
10276 rm -f conftest.err conftest.$ac_ext
10277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10278 echo "${ECHO_T}$ac_header_preproc" >&6; }
10279
10280 # So?  What about this header?
10281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10282   yes:no: )
10283     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10284 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10285     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10286 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10287     ac_header_preproc=yes
10288     ;;
10289   no:yes:* )
10290     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10291 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10292     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10293 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10294     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10295 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10296     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10297 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10298     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10300     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10301 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10302     ( cat <<\_ASBOX
10303 ## ------------------------------------ ##
10304 ## Report this to http://llvm.org/bugs/ ##
10305 ## ------------------------------------ ##
10306 _ASBOX
10307      ) | sed "s/^/$as_me: WARNING:     /" >&2
10308     ;;
10309 esac
10310 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10311 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10312 if test "${ac_cv_header_opagent_h+set}" = set; then
10313   echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315   ac_cv_header_opagent_h=$ac_header_preproc
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10318 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10319
10320 fi
10321 if test $ac_cv_header_opagent_h = yes; then
10322   :
10323 else
10324
10325               echo "Error! You need to have opagent.h around."
10326               exit 1
10327
10328 fi
10329
10330
10331           fi ;;
10332         *)
10333           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10334 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10335    { (exit 1); exit 1; }; } ;;
10336       esac
10337
10338 else
10339
10340       USE_OPROFILE=0
10341
10342
10343 fi
10344
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define LLVM_USE_OPROFILE $USE_OPROFILE
10348 _ACEOF
10349
10350
10351
10352 # Check whether --with-intel-jitevents was given.
10353 if test "${with_intel_jitevents+set}" = set; then
10354   withval=$with_intel_jitevents;
10355        case "$withval" in
10356           yes) USE_INTEL_JITEVENTS=1
10357 ;;
10358           no)  USE_INTEL_JITEVENTS=0
10359 ;;
10360           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10361 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10362    { (exit 1); exit 1; }; };;
10363        esac
10364
10365       case $llvm_cv_os_type in
10366         Linux|Win32|Cygwin|MingW) ;;
10367         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10368 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10369    { (exit 1); exit 1; }; };;
10370       esac
10371
10372       case "$llvm_cv_target_arch" in
10373         x86|x86_64) ;;
10374         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10375 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10376    { (exit 1); exit 1; }; };;
10377       esac
10378
10379 else
10380
10381       USE_INTEL_JITEVENTS=0
10382
10383
10384 fi
10385
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10389 _ACEOF
10390
10391
10392 for ac_prog in xml2-config
10393 do
10394   # Extract the first word of "$ac_prog", so it can be a program name with args.
10395 set dummy $ac_prog; ac_word=$2
10396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10398 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   if test -n "$XML2CONFIG"; then
10402   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10403 else
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10406 do
10407   IFS=$as_save_IFS
10408   test -z "$as_dir" && as_dir=.
10409   for ac_exec_ext in '' $ac_executable_extensions; do
10410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10411     ac_cv_prog_XML2CONFIG="$ac_prog"
10412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413     break 2
10414   fi
10415 done
10416 done
10417 IFS=$as_save_IFS
10418
10419 fi
10420 fi
10421 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10422 if test -n "$XML2CONFIG"; then
10423   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10424 echo "${ECHO_T}$XML2CONFIG" >&6; }
10425 else
10426   { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10428 fi
10429
10430
10431   test -n "$XML2CONFIG" && break
10432 done
10433
10434
10435 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10436 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10437 if test "x$XML2CONFIG" = "x"; then
10438  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10439 echo "${ECHO_T}xml2-config not found" >&6; }
10440 else
10441  LIBXML2_INC=`$XML2CONFIG --cflags`
10442  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10443 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10444  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10445 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10446 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10447   echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449   ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lxml2  $LIBS"
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457
10458 /* Override any GCC internal prototype to avoid an error.
10459    Use char because int might match the return type of a GCC
10460    builtin and then its argument prototype would still apply.  */
10461 #ifdef __cplusplus
10462 extern "C"
10463 #endif
10464 char xmlReadFile ();
10465 int
10466 main ()
10467 {
10468 return xmlReadFile ();
10469   ;
10470   return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477   *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480   (eval "$ac_link") 2>conftest.er1
10481   ac_status=$?
10482   grep -v '^ *+' conftest.er1 >conftest.err
10483   rm -f conftest.er1
10484   cat conftest.err >&5
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); } &&
10487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10488   { (case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493   (eval "$ac_try") 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; } &&
10497          { ac_try='test -s conftest$ac_exeext'
10498   { (case "(($ac_try" in
10499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500   *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503   (eval "$ac_try") 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; }; then
10507   ac_cv_lib_xml2_xmlReadFile=yes
10508 else
10509   echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512         ac_cv_lib_xml2_xmlReadFile=no
10513 fi
10514
10515 rm -f core conftest.err conftest.$ac_objext \
10516       conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10518 fi
10519 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10520 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10521 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10522
10523 cat >>confdefs.h <<\_ACEOF
10524 #define CLANG_HAVE_LIBXML 1
10525 _ACEOF
10526
10527                                 LIBXML2_LIBS="-lxml2"
10528 fi
10529
10530 fi
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540 ac_header_dirent=no
10541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10542   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10543 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10544 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546   echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548   cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554 #include <sys/types.h>
10555 #include <$ac_hdr>
10556
10557 int
10558 main ()
10559 {
10560 if ((DIR *) 0)
10561 return 0;
10562   ;
10563   return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext
10567 if { (ac_try="$ac_compile"
10568 case "(($ac_try" in
10569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570   *) ac_try_echo=$ac_try;;
10571 esac
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573   (eval "$ac_compile") 2>conftest.er1
10574   ac_status=$?
10575   grep -v '^ *+' conftest.er1 >conftest.err
10576   rm -f conftest.er1
10577   cat conftest.err >&5
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } &&
10580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581   { (case "(($ac_try" in
10582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583   *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586   (eval "$ac_try") 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; } &&
10590          { ac_try='test -s conftest.$ac_objext'
10591   { (case "(($ac_try" in
10592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593   *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596   (eval "$ac_try") 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); }; }; then
10600   eval "$as_ac_Header=yes"
10601 else
10602   echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10604
10605         eval "$as_ac_Header=no"
10606 fi
10607
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 fi
10610 ac_res=`eval echo '${'$as_ac_Header'}'`
10611                { echo "$as_me:$LINENO: result: $ac_res" >&5
10612 echo "${ECHO_T}$ac_res" >&6; }
10613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10614   cat >>confdefs.h <<_ACEOF
10615 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10616 _ACEOF
10617
10618 ac_header_dirent=$ac_hdr; break
10619 fi
10620
10621 done
10622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10623 if test $ac_header_dirent = dirent.h; then
10624   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10626 if test "${ac_cv_search_opendir+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   ac_func_search_save_LIBS=$LIBS
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638    Use char because int might match the return type of a GCC
10639    builtin and then its argument prototype would still apply.  */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char opendir ();
10644 int
10645 main ()
10646 {
10647 return opendir ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 for ac_lib in '' dir; do
10653   if test -z "$ac_lib"; then
10654     ac_res="none required"
10655   else
10656     ac_res=-l$ac_lib
10657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10658   fi
10659   rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663   *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666   (eval "$ac_link") 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674   { (case "(($ac_try" in
10675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676   *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679   (eval "$ac_try") 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; } &&
10683          { ac_try='test -s conftest$ac_exeext'
10684   { (case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_try") 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); }; }; then
10693   ac_cv_search_opendir=$ac_res
10694 else
10695   echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698
10699 fi
10700
10701 rm -f core conftest.err conftest.$ac_objext \
10702       conftest$ac_exeext
10703   if test "${ac_cv_search_opendir+set}" = set; then
10704   break
10705 fi
10706 done
10707 if test "${ac_cv_search_opendir+set}" = set; then
10708   :
10709 else
10710   ac_cv_search_opendir=no
10711 fi
10712 rm conftest.$ac_ext
10713 LIBS=$ac_func_search_save_LIBS
10714 fi
10715 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10716 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10717 ac_res=$ac_cv_search_opendir
10718 if test "$ac_res" != no; then
10719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10720
10721 fi
10722
10723 else
10724   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10725 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10726 if test "${ac_cv_search_opendir+set}" = set; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   ac_func_search_save_LIBS=$LIBS
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h.  */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h.  */
10736
10737 /* Override any GCC internal prototype to avoid an error.
10738    Use char because int might match the return type of a GCC
10739    builtin and then its argument prototype would still apply.  */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 char opendir ();
10744 int
10745 main ()
10746 {
10747 return opendir ();
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 for ac_lib in '' x; do
10753   if test -z "$ac_lib"; then
10754     ac_res="none required"
10755   else
10756     ac_res=-l$ac_lib
10757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10758   fi
10759   rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_link") 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774   { (case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_try") 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; } &&
10783          { ac_try='test -s conftest$ac_exeext'
10784   { (case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_try") 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_cv_search_opendir=$ac_res
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext \
10802       conftest$ac_exeext
10803   if test "${ac_cv_search_opendir+set}" = set; then
10804   break
10805 fi
10806 done
10807 if test "${ac_cv_search_opendir+set}" = set; then
10808   :
10809 else
10810   ac_cv_search_opendir=no
10811 fi
10812 rm conftest.$ac_ext
10813 LIBS=$ac_func_search_save_LIBS
10814 fi
10815 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10816 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10817 ac_res=$ac_cv_search_opendir
10818 if test "$ac_res" != no; then
10819   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10820
10821 fi
10822
10823 fi
10824
10825 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10826 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10827 if test "${ac_cv_header_mmap_anon+set}" = set; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830    ac_ext=c
10831 ac_cpp='$CPP $CPPFLAGS'
10832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10835
10836   cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 #include <sys/mman.h>
10843 #include <unistd.h>
10844 #include <fcntl.h>
10845 int
10846 main ()
10847 {
10848 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest.$ac_objext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   ac_cv_header_mmap_anon=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_cv_header_mmap_anon=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896   ac_ext=c
10897 ac_cpp='$CPP $CPPFLAGS'
10898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10901
10902
10903 fi
10904 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10905 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10906 if test "$ac_cv_header_mmap_anon" = yes; then
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_MMAP_ANONYMOUS 1
10910 _ACEOF
10911
10912 fi
10913
10914 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10915 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10916 if test "${ac_cv_header_stat_broken+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919   cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925 #include <sys/types.h>
10926 #include <sys/stat.h>
10927
10928 #if defined S_ISBLK && defined S_IFDIR
10929 # if S_ISBLK (S_IFDIR)
10930 You lose.
10931 # endif
10932 #endif
10933
10934 #if defined S_ISBLK && defined S_IFCHR
10935 # if S_ISBLK (S_IFCHR)
10936 You lose.
10937 # endif
10938 #endif
10939
10940 #if defined S_ISLNK && defined S_IFREG
10941 # if S_ISLNK (S_IFREG)
10942 You lose.
10943 # endif
10944 #endif
10945
10946 #if defined S_ISSOCK && defined S_IFREG
10947 # if S_ISSOCK (S_IFREG)
10948 You lose.
10949 # endif
10950 #endif
10951
10952 _ACEOF
10953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10954   $EGREP "You lose" >/dev/null 2>&1; then
10955   ac_cv_header_stat_broken=yes
10956 else
10957   ac_cv_header_stat_broken=no
10958 fi
10959 rm -f conftest*
10960
10961 fi
10962 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10963 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10964 if test $ac_cv_header_stat_broken = yes; then
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 #define STAT_MACROS_BROKEN 1
10968 _ACEOF
10969
10970 fi
10971
10972 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10973 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10974 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #include <sys/types.h>
10984 #include <sys/wait.h>
10985 #ifndef WEXITSTATUS
10986 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10987 #endif
10988 #ifndef WIFEXITED
10989 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10990 #endif
10991
10992 int
10993 main ()
10994 {
10995   int s;
10996   wait (&s);
10997   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_compile") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } &&
11016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017   { (case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_try") 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_try") 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   ac_cv_header_sys_wait_h=yes
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041         ac_cv_header_sys_wait_h=no
11042 fi
11043
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 fi
11046 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11047 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11048 if test $ac_cv_header_sys_wait_h = yes; then
11049
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_SYS_WAIT_H 1
11052 _ACEOF
11053
11054 fi
11055
11056 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11057 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11058 if test "${ac_cv_header_time+set}" = set; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 #include <sys/types.h>
11068 #include <sys/time.h>
11069 #include <time.h>
11070
11071 int
11072 main ()
11073 {
11074 if ((struct tm *) 0)
11075 return 0;
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_try") 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; }; then
11114   ac_cv_header_time=yes
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119         ac_cv_header_time=no
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 fi
11124 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11125 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11126 if test $ac_cv_header_time = yes; then
11127
11128 cat >>confdefs.h <<\_ACEOF
11129 #define TIME_WITH_SYS_TIME 1
11130 _ACEOF
11131
11132 fi
11133
11134
11135 ac_ext=cpp
11136 ac_cpp='$CXXCPP $CPPFLAGS'
11137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11140
11141
11142 for ac_header in cxxabi.h
11143 do
11144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h.  */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h.  */
11156 #include <stddef.h>
11157
11158
11159 #include <$ac_header>
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_cxx_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   eval "$as_ac_Header=yes"
11196 else
11197   echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200         eval "$as_ac_Header=no"
11201 fi
11202
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 ac_res=`eval echo '${'$as_ac_Header'}'`
11206                { echo "$as_me:$LINENO: result: $ac_res" >&5
11207 echo "${ECHO_T}$ac_res" >&6; }
11208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11209   cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11211 _ACEOF
11212
11213 fi
11214
11215 done
11216
11217 ac_ext=c
11218 ac_cpp='$CPP $CPPFLAGS'
11219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11222
11223
11224
11225
11226
11227
11228
11229 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11230 do
11231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 fi
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239                { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11241 else
11242   # Is the header compilable?
11243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 $ac_includes_default
11252 #include <$ac_header>
11253 _ACEOF
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_compile") 2>conftest.er1
11262   ac_status=$?
11263   grep -v '^ *+' conftest.er1 >conftest.err
11264   rm -f conftest.er1
11265   cat conftest.err >&5
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } &&
11268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269   { (case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_try") 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; } &&
11278          { ac_try='test -s conftest.$ac_objext'
11279   { (case "(($ac_try" in
11280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281   *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284   (eval "$ac_try") 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; }; then
11288   ac_header_compiler=yes
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11292
11293         ac_header_compiler=no
11294 fi
11295
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11299
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h.  */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h.  */
11309 #include <$ac_header>
11310 _ACEOF
11311 if { (ac_try="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } >/dev/null; then
11324   if test -s conftest.err; then
11325     ac_cpp_err=$ac_c_preproc_warn_flag
11326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11327   else
11328     ac_cpp_err=
11329   fi
11330 else
11331   ac_cpp_err=yes
11332 fi
11333 if test -z "$ac_cpp_err"; then
11334   ac_header_preproc=yes
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339   ac_header_preproc=no
11340 fi
11341
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11345
11346 # So?  What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348   yes:no: )
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353     ac_header_preproc=yes
11354     ;;
11355   no:yes:* )
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368     ( cat <<\_ASBOX
11369 ## ------------------------------------ ##
11370 ## Report this to http://llvm.org/bugs/ ##
11371 ## ------------------------------------ ##
11372 _ASBOX
11373      ) | sed "s/^/$as_me: WARNING:     /" >&2
11374     ;;
11375 esac
11376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   eval "$as_ac_Header=\$ac_header_preproc"
11382 fi
11383 ac_res=`eval echo '${'$as_ac_Header'}'`
11384                { echo "$as_me:$LINENO: result: $ac_res" >&5
11385 echo "${ECHO_T}$ac_res" >&6; }
11386
11387 fi
11388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11389   cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11391 _ACEOF
11392
11393 fi
11394
11395 done
11396
11397
11398
11399
11400
11401
11402
11403 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11404 do
11405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 fi
11412 ac_res=`eval echo '${'$as_ac_Header'}'`
11413                { echo "$as_me:$LINENO: result: $ac_res" >&5
11414 echo "${ECHO_T}$ac_res" >&6; }
11415 else
11416   # Is the header compilable?
11417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 $ac_includes_default
11426 #include <$ac_header>
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (ac_try="$ac_compile"
11430 case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_compile") 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443   { (case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_try") 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; } &&
11452          { ac_try='test -s conftest.$ac_objext'
11453   { (case "(($ac_try" in
11454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455   *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458   (eval "$ac_try") 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   ac_header_compiler=yes
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467         ac_header_compiler=no
11468 fi
11469
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472 echo "${ECHO_T}$ac_header_compiler" >&6; }
11473
11474 # Is the header present?
11475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483 #include <$ac_header>
11484 _ACEOF
11485 if { (ac_try="$ac_cpp conftest.$ac_ext"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } >/dev/null; then
11498   if test -s conftest.err; then
11499     ac_cpp_err=$ac_c_preproc_warn_flag
11500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11501   else
11502     ac_cpp_err=
11503   fi
11504 else
11505   ac_cpp_err=yes
11506 fi
11507 if test -z "$ac_cpp_err"; then
11508   ac_header_preproc=yes
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513   ac_header_preproc=no
11514 fi
11515
11516 rm -f conftest.err conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6; }
11519
11520 # So?  What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522   yes:no: )
11523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527     ac_header_preproc=yes
11528     ;;
11529   no:yes:* )
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11542     ( cat <<\_ASBOX
11543 ## ------------------------------------ ##
11544 ## Report this to http://llvm.org/bugs/ ##
11545 ## ------------------------------------ ##
11546 _ASBOX
11547      ) | sed "s/^/$as_me: WARNING:     /" >&2
11548     ;;
11549 esac
11550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   eval "$as_ac_Header=\$ac_header_preproc"
11556 fi
11557 ac_res=`eval echo '${'$as_ac_Header'}'`
11558                { echo "$as_me:$LINENO: result: $ac_res" >&5
11559 echo "${ECHO_T}$ac_res" >&6; }
11560
11561 fi
11562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11563   cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 _ACEOF
11566
11567 fi
11568
11569 done
11570
11571
11572 for ac_header in utime.h
11573 do
11574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 fi
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582                { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11584 else
11585   # Is the header compilable?
11586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 $ac_includes_default
11595 #include <$ac_header>
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_compile") 2>conftest.er1
11605   ac_status=$?
11606   grep -v '^ *+' conftest.er1 >conftest.err
11607   rm -f conftest.er1
11608   cat conftest.err >&5
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612   { (case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; } &&
11621          { ac_try='test -s conftest.$ac_objext'
11622   { (case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_try") 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   ac_header_compiler=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636         ac_header_compiler=no
11637 fi
11638
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6; }
11642
11643 # Is the header present?
11644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 #include <$ac_header>
11653 _ACEOF
11654 if { (ac_try="$ac_cpp conftest.$ac_ext"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } >/dev/null; then
11667   if test -s conftest.err; then
11668     ac_cpp_err=$ac_c_preproc_warn_flag
11669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670   else
11671     ac_cpp_err=
11672   fi
11673 else
11674   ac_cpp_err=yes
11675 fi
11676 if test -z "$ac_cpp_err"; then
11677   ac_header_preproc=yes
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682   ac_header_preproc=no
11683 fi
11684
11685 rm -f conftest.err conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 echo "${ECHO_T}$ac_header_preproc" >&6; }
11688
11689 # So?  What about this header?
11690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691   yes:no: )
11692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696     ac_header_preproc=yes
11697     ;;
11698   no:yes:* )
11699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711     ( cat <<\_ASBOX
11712 ## ------------------------------------ ##
11713 ## Report this to http://llvm.org/bugs/ ##
11714 ## ------------------------------------ ##
11715 _ASBOX
11716      ) | sed "s/^/$as_me: WARNING:     /" >&2
11717     ;;
11718 esac
11719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   eval "$as_ac_Header=\$ac_header_preproc"
11725 fi
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727                { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729
11730 fi
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732   cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11734 _ACEOF
11735
11736 fi
11737
11738 done
11739
11740
11741
11742
11743
11744
11745 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11746 do
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 fi
11754 ac_res=`eval echo '${'$as_ac_Header'}'`
11755                { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11757 else
11758   # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 $ac_includes_default
11768 #include <$ac_header>
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_compile") 2>conftest.er1
11778   ac_status=$?
11779   grep -v '^ *+' conftest.er1 >conftest.err
11780   rm -f conftest.er1
11781   cat conftest.err >&5
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } &&
11784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785   { (case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_try") 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; } &&
11794          { ac_try='test -s conftest.$ac_objext'
11795   { (case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800   (eval "$ac_try") 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   ac_header_compiler=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809         ac_header_compiler=no
11810 fi
11811
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6; }
11815
11816 # Is the header present?
11817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825 #include <$ac_header>
11826 _ACEOF
11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
11828 case "(($ac_try" in
11829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830   *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11834   ac_status=$?
11835   grep -v '^ *+' conftest.er1 >conftest.err
11836   rm -f conftest.er1
11837   cat conftest.err >&5
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); } >/dev/null; then
11840   if test -s conftest.err; then
11841     ac_cpp_err=$ac_c_preproc_warn_flag
11842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11843   else
11844     ac_cpp_err=
11845   fi
11846 else
11847   ac_cpp_err=yes
11848 fi
11849 if test -z "$ac_cpp_err"; then
11850   ac_header_preproc=yes
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855   ac_header_preproc=no
11856 fi
11857
11858 rm -f conftest.err conftest.$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 echo "${ECHO_T}$ac_header_preproc" >&6; }
11861
11862 # So?  What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11864   yes:no: )
11865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869     ac_header_preproc=yes
11870     ;;
11871   no:yes:* )
11872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11884     ( cat <<\_ASBOX
11885 ## ------------------------------------ ##
11886 ## Report this to http://llvm.org/bugs/ ##
11887 ## ------------------------------------ ##
11888 _ASBOX
11889      ) | sed "s/^/$as_me: WARNING:     /" >&2
11890     ;;
11891 esac
11892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895   echo $ECHO_N "(cached) $ECHO_C" >&6
11896 else
11897   eval "$as_ac_Header=\$ac_header_preproc"
11898 fi
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900                { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11902
11903 fi
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905   cat >>confdefs.h <<_ACEOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11907 _ACEOF
11908
11909 fi
11910
11911 done
11912
11913
11914
11915
11916 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11917 do
11918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11920   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 fi
11925 ac_res=`eval echo '${'$as_ac_Header'}'`
11926                { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11928 else
11929   # Is the header compilable?
11930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h.  */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h.  */
11938 $ac_includes_default
11939 #include <$ac_header>
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_compile") 2>conftest.er1
11949   ac_status=$?
11950   grep -v '^ *+' conftest.er1 >conftest.err
11951   rm -f conftest.er1
11952   cat conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11956   { (case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_try") 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; } &&
11965          { ac_try='test -s conftest.$ac_objext'
11966   { (case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971   (eval "$ac_try") 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   ac_header_compiler=yes
11976 else
11977   echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980         ac_header_compiler=no
11981 fi
11982
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11985 echo "${ECHO_T}$ac_header_compiler" >&6; }
11986
11987 # Is the header present?
11988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11990 cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h.  */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h.  */
11996 #include <$ac_header>
11997 _ACEOF
11998 if { (ac_try="$ac_cpp conftest.$ac_ext"
11999 case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12005   ac_status=$?
12006   grep -v '^ *+' conftest.er1 >conftest.err
12007   rm -f conftest.er1
12008   cat conftest.err >&5
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); } >/dev/null; then
12011   if test -s conftest.err; then
12012     ac_cpp_err=$ac_c_preproc_warn_flag
12013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12014   else
12015     ac_cpp_err=
12016   fi
12017 else
12018   ac_cpp_err=yes
12019 fi
12020 if test -z "$ac_cpp_err"; then
12021   ac_header_preproc=yes
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026   ac_header_preproc=no
12027 fi
12028
12029 rm -f conftest.err conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12031 echo "${ECHO_T}$ac_header_preproc" >&6; }
12032
12033 # So?  What about this header?
12034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12035   yes:no: )
12036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12040     ac_header_preproc=yes
12041     ;;
12042   no:yes:* )
12043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12055     ( cat <<\_ASBOX
12056 ## ------------------------------------ ##
12057 ## Report this to http://llvm.org/bugs/ ##
12058 ## ------------------------------------ ##
12059 _ASBOX
12060      ) | sed "s/^/$as_me: WARNING:     /" >&2
12061     ;;
12062 esac
12063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12066   echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068   eval "$as_ac_Header=\$ac_header_preproc"
12069 fi
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071                { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073
12074 fi
12075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12076   cat >>confdefs.h <<_ACEOF
12077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12078 _ACEOF
12079
12080 fi
12081
12082 done
12083
12084
12085 for ac_header in valgrind/valgrind.h
12086 do
12087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12089   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 fi
12094 ac_res=`eval echo '${'$as_ac_Header'}'`
12095                { echo "$as_me:$LINENO: result: $ac_res" >&5
12096 echo "${ECHO_T}$ac_res" >&6; }
12097 else
12098   # Is the header compilable?
12099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h.  */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h.  */
12107 $ac_includes_default
12108 #include <$ac_header>
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114   *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117   (eval "$ac_compile") 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } &&
12124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125   { (case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_try") 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest.$ac_objext'
12135   { (case "(($ac_try" in
12136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137   *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140   (eval "$ac_try") 2>&5
12141   ac_status=$?
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); }; }; then
12144   ac_header_compiler=yes
12145 else
12146   echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149         ac_header_compiler=no
12150 fi
12151
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6; }
12155
12156 # Is the header present?
12157 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 #include <$ac_header>
12166 _ACEOF
12167 if { (ac_try="$ac_cpp conftest.$ac_ext"
12168 case "(($ac_try" in
12169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170   *) ac_try_echo=$ac_try;;
12171 esac
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } >/dev/null; then
12180   if test -s conftest.err; then
12181     ac_cpp_err=$ac_c_preproc_warn_flag
12182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12183   else
12184     ac_cpp_err=
12185   fi
12186 else
12187   ac_cpp_err=yes
12188 fi
12189 if test -z "$ac_cpp_err"; then
12190   ac_header_preproc=yes
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195   ac_header_preproc=no
12196 fi
12197
12198 rm -f conftest.err conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12200 echo "${ECHO_T}$ac_header_preproc" >&6; }
12201
12202 # So?  What about this header?
12203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12204   yes:no: )
12205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12209     ac_header_preproc=yes
12210     ;;
12211   no:yes:* )
12212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12224     ( cat <<\_ASBOX
12225 ## ------------------------------------ ##
12226 ## Report this to http://llvm.org/bugs/ ##
12227 ## ------------------------------------ ##
12228 _ASBOX
12229      ) | sed "s/^/$as_me: WARNING:     /" >&2
12230     ;;
12231 esac
12232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12235   echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237   eval "$as_ac_Header=\$ac_header_preproc"
12238 fi
12239 ac_res=`eval echo '${'$as_ac_Header'}'`
12240                { echo "$as_me:$LINENO: result: $ac_res" >&5
12241 echo "${ECHO_T}$ac_res" >&6; }
12242
12243 fi
12244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12245   cat >>confdefs.h <<_ACEOF
12246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12247 _ACEOF
12248
12249 fi
12250
12251 done
12252
12253
12254 for ac_header in fenv.h
12255 do
12256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 fi
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264                { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12266 else
12267   # Is the header compilable?
12268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 $ac_includes_default
12277 #include <$ac_header>
12278 _ACEOF
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_compile") 2>conftest.er1
12287   ac_status=$?
12288   grep -v '^ *+' conftest.er1 >conftest.err
12289   rm -f conftest.er1
12290   cat conftest.err >&5
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12294   { (case "(($ac_try" in
12295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296   *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299   (eval "$ac_try") 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); }; } &&
12303          { ac_try='test -s conftest.$ac_objext'
12304   { (case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_try") 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; }; then
12313   ac_header_compiler=yes
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318         ac_header_compiler=no
12319 fi
12320
12321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12323 echo "${ECHO_T}$ac_header_compiler" >&6; }
12324
12325 # Is the header present?
12326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h.  */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h.  */
12334 #include <$ac_header>
12335 _ACEOF
12336 if { (ac_try="$ac_cpp conftest.$ac_ext"
12337 case "(($ac_try" in
12338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339   *) ac_try_echo=$ac_try;;
12340 esac
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12343   ac_status=$?
12344   grep -v '^ *+' conftest.er1 >conftest.err
12345   rm -f conftest.er1
12346   cat conftest.err >&5
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); } >/dev/null; then
12349   if test -s conftest.err; then
12350     ac_cpp_err=$ac_c_preproc_warn_flag
12351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12352   else
12353     ac_cpp_err=
12354   fi
12355 else
12356   ac_cpp_err=yes
12357 fi
12358 if test -z "$ac_cpp_err"; then
12359   ac_header_preproc=yes
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364   ac_header_preproc=no
12365 fi
12366
12367 rm -f conftest.err conftest.$ac_ext
12368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12369 echo "${ECHO_T}$ac_header_preproc" >&6; }
12370
12371 # So?  What about this header?
12372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12373   yes:no: )
12374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12378     ac_header_preproc=yes
12379     ;;
12380   no:yes:* )
12381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12393     ( cat <<\_ASBOX
12394 ## ------------------------------------ ##
12395 ## Report this to http://llvm.org/bugs/ ##
12396 ## ------------------------------------ ##
12397 _ASBOX
12398      ) | sed "s/^/$as_me: WARNING:     /" >&2
12399     ;;
12400 esac
12401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   eval "$as_ac_Header=\$ac_header_preproc"
12407 fi
12408 ac_res=`eval echo '${'$as_ac_Header'}'`
12409                { echo "$as_me:$LINENO: result: $ac_res" >&5
12410 echo "${ECHO_T}$ac_res" >&6; }
12411
12412 fi
12413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12414   cat >>confdefs.h <<_ACEOF
12415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12416 _ACEOF
12417
12418 fi
12419
12420 done
12421
12422 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12423 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12424 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427   cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h.  */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h.  */
12433 #include <fenv.h>
12434
12435 int
12436 main ()
12437 {
12438 #ifndef FE_ALL_EXCEPT
12439   char *p = (char *) FE_ALL_EXCEPT;
12440   return !p;
12441 #endif
12442
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_compile") 2>conftest.er1
12455   ac_status=$?
12456   grep -v '^ *+' conftest.er1 >conftest.err
12457   rm -f conftest.er1
12458   cat conftest.err >&5
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); } &&
12461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462   { (case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_try") 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; } &&
12471          { ac_try='test -s conftest.$ac_objext'
12472   { (case "(($ac_try" in
12473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474   *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477   (eval "$ac_try") 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; }; then
12481   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486         ac_cv_have_decl_FE_ALL_EXCEPT=no
12487 fi
12488
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 fi
12491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12492 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12493 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12494
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_DECL_FE_ALL_EXCEPT 1
12497 _ACEOF
12498
12499
12500 else
12501   cat >>confdefs.h <<_ACEOF
12502 #define HAVE_DECL_FE_ALL_EXCEPT 0
12503 _ACEOF
12504
12505
12506 fi
12507 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12508 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12509 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518 #include <fenv.h>
12519
12520 int
12521 main ()
12522 {
12523 #ifndef FE_INEXACT
12524   char *p = (char *) FE_INEXACT;
12525   return !p;
12526 #endif
12527
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536   *) ac_try_echo=$ac_try;;
12537 esac
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539   (eval "$ac_compile") 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547   { (case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_try") 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (case "(($ac_try" in
12558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559   *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562   (eval "$ac_try") 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); }; }; then
12566   ac_cv_have_decl_FE_INEXACT=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571         ac_cv_have_decl_FE_INEXACT=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 fi
12576 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12577 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12578 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12579
12580 cat >>confdefs.h <<_ACEOF
12581 #define HAVE_DECL_FE_INEXACT 1
12582 _ACEOF
12583
12584
12585 else
12586   cat >>confdefs.h <<_ACEOF
12587 #define HAVE_DECL_FE_INEXACT 0
12588 _ACEOF
12589
12590
12591 fi
12592
12593
12594 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12595
12596 for ac_header in pthread.h
12597 do
12598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12600   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 fi
12605 ac_res=`eval echo '${'$as_ac_Header'}'`
12606                { echo "$as_me:$LINENO: result: $ac_res" >&5
12607 echo "${ECHO_T}$ac_res" >&6; }
12608 else
12609   # Is the header compilable?
12610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 $ac_includes_default
12619 #include <$ac_header>
12620 _ACEOF
12621 rm -f conftest.$ac_objext
12622 if { (ac_try="$ac_compile"
12623 case "(($ac_try" in
12624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625   *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628   (eval "$ac_compile") 2>conftest.er1
12629   ac_status=$?
12630   grep -v '^ *+' conftest.er1 >conftest.err
12631   rm -f conftest.er1
12632   cat conftest.err >&5
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } &&
12635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636   { (case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; } &&
12645          { ac_try='test -s conftest.$ac_objext'
12646   { (case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_try") 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; }; then
12655   ac_header_compiler=yes
12656 else
12657   echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660         ac_header_compiler=no
12661 fi
12662
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12665 echo "${ECHO_T}$ac_header_compiler" >&6; }
12666
12667 # Is the header present?
12668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676 #include <$ac_header>
12677 _ACEOF
12678 if { (ac_try="$ac_cpp conftest.$ac_ext"
12679 case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } >/dev/null; then
12691   if test -s conftest.err; then
12692     ac_cpp_err=$ac_c_preproc_warn_flag
12693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12694   else
12695     ac_cpp_err=
12696   fi
12697 else
12698   ac_cpp_err=yes
12699 fi
12700 if test -z "$ac_cpp_err"; then
12701   ac_header_preproc=yes
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706   ac_header_preproc=no
12707 fi
12708
12709 rm -f conftest.err conftest.$ac_ext
12710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12711 echo "${ECHO_T}$ac_header_preproc" >&6; }
12712
12713 # So?  What about this header?
12714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715   yes:no: )
12716     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12720     ac_header_preproc=yes
12721     ;;
12722   no:yes:* )
12723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12725     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12726 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12727     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12729     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12730 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12733     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12735     ( cat <<\_ASBOX
12736 ## ------------------------------------ ##
12737 ## Report this to http://llvm.org/bugs/ ##
12738 ## ------------------------------------ ##
12739 _ASBOX
12740      ) | sed "s/^/$as_me: WARNING:     /" >&2
12741     ;;
12742 esac
12743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   eval "$as_ac_Header=\$ac_header_preproc"
12749 fi
12750 ac_res=`eval echo '${'$as_ac_Header'}'`
12751                { echo "$as_me:$LINENO: result: $ac_res" >&5
12752 echo "${ECHO_T}$ac_res" >&6; }
12753
12754 fi
12755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12756   cat >>confdefs.h <<_ACEOF
12757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12758 _ACEOF
12759  HAVE_PTHREAD=1
12760
12761 else
12762   HAVE_PTHREAD=0
12763
12764 fi
12765
12766 done
12767
12768 else
12769   HAVE_PTHREAD=0
12770
12771 fi
12772 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12773
12774 for ac_header in zlib.h
12775 do
12776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12781   echo $ECHO_N "(cached) $ECHO_C" >&6
12782 fi
12783 ac_res=`eval echo '${'$as_ac_Header'}'`
12784                { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786 else
12787   # Is the header compilable?
12788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796 $ac_includes_default
12797 #include <$ac_header>
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (ac_try="$ac_compile"
12801 case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_compile") 2>conftest.er1
12807   ac_status=$?
12808   grep -v '^ *+' conftest.er1 >conftest.err
12809   rm -f conftest.er1
12810   cat conftest.err >&5
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } &&
12813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12814   { (case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_try") 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; } &&
12823          { ac_try='test -s conftest.$ac_objext'
12824   { (case "(($ac_try" in
12825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826   *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829   (eval "$ac_try") 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; }; then
12833   ac_header_compiler=yes
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838         ac_header_compiler=no
12839 fi
12840
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843 echo "${ECHO_T}$ac_header_compiler" >&6; }
12844
12845 # Is the header present?
12846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854 #include <$ac_header>
12855 _ACEOF
12856 if { (ac_try="$ac_cpp conftest.$ac_ext"
12857 case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12863   ac_status=$?
12864   grep -v '^ *+' conftest.er1 >conftest.err
12865   rm -f conftest.er1
12866   cat conftest.err >&5
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); } >/dev/null; then
12869   if test -s conftest.err; then
12870     ac_cpp_err=$ac_c_preproc_warn_flag
12871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12872   else
12873     ac_cpp_err=
12874   fi
12875 else
12876   ac_cpp_err=yes
12877 fi
12878 if test -z "$ac_cpp_err"; then
12879   ac_header_preproc=yes
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884   ac_header_preproc=no
12885 fi
12886
12887 rm -f conftest.err conftest.$ac_ext
12888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12889 echo "${ECHO_T}$ac_header_preproc" >&6; }
12890
12891 # So?  What about this header?
12892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12893   yes:no: )
12894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12898     ac_header_preproc=yes
12899     ;;
12900   no:yes:* )
12901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12913     ( cat <<\_ASBOX
12914 ## ------------------------------------ ##
12915 ## Report this to http://llvm.org/bugs/ ##
12916 ## ------------------------------------ ##
12917 _ASBOX
12918      ) | sed "s/^/$as_me: WARNING:     /" >&2
12919     ;;
12920 esac
12921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12924   echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926   eval "$as_ac_Header=\$ac_header_preproc"
12927 fi
12928 ac_res=`eval echo '${'$as_ac_Header'}'`
12929                { echo "$as_me:$LINENO: result: $ac_res" >&5
12930 echo "${ECHO_T}$ac_res" >&6; }
12931
12932 fi
12933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934   cat >>confdefs.h <<_ACEOF
12935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936 _ACEOF
12937  HAVE_LIBZ=1
12938
12939 else
12940   HAVE_LIBZ=0
12941
12942 fi
12943
12944 done
12945
12946 else
12947   HAVE_LIBZ=0
12948
12949 fi
12950
12951 if test "$llvm_cv_enable_libffi" = "yes" ; then
12952
12953
12954 for ac_header in ffi.h ffi/ffi.h
12955 do
12956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 fi
12963 ac_res=`eval echo '${'$as_ac_Header'}'`
12964                { echo "$as_me:$LINENO: result: $ac_res" >&5
12965 echo "${ECHO_T}$ac_res" >&6; }
12966 else
12967   # Is the header compilable?
12968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 $ac_includes_default
12977 #include <$ac_header>
12978 _ACEOF
12979 rm -f conftest.$ac_objext
12980 if { (ac_try="$ac_compile"
12981 case "(($ac_try" in
12982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983   *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986   (eval "$ac_compile") 2>conftest.er1
12987   ac_status=$?
12988   grep -v '^ *+' conftest.er1 >conftest.err
12989   rm -f conftest.er1
12990   cat conftest.err >&5
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); } &&
12993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12994   { (case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_try") 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; } &&
13003          { ac_try='test -s conftest.$ac_objext'
13004   { (case "(($ac_try" in
13005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006   *) ac_try_echo=$ac_try;;
13007 esac
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009   (eval "$ac_try") 2>&5
13010   ac_status=$?
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); }; }; then
13013   ac_header_compiler=yes
13014 else
13015   echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018         ac_header_compiler=no
13019 fi
13020
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023 echo "${ECHO_T}$ac_header_compiler" >&6; }
13024
13025 # Is the header present?
13026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034 #include <$ac_header>
13035 _ACEOF
13036 if { (ac_try="$ac_cpp conftest.$ac_ext"
13037 case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } >/dev/null; then
13049   if test -s conftest.err; then
13050     ac_cpp_err=$ac_c_preproc_warn_flag
13051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13052   else
13053     ac_cpp_err=
13054   fi
13055 else
13056   ac_cpp_err=yes
13057 fi
13058 if test -z "$ac_cpp_err"; then
13059   ac_header_preproc=yes
13060 else
13061   echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064   ac_header_preproc=no
13065 fi
13066
13067 rm -f conftest.err conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13069 echo "${ECHO_T}$ac_header_preproc" >&6; }
13070
13071 # So?  What about this header?
13072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13073   yes:no: )
13074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13078     ac_header_preproc=yes
13079     ;;
13080   no:yes:* )
13081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13093     ( cat <<\_ASBOX
13094 ## ------------------------------------ ##
13095 ## Report this to http://llvm.org/bugs/ ##
13096 ## ------------------------------------ ##
13097 _ASBOX
13098      ) | sed "s/^/$as_me: WARNING:     /" >&2
13099     ;;
13100 esac
13101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13104   echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106   eval "$as_ac_Header=\$ac_header_preproc"
13107 fi
13108 ac_res=`eval echo '${'$as_ac_Header'}'`
13109                { echo "$as_me:$LINENO: result: $ac_res" >&5
13110 echo "${ECHO_T}$ac_res" >&6; }
13111
13112 fi
13113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13114   cat >>confdefs.h <<_ACEOF
13115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13116 _ACEOF
13117
13118 fi
13119
13120 done
13121
13122 fi
13123
13124
13125 for ac_header in CrashReporterClient.h
13126 do
13127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 fi
13134 ac_res=`eval echo '${'$as_ac_Header'}'`
13135                { echo "$as_me:$LINENO: result: $ac_res" >&5
13136 echo "${ECHO_T}$ac_res" >&6; }
13137 else
13138   # Is the header compilable?
13139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 $ac_includes_default
13148 #include <$ac_header>
13149 _ACEOF
13150 rm -f conftest.$ac_objext
13151 if { (ac_try="$ac_compile"
13152 case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_compile") 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165   { (case "(($ac_try" in
13166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167   *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170   (eval "$ac_try") 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; } &&
13174          { ac_try='test -s conftest.$ac_objext'
13175   { (case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_try") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_header_compiler=yes
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189         ac_header_compiler=no
13190 fi
13191
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13194 echo "${ECHO_T}$ac_header_compiler" >&6; }
13195
13196 # Is the header present?
13197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h.  */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h.  */
13205 #include <$ac_header>
13206 _ACEOF
13207 if { (ac_try="$ac_cpp conftest.$ac_ext"
13208 case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } >/dev/null; then
13220   if test -s conftest.err; then
13221     ac_cpp_err=$ac_c_preproc_warn_flag
13222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13223   else
13224     ac_cpp_err=
13225   fi
13226 else
13227   ac_cpp_err=yes
13228 fi
13229 if test -z "$ac_cpp_err"; then
13230   ac_header_preproc=yes
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235   ac_header_preproc=no
13236 fi
13237
13238 rm -f conftest.err conftest.$ac_ext
13239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240 echo "${ECHO_T}$ac_header_preproc" >&6; }
13241
13242 # So?  What about this header?
13243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244   yes:no: )
13245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13249     ac_header_preproc=yes
13250     ;;
13251   no:yes:* )
13252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13264     ( cat <<\_ASBOX
13265 ## ------------------------------------ ##
13266 ## Report this to http://llvm.org/bugs/ ##
13267 ## ------------------------------------ ##
13268 _ASBOX
13269      ) | sed "s/^/$as_me: WARNING:     /" >&2
13270     ;;
13271 esac
13272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   eval "$as_ac_Header=\$ac_header_preproc"
13278 fi
13279 ac_res=`eval echo '${'$as_ac_Header'}'`
13280                { echo "$as_me:$LINENO: result: $ac_res" >&5
13281 echo "${ECHO_T}$ac_res" >&6; }
13282
13283 fi
13284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13285   cat >>confdefs.h <<_ACEOF
13286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13287 _ACEOF
13288
13289 fi
13290
13291 done
13292
13293
13294 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13295 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13296 cat >conftest.$ac_ext <<_ACEOF
13297
13298   /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303
13304     extern const char *__crashreporter_info__;
13305     int main() {
13306       __crashreporter_info__ = "test";
13307       return 0;
13308     }
13309
13310
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_link") 2>conftest.er1
13320   ac_status=$?
13321   grep -v '^ *+' conftest.er1 >conftest.err
13322   rm -f conftest.er1
13323   cat conftest.err >&5
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); } &&
13326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327   { (case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_try") 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; } &&
13336          { ac_try='test -s conftest$ac_exeext'
13337   { (case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_try") 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346
13347   { echo "$as_me:$LINENO: result: yes" >&5
13348 echo "${ECHO_T}yes" >&6; }
13349
13350 cat >>confdefs.h <<\_ACEOF
13351 #define HAVE_CRASHREPORTER_INFO 1
13352 _ACEOF
13353
13354
13355 else
13356   echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
13360   { echo "$as_me:$LINENO: result: no" >&5
13361 echo "${ECHO_T}no" >&6; }
13362
13363 cat >>confdefs.h <<\_ACEOF
13364 #define HAVE_CRASHREPORTER_INFO 0
13365 _ACEOF
13366
13367
13368 fi
13369
13370 rm -f core conftest.err conftest.$ac_objext \
13371       conftest$ac_exeext conftest.$ac_ext
13372
13373
13374
13375   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13376 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13377 if test "${ac_cv_huge_val_sanity+set}" = set; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380
13381     ac_ext=cpp
13382 ac_cpp='$CXXCPP $CPPFLAGS'
13383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13386
13387     ac_save_CXXFLAGS=$CXXFLAGS
13388     CXXFLAGS="$CXXFLAGS -pedantic"
13389     if test "$cross_compiling" = yes; then
13390   ac_cv_huge_val_sanity=yes
13391 else
13392   cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h.  */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h.  */
13398 #include <math.h>
13399 int
13400 main ()
13401 {
13402 double x = HUGE_VAL; return x != x;
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_link") 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); } && { ac_try='./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   ac_cv_huge_val_sanity=yes
13428 else
13429   echo "$as_me: program exited with status $ac_status" >&5
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ( exit $ac_status )
13434 ac_cv_huge_val_sanity=no
13435 fi
13436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13437 fi
13438
13439
13440     CXXFLAGS=$ac_save_CXXFLAGS
13441     ac_ext=c
13442 ac_cpp='$CPP $CPPFLAGS'
13443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13446
13447
13448 fi
13449 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13450 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13451   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13452
13453
13454 { echo "$as_me:$LINENO: checking for pid_t" >&5
13455 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13456 if test "${ac_cv_type_pid_t+set}" = set; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465 $ac_includes_default
13466 typedef pid_t ac__type_new_;
13467 int
13468 main ()
13469 {
13470 if ((ac__type_new_ *) 0)
13471   return 0;
13472 if (sizeof (ac__type_new_))
13473   return 0;
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485   (eval "$ac_compile") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493   { (case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_try") 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; } &&
13502          { ac_try='test -s conftest.$ac_objext'
13503   { (case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_try") 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   ac_cv_type_pid_t=yes
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517         ac_cv_type_pid_t=no
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13523 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13524 if test $ac_cv_type_pid_t = yes; then
13525   :
13526 else
13527
13528 cat >>confdefs.h <<_ACEOF
13529 #define pid_t int
13530 _ACEOF
13531
13532 fi
13533
13534 { echo "$as_me:$LINENO: checking for size_t" >&5
13535 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13536 if test "${ac_cv_type_size_t+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545 $ac_includes_default
13546 typedef size_t ac__type_new_;
13547 int
13548 main ()
13549 {
13550 if ((ac__type_new_ *) 0)
13551   return 0;
13552 if (sizeof (ac__type_new_))
13553   return 0;
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (ac_try="$ac_compile"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_compile") 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573   { (case "(($ac_try" in
13574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575   *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578   (eval "$ac_try") 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest.$ac_objext'
13583   { (case "(($ac_try" in
13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585   *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588   (eval "$ac_try") 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; }; then
13592   ac_cv_type_size_t=yes
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597         ac_cv_type_size_t=no
13598 fi
13599
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 fi
13602 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13603 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13604 if test $ac_cv_type_size_t = yes; then
13605   :
13606 else
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define size_t unsigned int
13610 _ACEOF
13611
13612 fi
13613
13614
13615 cat >>confdefs.h <<_ACEOF
13616 #define RETSIGTYPE void
13617 _ACEOF
13618
13619 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13620 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13621 if test "${ac_cv_struct_tm+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630 #include <sys/types.h>
13631 #include <time.h>
13632
13633 int
13634 main ()
13635 {
13636 struct tm *tp; tp->tm_sec;
13637   ;
13638   return 0;
13639 }
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645   *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648   (eval "$ac_compile") 2>conftest.er1
13649   ac_status=$?
13650   grep -v '^ *+' conftest.er1 >conftest.err
13651   rm -f conftest.er1
13652   cat conftest.err >&5
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); } &&
13655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656   { (case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_try") 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; } &&
13665          { ac_try='test -s conftest.$ac_objext'
13666   { (case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_try") 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   ac_cv_struct_tm=time.h
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680         ac_cv_struct_tm=sys/time.h
13681 fi
13682
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 fi
13685 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13686 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13687 if test $ac_cv_struct_tm = sys/time.h; then
13688
13689 cat >>confdefs.h <<\_ACEOF
13690 #define TM_IN_SYS_TIME 1
13691 _ACEOF
13692
13693 fi
13694
13695 { echo "$as_me:$LINENO: checking for int64_t" >&5
13696 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13697 if test "${ac_cv_type_int64_t+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 $ac_includes_default
13707 typedef int64_t ac__type_new_;
13708 int
13709 main ()
13710 {
13711 if ((ac__type_new_ *) 0)
13712   return 0;
13713 if (sizeof (ac__type_new_))
13714   return 0;
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (ac_try="$ac_compile"
13721 case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_compile") 2>conftest.er1
13727   ac_status=$?
13728   grep -v '^ *+' conftest.er1 >conftest.err
13729   rm -f conftest.er1
13730   cat conftest.err >&5
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); } &&
13733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734   { (case "(($ac_try" in
13735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736   *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739   (eval "$ac_try") 2>&5
13740   ac_status=$?
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); }; } &&
13743          { ac_try='test -s conftest.$ac_objext'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_cv_type_int64_t=yes
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758         ac_cv_type_int64_t=no
13759 fi
13760
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 fi
13763 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13764 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13765 if test $ac_cv_type_int64_t = yes; then
13766
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_INT64_T 1
13769 _ACEOF
13770
13771
13772 else
13773   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13774 echo "$as_me: error: Type int64_t required but not found" >&2;}
13775    { (exit 1); exit 1; }; }
13776 fi
13777
13778 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13779 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_uint64_t+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 $ac_includes_default
13790 typedef uint64_t ac__type_new_;
13791 int
13792 main ()
13793 {
13794 if ((ac__type_new_ *) 0)
13795   return 0;
13796 if (sizeof (ac__type_new_))
13797   return 0;
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (ac_try="$ac_compile"
13804 case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_compile") 2>conftest.er1
13810   ac_status=$?
13811   grep -v '^ *+' conftest.er1 >conftest.err
13812   rm -f conftest.er1
13813   cat conftest.err >&5
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } &&
13816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817   { (case "(($ac_try" in
13818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819   *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822   (eval "$ac_try") 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); }; } &&
13826          { ac_try='test -s conftest.$ac_objext'
13827   { (case "(($ac_try" in
13828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829   *) ac_try_echo=$ac_try;;
13830 esac
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832   (eval "$ac_try") 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_type_uint64_t=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841         ac_cv_type_uint64_t=no
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13847 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13848 if test $ac_cv_type_uint64_t = yes; then
13849
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_UINT64_T 1
13852 _ACEOF
13853
13854
13855 else
13856   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13857 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13858 if test "${ac_cv_type_u_int64_t+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 $ac_includes_default
13868 typedef u_int64_t ac__type_new_;
13869 int
13870 main ()
13871 {
13872 if ((ac__type_new_ *) 0)
13873   return 0;
13874 if (sizeof (ac__type_new_))
13875   return 0;
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (ac_try="$ac_compile"
13882 case "(($ac_try" in
13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884   *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887   (eval "$ac_compile") 2>conftest.er1
13888   ac_status=$?
13889   grep -v '^ *+' conftest.er1 >conftest.err
13890   rm -f conftest.er1
13891   cat conftest.err >&5
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895   { (case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_try") 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; } &&
13904          { ac_try='test -s conftest.$ac_objext'
13905   { (case "(($ac_try" in
13906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907   *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910   (eval "$ac_try") 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; }; then
13914   ac_cv_type_u_int64_t=yes
13915 else
13916   echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919         ac_cv_type_u_int64_t=no
13920 fi
13921
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923 fi
13924 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13925 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13926 if test $ac_cv_type_u_int64_t = yes; then
13927
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_U_INT64_T 1
13930 _ACEOF
13931
13932
13933 else
13934   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13935 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13936    { (exit 1); exit 1; }; }
13937 fi
13938
13939 fi
13940
13941
13942
13943
13944
13945 for ac_func in backtrace getcwd
13946 do
13947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13961 #define $ac_func innocuous_$ac_func
13962
13963 /* System header to define __stub macros and hopefully few prototypes,
13964     which can conflict with char $ac_func (); below.
13965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13966     <limits.h> exists even on freestanding compilers.  */
13967
13968 #ifdef __STDC__
13969 # include <limits.h>
13970 #else
13971 # include <assert.h>
13972 #endif
13973
13974 #undef $ac_func
13975
13976 /* Override any GCC internal prototype to avoid an error.
13977    Use char because int might match the return type of a GCC
13978    builtin and then its argument prototype would still apply.  */
13979 #ifdef __cplusplus
13980 extern "C"
13981 #endif
13982 char $ac_func ();
13983 /* The GNU C library defines this for functions which it implements
13984     to always fail with ENOSYS.  Some functions are actually named
13985     something starting with __ and the normal name is an alias.  */
13986 #if defined __stub_$ac_func || defined __stub___$ac_func
13987 choke me
13988 #endif
13989
13990 int
13991 main ()
13992 {
13993 return $ac_func ();
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (ac_try="$ac_link"
14000 case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005   (eval "$ac_link") 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } &&
14012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013   { (case "(($ac_try" in
14014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015   *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018   (eval "$ac_try") 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; } &&
14022          { ac_try='test -s conftest$ac_exeext'
14023   { (case "(($ac_try" in
14024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025   *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028   (eval "$ac_try") 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   eval "$as_ac_var=yes"
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037         eval "$as_ac_var=no"
14038 fi
14039
14040 rm -f core conftest.err conftest.$ac_objext \
14041       conftest$ac_exeext conftest.$ac_ext
14042 fi
14043 ac_res=`eval echo '${'$as_ac_var'}'`
14044                { echo "$as_me:$LINENO: result: $ac_res" >&5
14045 echo "${ECHO_T}$ac_res" >&6; }
14046 if test `eval echo '${'$as_ac_var'}'` = yes; then
14047   cat >>confdefs.h <<_ACEOF
14048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14049 _ACEOF
14050
14051 fi
14052 done
14053
14054
14055
14056
14057
14058
14059 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14060 do
14061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h.  */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h.  */
14073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14075 #define $ac_func innocuous_$ac_func
14076
14077 /* System header to define __stub macros and hopefully few prototypes,
14078     which can conflict with char $ac_func (); below.
14079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14080     <limits.h> exists even on freestanding compilers.  */
14081
14082 #ifdef __STDC__
14083 # include <limits.h>
14084 #else
14085 # include <assert.h>
14086 #endif
14087
14088 #undef $ac_func
14089
14090 /* Override any GCC internal prototype to avoid an error.
14091    Use char because int might match the return type of a GCC
14092    builtin and then its argument prototype would still apply.  */
14093 #ifdef __cplusplus
14094 extern "C"
14095 #endif
14096 char $ac_func ();
14097 /* The GNU C library defines this for functions which it implements
14098     to always fail with ENOSYS.  Some functions are actually named
14099     something starting with __ and the normal name is an alias.  */
14100 #if defined __stub_$ac_func || defined __stub___$ac_func
14101 choke me
14102 #endif
14103
14104 int
14105 main ()
14106 {
14107 return $ac_func ();
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 rm -f conftest.$ac_objext conftest$ac_exeext
14113 if { (ac_try="$ac_link"
14114 case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119   (eval "$ac_link") 2>conftest.er1
14120   ac_status=$?
14121   grep -v '^ *+' conftest.er1 >conftest.err
14122   rm -f conftest.er1
14123   cat conftest.err >&5
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } &&
14126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14127   { (case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132   (eval "$ac_try") 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); }; } &&
14136          { ac_try='test -s conftest$ac_exeext'
14137   { (case "(($ac_try" in
14138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139   *) ac_try_echo=$ac_try;;
14140 esac
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142   (eval "$ac_try") 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); }; }; then
14146   eval "$as_ac_var=yes"
14147 else
14148   echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151         eval "$as_ac_var=no"
14152 fi
14153
14154 rm -f core conftest.err conftest.$ac_objext \
14155       conftest$ac_exeext conftest.$ac_ext
14156 fi
14157 ac_res=`eval echo '${'$as_ac_var'}'`
14158                { echo "$as_me:$LINENO: result: $ac_res" >&5
14159 echo "${ECHO_T}$ac_res" >&6; }
14160 if test `eval echo '${'$as_ac_var'}'` = yes; then
14161   cat >>confdefs.h <<_ACEOF
14162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14163 _ACEOF
14164
14165 fi
14166 done
14167
14168
14169
14170
14171 for ac_func in isatty mkdtemp mkstemp
14172 do
14173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   cat >conftest.$ac_ext <<_ACEOF
14180 /* confdefs.h.  */
14181 _ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h.  */
14185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14187 #define $ac_func innocuous_$ac_func
14188
14189 /* System header to define __stub macros and hopefully few prototypes,
14190     which can conflict with char $ac_func (); below.
14191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14192     <limits.h> exists even on freestanding compilers.  */
14193
14194 #ifdef __STDC__
14195 # include <limits.h>
14196 #else
14197 # include <assert.h>
14198 #endif
14199
14200 #undef $ac_func
14201
14202 /* Override any GCC internal prototype to avoid an error.
14203    Use char because int might match the return type of a GCC
14204    builtin and then its argument prototype would still apply.  */
14205 #ifdef __cplusplus
14206 extern "C"
14207 #endif
14208 char $ac_func ();
14209 /* The GNU C library defines this for functions which it implements
14210     to always fail with ENOSYS.  Some functions are actually named
14211     something starting with __ and the normal name is an alias.  */
14212 #if defined __stub_$ac_func || defined __stub___$ac_func
14213 choke me
14214 #endif
14215
14216 int
14217 main ()
14218 {
14219 return $ac_func ();
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext conftest$ac_exeext
14225 if { (ac_try="$ac_link"
14226 case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_link") 2>conftest.er1
14232   ac_status=$?
14233   grep -v '^ *+' conftest.er1 >conftest.err
14234   rm -f conftest.er1
14235   cat conftest.err >&5
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } &&
14238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239   { (case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_try") 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; } &&
14248          { ac_try='test -s conftest$ac_exeext'
14249   { (case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_try") 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   eval "$as_ac_var=yes"
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263         eval "$as_ac_var=no"
14264 fi
14265
14266 rm -f core conftest.err conftest.$ac_objext \
14267       conftest$ac_exeext conftest.$ac_ext
14268 fi
14269 ac_res=`eval echo '${'$as_ac_var'}'`
14270                { echo "$as_me:$LINENO: result: $ac_res" >&5
14271 echo "${ECHO_T}$ac_res" >&6; }
14272 if test `eval echo '${'$as_ac_var'}'` = yes; then
14273   cat >>confdefs.h <<_ACEOF
14274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14275 _ACEOF
14276
14277 fi
14278 done
14279
14280
14281
14282
14283
14284
14285
14286 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14287 do
14288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294   cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14302 #define $ac_func innocuous_$ac_func
14303
14304 /* System header to define __stub macros and hopefully few prototypes,
14305     which can conflict with char $ac_func (); below.
14306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14307     <limits.h> exists even on freestanding compilers.  */
14308
14309 #ifdef __STDC__
14310 # include <limits.h>
14311 #else
14312 # include <assert.h>
14313 #endif
14314
14315 #undef $ac_func
14316
14317 /* Override any GCC internal prototype to avoid an error.
14318    Use char because int might match the return type of a GCC
14319    builtin and then its argument prototype would still apply.  */
14320 #ifdef __cplusplus
14321 extern "C"
14322 #endif
14323 char $ac_func ();
14324 /* The GNU C library defines this for functions which it implements
14325     to always fail with ENOSYS.  Some functions are actually named
14326     something starting with __ and the normal name is an alias.  */
14327 #if defined __stub_$ac_func || defined __stub___$ac_func
14328 choke me
14329 #endif
14330
14331 int
14332 main ()
14333 {
14334 return $ac_func ();
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343   *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346   (eval "$ac_link") 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14354   { (case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_try") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; } &&
14363          { ac_try='test -s conftest$ac_exeext'
14364   { (case "(($ac_try" in
14365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366   *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369   (eval "$ac_try") 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }; }; then
14373   eval "$as_ac_var=yes"
14374 else
14375   echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14377
14378         eval "$as_ac_var=no"
14379 fi
14380
14381 rm -f core conftest.err conftest.$ac_objext \
14382       conftest$ac_exeext conftest.$ac_ext
14383 fi
14384 ac_res=`eval echo '${'$as_ac_var'}'`
14385                { echo "$as_me:$LINENO: result: $ac_res" >&5
14386 echo "${ECHO_T}$ac_res" >&6; }
14387 if test `eval echo '${'$as_ac_var'}'` = yes; then
14388   cat >>confdefs.h <<_ACEOF
14389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14390 _ACEOF
14391
14392 fi
14393 done
14394
14395
14396
14397
14398 for ac_func in strerror strerror_r setenv
14399 do
14400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h.  */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h.  */
14412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14414 #define $ac_func innocuous_$ac_func
14415
14416 /* System header to define __stub macros and hopefully few prototypes,
14417     which can conflict with char $ac_func (); below.
14418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14419     <limits.h> exists even on freestanding compilers.  */
14420
14421 #ifdef __STDC__
14422 # include <limits.h>
14423 #else
14424 # include <assert.h>
14425 #endif
14426
14427 #undef $ac_func
14428
14429 /* Override any GCC internal prototype to avoid an error.
14430    Use char because int might match the return type of a GCC
14431    builtin and then its argument prototype would still apply.  */
14432 #ifdef __cplusplus
14433 extern "C"
14434 #endif
14435 char $ac_func ();
14436 /* The GNU C library defines this for functions which it implements
14437     to always fail with ENOSYS.  Some functions are actually named
14438     something starting with __ and the normal name is an alias.  */
14439 #if defined __stub_$ac_func || defined __stub___$ac_func
14440 choke me
14441 #endif
14442
14443 int
14444 main ()
14445 {
14446 return $ac_func ();
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (ac_try="$ac_link"
14453 case "(($ac_try" in
14454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455   *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458   (eval "$ac_link") 2>conftest.er1
14459   ac_status=$?
14460   grep -v '^ *+' conftest.er1 >conftest.err
14461   rm -f conftest.er1
14462   cat conftest.err >&5
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); } &&
14465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14466   { (case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471   (eval "$ac_try") 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; } &&
14475          { ac_try='test -s conftest$ac_exeext'
14476   { (case "(($ac_try" in
14477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478   *) ac_try_echo=$ac_try;;
14479 esac
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481   (eval "$ac_try") 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; }; then
14485   eval "$as_ac_var=yes"
14486 else
14487   echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490         eval "$as_ac_var=no"
14491 fi
14492
14493 rm -f core conftest.err conftest.$ac_objext \
14494       conftest$ac_exeext conftest.$ac_ext
14495 fi
14496 ac_res=`eval echo '${'$as_ac_var'}'`
14497                { echo "$as_me:$LINENO: result: $ac_res" >&5
14498 echo "${ECHO_T}$ac_res" >&6; }
14499 if test `eval echo '${'$as_ac_var'}'` = yes; then
14500   cat >>confdefs.h <<_ACEOF
14501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14502 _ACEOF
14503
14504 fi
14505 done
14506
14507
14508
14509
14510
14511 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14512 do
14513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14527 #define $ac_func innocuous_$ac_func
14528
14529 /* System header to define __stub macros and hopefully few prototypes,
14530     which can conflict with char $ac_func (); below.
14531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532     <limits.h> exists even on freestanding compilers.  */
14533
14534 #ifdef __STDC__
14535 # include <limits.h>
14536 #else
14537 # include <assert.h>
14538 #endif
14539
14540 #undef $ac_func
14541
14542 /* Override any GCC internal prototype to avoid an error.
14543    Use char because int might match the return type of a GCC
14544    builtin and then its argument prototype would still apply.  */
14545 #ifdef __cplusplus
14546 extern "C"
14547 #endif
14548 char $ac_func ();
14549 /* The GNU C library defines this for functions which it implements
14550     to always fail with ENOSYS.  Some functions are actually named
14551     something starting with __ and the normal name is an alias.  */
14552 #if defined __stub_$ac_func || defined __stub___$ac_func
14553 choke me
14554 #endif
14555
14556 int
14557 main ()
14558 {
14559 return $ac_func ();
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_link") 2>conftest.er1
14572   ac_status=$?
14573   grep -v '^ *+' conftest.er1 >conftest.err
14574   rm -f conftest.er1
14575   cat conftest.err >&5
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); } &&
14578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14579   { (case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_try") 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; } &&
14588          { ac_try='test -s conftest$ac_exeext'
14589   { (case "(($ac_try" in
14590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591   *) ac_try_echo=$ac_try;;
14592 esac
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594   (eval "$ac_try") 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; }; then
14598   eval "$as_ac_var=yes"
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603         eval "$as_ac_var=no"
14604 fi
14605
14606 rm -f core conftest.err conftest.$ac_objext \
14607       conftest$ac_exeext conftest.$ac_ext
14608 fi
14609 ac_res=`eval echo '${'$as_ac_var'}'`
14610                { echo "$as_me:$LINENO: result: $ac_res" >&5
14611 echo "${ECHO_T}$ac_res" >&6; }
14612 if test `eval echo '${'$as_ac_var'}'` = yes; then
14613   cat >>confdefs.h <<_ACEOF
14614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14615 _ACEOF
14616
14617 fi
14618 done
14619
14620
14621
14622
14623
14624
14625 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14626 do
14627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14631   echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633   cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h.  */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h.  */
14639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14641 #define $ac_func innocuous_$ac_func
14642
14643 /* System header to define __stub macros and hopefully few prototypes,
14644     which can conflict with char $ac_func (); below.
14645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14646     <limits.h> exists even on freestanding compilers.  */
14647
14648 #ifdef __STDC__
14649 # include <limits.h>
14650 #else
14651 # include <assert.h>
14652 #endif
14653
14654 #undef $ac_func
14655
14656 /* Override any GCC internal prototype to avoid an error.
14657    Use char because int might match the return type of a GCC
14658    builtin and then its argument prototype would still apply.  */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 char $ac_func ();
14663 /* The GNU C library defines this for functions which it implements
14664     to always fail with ENOSYS.  Some functions are actually named
14665     something starting with __ and the normal name is an alias.  */
14666 #if defined __stub_$ac_func || defined __stub___$ac_func
14667 choke me
14668 #endif
14669
14670 int
14671 main ()
14672 {
14673 return $ac_func ();
14674   ;
14675   return 0;
14676 }
14677 _ACEOF
14678 rm -f conftest.$ac_objext conftest$ac_exeext
14679 if { (ac_try="$ac_link"
14680 case "(($ac_try" in
14681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682   *) ac_try_echo=$ac_try;;
14683 esac
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685   (eval "$ac_link") 2>conftest.er1
14686   ac_status=$?
14687   grep -v '^ *+' conftest.er1 >conftest.err
14688   rm -f conftest.er1
14689   cat conftest.err >&5
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } &&
14692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693   { (case "(($ac_try" in
14694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695   *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698   (eval "$ac_try") 2>&5
14699   ac_status=$?
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; } &&
14702          { ac_try='test -s conftest$ac_exeext'
14703   { (case "(($ac_try" in
14704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705   *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708   (eval "$ac_try") 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712   eval "$as_ac_var=yes"
14713 else
14714   echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717         eval "$as_ac_var=no"
14718 fi
14719
14720 rm -f core conftest.err conftest.$ac_objext \
14721       conftest$ac_exeext conftest.$ac_ext
14722 fi
14723 ac_res=`eval echo '${'$as_ac_var'}'`
14724                { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14726 if test `eval echo '${'$as_ac_var'}'` = yes; then
14727   cat >>confdefs.h <<_ACEOF
14728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14729 _ACEOF
14730
14731 fi
14732 done
14733
14734
14735
14736 for ac_func in futimes futimens
14737 do
14738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14742   echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744   cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14752 #define $ac_func innocuous_$ac_func
14753
14754 /* System header to define __stub macros and hopefully few prototypes,
14755     which can conflict with char $ac_func (); below.
14756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14757     <limits.h> exists even on freestanding compilers.  */
14758
14759 #ifdef __STDC__
14760 # include <limits.h>
14761 #else
14762 # include <assert.h>
14763 #endif
14764
14765 #undef $ac_func
14766
14767 /* Override any GCC internal prototype to avoid an error.
14768    Use char because int might match the return type of a GCC
14769    builtin and then its argument prototype would still apply.  */
14770 #ifdef __cplusplus
14771 extern "C"
14772 #endif
14773 char $ac_func ();
14774 /* The GNU C library defines this for functions which it implements
14775     to always fail with ENOSYS.  Some functions are actually named
14776     something starting with __ and the normal name is an alias.  */
14777 #if defined __stub_$ac_func || defined __stub___$ac_func
14778 choke me
14779 #endif
14780
14781 int
14782 main ()
14783 {
14784 return $ac_func ();
14785   ;
14786   return 0;
14787 }
14788 _ACEOF
14789 rm -f conftest.$ac_objext conftest$ac_exeext
14790 if { (ac_try="$ac_link"
14791 case "(($ac_try" in
14792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793   *) ac_try_echo=$ac_try;;
14794 esac
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796   (eval "$ac_link") 2>conftest.er1
14797   ac_status=$?
14798   grep -v '^ *+' conftest.er1 >conftest.err
14799   rm -f conftest.er1
14800   cat conftest.err >&5
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } &&
14803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14804   { (case "(($ac_try" in
14805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806   *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809   (eval "$ac_try") 2>&5
14810   ac_status=$?
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); }; } &&
14813          { ac_try='test -s conftest$ac_exeext'
14814   { (case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819   (eval "$ac_try") 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   eval "$as_ac_var=yes"
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828         eval "$as_ac_var=no"
14829 fi
14830
14831 rm -f core conftest.err conftest.$ac_objext \
14832       conftest$ac_exeext conftest.$ac_ext
14833 fi
14834 ac_res=`eval echo '${'$as_ac_var'}'`
14835                { echo "$as_me:$LINENO: result: $ac_res" >&5
14836 echo "${ECHO_T}$ac_res" >&6; }
14837 if test `eval echo '${'$as_ac_var'}'` = yes; then
14838   cat >>confdefs.h <<_ACEOF
14839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 _ACEOF
14841
14842 fi
14843 done
14844
14845 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14846 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14847 if test "${llvm_cv_c_printf_a+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   ac_ext=c
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856  if test "$cross_compiling" = yes; then
14857   llvmac_cv_c_printf_a=no
14858 else
14859   cat >conftest.$ac_ext <<_ACEOF
14860
14861   /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866
14867 #include <stdio.h>
14868 #include <stdlib.h>
14869
14870 int
14871 main ()
14872 {
14873
14874 volatile double A, B;
14875 char Buffer[100];
14876 A = 1;
14877 A /= 10.0;
14878 sprintf(Buffer, "%a", A);
14879 B = atof(Buffer);
14880 if (A != B)
14881   return (1);
14882 if (A != 0x1.999999999999ap-4)
14883   return (1);
14884 return (0);
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893   *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896   (eval "$ac_link") 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14900   { (case "(($ac_try" in
14901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902   *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905   (eval "$ac_try") 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; }; then
14909   llvm_cv_c_printf_a=yes
14910 else
14911   echo "$as_me: program exited with status $ac_status" >&5
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 ( exit $ac_status )
14916 llvmac_cv_c_printf_a=no
14917 fi
14918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14919 fi
14920
14921
14922  ac_ext=c
14923 ac_cpp='$CPP $CPPFLAGS'
14924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14927
14928 fi
14929 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14930 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14931  if test "$llvm_cv_c_printf_a" = "yes"; then
14932
14933 cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_PRINTF_A 1
14935 _ACEOF
14936
14937  fi
14938
14939
14940
14941   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14942 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14943 if test "${ac_cv_func_rand48+set}" = set; then
14944   echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946
14947     ac_ext=cpp
14948 ac_cpp='$CXXCPP $CPPFLAGS'
14949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14952
14953     cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 #include <stdlib.h>
14960 int
14961 main ()
14962 {
14963 srand48(0);lrand48();drand48();
14964   ;
14965   return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972   *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975   (eval "$ac_compile") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14983   { (case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_try") 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; } &&
14992          { ac_try='test -s conftest.$ac_objext'
14993   { (case "(($ac_try" in
14994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995   *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998   (eval "$ac_try") 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; }; then
15002   ac_cv_func_rand48=yes
15003 else
15004   echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007         ac_cv_func_rand48=no
15008 fi
15009
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011     ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017
15018 fi
15019 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15020 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15021
15022 if test "$ac_cv_func_rand48" = "yes" ; then
15023
15024 cat >>confdefs.h <<\_ACEOF
15025 #define HAVE_RAND48 1
15026 _ACEOF
15027
15028 fi
15029
15030
15031 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15032 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15033 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 $ac_includes_default
15043 int
15044 main ()
15045 {
15046 #ifndef arc4random
15047   char *p = (char *) arc4random;
15048   return !p;
15049 #endif
15050
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059   *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062   (eval "$ac_compile") 2>conftest.er1
15063   ac_status=$?
15064   grep -v '^ *+' conftest.er1 >conftest.err
15065   rm -f conftest.er1
15066   cat conftest.err >&5
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); } &&
15069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070   { (case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_try") 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }; } &&
15079          { ac_try='test -s conftest.$ac_objext'
15080   { (case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_try") 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; }; then
15089   ac_cv_have_decl_arc4random=yes
15090 else
15091   echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15093
15094         ac_cv_have_decl_arc4random=no
15095 fi
15096
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 fi
15099 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15100 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15101 if test $ac_cv_have_decl_arc4random = yes; then
15102
15103 cat >>confdefs.h <<_ACEOF
15104 #define HAVE_DECL_ARC4RANDOM 1
15105 _ACEOF
15106
15107
15108 else
15109   cat >>confdefs.h <<_ACEOF
15110 #define HAVE_DECL_ARC4RANDOM 0
15111 _ACEOF
15112
15113
15114 fi
15115
15116
15117
15118 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15119 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15120 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15121   echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123   cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h.  */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h.  */
15129 $ac_includes_default
15130 int
15131 main ()
15132 {
15133 #ifndef strerror_s
15134   char *p = (char *) strerror_s;
15135   return !p;
15136 #endif
15137
15138   ;
15139   return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (ac_try="$ac_compile"
15144 case "(($ac_try" in
15145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146   *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149   (eval "$ac_compile") 2>conftest.er1
15150   ac_status=$?
15151   grep -v '^ *+' conftest.er1 >conftest.err
15152   rm -f conftest.er1
15153   cat conftest.err >&5
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); } &&
15156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15157   { (case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_try") 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest.$ac_objext'
15167   { (case "(($ac_try" in
15168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169   *) ac_try_echo=$ac_try;;
15170 esac
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172   (eval "$ac_try") 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; }; then
15176   ac_cv_have_decl_strerror_s=yes
15177 else
15178   echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181         ac_cv_have_decl_strerror_s=no
15182 fi
15183
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 fi
15186 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15187 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15188 if test $ac_cv_have_decl_strerror_s = yes; then
15189
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_DECL_STRERROR_S 1
15192 _ACEOF
15193
15194
15195 else
15196   cat >>confdefs.h <<_ACEOF
15197 #define HAVE_DECL_STRERROR_S 0
15198 _ACEOF
15199
15200
15201 fi
15202
15203
15204
15205 if test "$llvm_cv_os_type" = "MingW" ; then
15206   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15207 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15208 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15209   echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211   ac_check_lib_save_LIBS=$LIBS
15212 LIBS="-lgcc  $LIBS"
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h.  */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h.  */
15219
15220 /* Override any GCC internal prototype to avoid an error.
15221    Use char because int might match the return type of a GCC
15222    builtin and then its argument prototype would still apply.  */
15223 #ifdef __cplusplus
15224 extern "C"
15225 #endif
15226 char _alloca ();
15227 int
15228 main ()
15229 {
15230 return _alloca ();
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (ac_try="$ac_link"
15237 case "(($ac_try" in
15238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239   *) ac_try_echo=$ac_try;;
15240 esac
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242   (eval "$ac_link") 2>conftest.er1
15243   ac_status=$?
15244   grep -v '^ *+' conftest.er1 >conftest.err
15245   rm -f conftest.er1
15246   cat conftest.err >&5
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } &&
15249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; } &&
15259          { ac_try='test -s conftest$ac_exeext'
15260   { (case "(($ac_try" in
15261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262   *) ac_try_echo=$ac_try;;
15263 esac
15264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15265   (eval "$ac_try") 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; }; then
15269   ac_cv_lib_gcc__alloca=yes
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274         ac_cv_lib_gcc__alloca=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext \
15278       conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS
15280 fi
15281 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15282 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15283 if test $ac_cv_lib_gcc__alloca = yes; then
15284
15285 cat >>confdefs.h <<\_ACEOF
15286 #define HAVE__ALLOCA 1
15287 _ACEOF
15288
15289 fi
15290
15291   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15292 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15293 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-lgcc  $LIBS"
15298 cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304
15305 /* Override any GCC internal prototype to avoid an error.
15306    Use char because int might match the return type of a GCC
15307    builtin and then its argument prototype would still apply.  */
15308 #ifdef __cplusplus
15309 extern "C"
15310 #endif
15311 char __alloca ();
15312 int
15313 main ()
15314 {
15315 return __alloca ();
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (ac_try="$ac_link"
15322 case "(($ac_try" in
15323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324   *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327   (eval "$ac_link") 2>conftest.er1
15328   ac_status=$?
15329   grep -v '^ *+' conftest.er1 >conftest.err
15330   rm -f conftest.er1
15331   cat conftest.err >&5
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); } &&
15334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15335   { (case "(($ac_try" in
15336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337   *) ac_try_echo=$ac_try;;
15338 esac
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340   (eval "$ac_try") 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; } &&
15344          { ac_try='test -s conftest$ac_exeext'
15345   { (case "(($ac_try" in
15346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347   *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350   (eval "$ac_try") 2>&5
15351   ac_status=$?
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); }; }; then
15354   ac_cv_lib_gcc___alloca=yes
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359         ac_cv_lib_gcc___alloca=no
15360 fi
15361
15362 rm -f core conftest.err conftest.$ac_objext \
15363       conftest$ac_exeext conftest.$ac_ext
15364 LIBS=$ac_check_lib_save_LIBS
15365 fi
15366 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15367 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15368 if test $ac_cv_lib_gcc___alloca = yes; then
15369
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE___ALLOCA 1
15372 _ACEOF
15373
15374 fi
15375
15376   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15377 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lgcc  $LIBS"
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389
15390 /* Override any GCC internal prototype to avoid an error.
15391    Use char because int might match the return type of a GCC
15392    builtin and then its argument prototype would still apply.  */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char __chkstk ();
15397 int
15398 main ()
15399 {
15400 return __chkstk ();
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_link") 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } &&
15419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15420   { (case "(($ac_try" in
15421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422   *) ac_try_echo=$ac_try;;
15423 esac
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425   (eval "$ac_try") 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; } &&
15429          { ac_try='test -s conftest$ac_exeext'
15430   { (case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435   (eval "$ac_try") 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_cv_lib_gcc___chkstk=yes
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444         ac_cv_lib_gcc___chkstk=no
15445 fi
15446
15447 rm -f core conftest.err conftest.$ac_objext \
15448       conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15450 fi
15451 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15452 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15453 if test $ac_cv_lib_gcc___chkstk = yes; then
15454
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE___CHKSTK 1
15457 _ACEOF
15458
15459 fi
15460
15461   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15462 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15463 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-lgcc  $LIBS"
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474
15475 /* Override any GCC internal prototype to avoid an error.
15476    Use char because int might match the return type of a GCC
15477    builtin and then its argument prototype would still apply.  */
15478 #ifdef __cplusplus
15479 extern "C"
15480 #endif
15481 char __chkstk_ms ();
15482 int
15483 main ()
15484 {
15485 return __chkstk_ms ();
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_link") 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15505   { (case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_try") 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; } &&
15514          { ac_try='test -s conftest$ac_exeext'
15515   { (case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_try") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; }; then
15524   ac_cv_lib_gcc___chkstk_ms=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529         ac_cv_lib_gcc___chkstk_ms=no
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext \
15533       conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15535 fi
15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15537 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15538 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15539
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE___CHKSTK_MS 1
15542 _ACEOF
15543
15544 fi
15545
15546   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15547 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15548 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lgcc  $LIBS"
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559
15560 /* Override any GCC internal prototype to avoid an error.
15561    Use char because int might match the return type of a GCC
15562    builtin and then its argument prototype would still apply.  */
15563 #ifdef __cplusplus
15564 extern "C"
15565 #endif
15566 char ___chkstk ();
15567 int
15568 main ()
15569 {
15570 return ___chkstk ();
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (ac_try="$ac_link"
15577 case "(($ac_try" in
15578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579   *) ac_try_echo=$ac_try;;
15580 esac
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582   (eval "$ac_link") 2>conftest.er1
15583   ac_status=$?
15584   grep -v '^ *+' conftest.er1 >conftest.err
15585   rm -f conftest.er1
15586   cat conftest.err >&5
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } &&
15589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15590   { (case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_try") 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; } &&
15599          { ac_try='test -s conftest$ac_exeext'
15600   { (case "(($ac_try" in
15601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602   *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605   (eval "$ac_try") 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; }; then
15609   ac_cv_lib_gcc____chkstk=yes
15610 else
15611   echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614         ac_cv_lib_gcc____chkstk=no
15615 fi
15616
15617 rm -f core conftest.err conftest.$ac_objext \
15618       conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15620 fi
15621 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15622 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15623 if test $ac_cv_lib_gcc____chkstk = yes; then
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE____CHKSTK 1
15627 _ACEOF
15628
15629 fi
15630
15631   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15632 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lgcc  $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644
15645 /* Override any GCC internal prototype to avoid an error.
15646    Use char because int might match the return type of a GCC
15647    builtin and then its argument prototype would still apply.  */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 char ___chkstk_ms ();
15652 int
15653 main ()
15654 {
15655 return ___chkstk_ms ();
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (ac_try="$ac_link"
15662 case "(($ac_try" in
15663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664   *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667   (eval "$ac_link") 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } &&
15674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675   { (case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_try") 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); }; } &&
15684          { ac_try='test -s conftest$ac_exeext'
15685   { (case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690   (eval "$ac_try") 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; }; then
15694   ac_cv_lib_gcc____chkstk_ms=yes
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699         ac_cv_lib_gcc____chkstk_ms=no
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext \
15703       conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15705 fi
15706 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15707 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15708 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE____CHKSTK_MS 1
15712 _ACEOF
15713
15714 fi
15715
15716
15717   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15718 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15719 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   ac_check_lib_save_LIBS=$LIBS
15723 LIBS="-lgcc  $LIBS"
15724 cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730
15731 /* Override any GCC internal prototype to avoid an error.
15732    Use char because int might match the return type of a GCC
15733    builtin and then its argument prototype would still apply.  */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 char __ashldi3 ();
15738 int
15739 main ()
15740 {
15741 return __ashldi3 ();
15742   ;
15743   return 0;
15744 }
15745 _ACEOF
15746 rm -f conftest.$ac_objext conftest$ac_exeext
15747 if { (ac_try="$ac_link"
15748 case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753   (eval "$ac_link") 2>conftest.er1
15754   ac_status=$?
15755   grep -v '^ *+' conftest.er1 >conftest.err
15756   rm -f conftest.er1
15757   cat conftest.err >&5
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); } &&
15760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15761   { (case "(($ac_try" in
15762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763   *) ac_try_echo=$ac_try;;
15764 esac
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766   (eval "$ac_try") 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; } &&
15770          { ac_try='test -s conftest$ac_exeext'
15771   { (case "(($ac_try" in
15772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773   *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776   (eval "$ac_try") 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; }; then
15780   ac_cv_lib_gcc___ashldi3=yes
15781 else
15782   echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785         ac_cv_lib_gcc___ashldi3=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext \
15789       conftest$ac_exeext conftest.$ac_ext
15790 LIBS=$ac_check_lib_save_LIBS
15791 fi
15792 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15793 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15794 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15795
15796 cat >>confdefs.h <<\_ACEOF
15797 #define HAVE___ASHLDI3 1
15798 _ACEOF
15799
15800 fi
15801
15802   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15803 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15804 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15805   echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807   ac_check_lib_save_LIBS=$LIBS
15808 LIBS="-lgcc  $LIBS"
15809 cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815
15816 /* Override any GCC internal prototype to avoid an error.
15817    Use char because int might match the return type of a GCC
15818    builtin and then its argument prototype would still apply.  */
15819 #ifdef __cplusplus
15820 extern "C"
15821 #endif
15822 char __ashrdi3 ();
15823 int
15824 main ()
15825 {
15826 return __ashrdi3 ();
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (ac_try="$ac_link"
15833 case "(($ac_try" in
15834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835   *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838   (eval "$ac_link") 2>conftest.er1
15839   ac_status=$?
15840   grep -v '^ *+' conftest.er1 >conftest.err
15841   rm -f conftest.er1
15842   cat conftest.err >&5
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); } &&
15845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846   { (case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_try") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; } &&
15855          { ac_try='test -s conftest$ac_exeext'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   ac_cv_lib_gcc___ashrdi3=yes
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870         ac_cv_lib_gcc___ashrdi3=no
15871 fi
15872
15873 rm -f core conftest.err conftest.$ac_objext \
15874       conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15876 fi
15877 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15878 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15879 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15880
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE___ASHRDI3 1
15883 _ACEOF
15884
15885 fi
15886
15887   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15888 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15889 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lgcc  $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900
15901 /* Override any GCC internal prototype to avoid an error.
15902    Use char because int might match the return type of a GCC
15903    builtin and then its argument prototype would still apply.  */
15904 #ifdef __cplusplus
15905 extern "C"
15906 #endif
15907 char __divdi3 ();
15908 int
15909 main ()
15910 {
15911 return __divdi3 ();
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920   *) ac_try_echo=$ac_try;;
15921 esac
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923   (eval "$ac_link") 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15931   { (case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_try") 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; } &&
15940          { ac_try='test -s conftest$ac_exeext'
15941   { (case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946   (eval "$ac_try") 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; }; then
15950   ac_cv_lib_gcc___divdi3=yes
15951 else
15952   echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955         ac_cv_lib_gcc___divdi3=no
15956 fi
15957
15958 rm -f core conftest.err conftest.$ac_objext \
15959       conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15961 fi
15962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15963 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15964 if test $ac_cv_lib_gcc___divdi3 = yes; then
15965
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE___DIVDI3 1
15968 _ACEOF
15969
15970 fi
15971
15972   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15973 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15974 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 else
15977   ac_check_lib_save_LIBS=$LIBS
15978 LIBS="-lgcc  $LIBS"
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h.  */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h.  */
15985
15986 /* Override any GCC internal prototype to avoid an error.
15987    Use char because int might match the return type of a GCC
15988    builtin and then its argument prototype would still apply.  */
15989 #ifdef __cplusplus
15990 extern "C"
15991 #endif
15992 char __fixdfdi ();
15993 int
15994 main ()
15995 {
15996 return __fixdfdi ();
15997   ;
15998   return 0;
15999 }
16000 _ACEOF
16001 rm -f conftest.$ac_objext conftest$ac_exeext
16002 if { (ac_try="$ac_link"
16003 case "(($ac_try" in
16004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005   *) ac_try_echo=$ac_try;;
16006 esac
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008   (eval "$ac_link") 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016   { (case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_try") 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; } &&
16025          { ac_try='test -s conftest$ac_exeext'
16026   { (case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_try") 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_cv_lib_gcc___fixdfdi=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_cv_lib_gcc___fixdfdi=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext \
16044       conftest$ac_exeext conftest.$ac_ext
16045 LIBS=$ac_check_lib_save_LIBS
16046 fi
16047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16048 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16049 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16050
16051 cat >>confdefs.h <<\_ACEOF
16052 #define HAVE___FIXDFDI 1
16053 _ACEOF
16054
16055 fi
16056
16057   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16058 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16059 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   ac_check_lib_save_LIBS=$LIBS
16063 LIBS="-lgcc  $LIBS"
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070
16071 /* Override any GCC internal prototype to avoid an error.
16072    Use char because int might match the return type of a GCC
16073    builtin and then its argument prototype would still apply.  */
16074 #ifdef __cplusplus
16075 extern "C"
16076 #endif
16077 char __fixsfdi ();
16078 int
16079 main ()
16080 {
16081 return __fixsfdi ();
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_link") 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101   { (case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106   (eval "$ac_try") 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest$ac_exeext'
16111   { (case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_try") 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   ac_cv_lib_gcc___fixsfdi=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125         ac_cv_lib_gcc___fixsfdi=no
16126 fi
16127
16128 rm -f core conftest.err conftest.$ac_objext \
16129       conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16131 fi
16132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16133 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16134 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16135
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE___FIXSFDI 1
16138 _ACEOF
16139
16140 fi
16141
16142   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16143 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16144 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   ac_check_lib_save_LIBS=$LIBS
16148 LIBS="-lgcc  $LIBS"
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h.  */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h.  */
16155
16156 /* Override any GCC internal prototype to avoid an error.
16157    Use char because int might match the return type of a GCC
16158    builtin and then its argument prototype would still apply.  */
16159 #ifdef __cplusplus
16160 extern "C"
16161 #endif
16162 char __floatdidf ();
16163 int
16164 main ()
16165 {
16166 return __floatdidf ();
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175   *) ac_try_echo=$ac_try;;
16176 esac
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178   (eval "$ac_link") 2>conftest.er1
16179   ac_status=$?
16180   grep -v '^ *+' conftest.er1 >conftest.err
16181   rm -f conftest.er1
16182   cat conftest.err >&5
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); } &&
16185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186   { (case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191   (eval "$ac_try") 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; } &&
16195          { ac_try='test -s conftest$ac_exeext'
16196   { (case "(($ac_try" in
16197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198   *) ac_try_echo=$ac_try;;
16199 esac
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201   (eval "$ac_try") 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_cv_lib_gcc___floatdidf=yes
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210         ac_cv_lib_gcc___floatdidf=no
16211 fi
16212
16213 rm -f core conftest.err conftest.$ac_objext \
16214       conftest$ac_exeext conftest.$ac_ext
16215 LIBS=$ac_check_lib_save_LIBS
16216 fi
16217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16218 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16219 if test $ac_cv_lib_gcc___floatdidf = yes; then
16220
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE___FLOATDIDF 1
16223 _ACEOF
16224
16225 fi
16226
16227   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16228 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16229 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16230   echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232   ac_check_lib_save_LIBS=$LIBS
16233 LIBS="-lgcc  $LIBS"
16234 cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240
16241 /* Override any GCC internal prototype to avoid an error.
16242    Use char because int might match the return type of a GCC
16243    builtin and then its argument prototype would still apply.  */
16244 #ifdef __cplusplus
16245 extern "C"
16246 #endif
16247 char __lshrdi3 ();
16248 int
16249 main ()
16250 {
16251 return __lshrdi3 ();
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (ac_try="$ac_link"
16258 case "(($ac_try" in
16259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260   *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263   (eval "$ac_link") 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271   { (case "(($ac_try" in
16272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273   *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276   (eval "$ac_try") 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; } &&
16280          { ac_try='test -s conftest$ac_exeext'
16281   { (case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_try") 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; }; then
16290   ac_cv_lib_gcc___lshrdi3=yes
16291 else
16292   echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295         ac_cv_lib_gcc___lshrdi3=no
16296 fi
16297
16298 rm -f core conftest.err conftest.$ac_objext \
16299       conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16301 fi
16302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16303 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16304 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16305
16306 cat >>confdefs.h <<\_ACEOF
16307 #define HAVE___LSHRDI3 1
16308 _ACEOF
16309
16310 fi
16311
16312   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16313 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16314 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   ac_check_lib_save_LIBS=$LIBS
16318 LIBS="-lgcc  $LIBS"
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325
16326 /* Override any GCC internal prototype to avoid an error.
16327    Use char because int might match the return type of a GCC
16328    builtin and then its argument prototype would still apply.  */
16329 #ifdef __cplusplus
16330 extern "C"
16331 #endif
16332 char __moddi3 ();
16333 int
16334 main ()
16335 {
16336 return __moddi3 ();
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (ac_try="$ac_link"
16343 case "(($ac_try" in
16344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345   *) ac_try_echo=$ac_try;;
16346 esac
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348   (eval "$ac_link") 2>conftest.er1
16349   ac_status=$?
16350   grep -v '^ *+' conftest.er1 >conftest.err
16351   rm -f conftest.er1
16352   cat conftest.err >&5
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); } &&
16355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16356   { (case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_try") 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; } &&
16365          { ac_try='test -s conftest$ac_exeext'
16366   { (case "(($ac_try" in
16367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368   *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371   (eval "$ac_try") 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }; }; then
16375   ac_cv_lib_gcc___moddi3=yes
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380         ac_cv_lib_gcc___moddi3=no
16381 fi
16382
16383 rm -f core conftest.err conftest.$ac_objext \
16384       conftest$ac_exeext conftest.$ac_ext
16385 LIBS=$ac_check_lib_save_LIBS
16386 fi
16387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16388 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16389 if test $ac_cv_lib_gcc___moddi3 = yes; then
16390
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE___MODDI3 1
16393 _ACEOF
16394
16395 fi
16396
16397   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16398 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16399 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   ac_check_lib_save_LIBS=$LIBS
16403 LIBS="-lgcc  $LIBS"
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410
16411 /* Override any GCC internal prototype to avoid an error.
16412    Use char because int might match the return type of a GCC
16413    builtin and then its argument prototype would still apply.  */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char __udivdi3 ();
16418 int
16419 main ()
16420 {
16421 return __udivdi3 ();
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430   *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433   (eval "$ac_link") 2>conftest.er1
16434   ac_status=$?
16435   grep -v '^ *+' conftest.er1 >conftest.err
16436   rm -f conftest.er1
16437   cat conftest.err >&5
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441   { (case "(($ac_try" in
16442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443   *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446   (eval "$ac_try") 2>&5
16447   ac_status=$?
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); }; } &&
16450          { ac_try='test -s conftest$ac_exeext'
16451   { (case "(($ac_try" in
16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453   *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456   (eval "$ac_try") 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; }; then
16460   ac_cv_lib_gcc___udivdi3=yes
16461 else
16462   echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465         ac_cv_lib_gcc___udivdi3=no
16466 fi
16467
16468 rm -f core conftest.err conftest.$ac_objext \
16469       conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16471 fi
16472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16473 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16474 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16475
16476 cat >>confdefs.h <<\_ACEOF
16477 #define HAVE___UDIVDI3 1
16478 _ACEOF
16479
16480 fi
16481
16482   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16483 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16485   echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487   ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-lgcc  $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496 /* Override any GCC internal prototype to avoid an error.
16497    Use char because int might match the return type of a GCC
16498    builtin and then its argument prototype would still apply.  */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char __umoddi3 ();
16503 int
16504 main ()
16505 {
16506 return __umoddi3 ();
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_link") 2>conftest.er1
16519   ac_status=$?
16520   grep -v '^ *+' conftest.er1 >conftest.err
16521   rm -f conftest.er1
16522   cat conftest.err >&5
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); } &&
16525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526   { (case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_try") 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest$ac_exeext'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; }; then
16545   ac_cv_lib_gcc___umoddi3=yes
16546 else
16547   echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550         ac_cv_lib_gcc___umoddi3=no
16551 fi
16552
16553 rm -f core conftest.err conftest.$ac_objext \
16554       conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16556 fi
16557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16558 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16559 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16560
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE___UMODDI3 1
16563 _ACEOF
16564
16565 fi
16566
16567
16568   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16569 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16570 if test "${ac_cv_lib_gcc___main+set}" = set; then
16571   echo $ECHO_N "(cached) $ECHO_C" >&6
16572 else
16573   ac_check_lib_save_LIBS=$LIBS
16574 LIBS="-lgcc  $LIBS"
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581
16582 /* Override any GCC internal prototype to avoid an error.
16583    Use char because int might match the return type of a GCC
16584    builtin and then its argument prototype would still apply.  */
16585 #ifdef __cplusplus
16586 extern "C"
16587 #endif
16588 char __main ();
16589 int
16590 main ()
16591 {
16592 return __main ();
16593   ;
16594   return 0;
16595 }
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601   *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604   (eval "$ac_link") 2>conftest.er1
16605   ac_status=$?
16606   grep -v '^ *+' conftest.er1 >conftest.err
16607   rm -f conftest.er1
16608   cat conftest.err >&5
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612   { (case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_try") 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; } &&
16621          { ac_try='test -s conftest$ac_exeext'
16622   { (case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_try") 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); }; }; then
16631   ac_cv_lib_gcc___main=yes
16632 else
16633   echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636         ac_cv_lib_gcc___main=no
16637 fi
16638
16639 rm -f core conftest.err conftest.$ac_objext \
16640       conftest$ac_exeext conftest.$ac_ext
16641 LIBS=$ac_check_lib_save_LIBS
16642 fi
16643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16644 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16645 if test $ac_cv_lib_gcc___main = yes; then
16646
16647 cat >>confdefs.h <<\_ACEOF
16648 #define HAVE___MAIN 1
16649 _ACEOF
16650
16651 fi
16652
16653   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16654 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16655 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16656   echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658   ac_check_lib_save_LIBS=$LIBS
16659 LIBS="-lgcc  $LIBS"
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666
16667 /* Override any GCC internal prototype to avoid an error.
16668    Use char because int might match the return type of a GCC
16669    builtin and then its argument prototype would still apply.  */
16670 #ifdef __cplusplus
16671 extern "C"
16672 #endif
16673 char __cmpdi2 ();
16674 int
16675 main ()
16676 {
16677 return __cmpdi2 ();
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686   *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689   (eval "$ac_link") 2>conftest.er1
16690   ac_status=$?
16691   grep -v '^ *+' conftest.er1 >conftest.err
16692   rm -f conftest.er1
16693   cat conftest.err >&5
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); } &&
16696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697   { (case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_try") 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; } &&
16706          { ac_try='test -s conftest$ac_exeext'
16707   { (case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_try") 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; }; then
16716   ac_cv_lib_gcc___cmpdi2=yes
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721         ac_cv_lib_gcc___cmpdi2=no
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext \
16725       conftest$ac_exeext conftest.$ac_ext
16726 LIBS=$ac_check_lib_save_LIBS
16727 fi
16728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16729 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16730 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16731
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE___CMPDI2 1
16734 _ACEOF
16735
16736 fi
16737
16738 fi
16739
16740 if test "$llvm_cv_os_type" = "MingW" ; then
16741   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16742 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16743   cat >conftest.$ac_ext <<_ACEOF
16744
16745   /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750
16751     #include <windows.h>
16752     #include <imagehlp.h>
16753     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16754     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16755
16756
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_compile") 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773   { (case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_try") 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest.$ac_objext'
16783   { (case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_try") 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792
16793   { echo "$as_me:$LINENO: result: yes" >&5
16794 echo "${ECHO_T}yes" >&6; }
16795   llvm_cv_win32_elmcb_pcstr="PCSTR"
16796
16797 else
16798   echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16800
16801
16802   { echo "$as_me:$LINENO: result: no" >&5
16803 echo "${ECHO_T}no" >&6; }
16804   llvm_cv_win32_elmcb_pcstr="PSTR"
16805
16806 fi
16807
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809
16810 cat >>confdefs.h <<_ACEOF
16811 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16812 _ACEOF
16813
16814 fi
16815
16816 if test "$llvm_cv_platform_type" = "Unix" ; then
16817
16818
16819 for ac_header in stdlib.h unistd.h
16820 do
16821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16823   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 fi
16828 ac_res=`eval echo '${'$as_ac_Header'}'`
16829                { echo "$as_me:$LINENO: result: $ac_res" >&5
16830 echo "${ECHO_T}$ac_res" >&6; }
16831 else
16832   # Is the header compilable?
16833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h.  */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h.  */
16841 $ac_includes_default
16842 #include <$ac_header>
16843 _ACEOF
16844 rm -f conftest.$ac_objext
16845 if { (ac_try="$ac_compile"
16846 case "(($ac_try" in
16847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848   *) ac_try_echo=$ac_try;;
16849 esac
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851   (eval "$ac_compile") 2>conftest.er1
16852   ac_status=$?
16853   grep -v '^ *+' conftest.er1 >conftest.err
16854   rm -f conftest.er1
16855   cat conftest.err >&5
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); } &&
16858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16859   { (case "(($ac_try" in
16860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861   *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864   (eval "$ac_try") 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; } &&
16868          { ac_try='test -s conftest.$ac_objext'
16869   { (case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_try") 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; }; then
16878   ac_header_compiler=yes
16879 else
16880   echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883         ac_header_compiler=no
16884 fi
16885
16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16888 echo "${ECHO_T}$ac_header_compiler" >&6; }
16889
16890 # Is the header present?
16891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16893 cat >conftest.$ac_ext <<_ACEOF
16894 /* confdefs.h.  */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h.  */
16899 #include <$ac_header>
16900 _ACEOF
16901 if { (ac_try="$ac_cpp conftest.$ac_ext"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } >/dev/null; then
16914   if test -s conftest.err; then
16915     ac_cpp_err=$ac_c_preproc_warn_flag
16916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16917   else
16918     ac_cpp_err=
16919   fi
16920 else
16921   ac_cpp_err=yes
16922 fi
16923 if test -z "$ac_cpp_err"; then
16924   ac_header_preproc=yes
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929   ac_header_preproc=no
16930 fi
16931
16932 rm -f conftest.err conftest.$ac_ext
16933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16934 echo "${ECHO_T}$ac_header_preproc" >&6; }
16935
16936 # So?  What about this header?
16937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16938   yes:no: )
16939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16943     ac_header_preproc=yes
16944     ;;
16945   no:yes:* )
16946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16958     ( cat <<\_ASBOX
16959 ## ------------------------------------ ##
16960 ## Report this to http://llvm.org/bugs/ ##
16961 ## ------------------------------------ ##
16962 _ASBOX
16963      ) | sed "s/^/$as_me: WARNING:     /" >&2
16964     ;;
16965 esac
16966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   eval "$as_ac_Header=\$ac_header_preproc"
16972 fi
16973 ac_res=`eval echo '${'$as_ac_Header'}'`
16974                { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976
16977 fi
16978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16979   cat >>confdefs.h <<_ACEOF
16980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981 _ACEOF
16982
16983 fi
16984
16985 done
16986
16987
16988 for ac_func in getpagesize
16989 do
16990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16994   echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996   cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17004 #define $ac_func innocuous_$ac_func
17005
17006 /* System header to define __stub macros and hopefully few prototypes,
17007     which can conflict with char $ac_func (); below.
17008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17009     <limits.h> exists even on freestanding compilers.  */
17010
17011 #ifdef __STDC__
17012 # include <limits.h>
17013 #else
17014 # include <assert.h>
17015 #endif
17016
17017 #undef $ac_func
17018
17019 /* Override any GCC internal prototype to avoid an error.
17020    Use char because int might match the return type of a GCC
17021    builtin and then its argument prototype would still apply.  */
17022 #ifdef __cplusplus
17023 extern "C"
17024 #endif
17025 char $ac_func ();
17026 /* The GNU C library defines this for functions which it implements
17027     to always fail with ENOSYS.  Some functions are actually named
17028     something starting with __ and the normal name is an alias.  */
17029 #if defined __stub_$ac_func || defined __stub___$ac_func
17030 choke me
17031 #endif
17032
17033 int
17034 main ()
17035 {
17036 return $ac_func ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_link") 2>conftest.er1
17049   ac_status=$?
17050   grep -v '^ *+' conftest.er1 >conftest.err
17051   rm -f conftest.er1
17052   cat conftest.err >&5
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } &&
17055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest$ac_exeext'
17066   { (case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_try") 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); }; }; then
17075   eval "$as_ac_var=yes"
17076 else
17077   echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080         eval "$as_ac_var=no"
17081 fi
17082
17083 rm -f core conftest.err conftest.$ac_objext \
17084       conftest$ac_exeext conftest.$ac_ext
17085 fi
17086 ac_res=`eval echo '${'$as_ac_var'}'`
17087                { echo "$as_me:$LINENO: result: $ac_res" >&5
17088 echo "${ECHO_T}$ac_res" >&6; }
17089 if test `eval echo '${'$as_ac_var'}'` = yes; then
17090   cat >>confdefs.h <<_ACEOF
17091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17092 _ACEOF
17093
17094 fi
17095 done
17096
17097 { echo "$as_me:$LINENO: checking for working mmap" >&5
17098 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17099 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17100   echo $ECHO_N "(cached) $ECHO_C" >&6
17101 else
17102   if test "$cross_compiling" = yes; then
17103   ac_cv_func_mmap_fixed_mapped=no
17104 else
17105   cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 $ac_includes_default
17112 /* malloc might have been renamed as rpl_malloc. */
17113 #undef malloc
17114
17115 /* Thanks to Mike Haertel and Jim Avera for this test.
17116    Here is a matrix of mmap possibilities:
17117         mmap private not fixed
17118         mmap private fixed at somewhere currently unmapped
17119         mmap private fixed at somewhere already mapped
17120         mmap shared not fixed
17121         mmap shared fixed at somewhere currently unmapped
17122         mmap shared fixed at somewhere already mapped
17123    For private mappings, we should verify that changes cannot be read()
17124    back from the file, nor mmap's back from the file at a different
17125    address.  (There have been systems where private was not correctly
17126    implemented like the infamous i386 svr4.0, and systems where the
17127    VM page cache was not coherent with the file system buffer cache
17128    like early versions of FreeBSD and possibly contemporary NetBSD.)
17129    For shared mappings, we should conversely verify that changes get
17130    propagated back to all the places they're supposed to be.
17131
17132    Grep wants private fixed already mapped.
17133    The main things grep needs to know about mmap are:
17134    * does it exist and is it safe to write into the mmap'd area
17135    * how to use it (BSD variants)  */
17136
17137 #include <fcntl.h>
17138 #include <sys/mman.h>
17139
17140 #if !STDC_HEADERS && !HAVE_STDLIB_H
17141 char *malloc ();
17142 #endif
17143
17144 /* This mess was copied from the GNU getpagesize.h.  */
17145 #if !HAVE_GETPAGESIZE
17146 /* Assume that all systems that can run configure have sys/param.h.  */
17147 # if !HAVE_SYS_PARAM_H
17148 #  define HAVE_SYS_PARAM_H 1
17149 # endif
17150
17151 # ifdef _SC_PAGESIZE
17152 #  define getpagesize() sysconf(_SC_PAGESIZE)
17153 # else /* no _SC_PAGESIZE */
17154 #  if HAVE_SYS_PARAM_H
17155 #   include <sys/param.h>
17156 #   ifdef EXEC_PAGESIZE
17157 #    define getpagesize() EXEC_PAGESIZE
17158 #   else /* no EXEC_PAGESIZE */
17159 #    ifdef NBPG
17160 #     define getpagesize() NBPG * CLSIZE
17161 #     ifndef CLSIZE
17162 #      define CLSIZE 1
17163 #     endif /* no CLSIZE */
17164 #    else /* no NBPG */
17165 #     ifdef NBPC
17166 #      define getpagesize() NBPC
17167 #     else /* no NBPC */
17168 #      ifdef PAGESIZE
17169 #       define getpagesize() PAGESIZE
17170 #      endif /* PAGESIZE */
17171 #     endif /* no NBPC */
17172 #    endif /* no NBPG */
17173 #   endif /* no EXEC_PAGESIZE */
17174 #  else /* no HAVE_SYS_PARAM_H */
17175 #   define getpagesize() 8192   /* punt totally */
17176 #  endif /* no HAVE_SYS_PARAM_H */
17177 # endif /* no _SC_PAGESIZE */
17178
17179 #endif /* no HAVE_GETPAGESIZE */
17180
17181 int
17182 main ()
17183 {
17184   char *data, *data2, *data3;
17185   int i, pagesize;
17186   int fd;
17187
17188   pagesize = getpagesize ();
17189
17190   /* First, make a file with some known garbage in it. */
17191   data = (char *) malloc (pagesize);
17192   if (!data)
17193     return 1;
17194   for (i = 0; i < pagesize; ++i)
17195     *(data + i) = rand ();
17196   umask (0);
17197   fd = creat ("conftest.mmap", 0600);
17198   if (fd < 0)
17199     return 1;
17200   if (write (fd, data, pagesize) != pagesize)
17201     return 1;
17202   close (fd);
17203
17204   /* Next, try to mmap the file at a fixed address which already has
17205      something else allocated at it.  If we can, also make sure that
17206      we see the same garbage.  */
17207   fd = open ("conftest.mmap", O_RDWR);
17208   if (fd < 0)
17209     return 1;
17210   data2 = (char *) malloc (2 * pagesize);
17211   if (!data2)
17212     return 1;
17213   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17214   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17215                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17216     return 1;
17217   for (i = 0; i < pagesize; ++i)
17218     if (*(data + i) != *(data2 + i))
17219       return 1;
17220
17221   /* Finally, make sure that changes to the mapped area do not
17222      percolate back to the file as seen by read().  (This is a bug on
17223      some variants of i386 svr4.0.)  */
17224   for (i = 0; i < pagesize; ++i)
17225     *(data2 + i) = *(data2 + i) + 1;
17226   data3 = (char *) malloc (pagesize);
17227   if (!data3)
17228     return 1;
17229   if (read (fd, data3, pagesize) != pagesize)
17230     return 1;
17231   for (i = 0; i < pagesize; ++i)
17232     if (*(data + i) != *(data3 + i))
17233       return 1;
17234   close (fd);
17235   return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242   *) ac_try_echo=$ac_try;;
17243 esac
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245   (eval "$ac_link") 2>&5
17246   ac_status=$?
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17249   { (case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_try") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_cv_func_mmap_fixed_mapped=yes
17259 else
17260   echo "$as_me: program exited with status $ac_status" >&5
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ( exit $ac_status )
17265 ac_cv_func_mmap_fixed_mapped=no
17266 fi
17267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17268 fi
17269
17270
17271 fi
17272 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17273 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17274 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17275
17276 cat >>confdefs.h <<\_ACEOF
17277 #define HAVE_MMAP 1
17278 _ACEOF
17279
17280 fi
17281 rm -f conftest.mmap
17282
17283   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17284 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17285 if test "${ac_cv_func_mmap_file+set}" = set; then
17286   echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288    ac_ext=c
17289 ac_cpp='$CPP $CPPFLAGS'
17290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17293
17294   if test "$cross_compiling" = yes; then
17295   ac_cv_func_mmap_file=no
17296 else
17297   cat >conftest.$ac_ext <<_ACEOF
17298
17299     /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304
17305 #include <sys/types.h>
17306 #include <sys/mman.h>
17307 #include <fcntl.h>
17308
17309 int
17310 main ()
17311 {
17312
17313   int fd;
17314   fd = creat ("foo",0777);
17315   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17316   unlink ("foo");
17317   return (fd != (int) MAP_FAILED);
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326   *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329   (eval "$ac_link") 2>&5
17330   ac_status=$?
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17333   { (case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338   (eval "$ac_try") 2>&5
17339   ac_status=$?
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); }; }; then
17342   ac_cv_func_mmap_file=yes
17343 else
17344   echo "$as_me: program exited with status $ac_status" >&5
17345 echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 ( exit $ac_status )
17349 ac_cv_func_mmap_file=no
17350 fi
17351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17352 fi
17353
17354
17355   ac_ext=c
17356 ac_cpp='$CPP $CPPFLAGS'
17357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17360
17361
17362 fi
17363 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17364 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17365 if test "$ac_cv_func_mmap_file" = yes; then
17366
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_MMAP_FILE
17369 _ACEOF
17370
17371    MMAP_FILE=yes
17372
17373 fi
17374
17375   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17376 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17377 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17378   echo $ECHO_N "(cached) $ECHO_C" >&6
17379 else
17380   if test "$llvm_cv_os_type" = "Interix" ; then
17381    ac_cv_need_dev_zero_for_mmap=yes
17382  else
17383    ac_cv_need_dev_zero_for_mmap=no
17384  fi
17385
17386 fi
17387 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17388 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17389 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define NEED_DEV_ZERO_FOR_MMAP 1
17393 _ACEOF
17394
17395 fi
17396
17397   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17398   then
17399     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17400 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17401   fi
17402   if test "$ac_cv_func_mmap_file" = "no"
17403   then
17404     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17405 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17406   fi
17407 fi
17408
17409 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17410 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17411 ac_ext=cpp
17412 ac_cpp='$CXXCPP $CPPFLAGS'
17413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17416
17417 cat >conftest.$ac_ext <<_ACEOF
17418
17419   /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424
17425     int main() {
17426       volatile unsigned long val = 1;
17427       __sync_synchronize();
17428       __sync_val_compare_and_swap(&val, 1, 0);
17429       __sync_add_and_fetch(&val, 1);
17430       __sync_sub_and_fetch(&val, 1);
17431       return 0;
17432     }
17433
17434
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440   *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443   (eval "$ac_link") 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17451   { (case "(($ac_try" in
17452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453   *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456   (eval "$ac_try") 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest$ac_exeext'
17461   { (case "(($ac_try" in
17462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463   *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466   (eval "$ac_try") 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; }; then
17470
17471   { echo "$as_me:$LINENO: result: yes" >&5
17472 echo "${ECHO_T}yes" >&6; }
17473
17474 cat >>confdefs.h <<\_ACEOF
17475 #define LLVM_HAS_ATOMICS 1
17476 _ACEOF
17477
17478
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483
17484   { echo "$as_me:$LINENO: result: no" >&5
17485 echo "${ECHO_T}no" >&6; }
17486
17487 cat >>confdefs.h <<\_ACEOF
17488 #define LLVM_HAS_ATOMICS 0
17489 _ACEOF
17490
17491   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17492 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17493
17494 fi
17495
17496 rm -f core conftest.err conftest.$ac_objext \
17497       conftest$ac_exeext conftest.$ac_ext
17498 ac_ext=c
17499 ac_cpp='$CPP $CPPFLAGS'
17500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503
17504
17505
17506 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17507   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17508 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17509 if test "${llvm_cv_linux_mixed+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512    ac_ext=c
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517
17518   cat >conftest.$ac_ext <<_ACEOF
17519 /* confdefs.h.  */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h.  */
17524 #ifndef __x86_64__
17525        error: Not x86-64 even if uname says so!
17526       #endif
17527
17528 int
17529 main ()
17530 {
17531
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext
17537 if { (ac_try="$ac_compile"
17538 case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_compile") 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } &&
17550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551   { (case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_try") 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; } &&
17560          { ac_try='test -s conftest.$ac_objext'
17561   { (case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_try") 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; }; then
17570   llvm_cv_linux_mixed=no
17571 else
17572   echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575         llvm_cv_linux_mixed=yes
17576 fi
17577
17578 rm -f core conftest.err conftest.$ac_objext 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 fi
17587 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17588 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17589
17590   if test "$llvm_cv_linux_mixed" = "yes"; then
17591     llvm_cv_target_arch="x86"
17592     ARCH="x86"
17593   fi
17594 fi
17595
17596
17597 for ac_func in __dso_handle
17598 do
17599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17603   echo $ECHO_N "(cached) $ECHO_C" >&6
17604 else
17605   cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17613 #define $ac_func innocuous_$ac_func
17614
17615 /* System header to define __stub macros and hopefully few prototypes,
17616     which can conflict with char $ac_func (); below.
17617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17618     <limits.h> exists even on freestanding compilers.  */
17619
17620 #ifdef __STDC__
17621 # include <limits.h>
17622 #else
17623 # include <assert.h>
17624 #endif
17625
17626 #undef $ac_func
17627
17628 /* Override any GCC internal prototype to avoid an error.
17629    Use char because int might match the return type of a GCC
17630    builtin and then its argument prototype would still apply.  */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char $ac_func ();
17635 /* The GNU C library defines this for functions which it implements
17636     to always fail with ENOSYS.  Some functions are actually named
17637     something starting with __ and the normal name is an alias.  */
17638 #if defined __stub_$ac_func || defined __stub___$ac_func
17639 choke me
17640 #endif
17641
17642 int
17643 main ()
17644 {
17645 return $ac_func ();
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (ac_try="$ac_link"
17652 case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657   (eval "$ac_link") 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17665   { (case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_try") 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; } &&
17674          { ac_try='test -s conftest$ac_exeext'
17675   { (case "(($ac_try" in
17676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677   *) ac_try_echo=$ac_try;;
17678 esac
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680   (eval "$ac_try") 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; }; then
17684   eval "$as_ac_var=yes"
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         eval "$as_ac_var=no"
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext \
17693       conftest$ac_exeext conftest.$ac_ext
17694 fi
17695 ac_res=`eval echo '${'$as_ac_var'}'`
17696                { echo "$as_me:$LINENO: result: $ac_res" >&5
17697 echo "${ECHO_T}$ac_res" >&6; }
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699   cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17701 _ACEOF
17702
17703 fi
17704 done
17705
17706
17707 SHLIBEXT=$llvm_shlib_ext
17708
17709
17710 if test "${prefix}" = "NONE" ; then
17711   prefix="/usr/local"
17712 fi
17713 eval LLVM_PREFIX="${prefix}";
17714 eval LLVM_BINDIR="${prefix}/bin";
17715 eval LLVM_DATADIR="${prefix}/share/llvm";
17716 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17717 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17718 eval LLVM_INCLUDEDIR="${prefix}/include";
17719 eval LLVM_INFODIR="${prefix}/info";
17720 eval LLVM_MANDIR="${prefix}/man";
17721 LLVM_CONFIGTIME=`date`
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17733   LLVM_CONFIGTIME="(timestamp not enabled)"
17734 fi
17735
17736
17737 cat >>confdefs.h <<_ACEOF
17738 #define LLVM_PREFIX "$LLVM_PREFIX"
17739 _ACEOF
17740
17741
17742 cat >>confdefs.h <<_ACEOF
17743 #define LLVM_BINDIR "$LLVM_BINDIR"
17744 _ACEOF
17745
17746
17747 cat >>confdefs.h <<_ACEOF
17748 #define LLVM_DATADIR "$LLVM_DATADIR"
17749 _ACEOF
17750
17751
17752 cat >>confdefs.h <<_ACEOF
17753 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17754 _ACEOF
17755
17756
17757 cat >>confdefs.h <<_ACEOF
17758 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17759 _ACEOF
17760
17761
17762 cat >>confdefs.h <<_ACEOF
17763 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17764 _ACEOF
17765
17766
17767 cat >>confdefs.h <<_ACEOF
17768 #define LLVM_INFODIR "$LLVM_INFODIR"
17769 _ACEOF
17770
17771
17772 cat >>confdefs.h <<_ACEOF
17773 #define LLVM_MANDIR "$LLVM_MANDIR"
17774 _ACEOF
17775
17776
17777 cat >>confdefs.h <<_ACEOF
17778 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17779 _ACEOF
17780
17781
17782 cat >>confdefs.h <<_ACEOF
17783 #define LLVM_HOST_TRIPLE "$host"
17784 _ACEOF
17785
17786
17787 cat >>confdefs.h <<_ACEOF
17788 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17789 _ACEOF
17790
17791
17792 if test "$BINDINGS_TO_BUILD" = auto ; then
17793   BINDINGS_TO_BUILD=""
17794   if test "x$OCAMLFIND" != x ; then
17795     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17796   fi
17797   if test "x$GO" != x ; then
17798     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17799       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17800     fi
17801   fi
17802 fi
17803 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17804
17805
17806 binding_prereqs_failed=0
17807 for a_binding in $BINDINGS_TO_BUILD ; do
17808   case "$a_binding" in
17809   ocaml)
17810     if test "x$OCAMLFIND" = x ; then
17811       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17812 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17813       binding_prereqs_failed=1
17814     fi
17815
17816     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17817       HAVE_OCAMLOPT=1
17818     else
17819       HAVE_OCAMLOPT=0
17820     fi
17821
17822
17823     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17824       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17825 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17826       binding_prereqs_failed=1
17827     fi
17828
17829     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17830       HAVE_OCAML_OUNIT=1
17831     else
17832       HAVE_OCAML_OUNIT=0
17833       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17834 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17835           fi
17836
17837
17838     if test "x$with_ocaml_libdir" != xauto ; then
17839       OCAML_LIBDIR=$with_ocaml_libdir
17840
17841     else
17842       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17843       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17844       then
17845         # ocaml stdlib is beneath our prefix; use stdlib
17846         OCAML_LIBDIR=$ocaml_stdlib
17847
17848       else
17849         # ocaml stdlib is outside our prefix; use libdir/ocaml
17850         OCAML_LIBDIR=${prefix}/lib/ocaml
17851
17852       fi
17853     fi
17854     ;;
17855   go)
17856     if test "x$GO" = x ; then
17857       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17858 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17859       binding_prereqs_failed=1
17860     else
17861       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17862         :
17863       else
17864         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17865 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17866         binding_prereqs_failed=1
17867       fi
17868     fi
17869     ;;
17870   esac
17871 done
17872 if test "$binding_prereqs_failed" = 1 ; then
17873   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17874 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17875    { (exit 1); exit 1; }; }
17876 fi
17877
17878 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17879 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17880 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883    ac_ext=cpp
17884 ac_cpp='$CXXCPP $CPPFLAGS'
17885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17888
17889   oldcxxflags="$CXXFLAGS"
17890   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17891   cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17898 int
17899 main ()
17900 {
17901 X<int>().f();
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_compile") 2>conftest.er1
17914   ac_status=$?
17915   grep -v '^ *+' conftest.er1 >conftest.err
17916   rm -f conftest.er1
17917   cat conftest.err >&5
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } &&
17920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17921   { (case "(($ac_try" in
17922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923   *) ac_try_echo=$ac_try;;
17924 esac
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926   (eval "$ac_try") 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); }; } &&
17930          { ac_try='test -s conftest.$ac_objext'
17931   { (case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_try") 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; }; then
17940   llvm_cv_cxx_visibility_inlines_hidden=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945         llvm_cv_cxx_visibility_inlines_hidden=no
17946 fi
17947
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949   CXXFLAGS="$oldcxxflags"
17950   ac_ext=c
17951 ac_cpp='$CPP $CPPFLAGS'
17952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17955
17956
17957 fi
17958 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17959 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17960 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17961   ENABLE_VISIBILITY_INLINES_HIDDEN=1
17962
17963 else
17964   ENABLE_VISIBILITY_INLINES_HIDDEN=0
17965
17966 fi
17967
17968
17969 if test "$llvm_cv_link_use_r" = "yes" ; then
17970   RPATH="-Wl,-R"
17971 else
17972   RPATH="-Wl,-rpath"
17973 fi
17974
17975
17976 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17977   RDYNAMIC="-rdynamic"
17978 else
17979   RDYNAMIC=""
17980 fi
17981
17982
17983
17984 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17985
17986
17987
17988
17989
17990
17991 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17992
17993 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17994
17995 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17996
17997 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17998
17999 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18000
18001
18002 ac_config_files="$ac_config_files Makefile.config"
18003
18004
18005 ac_config_files="$ac_config_files llvm.spec"
18006
18007
18008 ac_config_files="$ac_config_files docs/doxygen.cfg"
18009
18010
18011 if test "${clang_src_root}" = ""; then
18012   clang_src_root="$srcdir/tools/clang"
18013 fi
18014 if test -f ${clang_src_root}/README.txt; then
18015
18016 cat >>confdefs.h <<_ACEOF
18017 #define CLANG_LIBDIR_SUFFIX ""
18018 _ACEOF
18019
18020
18021     configh="include/clang/Config/config.h"
18022   doxy="docs/doxygen.cfg"
18023   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18024
18025   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18026
18027 fi
18028
18029 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18030
18031
18032 test "x$program_prefix" = "xNONE" && program_prefix=""
18033
18034
18035
18036 ac_config_commands="$ac_config_commands setup"
18037
18038 ac_config_commands="$ac_config_commands Makefile"
18039
18040
18041 ac_config_commands="$ac_config_commands Makefile.common"
18042
18043
18044 ac_config_commands="$ac_config_commands examples/Makefile"
18045
18046
18047 ac_config_commands="$ac_config_commands lib/Makefile"
18048
18049
18050 ac_config_commands="$ac_config_commands test/Makefile"
18051
18052
18053 ac_config_commands="$ac_config_commands test/Makefile.tests"
18054
18055
18056 ac_config_commands="$ac_config_commands unittests/Makefile"
18057
18058
18059 ac_config_commands="$ac_config_commands tools/Makefile"
18060
18061
18062 ac_config_commands="$ac_config_commands utils/Makefile"
18063
18064
18065 ac_config_commands="$ac_config_commands projects/Makefile"
18066
18067
18068 ac_config_commands="$ac_config_commands bindings/Makefile"
18069
18070
18071 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18072
18073
18074
18075 cat >confcache <<\_ACEOF
18076 # This file is a shell script that caches the results of configure
18077 # tests run on this system so they can be shared between configure
18078 # scripts and configure runs, see configure's option --config-cache.
18079 # It is not useful on other systems.  If it contains results you don't
18080 # want to keep, you may remove or edit it.
18081 #
18082 # config.status only pays attention to the cache file if you give it
18083 # the --recheck option to rerun configure.
18084 #
18085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18087 # following values.
18088
18089 _ACEOF
18090
18091 # The following way of writing the cache mishandles newlines in values,
18092 # but we know of no workaround that is simple, portable, and efficient.
18093 # So, we kill variables containing newlines.
18094 # Ultrix sh set writes to stderr and can't be redirected directly,
18095 # and sets the high bit in the cache file unless we assign to the vars.
18096 (
18097   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18098     eval ac_val=\$$ac_var
18099     case $ac_val in #(
18100     *${as_nl}*)
18101       case $ac_var in #(
18102       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18103 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18104       esac
18105       case $ac_var in #(
18106       _ | IFS | as_nl) ;; #(
18107       *) $as_unset $ac_var ;;
18108       esac ;;
18109     esac
18110   done
18111
18112   (set) 2>&1 |
18113     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18114     *${as_nl}ac_space=\ *)
18115       # `set' does not quote correctly, so add quotes (double-quote
18116       # substitution turns \\\\ into \\, and sed turns \\ into \).
18117       sed -n \
18118         "s/'/'\\\\''/g;
18119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18120       ;; #(
18121     *)
18122       # `set' quotes correctly as required by POSIX, so do not add quotes.
18123       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18124       ;;
18125     esac |
18126     sort
18127 ) |
18128   sed '
18129      /^ac_cv_env_/b end
18130      t clear
18131      :clear
18132      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18133      t end
18134      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18135      :end' >>confcache
18136 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18137   if test -w "$cache_file"; then
18138     test "x$cache_file" != "x/dev/null" &&
18139       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18140 echo "$as_me: updating cache $cache_file" >&6;}
18141     cat confcache >$cache_file
18142   else
18143     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18144 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18145   fi
18146 fi
18147 rm -f confcache
18148
18149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18150 # Let make expand exec_prefix.
18151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18152
18153 DEFS=-DHAVE_CONFIG_H
18154
18155 ac_libobjs=
18156 ac_ltlibobjs=
18157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18158   # 1. Remove the extension, and $U if already installed.
18159   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18160   ac_i=`echo "$ac_i" | sed "$ac_script"`
18161   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18162   #    will be set to the directory where LIBOBJS objects are built.
18163   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18164   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18165 done
18166 LIBOBJS=$ac_libobjs
18167
18168 LTLIBOBJS=$ac_ltlibobjs
18169
18170
18171
18172 : ${CONFIG_STATUS=./config.status}
18173 ac_clean_files_save=$ac_clean_files
18174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18175 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18176 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18177 cat >$CONFIG_STATUS <<_ACEOF
18178 #! $SHELL
18179 # Generated by $as_me.
18180 # Run this file to recreate the current configuration.
18181 # Compiler output produced by configure, useful for debugging
18182 # configure, is in config.log if it exists.
18183
18184 debug=false
18185 ac_cs_recheck=false
18186 ac_cs_silent=false
18187 SHELL=\${CONFIG_SHELL-$SHELL}
18188 _ACEOF
18189
18190 cat >>$CONFIG_STATUS <<\_ACEOF
18191 ## --------------------- ##
18192 ## M4sh Initialization.  ##
18193 ## --------------------- ##
18194
18195 # Be Bourne compatible
18196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18197   emulate sh
18198   NULLCMD=:
18199   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18200   # is contrary to our usage.  Disable this feature.
18201   alias -g '${1+"$@"}'='"$@"'
18202   setopt NO_GLOB_SUBST
18203 else
18204   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18205 fi
18206 BIN_SH=xpg4; export BIN_SH # for Tru64
18207 DUALCASE=1; export DUALCASE # for MKS sh
18208
18209
18210 # PATH needs CR
18211 # Avoid depending upon Character Ranges.
18212 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18213 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18214 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18215 as_cr_digits='0123456789'
18216 as_cr_alnum=$as_cr_Letters$as_cr_digits
18217
18218 # The user is always right.
18219 if test "${PATH_SEPARATOR+set}" != set; then
18220   echo "#! /bin/sh" >conf$$.sh
18221   echo  "exit 0"   >>conf$$.sh
18222   chmod +x conf$$.sh
18223   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18224     PATH_SEPARATOR=';'
18225   else
18226     PATH_SEPARATOR=:
18227   fi
18228   rm -f conf$$.sh
18229 fi
18230
18231 # Support unset when possible.
18232 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18233   as_unset=unset
18234 else
18235   as_unset=false
18236 fi
18237
18238
18239 # IFS
18240 # We need space, tab and new line, in precisely that order.  Quoting is
18241 # there to prevent editors from complaining about space-tab.
18242 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18243 # splitting by setting IFS to empty value.)
18244 as_nl='
18245 '
18246 IFS=" ""        $as_nl"
18247
18248 # Find who we are.  Look in the path if we contain no directory separator.
18249 case $0 in
18250   *[\\/]* ) as_myself=$0 ;;
18251   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 for as_dir in $PATH
18253 do
18254   IFS=$as_save_IFS
18255   test -z "$as_dir" && as_dir=.
18256   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18257 done
18258 IFS=$as_save_IFS
18259
18260      ;;
18261 esac
18262 # We did not find ourselves, most probably we were run as `sh COMMAND'
18263 # in which case we are not to be found in the path.
18264 if test "x$as_myself" = x; then
18265   as_myself=$0
18266 fi
18267 if test ! -f "$as_myself"; then
18268   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18269   { (exit 1); exit 1; }
18270 fi
18271
18272 # Work around bugs in pre-3.0 UWIN ksh.
18273 for as_var in ENV MAIL MAILPATH
18274 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18275 done
18276 PS1='$ '
18277 PS2='> '
18278 PS4='+ '
18279
18280 # NLS nuisances.
18281 for as_var in \
18282   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18283   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18284   LC_TELEPHONE LC_TIME
18285 do
18286   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18287     eval $as_var=C; export $as_var
18288   else
18289     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18290   fi
18291 done
18292
18293 # Required to use basename.
18294 if expr a : '\(a\)' >/dev/null 2>&1 &&
18295    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18296   as_expr=expr
18297 else
18298   as_expr=false
18299 fi
18300
18301 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18302   as_basename=basename
18303 else
18304   as_basename=false
18305 fi
18306
18307
18308 # Name of the executable.
18309 as_me=`$as_basename -- "$0" ||
18310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18311          X"$0" : 'X\(//\)$' \| \
18312          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18313 echo X/"$0" |
18314     sed '/^.*\/\([^/][^/]*\)\/*$/{
18315             s//\1/
18316             q
18317           }
18318           /^X\/\(\/\/\)$/{
18319             s//\1/
18320             q
18321           }
18322           /^X\/\(\/\).*/{
18323             s//\1/
18324             q
18325           }
18326           s/.*/./; q'`
18327
18328 # CDPATH.
18329 $as_unset CDPATH
18330
18331
18332
18333   as_lineno_1=$LINENO
18334   as_lineno_2=$LINENO
18335   test "x$as_lineno_1" != "x$as_lineno_2" &&
18336   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18337
18338   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18339   # uniformly replaced by the line number.  The first 'sed' inserts a
18340   # line-number line after each line using $LINENO; the second 'sed'
18341   # does the real work.  The second script uses 'N' to pair each
18342   # line-number line with the line containing $LINENO, and appends
18343   # trailing '-' during substitution so that $LINENO is not a special
18344   # case at line end.
18345   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18346   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18347   # E. McMahon (1931-1989) for sed's syntax.  :-)
18348   sed -n '
18349     p
18350     /[$]LINENO/=
18351   ' <$as_myself |
18352     sed '
18353       s/[$]LINENO.*/&-/
18354       t lineno
18355       b
18356       :lineno
18357       N
18358       :loop
18359       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18360       t loop
18361       s/-\n.*//
18362     ' >$as_me.lineno &&
18363   chmod +x "$as_me.lineno" ||
18364     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18365    { (exit 1); exit 1; }; }
18366
18367   # Don't try to exec as it changes $[0], causing all sort of problems
18368   # (the dirname of $[0] is not the place where we might find the
18369   # original and so on.  Autoconf is especially sensitive to this).
18370   . "./$as_me.lineno"
18371   # Exit status is that of the last command.
18372   exit
18373 }
18374
18375
18376 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18377   as_dirname=dirname
18378 else
18379   as_dirname=false
18380 fi
18381
18382 ECHO_C= ECHO_N= ECHO_T=
18383 case `echo -n x` in
18384 -n*)
18385   case `echo 'x\c'` in
18386   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18387   *)   ECHO_C='\c';;
18388   esac;;
18389 *)
18390   ECHO_N='-n';;
18391 esac
18392
18393 if expr a : '\(a\)' >/dev/null 2>&1 &&
18394    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18395   as_expr=expr
18396 else
18397   as_expr=false
18398 fi
18399
18400 rm -f conf$$ conf$$.exe conf$$.file
18401 if test -d conf$$.dir; then
18402   rm -f conf$$.dir/conf$$.file
18403 else
18404   rm -f conf$$.dir
18405   mkdir conf$$.dir
18406 fi
18407 echo >conf$$.file
18408 if ln -s conf$$.file conf$$ 2>/dev/null; then
18409   as_ln_s='ln -s'
18410   # ... but there are two gotchas:
18411   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18412   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18413   # In both cases, we have to default to `cp -p'.
18414   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18415     as_ln_s='cp -p'
18416 elif ln conf$$.file conf$$ 2>/dev/null; then
18417   as_ln_s=ln
18418 else
18419   as_ln_s='cp -p'
18420 fi
18421 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18422 rmdir conf$$.dir 2>/dev/null
18423
18424 if mkdir -p . 2>/dev/null; then
18425   as_mkdir_p=:
18426 else
18427   test -d ./-p && rmdir ./-p
18428   as_mkdir_p=false
18429 fi
18430
18431 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18432 # systems may use methods other than mode bits to determine executability.
18433 cat >conf$$.file <<_ASEOF
18434 #! /bin/sh
18435 exit 0
18436 _ASEOF
18437 chmod +x conf$$.file
18438 if test -x conf$$.file >/dev/null 2>&1; then
18439   as_executable_p="test -x"
18440 else
18441   as_executable_p=:
18442 fi
18443 rm -f conf$$.file
18444
18445 # Sed expression to map a string onto a valid CPP name.
18446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18447
18448 # Sed expression to map a string onto a valid variable name.
18449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18450
18451
18452 exec 6>&1
18453
18454 # Save the log message, to keep $[0] and so on meaningful, and to
18455 # report actual input values of CONFIG_FILES etc. instead of their
18456 # values after options handling.
18457 ac_log="
18458 This file was extended by LLVM $as_me 3.7.0svn, which was
18459 generated by GNU Autoconf 2.60.  Invocation command line was
18460
18461   CONFIG_FILES    = $CONFIG_FILES
18462   CONFIG_HEADERS  = $CONFIG_HEADERS
18463   CONFIG_LINKS    = $CONFIG_LINKS
18464   CONFIG_COMMANDS = $CONFIG_COMMANDS
18465   $ $0 $@
18466
18467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18468 "
18469
18470 _ACEOF
18471
18472 cat >>$CONFIG_STATUS <<_ACEOF
18473 # Files that config.status was made for.
18474 config_files="$ac_config_files"
18475 config_headers="$ac_config_headers"
18476 config_commands="$ac_config_commands"
18477
18478 _ACEOF
18479
18480 cat >>$CONFIG_STATUS <<\_ACEOF
18481 ac_cs_usage="\
18482 \`$as_me' instantiates files from templates according to the
18483 current configuration.
18484
18485 Usage: $0 [OPTIONS] [FILE]...
18486
18487   -h, --help       print this help, then exit
18488   -V, --version    print version number, then exit
18489   -q, --quiet      do not print progress messages
18490   -d, --debug      don't remove temporary files
18491       --recheck    update $as_me by reconfiguring in the same conditions
18492   --file=FILE[:TEMPLATE]
18493                    instantiate the configuration file FILE
18494   --header=FILE[:TEMPLATE]
18495                    instantiate the configuration header FILE
18496
18497 Configuration files:
18498 $config_files
18499
18500 Configuration headers:
18501 $config_headers
18502
18503 Configuration commands:
18504 $config_commands
18505
18506 Report bugs to <bug-autoconf@gnu.org>."
18507
18508 _ACEOF
18509 cat >>$CONFIG_STATUS <<_ACEOF
18510 ac_cs_version="\\
18511 LLVM config.status 3.7.0svn
18512 configured by $0, generated by GNU Autoconf 2.60,
18513   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18514
18515 Copyright (C) 2006 Free Software Foundation, Inc.
18516 This config.status script is free software; the Free Software Foundation
18517 gives unlimited permission to copy, distribute and modify it."
18518
18519 ac_pwd='$ac_pwd'
18520 srcdir='$srcdir'
18521 INSTALL='$INSTALL'
18522 _ACEOF
18523
18524 cat >>$CONFIG_STATUS <<\_ACEOF
18525 # If no file are specified by the user, then we need to provide default
18526 # value.  By we need to know if files were specified by the user.
18527 ac_need_defaults=:
18528 while test $# != 0
18529 do
18530   case $1 in
18531   --*=*)
18532     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18533     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18534     ac_shift=:
18535     ;;
18536   *)
18537     ac_option=$1
18538     ac_optarg=$2
18539     ac_shift=shift
18540     ;;
18541   esac
18542
18543   case $ac_option in
18544   # Handling of the options.
18545   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18546     ac_cs_recheck=: ;;
18547   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18548     echo "$ac_cs_version"; exit ;;
18549   --debug | --debu | --deb | --de | --d | -d )
18550     debug=: ;;
18551   --file | --fil | --fi | --f )
18552     $ac_shift
18553     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18554     ac_need_defaults=false;;
18555   --header | --heade | --head | --hea )
18556     $ac_shift
18557     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18558     ac_need_defaults=false;;
18559   --he | --h)
18560     # Conflict between --help and --header
18561     { echo "$as_me: error: ambiguous option: $1
18562 Try \`$0 --help' for more information." >&2
18563    { (exit 1); exit 1; }; };;
18564   --help | --hel | -h )
18565     echo "$ac_cs_usage"; exit ;;
18566   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18567   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18568     ac_cs_silent=: ;;
18569
18570   # This is an error.
18571   -*) { echo "$as_me: error: unrecognized option: $1
18572 Try \`$0 --help' for more information." >&2
18573    { (exit 1); exit 1; }; } ;;
18574
18575   *) ac_config_targets="$ac_config_targets $1"
18576      ac_need_defaults=false ;;
18577
18578   esac
18579   shift
18580 done
18581
18582 ac_configure_extra_args=
18583
18584 if $ac_cs_silent; then
18585   exec 6>/dev/null
18586   ac_configure_extra_args="$ac_configure_extra_args --silent"
18587 fi
18588
18589 _ACEOF
18590 cat >>$CONFIG_STATUS <<_ACEOF
18591 if \$ac_cs_recheck; then
18592   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18593   CONFIG_SHELL=$SHELL
18594   export CONFIG_SHELL
18595   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18596 fi
18597
18598 _ACEOF
18599 cat >>$CONFIG_STATUS <<\_ACEOF
18600 exec 5>>config.log
18601 {
18602   echo
18603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18604 ## Running $as_me. ##
18605 _ASBOX
18606   echo "$ac_log"
18607 } >&5
18608
18609 _ACEOF
18610 cat >>$CONFIG_STATUS <<_ACEOF
18611 #
18612 # INIT-COMMANDS
18613 #
18614 llvm_src="${srcdir}"
18615
18616 _ACEOF
18617
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619
18620 # Handling of arguments.
18621 for ac_config_target in $ac_config_targets
18622 do
18623   case $ac_config_target in
18624     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18625     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18626     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18627     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18628     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18629     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18630     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18631     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18632     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18633     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18634     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18635     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18636     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18637     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18638     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18639     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18640     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18641     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18642     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18643     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18644     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18645     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18646     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18647     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18648     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18649     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18650
18651   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18652 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18653    { (exit 1); exit 1; }; };;
18654   esac
18655 done
18656
18657
18658 # If the user did not use the arguments to specify the items to instantiate,
18659 # then the envvar interface is used.  Set only those that are not.
18660 # We use the long form for the default assignment because of an extremely
18661 # bizarre bug on SunOS 4.1.3.
18662 if $ac_need_defaults; then
18663   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18664   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18665   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18666 fi
18667
18668 # Have a temporary directory for convenience.  Make it in the build tree
18669 # simply because there is no reason against having it here, and in addition,
18670 # creating and moving files from /tmp can sometimes cause problems.
18671 # Hook for its removal unless debugging.
18672 # Note that there is a small window in which the directory will not be cleaned:
18673 # after its creation but before its name has been assigned to `$tmp'.
18674 $debug ||
18675 {
18676   tmp=
18677   trap 'exit_status=$?
18678   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18679 ' 0
18680   trap '{ (exit 1); exit 1; }' 1 2 13 15
18681 }
18682 # Create a (secure) tmp directory for tmp files.
18683
18684 {
18685   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18686   test -n "$tmp" && test -d "$tmp"
18687 }  ||
18688 {
18689   tmp=./conf$$-$RANDOM
18690   (umask 077 && mkdir "$tmp")
18691 } ||
18692 {
18693    echo "$me: cannot create a temporary directory in ." >&2
18694    { (exit 1); exit 1; }
18695 }
18696
18697 #
18698 # Set up the sed scripts for CONFIG_FILES section.
18699 #
18700
18701 # No need to generate the scripts if there are no CONFIG_FILES.
18702 # This happens for instance when ./config.status config.h
18703 if test -n "$CONFIG_FILES"; then
18704
18705 _ACEOF
18706
18707
18708
18709 ac_delim='%!_!# '
18710 for ac_last_try in false false false false false :; do
18711   cat >conf$$subs.sed <<_ACEOF
18712 SHELL!$SHELL$ac_delim
18713 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18714 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18715 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18716 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18717 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18718 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18719 exec_prefix!$exec_prefix$ac_delim
18720 prefix!$prefix$ac_delim
18721 program_transform_name!$program_transform_name$ac_delim
18722 bindir!$bindir$ac_delim
18723 sbindir!$sbindir$ac_delim
18724 libexecdir!$libexecdir$ac_delim
18725 datarootdir!$datarootdir$ac_delim
18726 datadir!$datadir$ac_delim
18727 sysconfdir!$sysconfdir$ac_delim
18728 sharedstatedir!$sharedstatedir$ac_delim
18729 localstatedir!$localstatedir$ac_delim
18730 includedir!$includedir$ac_delim
18731 oldincludedir!$oldincludedir$ac_delim
18732 docdir!$docdir$ac_delim
18733 infodir!$infodir$ac_delim
18734 htmldir!$htmldir$ac_delim
18735 dvidir!$dvidir$ac_delim
18736 pdfdir!$pdfdir$ac_delim
18737 psdir!$psdir$ac_delim
18738 libdir!$libdir$ac_delim
18739 localedir!$localedir$ac_delim
18740 mandir!$mandir$ac_delim
18741 DEFS!$DEFS$ac_delim
18742 ECHO_C!$ECHO_C$ac_delim
18743 ECHO_N!$ECHO_N$ac_delim
18744 ECHO_T!$ECHO_T$ac_delim
18745 LIBS!$LIBS$ac_delim
18746 build_alias!$build_alias$ac_delim
18747 host_alias!$host_alias$ac_delim
18748 target_alias!$target_alias$ac_delim
18749 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18750 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18751 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18752 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18753 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18754 CC!$CC$ac_delim
18755 CFLAGS!$CFLAGS$ac_delim
18756 LDFLAGS!$LDFLAGS$ac_delim
18757 CPPFLAGS!$CPPFLAGS$ac_delim
18758 ac_ct_CC!$ac_ct_CC$ac_delim
18759 EXEEXT!$EXEEXT$ac_delim
18760 OBJEXT!$OBJEXT$ac_delim
18761 CXX!$CXX$ac_delim
18762 CXXFLAGS!$CXXFLAGS$ac_delim
18763 ac_ct_CXX!$ac_ct_CXX$ac_delim
18764 CPP!$CPP$ac_delim
18765 subdirs!$subdirs$ac_delim
18766 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18767 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18768 build!$build$ac_delim
18769 build_cpu!$build_cpu$ac_delim
18770 build_vendor!$build_vendor$ac_delim
18771 build_os!$build_os$ac_delim
18772 host!$host$ac_delim
18773 host_cpu!$host_cpu$ac_delim
18774 host_vendor!$host_vendor$ac_delim
18775 host_os!$host_os$ac_delim
18776 target!$target$ac_delim
18777 target_cpu!$target_cpu$ac_delim
18778 target_vendor!$target_vendor$ac_delim
18779 target_os!$target_os$ac_delim
18780 OS!$OS$ac_delim
18781 HOST_OS!$HOST_OS$ac_delim
18782 TARGET_OS!$TARGET_OS$ac_delim
18783 LINKALL!$LINKALL$ac_delim
18784 NOLINKALL!$NOLINKALL$ac_delim
18785 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18786 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18787 ARCH!$ARCH$ac_delim
18788 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18789 HOST_ARCH!$HOST_ARCH$ac_delim
18790 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18791 BUILD_CC!$BUILD_CC$ac_delim
18792 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18793 BUILD_CXX!$BUILD_CXX$ac_delim
18794 CVSBUILD!$CVSBUILD$ac_delim
18795 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18796 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18797 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18798 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18799 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18800 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18801 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18802 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18803 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18804 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18805 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18806 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18807 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18808 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18809 _ACEOF
18810
18811   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18812     break
18813   elif $ac_last_try; then
18814     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18815 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18816    { (exit 1); exit 1; }; }
18817   else
18818     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18819   fi
18820 done
18821
18822 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18823 if test -n "$ac_eof"; then
18824   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18825   ac_eof=`expr $ac_eof + 1`
18826 fi
18827
18828 cat >>$CONFIG_STATUS <<_ACEOF
18829 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18831 _ACEOF
18832 sed '
18833 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18834 s/^/s,@/; s/!/@,|#_!!_#|/
18835 :n
18836 t n
18837 s/'"$ac_delim"'$/,g/; t
18838 s/$/\\/; p
18839 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18840 ' >>$CONFIG_STATUS <conf$$subs.sed
18841 rm -f conf$$subs.sed
18842 cat >>$CONFIG_STATUS <<_ACEOF
18843 CEOF$ac_eof
18844 _ACEOF
18845
18846
18847 ac_delim='%!_!# '
18848 for ac_last_try in false false false false false :; do
18849   cat >conf$$subs.sed <<_ACEOF
18850 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18851 JIT!$JIT$ac_delim
18852 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18853 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18854 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18855 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18856 enable_searchengine!$enable_searchengine$ac_delim
18857 enable_external_search!$enable_external_search$ac_delim
18858 enable_server_based_search!$enable_server_based_search$ac_delim
18859 searchengine_url!$searchengine_url$ac_delim
18860 extra_search_mappings!$extra_search_mappings$ac_delim
18861 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18862 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18863 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18864 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18865 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18866 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18867 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18868 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18869 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18870 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18871 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18872 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18873 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18874 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18875 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18876 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18877 ENABLE_PIC!$ENABLE_PIC$ac_delim
18878 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18879 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18880 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18881 ALL_TARGETS!$ALL_TARGETS$ac_delim
18882 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18883 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18884 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18885 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18886 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18887 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18888 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18889 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18890 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18891 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18892 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18893 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18894 ifGNUmake!$ifGNUmake$ac_delim
18895 LN_S!$LN_S$ac_delim
18896 NM!$NM$ac_delim
18897 CMP!$CMP$ac_delim
18898 CP!$CP$ac_delim
18899 DATE!$DATE$ac_delim
18900 FIND!$FIND$ac_delim
18901 GREP!$GREP$ac_delim
18902 MKDIR!$MKDIR$ac_delim
18903 MV!$MV$ac_delim
18904 RANLIB!$RANLIB$ac_delim
18905 AR!$AR$ac_delim
18906 RM!$RM$ac_delim
18907 SED!$SED$ac_delim
18908 TAR!$TAR$ac_delim
18909 BINPWD!$BINPWD$ac_delim
18910 DOT!$DOT$ac_delim
18911 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18912 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18913 INSTALL_DATA!$INSTALL_DATA$ac_delim
18914 BZIP2!$BZIP2$ac_delim
18915 CAT!$CAT$ac_delim
18916 DOXYGEN!$DOXYGEN$ac_delim
18917 GROFF!$GROFF$ac_delim
18918 GZIPBIN!$GZIPBIN$ac_delim
18919 PDFROFF!$PDFROFF$ac_delim
18920 ZIP!$ZIP$ac_delim
18921 GO!$GO$ac_delim
18922 OCAMLFIND!$OCAMLFIND$ac_delim
18923 GAS!$GAS$ac_delim
18924 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18925 EGREP!$EGREP$ac_delim
18926 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18927 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18928 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18929 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18930 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18931 NO_COMMENT!$NO_COMMENT$ac_delim
18932 PYTHON!$PYTHON$ac_delim
18933 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18934 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18935 USE_OPROFILE!$USE_OPROFILE$ac_delim
18936 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18937 XML2CONFIG!$XML2CONFIG$ac_delim
18938 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18939 LIBXML2_INC!$LIBXML2_INC$ac_delim
18940 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18941 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18942 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18943 MMAP_FILE!$MMAP_FILE$ac_delim
18944 SHLIBEXT!$SHLIBEXT$ac_delim
18945 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18946 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18947 _ACEOF
18948
18949   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18950     break
18951   elif $ac_last_try; then
18952     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18954    { (exit 1); exit 1; }; }
18955   else
18956     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18957   fi
18958 done
18959
18960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18961 if test -n "$ac_eof"; then
18962   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18963   ac_eof=`expr $ac_eof + 1`
18964 fi
18965
18966 cat >>$CONFIG_STATUS <<_ACEOF
18967 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18969 _ACEOF
18970 sed '
18971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18972 s/^/s,@/; s/!/@,|#_!!_#|/
18973 :n
18974 t n
18975 s/'"$ac_delim"'$/,g/; t
18976 s/$/\\/; p
18977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18978 ' >>$CONFIG_STATUS <conf$$subs.sed
18979 rm -f conf$$subs.sed
18980 cat >>$CONFIG_STATUS <<_ACEOF
18981 CEOF$ac_eof
18982 _ACEOF
18983
18984
18985 ac_delim='%!_!# '
18986 for ac_last_try in false false false false false :; do
18987   cat >conf$$subs.sed <<_ACEOF
18988 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18989 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18990 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18991 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18992 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18993 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18994 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18995 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18996 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18997 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18998 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18999 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19000 RPATH!$RPATH$ac_delim
19001 RDYNAMIC!$RDYNAMIC$ac_delim
19002 program_prefix!$program_prefix$ac_delim
19003 LIBOBJS!$LIBOBJS$ac_delim
19004 LTLIBOBJS!$LTLIBOBJS$ac_delim
19005 _ACEOF
19006
19007   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
19008     break
19009   elif $ac_last_try; then
19010     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19011 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19012    { (exit 1); exit 1; }; }
19013   else
19014     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19015   fi
19016 done
19017
19018 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19019 if test -n "$ac_eof"; then
19020   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19021   ac_eof=`expr $ac_eof + 1`
19022 fi
19023
19024 cat >>$CONFIG_STATUS <<_ACEOF
19025 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19027 _ACEOF
19028 sed '
19029 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19030 s/^/s,@/; s/!/@,|#_!!_#|/
19031 :n
19032 t n
19033 s/'"$ac_delim"'$/,g/; t
19034 s/$/\\/; p
19035 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19036 ' >>$CONFIG_STATUS <conf$$subs.sed
19037 rm -f conf$$subs.sed
19038 cat >>$CONFIG_STATUS <<_ACEOF
19039 :end
19040 s/|#_!!_#|//g
19041 CEOF$ac_eof
19042 _ACEOF
19043
19044
19045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19047 # trailing colons and then remove the whole line if VPATH becomes empty
19048 # (actually we leave an empty line to preserve line numbers).
19049 if test "x$srcdir" = x.; then
19050   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19051 s/:*\$(srcdir):*/:/
19052 s/:*\${srcdir}:*/:/
19053 s/:*@srcdir@:*/:/
19054 s/^\([^=]*=[     ]*\):*/\1/
19055 s/:*$//
19056 s/^[^=]*=[       ]*$//
19057 }'
19058 fi
19059
19060 cat >>$CONFIG_STATUS <<\_ACEOF
19061 fi # test -n "$CONFIG_FILES"
19062
19063
19064 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19065 do
19066   case $ac_tag in
19067   :[FHLC]) ac_mode=$ac_tag; continue;;
19068   esac
19069   case $ac_mode$ac_tag in
19070   :[FHL]*:*);;
19071   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19072 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19073    { (exit 1); exit 1; }; };;
19074   :[FH]-) ac_tag=-:-;;
19075   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19076   esac
19077   ac_save_IFS=$IFS
19078   IFS=:
19079   set x $ac_tag
19080   IFS=$ac_save_IFS
19081   shift
19082   ac_file=$1
19083   shift
19084
19085   case $ac_mode in
19086   :L) ac_source=$1;;
19087   :[FH])
19088     ac_file_inputs=
19089     for ac_f
19090     do
19091       case $ac_f in
19092       -) ac_f="$tmp/stdin";;
19093       *) # Look for the file first in the build tree, then in the source tree
19094          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19095          # because $ac_f cannot contain `:'.
19096          test -f "$ac_f" ||
19097            case $ac_f in
19098            [\\/$]*) false;;
19099            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19100            esac ||
19101            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19102 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19103    { (exit 1); exit 1; }; };;
19104       esac
19105       ac_file_inputs="$ac_file_inputs $ac_f"
19106     done
19107
19108     # Let's still pretend it is `configure' which instantiates (i.e., don't
19109     # use $as_me), people would be surprised to read:
19110     #    /* config.h.  Generated by config.status.  */
19111     configure_input="Generated from "`IFS=:
19112           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19113     if test x"$ac_file" != x-; then
19114       configure_input="$ac_file.  $configure_input"
19115       { echo "$as_me:$LINENO: creating $ac_file" >&5
19116 echo "$as_me: creating $ac_file" >&6;}
19117     fi
19118
19119     case $ac_tag in
19120     *:-:* | *:-) cat >"$tmp/stdin";;
19121     esac
19122     ;;
19123   esac
19124
19125   ac_dir=`$as_dirname -- "$ac_file" ||
19126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19127          X"$ac_file" : 'X\(//\)[^/]' \| \
19128          X"$ac_file" : 'X\(//\)$' \| \
19129          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19130 echo X"$ac_file" |
19131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19132             s//\1/
19133             q
19134           }
19135           /^X\(\/\/\)[^/].*/{
19136             s//\1/
19137             q
19138           }
19139           /^X\(\/\/\)$/{
19140             s//\1/
19141             q
19142           }
19143           /^X\(\/\).*/{
19144             s//\1/
19145             q
19146           }
19147           s/.*/./; q'`
19148   { as_dir="$ac_dir"
19149   case $as_dir in #(
19150   -*) as_dir=./$as_dir;;
19151   esac
19152   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19153     as_dirs=
19154     while :; do
19155       case $as_dir in #(
19156       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19157       *) as_qdir=$as_dir;;
19158       esac
19159       as_dirs="'$as_qdir' $as_dirs"
19160       as_dir=`$as_dirname -- "$as_dir" ||
19161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19162          X"$as_dir" : 'X\(//\)[^/]' \| \
19163          X"$as_dir" : 'X\(//\)$' \| \
19164          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19165 echo X"$as_dir" |
19166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19167             s//\1/
19168             q
19169           }
19170           /^X\(\/\/\)[^/].*/{
19171             s//\1/
19172             q
19173           }
19174           /^X\(\/\/\)$/{
19175             s//\1/
19176             q
19177           }
19178           /^X\(\/\).*/{
19179             s//\1/
19180             q
19181           }
19182           s/.*/./; q'`
19183       test -d "$as_dir" && break
19184     done
19185     test -z "$as_dirs" || eval "mkdir $as_dirs"
19186   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19187 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19188    { (exit 1); exit 1; }; }; }
19189   ac_builddir=.
19190
19191 case "$ac_dir" in
19192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19193 *)
19194   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19195   # A ".." for each directory in $ac_dir_suffix.
19196   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19197   case $ac_top_builddir_sub in
19198   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19199   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19200   esac ;;
19201 esac
19202 ac_abs_top_builddir=$ac_pwd
19203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19204 # for backward compatibility:
19205 ac_top_builddir=$ac_top_build_prefix
19206
19207 case $srcdir in
19208   .)  # We are building in place.
19209     ac_srcdir=.
19210     ac_top_srcdir=$ac_top_builddir_sub
19211     ac_abs_top_srcdir=$ac_pwd ;;
19212   [\\/]* | ?:[\\/]* )  # Absolute name.
19213     ac_srcdir=$srcdir$ac_dir_suffix;
19214     ac_top_srcdir=$srcdir
19215     ac_abs_top_srcdir=$srcdir ;;
19216   *) # Relative name.
19217     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19218     ac_top_srcdir=$ac_top_build_prefix$srcdir
19219     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19220 esac
19221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19222
19223
19224   case $ac_mode in
19225   :F)
19226   #
19227   # CONFIG_FILE
19228   #
19229
19230   case $INSTALL in
19231   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19232   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19233   esac
19234 _ACEOF
19235
19236 cat >>$CONFIG_STATUS <<\_ACEOF
19237 # If the template does not know about datarootdir, expand it.
19238 # FIXME: This hack should be removed a few years after 2.60.
19239 ac_datarootdir_hack=; ac_datarootdir_seen=
19240
19241 case `sed -n '/datarootdir/ {
19242   p
19243   q
19244 }
19245 /@datadir@/p
19246 /@docdir@/p
19247 /@infodir@/p
19248 /@localedir@/p
19249 /@mandir@/p
19250 ' $ac_file_inputs` in
19251 *datarootdir*) ac_datarootdir_seen=yes;;
19252 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19253   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19254 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19255 _ACEOF
19256 cat >>$CONFIG_STATUS <<_ACEOF
19257   ac_datarootdir_hack='
19258   s&@datadir@&$datadir&g
19259   s&@docdir@&$docdir&g
19260   s&@infodir@&$infodir&g
19261   s&@localedir@&$localedir&g
19262   s&@mandir@&$mandir&g
19263     s&\\\${datarootdir}&$datarootdir&g' ;;
19264 esac
19265 _ACEOF
19266
19267 # Neutralize VPATH when `$srcdir' = `.'.
19268 # Shell code in configure.ac might set extrasub.
19269 # FIXME: do we really want to maintain this feature?
19270 cat >>$CONFIG_STATUS <<_ACEOF
19271   sed "$ac_vpsub
19272 $extrasub
19273 _ACEOF
19274 cat >>$CONFIG_STATUS <<\_ACEOF
19275 :t
19276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19277 s&@configure_input@&$configure_input&;t t
19278 s&@top_builddir@&$ac_top_builddir_sub&;t t
19279 s&@srcdir@&$ac_srcdir&;t t
19280 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19281 s&@top_srcdir@&$ac_top_srcdir&;t t
19282 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19283 s&@builddir@&$ac_builddir&;t t
19284 s&@abs_builddir@&$ac_abs_builddir&;t t
19285 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19286 s&@INSTALL@&$ac_INSTALL&;t t
19287 $ac_datarootdir_hack
19288 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19289
19290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19291   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19292   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19293   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19294 which seems to be undefined.  Please make sure it is defined." >&5
19295 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19296 which seems to be undefined.  Please make sure it is defined." >&2;}
19297
19298   rm -f "$tmp/stdin"
19299   case $ac_file in
19300   -) cat "$tmp/out"; rm -f "$tmp/out";;
19301   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19302   esac
19303  ;;
19304   :H)
19305   #
19306   # CONFIG_HEADER
19307   #
19308 _ACEOF
19309
19310 # Transform confdefs.h into a sed script `conftest.defines', that
19311 # substitutes the proper values into config.h.in to produce config.h.
19312 rm -f conftest.defines conftest.tail
19313 # First, append a space to every undef/define line, to ease matching.
19314 echo 's/$/ /' >conftest.defines
19315 # Then, protect against being on the right side of a sed subst, or in
19316 # an unquoted here document, in config.status.  If some macros were
19317 # called several times there might be several #defines for the same
19318 # symbol, which is useless.  But do not sort them, since the last
19319 # AC_DEFINE must be honored.
19320 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19321 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19322 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19323 # PARAMS is the parameter list in the macro definition--in most cases, it's
19324 # just an empty string.
19325 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19326 ac_dB='\\)[      (].*,\\1define\\2'
19327 ac_dC=' '
19328 ac_dD=' ,'
19329
19330 uniq confdefs.h |
19331   sed -n '
19332         t rset
19333         :rset
19334         s/^[     ]*#[    ]*define[       ][      ]*//
19335         t ok
19336         d
19337         :ok
19338         s/[\\&,]/\\&/g
19339         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19340         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19341   ' >>conftest.defines
19342
19343 # Remove the space that was appended to ease matching.
19344 # Then replace #undef with comments.  This is necessary, for
19345 # example, in the case of _POSIX_SOURCE, which is predefined and required
19346 # on some systems where configure will not decide to define it.
19347 # (The regexp can be short, since the line contains either #define or #undef.)
19348 echo 's/ $//
19349 s,^[     #]*u.*,/* & */,' >>conftest.defines
19350
19351 # Break up conftest.defines:
19352 ac_max_sed_lines=50
19353
19354 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19355 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19356 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19357 # et cetera.
19358 ac_in='$ac_file_inputs'
19359 ac_out='"$tmp/out1"'
19360 ac_nxt='"$tmp/out2"'
19361
19362 while :
19363 do
19364   # Write a here document:
19365     cat >>$CONFIG_STATUS <<_ACEOF
19366     # First, check the format of the line:
19367     cat >"\$tmp/defines.sed" <<\\CEOF
19368 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19369 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19370 b
19371 :def
19372 _ACEOF
19373   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19374   echo 'CEOF
19375     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19376   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19377   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19378   grep . conftest.tail >/dev/null || break
19379   rm -f conftest.defines
19380   mv conftest.tail conftest.defines
19381 done
19382 rm -f conftest.defines conftest.tail
19383
19384 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19385 cat >>$CONFIG_STATUS <<\_ACEOF
19386   if test x"$ac_file" != x-; then
19387     echo "/* $configure_input  */" >"$tmp/config.h"
19388     cat "$ac_result" >>"$tmp/config.h"
19389     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19390       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19391 echo "$as_me: $ac_file is unchanged" >&6;}
19392     else
19393       rm -f $ac_file
19394       mv "$tmp/config.h" $ac_file
19395     fi
19396   else
19397     echo "/* $configure_input  */"
19398     cat "$ac_result"
19399   fi
19400   rm -f "$tmp/out12"
19401  ;;
19402
19403   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19404 echo "$as_me: executing $ac_file commands" >&6;}
19405  ;;
19406   esac
19407
19408
19409   case $ac_file$ac_mode in
19410     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19411    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19412     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19413    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19414     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19415    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19416     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19417    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19418     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19419    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19420     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19421    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19422     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19423    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19424     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19425    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19426     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19427    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19428     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19429    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19430     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19431    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19432     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19433    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19434
19435   esac
19436 done # for ac_tag
19437
19438
19439 { (exit 0); exit 0; }
19440 _ACEOF
19441 chmod +x $CONFIG_STATUS
19442 ac_clean_files=$ac_clean_files_save
19443
19444
19445 # configure is writing to config.log, and then calls config.status.
19446 # config.status does its own redirection, appending to config.log.
19447 # Unfortunately, on DOS this fails, as config.log is still kept open
19448 # by configure, so config.status won't be able to write to it; its
19449 # output is simply discarded.  So we exec the FD to /dev/null,
19450 # effectively closing config.log, so it can be properly (re)opened and
19451 # appended to by config.status.  When coming back to configure, we
19452 # need to make the FD available again.
19453 if test "$no_create" != yes; then
19454   ac_cs_success=:
19455   ac_config_status_args=
19456   test "$silent" = yes &&
19457     ac_config_status_args="$ac_config_status_args --quiet"
19458   exec 5>/dev/null
19459   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19460   exec 5>>config.log
19461   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19462   # would make configure fail if this is the last instruction.
19463   $ac_cs_success || { (exit 1); exit 1; }
19464 fi
19465
19466 #
19467 # CONFIG_SUBDIRS section.
19468 #
19469 if test "$no_recursion" != yes; then
19470
19471   # Remove --cache-file and --srcdir arguments so they do not pile up.
19472   ac_sub_configure_args=
19473   ac_prev=
19474   eval "set x $ac_configure_args"
19475   shift
19476   for ac_arg
19477   do
19478     if test -n "$ac_prev"; then
19479       ac_prev=
19480       continue
19481     fi
19482     case $ac_arg in
19483     -cache-file | --cache-file | --cache-fil | --cache-fi \
19484     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19485       ac_prev=cache_file ;;
19486     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19487     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19488     | --c=*)
19489       ;;
19490     --config-cache | -C)
19491       ;;
19492     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19493       ac_prev=srcdir ;;
19494     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19495       ;;
19496     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19497       ac_prev=prefix ;;
19498     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19499       ;;
19500     *)
19501       case $ac_arg in
19502       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19503       esac
19504       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19505     esac
19506   done
19507
19508   # Always prepend --prefix to ensure using the same prefix
19509   # in subdir configurations.
19510   ac_arg="--prefix=$prefix"
19511   case $ac_arg in
19512   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19513   esac
19514   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19515
19516   ac_popdir=`pwd`
19517   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19518
19519     # Do not complain, so a configure script can configure whichever
19520     # parts of a large source tree are present.
19521     test -d "$srcdir/$ac_dir" || continue
19522
19523     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19524     echo "$as_me:$LINENO: $ac_msg" >&5
19525     echo "$ac_msg" >&6
19526     { as_dir="$ac_dir"
19527   case $as_dir in #(
19528   -*) as_dir=./$as_dir;;
19529   esac
19530   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19531     as_dirs=
19532     while :; do
19533       case $as_dir in #(
19534       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19535       *) as_qdir=$as_dir;;
19536       esac
19537       as_dirs="'$as_qdir' $as_dirs"
19538       as_dir=`$as_dirname -- "$as_dir" ||
19539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19540          X"$as_dir" : 'X\(//\)[^/]' \| \
19541          X"$as_dir" : 'X\(//\)$' \| \
19542          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19543 echo X"$as_dir" |
19544     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19545             s//\1/
19546             q
19547           }
19548           /^X\(\/\/\)[^/].*/{
19549             s//\1/
19550             q
19551           }
19552           /^X\(\/\/\)$/{
19553             s//\1/
19554             q
19555           }
19556           /^X\(\/\).*/{
19557             s//\1/
19558             q
19559           }
19560           s/.*/./; q'`
19561       test -d "$as_dir" && break
19562     done
19563     test -z "$as_dirs" || eval "mkdir $as_dirs"
19564   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19565 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19566    { (exit 1); exit 1; }; }; }
19567     ac_builddir=.
19568
19569 case "$ac_dir" in
19570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19571 *)
19572   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19573   # A ".." for each directory in $ac_dir_suffix.
19574   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19575   case $ac_top_builddir_sub in
19576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19578   esac ;;
19579 esac
19580 ac_abs_top_builddir=$ac_pwd
19581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19582 # for backward compatibility:
19583 ac_top_builddir=$ac_top_build_prefix
19584
19585 case $srcdir in
19586   .)  # We are building in place.
19587     ac_srcdir=.
19588     ac_top_srcdir=$ac_top_builddir_sub
19589     ac_abs_top_srcdir=$ac_pwd ;;
19590   [\\/]* | ?:[\\/]* )  # Absolute name.
19591     ac_srcdir=$srcdir$ac_dir_suffix;
19592     ac_top_srcdir=$srcdir
19593     ac_abs_top_srcdir=$srcdir ;;
19594   *) # Relative name.
19595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19596     ac_top_srcdir=$ac_top_build_prefix$srcdir
19597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19598 esac
19599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19600
19601
19602     cd "$ac_dir"
19603
19604     # Check for guested configure; otherwise get Cygnus style configure.
19605     if test -f "$ac_srcdir/configure.gnu"; then
19606       ac_sub_configure=$ac_srcdir/configure.gnu
19607     elif test -f "$ac_srcdir/configure"; then
19608       ac_sub_configure=$ac_srcdir/configure
19609     elif test -f "$ac_srcdir/configure.in"; then
19610       # This should be Cygnus configure.
19611       ac_sub_configure=$ac_aux_dir/configure
19612     else
19613       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19615       ac_sub_configure=
19616     fi
19617
19618     # The recursion is here.
19619     if test -n "$ac_sub_configure"; then
19620       # Make the cache file name correct relative to the subdirectory.
19621       case $cache_file in
19622       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19623       *) # Relative name.
19624         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19625       esac
19626
19627       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19628 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19629       # The eval makes quoting arguments work.
19630       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19631            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19632         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19633 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19634    { (exit 1); exit 1; }; }
19635     fi
19636
19637     cd "$ac_popdir"
19638   done
19639 fi
19640