[autoconf] Fix MinGW build
[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.8.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.8.0svn'
565 PACKAGE_STRING='LLVM 3.8.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 CXX_COMPILER
659 subdirs
660 ENABLE_POLLY
661 LLVM_HAS_POLLY
662 build
663 build_cpu
664 build_vendor
665 build_os
666 host
667 host_cpu
668 host_vendor
669 host_os
670 target
671 target_cpu
672 target_vendor
673 target_os
674 OS
675 HOST_OS
676 TARGET_OS
677 LINKALL
678 NOLINKALL
679 LLVM_ON_UNIX
680 LLVM_ON_WIN32
681 ARCH
682 LLVM_NATIVE_ARCH
683 HOST_ARCH
684 LLVM_CROSS_COMPILING
685 BUILD_CC
686 BUILD_EXEEXT
687 BUILD_CXX
688 CVSBUILD
689 ENABLE_LIBCPP
690 ENABLE_CXX1Y
691 ENABLE_SPLIT_DWARF
692 ENABLE_CLANG_ARCMT
693 CLANG_PLUGIN_SUPPORT
694 ENABLE_CLANG_STATIC_ANALYZER
695 ENABLE_OPTIMIZED
696 ENABLE_PROFILING
697 DISABLE_ASSERTIONS
698 ENABLE_WERROR
699 ENABLE_EXPENSIVE_CHECKS
700 EXPENSIVE_CHECKS
701 ENABLE_ABI_BREAKING_CHECKS
702 DEBUG_RUNTIME
703 DEBUG_SYMBOLS
704 KEEP_SYMBOLS
705 JIT
706 TARGET_HAS_JIT
707 TARGETS_WITH_JIT
708 ENABLE_DOCS
709 ENABLE_DOXYGEN
710 enable_searchengine
711 enable_external_search
712 enable_server_based_search
713 searchengine_url
714 extra_search_mappings
715 QHELPGENERATOR
716 llvm_doxygen_generate_qhp
717 llvm_doxygen_qch_filename
718 llvm_doxygen_qhp_namespace
719 llvm_doxygen_qhelpgenerator_path
720 llvm_doxygen_qhp_cust_filter_name
721 llvm_doxygen_qhp_cust_filter_attrs
722 clang_doxygen_generate_qhp
723 clang_doxygen_qch_filename
724 clang_doxygen_qhp_namespace
725 clang_doxygen_qhelpgenerator_path
726 clang_doxygen_qhp_cust_filter_name
727 clang_doxygen_qhp_cust_filter_attrs
728 LLVM_ENABLE_THREADS
729 ENABLE_PTHREADS
730 LLVM_ENABLE_ZLIB
731 ENABLE_PIC
732 ENABLE_SHARED
733 ENABLE_EMBED_STDCXX
734 ENABLE_TIMESTAMPS
735 ALL_TARGETS
736 TARGETS_TO_BUILD
737 LLVM_ENUM_TARGETS
738 LLVM_ENUM_ASM_PRINTERS
739 LLVM_ENUM_ASM_PARSERS
740 LLVM_ENUM_DISASSEMBLERS
741 OPTIMIZE_OPTION
742 EXTRA_OPTIONS
743 EXTRA_LD_OPTIONS
744 CLANG_SRC_ROOT
745 BINUTILS_INCDIR
746 ENABLE_TERMINFO
747 INTERNAL_PREFIX
748 ifGNUmake
749 LN_S
750 NM
751 CMP
752 CP
753 DATE
754 FIND
755 GREP
756 MKDIR
757 MV
758 RANLIB
759 AR
760 RM
761 SED
762 TAR
763 BINPWD
764 DOT
765 INSTALL_PROGRAM
766 INSTALL_SCRIPT
767 INSTALL_DATA
768 BZIP2
769 CAT
770 DOXYGEN
771 GROFF
772 GZIPBIN
773 PDFROFF
774 ZIP
775 GO
776 OCAMLFIND
777 GAS
778 HAVE_LINK_VERSION_SCRIPT
779 EGREP
780 NO_VARIADIC_MACROS
781 MISSING_FIELD_INITIALIZERS
782 COVERED_SWITCH_DEFAULT
783 NO_MAYBE_UNINITIALIZED
784 NO_UNINITIALIZED
785 NO_COMMENT
786 PYTHON
787 HAVE_DLOPEN
788 HAVE_TERMINFO
789 USE_OPROFILE
790 USE_INTEL_JITEVENTS
791 XML2CONFIG
792 LIBXML2_LIBS
793 LIBXML2_INC
794 HAVE_PTHREAD
795 HAVE_LIBZ
796 HUGE_VAL_SANITY
797 MMAP_FILE
798 SHLIBEXT
799 LLVM_PREFIX
800 LLVM_BINDIR
801 LLVM_DATADIR
802 LLVM_DOCSDIR
803 LLVM_ETCDIR
804 LLVM_INCLUDEDIR
805 LLVM_INFODIR
806 LLVM_MANDIR
807 LLVM_CONFIGTIME
808 BINDINGS_TO_BUILD
809 HAVE_OCAMLOPT
810 HAVE_OCAML_OUNIT
811 OCAML_LIBDIR
812 ENABLE_VISIBILITY_INLINES_HIDDEN
813 RPATH
814 RDYNAMIC
815 program_prefix
816 LIBOBJS
817 LTLIBOBJS'
818 ac_subst_files=''
819       ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 CXX
827 CXXFLAGS
828 CCC
829 CPP'
830 ac_subdirs_all='projects/test-suite
831 projects/llvm-test
832 projects/poolalloc
833 projects/llvm-poolalloc
834 projects/safecode
835 tools/polly'
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887   # If the previous option needs an argument, assign it.
888   if test -n "$ac_prev"; then
889     eval $ac_prev=\$ac_option
890     ac_prev=
891     continue
892   fi
893
894   case $ac_option in
895   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896   *)    ac_optarg=yes ;;
897   esac
898
899   # Accept the important Cygnus configure options, so we can diagnose typos.
900
901   case $ac_dashdash$ac_option in
902   --)
903     ac_dashdash=yes ;;
904
905   -bindir | --bindir | --bindi | --bind | --bin | --bi)
906     ac_prev=bindir ;;
907   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908     bindir=$ac_optarg ;;
909
910   -build | --build | --buil | --bui | --bu)
911     ac_prev=build_alias ;;
912   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913     build_alias=$ac_optarg ;;
914
915   -cache-file | --cache-file | --cache-fil | --cache-fi \
916   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917     ac_prev=cache_file ;;
918   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920     cache_file=$ac_optarg ;;
921
922   --config-cache | -C)
923     cache_file=config.cache ;;
924
925   -datadir | --datadir | --datadi | --datad)
926     ac_prev=datadir ;;
927   -datadir=* | --datadir=* | --datadi=* | --datad=*)
928     datadir=$ac_optarg ;;
929
930   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931   | --dataroo | --dataro | --datar)
932     ac_prev=datarootdir ;;
933   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935     datarootdir=$ac_optarg ;;
936
937   -disable-* | --disable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=no ;;
945
946   -docdir | --docdir | --docdi | --doc | --do)
947     ac_prev=docdir ;;
948   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949     docdir=$ac_optarg ;;
950
951   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952     ac_prev=dvidir ;;
953   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954     dvidir=$ac_optarg ;;
955
956   -enable-* | --enable-*)
957     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
960       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
961    { (exit 1); exit 1; }; }
962     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
963     eval enable_$ac_feature=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109     ac_prev=sbindir ;;
1110   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111   | --sbi=* | --sb=*)
1112     sbindir=$ac_optarg ;;
1113
1114   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116   | --sharedst | --shareds | --shared | --share | --shar \
1117   | --sha | --sh)
1118     ac_prev=sharedstatedir ;;
1119   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122   | --sha=* | --sh=*)
1123     sharedstatedir=$ac_optarg ;;
1124
1125   -site | --site | --sit)
1126     ac_prev=site ;;
1127   -site=* | --site=* | --sit=*)
1128     site=$ac_optarg ;;
1129
1130   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131     ac_prev=srcdir ;;
1132   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133     srcdir=$ac_optarg ;;
1134
1135   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136   | --syscon | --sysco | --sysc | --sys | --sy)
1137     ac_prev=sysconfdir ;;
1138   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140     sysconfdir=$ac_optarg ;;
1141
1142   -target | --target | --targe | --targ | --tar | --ta | --t)
1143     ac_prev=target_alias ;;
1144   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145     target_alias=$ac_optarg ;;
1146
1147   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148     verbose=yes ;;
1149
1150   -version | --version | --versio | --versi | --vers | -V)
1151     ac_init_version=: ;;
1152
1153   -with-* | --with-*)
1154     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157       { echo "$as_me: error: invalid package name: $ac_package" >&2
1158    { (exit 1); exit 1; }; }
1159     ac_package=`echo $ac_package| sed 's/-/_/g'`
1160     eval with_$ac_package=\$ac_optarg ;;
1161
1162   -without-* | --without-*)
1163     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid package name: $ac_package" >&2
1167    { (exit 1); exit 1; }; }
1168     ac_package=`echo $ac_package | sed 's/-/_/g'`
1169     eval with_$ac_package=no ;;
1170
1171   --x)
1172     # Obsolete; use --with-x.
1173     with_x=yes ;;
1174
1175   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176   | --x-incl | --x-inc | --x-in | --x-i)
1177     ac_prev=x_includes ;;
1178   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180     x_includes=$ac_optarg ;;
1181
1182   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184     ac_prev=x_libraries ;;
1185   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187     x_libraries=$ac_optarg ;;
1188
1189   -*) { echo "$as_me: error: unrecognized option: $ac_option
1190 Try \`$0 --help' for more information." >&2
1191    { (exit 1); exit 1; }; }
1192     ;;
1193
1194   *=*)
1195     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1198       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1199    { (exit 1); exit 1; }; }
1200     eval $ac_envvar=\$ac_optarg
1201     export $ac_envvar ;;
1202
1203   *)
1204     # FIXME: should be removed in autoconf 3.0.
1205     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209     ;;
1210
1211   esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216   { echo "$as_me: error: missing argument to $ac_option" >&2
1217    { (exit 1); exit 1; }; }
1218 fi
1219
1220 # Be sure to have absolute directory names.
1221 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222                 datadir sysconfdir sharedstatedir localstatedir includedir \
1223                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224                 libdir localedir mandir
1225 do
1226   eval ac_val=\$$ac_var
1227   case $ac_val in
1228     [\\/$]* | ?:[\\/]* )  continue;;
1229     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230   esac
1231   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1232    { (exit 1); exit 1; }; }
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244   if test "x$build_alias" = x; then
1245     cross_compiling=maybe
1246     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1247     If a cross compiler is detected then cross compile mode will be used." >&2
1248   elif test "x$build_alias" != "x$host_alias"; then
1249     cross_compiling=yes
1250   fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262   { echo "$as_me: error: Working directory cannot be determined" >&2
1263    { (exit 1); exit 1; }; }
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265   { echo "$as_me: error: pwd does not report name of working directory" >&2
1266    { (exit 1); exit 1; }; }
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271   ac_srcdir_defaulted=yes
1272   # Try the directory containing this script, then the parent directory.
1273   ac_confdir=`$as_dirname -- "$0" ||
1274 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275          X"$0" : 'X\(//\)[^/]' \| \
1276          X"$0" : 'X\(//\)$' \| \
1277          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1278 echo X"$0" |
1279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)[^/].*/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\).*/{
1292             s//\1/
1293             q
1294           }
1295           s/.*/./; q'`
1296   srcdir=$ac_confdir
1297   if test ! -r "$srcdir/$ac_unique_file"; then
1298     srcdir=..
1299   fi
1300 else
1301   ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1306    { (exit 1); exit 1; }; }
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1311    { (exit 1); exit 1; }; }
1312         pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315   srcdir=.
1316 fi
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_env_${ac_var}_value=\$${ac_var}
1326   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1329
1330 #
1331 # Report the --help message.
1332 #
1333 if test "$ac_init_help" = "long"; then
1334   # Omit some internal or obsolete options to make the list less imposing.
1335   # This message is too long to be a string in the A/UX 3.1 sh.
1336   cat <<_ACEOF
1337 \`configure' configures LLVM 3.8.0svn to adapt to many kinds of systems.
1338
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344 Defaults for the options are specified in brackets.
1345
1346 Configuration:
1347   -h, --help              display this help and exit
1348       --help=short        display options specific to this package
1349       --help=recursive    display the short help of all the included packages
1350   -V, --version           display version information and exit
1351   -q, --quiet, --silent   do not print \`checking...' messages
1352       --cache-file=FILE   cache test results in FILE [disabled]
1353   -C, --config-cache      alias for \`--cache-file=config.cache'
1354   -n, --no-create         do not create output files
1355       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357 Installation directories:
1358   --prefix=PREFIX         install architecture-independent files in PREFIX
1359                           [$ac_default_prefix]
1360   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                           [PREFIX]
1362
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1367
1368 For better control, use the options below.
1369
1370 Fine tuning of the installation directories:
1371   --bindir=DIR           user executables [EPREFIX/bin]
1372   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1373   --libexecdir=DIR       program executables [EPREFIX/libexec]
1374   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1375   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1376   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1377   --libdir=DIR           object code libraries [EPREFIX/lib]
1378   --includedir=DIR       C header files [PREFIX/include]
1379   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1380   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1381   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1382   --infodir=DIR          info documentation [DATAROOTDIR/info]
1383   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1384   --mandir=DIR           man documentation [DATAROOTDIR/man]
1385   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1386   --htmldir=DIR          html documentation [DOCDIR]
1387   --dvidir=DIR           dvi documentation [DOCDIR]
1388   --pdfdir=DIR           pdf documentation [DOCDIR]
1389   --psdir=DIR            ps documentation [DOCDIR]
1390 _ACEOF
1391
1392   cat <<\_ACEOF
1393
1394 System types:
1395   --build=BUILD     configure for building on BUILD [guessed]
1396   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397   --target=TARGET   configure for building compilers for TARGET [HOST]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402   case $ac_init_help in
1403      short | recursive ) echo "Configuration of LLVM 3.8.0svn:";;
1404    esac
1405   cat <<\_ACEOF
1406
1407 Optional Features:
1408   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410   --enable-polly          Use polly if available (default is YES)
1411   --enable-libcpp         Use libc++ if available (default is NO)
1412   --enable-compiler-version-checks
1413                           Check the version of the host compiler (default is
1414                           YES)
1415   --enable-cxx1y          Use c++1y if available (default is NO)
1416   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1417   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1418   --enable-clang-plugin-support
1419                           Enable plugin support in clang (default is YES)
1420   --enable-clang-static-analyzer
1421                           Enable building of clang Static Analyzer (default is
1422                           YES)
1423   --enable-optimized      Compile with optimizations enabled (default is NO)
1424   --enable-profiling      Compile with profiling enabled (default is NO)
1425   --enable-assertions     Compile with assertion checks enabled (default is
1426                           YES)
1427   --enable-werror         Compile with -Werror enabled (default is NO)
1428   --enable-expensive-checks
1429                           Compile with expensive debug checks enabled (default
1430                           is NO)
1431   --enable-abi-breaking-checks
1432                           Compile with abi-breaking asserts support (default
1433                           is with-asserts)
1434   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1435                           NO)
1436   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1437                           optimization is on and YES if it's off)
1438   --enable-keep-symbols   Do not strip installed executables)
1439   --enable-jit            Enable Just In Time Compiling (default is YES)
1440   --enable-docs           Build documents (default is YES)
1441   --enable-doxygen        Build doxygen documentation (default is NO)
1442   --enable-doxygen-search Enable doxygen search support (default is NO)
1443   --enable-doxygen-external-search
1444                           Enable doxygen exteranl search (default is NO)
1445   --enable-doxygen-qt-help
1446                           Build Qt help files (default is NO)
1447   --enable-threads        Use threads if available (default is YES)
1448   --enable-pthreads       Use pthreads if available (default is YES)
1449   --enable-zlib           Use zlib for compression/decompression if available
1450                           (default is YES)
1451   --enable-pic            Build LLVM with Position Independent Code (default
1452                           is YES)
1453   --enable-shared         Build a shared library and link tools against it
1454                           (default is NO)
1455   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1456                           Win32 DLL (default is NO)
1457   --enable-timestamps     Enable embedding timestamp information in build
1458                           (default is YES)
1459   --enable-backtraces     Enable embedding backtraces on crash (default is
1460                           YES)
1461   --enable-crash-overrides
1462                           Enable crash handling overrides (default is YES)
1463   --enable-targets        Build specific host targets: all or
1464                           target1,target2,... Valid targets are: host, x86,
1465                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1466                           hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1467                           wasm, and cpp (default=all)
1468   --enable-experimental-targets
1469                           Build experimental host targets: disable or
1470                           target1,target2,... (default=disable)
1471   --enable-bindings       Build specific language bindings:
1472                           all,auto,none,{binding-name} (default=auto)
1473   --enable-terminfo       Query the terminfo database if available (default is
1474                           YES)
1475   --enable-libedit        Use libedit if available (default is YES)
1476   --enable-libffi         Check for the presence of libffi (default is NO)
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-doxygen-search-engine-url
1482                           Specify the external search engine for doxygen
1483   --with-doxygen-search-mappings
1484                           Specify the extra search mapping for doxygen
1485   --with-optimize-option  Select the compiler options to use for optimized
1486                           builds
1487   --with-extra-options    Specify additional options to compile LLVM with
1488   --with-extra-ld-options Specify additional options to link LLVM with
1489   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1490                           is stdlib)
1491   --with-clang-srcdir     Directory to the out-of-tree Clang source
1492   --with-clang-resource-dir
1493                           Relative directory from the Clang binary for
1494                           resource files
1495   --with-c-include-dirs   Colon separated list of directories clang will
1496                           search for headers
1497   --with-gcc-toolchain    Directory where gcc is installed.
1498   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1499   --with-clang-default-openmp-runtime
1500                           The default OpenMP runtime for Clang.
1501   --with-binutils-include Specify path to binutils/include/ containing
1502                           plugin-api.h file for gold plugin.
1503   --with-bug-report-url   Specify the URL where bug reports should be
1504                           submitted (default=http://llvm.org/bugs/)
1505   --with-internal-prefix  Installation directory for internal files
1506   --with-python           path to python
1507   --with-oprofile=<prefix>
1508                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1509   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1510
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518               you have headers in a nonstandard directory <include dir>
1519   CXX         C++ compiler command
1520   CXXFLAGS    C++ compiler flags
1521   CPP         C preprocessor
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 Report bugs to <http://llvm.org/bugs/>.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532   # If there are subdirs, report their specific --help.
1533   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534     test -d "$ac_dir" || continue
1535     ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1541   # A ".." for each directory in $ac_dir_suffix.
1542   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1543   case $ac_top_builddir_sub in
1544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546   esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554   .)  # We are building in place.
1555     ac_srcdir=.
1556     ac_top_srcdir=$ac_top_builddir_sub
1557     ac_abs_top_srcdir=$ac_pwd ;;
1558   [\\/]* | ?:[\\/]* )  # Absolute name.
1559     ac_srcdir=$srcdir$ac_dir_suffix;
1560     ac_top_srcdir=$srcdir
1561     ac_abs_top_srcdir=$srcdir ;;
1562   *) # Relative name.
1563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564     ac_top_srcdir=$ac_top_build_prefix$srcdir
1565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569     cd "$ac_dir" || { ac_status=$?; continue; }
1570     # Check for guested configure.
1571     if test -f "$ac_srcdir/configure.gnu"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574     elif test -f "$ac_srcdir/configure"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure" --help=recursive
1577     else
1578       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579     fi || ac_status=$?
1580     cd "$ac_pwd" || { ac_status=$?; break; }
1581   done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586   cat <<\_ACEOF
1587 LLVM configure 3.8.0svn
1588 generated by GNU Autoconf 2.60
1589
1590 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594
1595 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1596 _ACEOF
1597   exit
1598 fi
1599 cat >config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1602
1603 It was created by LLVM $as_me 3.8.0svn, which was
1604 generated by GNU Autoconf 2.60.  Invocation command line was
1605
1606   $ $0 $@
1607
1608 _ACEOF
1609 exec 5>>config.log
1610 {
1611 cat <<_ASUNAME
1612 ## --------- ##
1613 ## Platform. ##
1614 ## --------- ##
1615
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1624
1625 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1626 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1629 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1630 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1631 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1632
1633 _ASUNAME
1634
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   echo "PATH: $as_dir"
1641 done
1642 IFS=$as_save_IFS
1643
1644 } >&5
1645
1646 cat >&5 <<_ACEOF
1647
1648
1649 ## ----------- ##
1650 ## Core tests. ##
1651 ## ----------- ##
1652
1653 _ACEOF
1654
1655
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_configure_args=
1662 ac_configure_args0=
1663 ac_configure_args1=
1664 ac_must_keep_next=false
1665 for ac_pass in 1 2
1666 do
1667   for ac_arg
1668   do
1669     case $ac_arg in
1670     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672     | -silent | --silent | --silen | --sile | --sil)
1673       continue ;;
1674     *\'*)
1675       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676     esac
1677     case $ac_pass in
1678     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679     2)
1680       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681       if test $ac_must_keep_next = true; then
1682         ac_must_keep_next=false # Got value, back to normal.
1683       else
1684         case $ac_arg in
1685           *=* | --config-cache | -C | -disable-* | --disable-* \
1686           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688           | -with-* | --with-* | -without-* | --without-* | --x)
1689             case "$ac_configure_args0 " in
1690               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691             esac
1692             ;;
1693           -* ) ac_must_keep_next=true ;;
1694         esac
1695       fi
1696       ac_configure_args="$ac_configure_args '$ac_arg'"
1697       ;;
1698     esac
1699   done
1700 done
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log.  We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710   # Save into config.log some information that might help in debugging.
1711   {
1712     echo
1713
1714     cat <<\_ASBOX
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1718 _ASBOX
1719     echo
1720     # The following way of writing the cache mishandles newlines in values,
1721 (
1722   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723     eval ac_val=\$$ac_var
1724     case $ac_val in #(
1725     *${as_nl}*)
1726       case $ac_var in #(
1727       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729       esac
1730       case $ac_var in #(
1731       _ | IFS | as_nl) ;; #(
1732       *) $as_unset $ac_var ;;
1733       esac ;;
1734     esac
1735   done
1736   (set) 2>&1 |
1737     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738     *${as_nl}ac_space=\ *)
1739       sed -n \
1740         "s/'\''/'\''\\\\'\'''\''/g;
1741           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1742       ;; #(
1743     *)
1744       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745       ;;
1746     esac |
1747     sort
1748 )
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ----------------- ##
1753 ## Output variables. ##
1754 ## ----------------- ##
1755 _ASBOX
1756     echo
1757     for ac_var in $ac_subst_vars
1758     do
1759       eval ac_val=\$$ac_var
1760       case $ac_val in
1761       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762       esac
1763       echo "$ac_var='\''$ac_val'\''"
1764     done | sort
1765     echo
1766
1767     if test -n "$ac_subst_files"; then
1768       cat <<\_ASBOX
1769 ## ------------------- ##
1770 ## File substitutions. ##
1771 ## ------------------- ##
1772 _ASBOX
1773       echo
1774       for ac_var in $ac_subst_files
1775       do
1776         eval ac_val=\$$ac_var
1777         case $ac_val in
1778         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779         esac
1780         echo "$ac_var='\''$ac_val'\''"
1781       done | sort
1782       echo
1783     fi
1784
1785     if test -s confdefs.h; then
1786       cat <<\_ASBOX
1787 ## ----------- ##
1788 ## confdefs.h. ##
1789 ## ----------- ##
1790 _ASBOX
1791       echo
1792       cat confdefs.h
1793       echo
1794     fi
1795     test "$ac_signal" != 0 &&
1796       echo "$as_me: caught signal $ac_signal"
1797     echo "$as_me: exit $exit_status"
1798   } >&5
1799   rm -f core *.core core.conftest.* &&
1800     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1801     exit $exit_status
1802 ' 0
1803 for ac_signal in 1 2 13 15; do
1804   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805 done
1806 ac_signal=0
1807
1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1809 rm -f -r conftest* confdefs.h
1810
1811 # Predefined preprocessor variables.
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_NAME "$PACKAGE_NAME"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 _ACEOF
1836
1837
1838 # Let the site file select an alternate cache file if it wants to.
1839 # Prefer explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841   set x "$CONFIG_SITE"
1842 elif test "x$prefix" != xNONE; then
1843   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 else
1845   set x "$ac_default_prefix/share/config.site" \
1846         "$ac_default_prefix/etc/config.site"
1847 fi
1848 shift
1849 for ac_site_file
1850 do
1851   if test -r "$ac_site_file"; then
1852     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853 echo "$as_me: loading site script $ac_site_file" >&6;}
1854     sed 's/^/| /' "$ac_site_file" >&5
1855     . "$ac_site_file"
1856   fi
1857 done
1858
1859 if test -r "$cache_file"; then
1860   # Some versions of bash will fail to source /dev/null (special
1861   # files actually), so we avoid doing that.
1862   if test -f "$cache_file"; then
1863     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864 echo "$as_me: loading cache $cache_file" >&6;}
1865     case $cache_file in
1866       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867       *)                      . "./$cache_file";;
1868     esac
1869   fi
1870 else
1871   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872 echo "$as_me: creating cache $cache_file" >&6;}
1873   >$cache_file
1874 fi
1875
1876 # Check that the precious variables saved in the cache have kept the same
1877 # value.
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881   eval ac_new_set=\$ac_env_${ac_var}_set
1882   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883   eval ac_new_val=\$ac_env_${ac_var}_value
1884   case $ac_old_set,$ac_new_set in
1885     set,)
1886       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888       ac_cache_corrupted=: ;;
1889     ,set)
1890       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892       ac_cache_corrupted=: ;;
1893     ,);;
1894     *)
1895       if test "x$ac_old_val" != "x$ac_new_val"; then
1896         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1899 echo "$as_me:   former value:  $ac_old_val" >&2;}
1900         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1901 echo "$as_me:   current value: $ac_new_val" >&2;}
1902         ac_cache_corrupted=:
1903       fi;;
1904   esac
1905   # Pass precious variables to config.status.
1906   if test "$ac_new_set" = set; then
1907     case $ac_new_val in
1908     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909     *) ac_arg=$ac_var=$ac_new_val ;;
1910     esac
1911     case " $ac_configure_args " in
1912       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1913       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914     esac
1915   fi
1916 done
1917 if $ac_cache_corrupted; then
1918   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922    { (exit 1); exit 1; }; }
1923 fi
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956
1957 LLVM_VERSION_MAJOR=3
1958 LLVM_VERSION_MINOR=8
1959 LLVM_VERSION_PATCH=0
1960 LLVM_VERSION_SUFFIX=svn
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1970 _ACEOF
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1975 _ACEOF
1976
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1980 _ACEOF
1981
1982
1983
1984
1985
1986
1987
1988 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1989
1990
1991
1992
1993
1994
1995
1996 ac_aux_dir=
1997 for ac_dir in autoconf "$srcdir"/autoconf; do
1998   if test -f "$ac_dir/install-sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install-sh -c"
2001     break
2002   elif test -f "$ac_dir/install.sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install.sh -c"
2005     break
2006   elif test -f "$ac_dir/shtool"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/shtool install -c"
2009     break
2010   fi
2011 done
2012 if test -z "$ac_aux_dir"; then
2013   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2025
2026
2027
2028 if test ${srcdir} != "." ; then
2029   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2030     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2031 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2032    { (exit 1); exit 1; }; }
2033   fi
2034 fi
2035
2036 if test ${srcdir} = "." ; then
2037   { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2038 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2039    { (exit 1); exit 1; }; }
2040 fi
2041
2042 : ${CFLAGS=}
2043 : ${CXXFLAGS=}
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 if test -n "$ac_tool_prefix"; then
2051   for ac_prog in clang gcc
2052   do
2053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   if test -n "$CC"; then
2061   ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   for ac_exec_ext in '' $ac_executable_extensions; do
2069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2070     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072     break 2
2073   fi
2074 done
2075 done
2076 IFS=$as_save_IFS
2077
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082   { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2084 else
2085   { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2087 fi
2088
2089
2090     test -n "$CC" && break
2091   done
2092 fi
2093 if test -z "$CC"; then
2094   ac_ct_CC=$CC
2095   for ac_prog in clang gcc
2096 do
2097   # Extract the first word of "$ac_prog", so it can be a program name with args.
2098 set dummy $ac_prog; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test -n "$ac_ct_CC"; then
2105   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   for ac_exec_ext in '' $ac_executable_extensions; do
2113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2114     ac_cv_prog_ac_ct_CC="$ac_prog"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 fi
2123 fi
2124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125 if test -n "$ac_ct_CC"; then
2126   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127 echo "${ECHO_T}$ac_ct_CC" >&6; }
2128 else
2129   { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2131 fi
2132
2133
2134   test -n "$ac_ct_CC" && break
2135 done
2136
2137   if test "x$ac_ct_CC" = x; then
2138     CC=""
2139   else
2140     case $cross_compiling:$ac_tool_warned in
2141 yes:)
2142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2143 whose name does not start with the host triplet.  If you think this
2144 configuration is useful to you, please write to autoconf@gnu.org." >&5
2145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2146 whose name does not start with the host triplet.  If you think this
2147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2148 ac_tool_warned=yes ;;
2149 esac
2150     CC=$ac_ct_CC
2151   fi
2152 fi
2153
2154
2155 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2156 See \`config.log' for more details." >&5
2157 echo "$as_me: error: no acceptable C compiler found in \$PATH
2158 See \`config.log' for more details." >&2;}
2159    { (exit 1); exit 1; }; }
2160
2161 # Provide some information about the compiler.
2162 echo "$as_me:$LINENO: checking for C compiler version" >&5
2163 ac_compiler=`set X $ac_compile; echo $2`
2164 { (ac_try="$ac_compiler --version >&5"
2165 case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170   (eval "$ac_compiler --version >&5") 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }
2174 { (ac_try="$ac_compiler -v >&5"
2175 case "(($ac_try" in
2176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177   *) ac_try_echo=$ac_try;;
2178 esac
2179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2180   (eval "$ac_compiler -v >&5") 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }
2184 { (ac_try="$ac_compiler -V >&5"
2185 case "(($ac_try" in
2186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187   *) ac_try_echo=$ac_try;;
2188 esac
2189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2190   (eval "$ac_compiler -V >&5") 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }
2194
2195 cat >conftest.$ac_ext <<_ACEOF
2196 /* confdefs.h.  */
2197 _ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h.  */
2201
2202 int
2203 main ()
2204 {
2205
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 ac_clean_files_save=$ac_clean_files
2211 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2212 # Try to create an executable without -o first, disregard a.out.
2213 # It will help us diagnose broken compilers, and finding out an intuition
2214 # of exeext.
2215 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2216 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2217 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2218 #
2219 # List of possible output files, starting from the most likely.
2220 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2221 # only as a last resort.  b.out is created by i960 compilers.
2222 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2223 #
2224 # The IRIX 6 linker writes into existing files which may not be
2225 # executable, retaining their permissions.  Remove them first so a
2226 # subsequent execution test works.
2227 ac_rmfiles=
2228 for ac_file in $ac_files
2229 do
2230   case $ac_file in
2231     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2232     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2233   esac
2234 done
2235 rm -f $ac_rmfiles
2236
2237 if { (ac_try="$ac_link_default"
2238 case "(($ac_try" in
2239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240   *) ac_try_echo=$ac_try;;
2241 esac
2242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243   (eval "$ac_link_default") 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; then
2247   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2249 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2250 # so that the user can short-circuit this test for compilers unknown to
2251 # Autoconf.
2252 for ac_file in $ac_files
2253 do
2254   test -f "$ac_file" || continue
2255   case $ac_file in
2256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2257         ;;
2258     [ab].out )
2259         # We found the default executable, but exeext='' is most
2260         # certainly right.
2261         break;;
2262     *.* )
2263         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2264         then :; else
2265            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266         fi
2267         # We set ac_cv_exeext here because the later test for it is not
2268         # safe: cross compilers may not add the suffix if given an `-o'
2269         # argument, so we may need to know it at that point already.
2270         # Even if this section looks crufty: it has the advantage of
2271         # actually working.
2272         break;;
2273     * )
2274         break;;
2275   esac
2276 done
2277 test "$ac_cv_exeext" = no && ac_cv_exeext=
2278
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: C compiler cannot create executables
2286 See \`config.log' for more details." >&2;}
2287    { (exit 77); exit 77; }; }
2288 fi
2289
2290 ac_exeext=$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_file" >&5
2292 echo "${ECHO_T}$ac_file" >&6; }
2293
2294 # Check that the compiler produces executables we can run.  If not, either
2295 # the compiler is broken, or we cross compile.
2296 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2297 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2298 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2299 # If not cross compiling, check that we can run a simple program.
2300 if test "$cross_compiling" != yes; then
2301   if { ac_try='./$ac_file'
2302   { (case "(($ac_try" in
2303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304   *) ac_try_echo=$ac_try;;
2305 esac
2306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2307   (eval "$ac_try") 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; }; then
2311     cross_compiling=no
2312   else
2313     if test "$cross_compiling" = maybe; then
2314         cross_compiling=yes
2315     else
2316         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2317 If you meant to cross compile, use \`--host'.
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&2;}
2322    { (exit 1); exit 1; }; }
2323     fi
2324   fi
2325 fi
2326 { echo "$as_me:$LINENO: result: yes" >&5
2327 echo "${ECHO_T}yes" >&6; }
2328
2329 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2330 ac_clean_files=$ac_clean_files_save
2331 # Check that the compiler produces executables we can run.  If not, either
2332 # the compiler is broken, or we cross compile.
2333 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2334 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2335 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2336 echo "${ECHO_T}$cross_compiling" >&6; }
2337
2338 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2339 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2340 if { (ac_try="$ac_link"
2341 case "(($ac_try" in
2342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343   *) ac_try_echo=$ac_try;;
2344 esac
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346   (eval "$ac_link") 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; then
2350   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2351 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2352 # work properly (i.e., refer to `conftest.exe'), while it won't with
2353 # `rm'.
2354 for ac_file in conftest.exe conftest conftest.*; do
2355   test -f "$ac_file" || continue
2356   case $ac_file in
2357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2358     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2359           break;;
2360     * ) break;;
2361   esac
2362 done
2363 else
2364   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2367 See \`config.log' for more details." >&2;}
2368    { (exit 1); exit 1; }; }
2369 fi
2370
2371 rm -f conftest$ac_cv_exeext
2372 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2373 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2374
2375 rm -f conftest.$ac_ext
2376 EXEEXT=$ac_cv_exeext
2377 ac_exeext=$EXEEXT
2378 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2379 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2380 if test "${ac_cv_objext+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h.  */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h.  */
2389
2390 int
2391 main ()
2392 {
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 rm -f conftest.o conftest.obj
2399 if { (ac_try="$ac_compile"
2400 case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_compile") 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; then
2409   for ac_file in conftest.o conftest.obj conftest.*; do
2410   test -f "$ac_file" || continue;
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2413     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2414        break;;
2415   esac
2416 done
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2424 See \`config.log' for more details." >&2;}
2425    { (exit 1); exit 1; }; }
2426 fi
2427
2428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2429 fi
2430 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2431 echo "${ECHO_T}$ac_cv_objext" >&6; }
2432 OBJEXT=$ac_cv_objext
2433 ac_objext=$OBJEXT
2434 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2435 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2436 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445
2446 int
2447 main ()
2448 {
2449 #ifndef __GNUC__
2450        choke me
2451 #endif
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_try") 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_compiler_gnu=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         ac_compiler_gnu=no
2497 fi
2498
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2501
2502 fi
2503 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2505 GCC=`test $ac_compiler_gnu = yes && echo yes`
2506 ac_test_CFLAGS=${CFLAGS+set}
2507 ac_save_CFLAGS=$CFLAGS
2508 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_cc_g+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   ac_save_c_werror_flag=$ac_c_werror_flag
2514    ac_c_werror_flag=yes
2515    ac_cv_prog_cc_g=no
2516    CFLAGS="-g"
2517    cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547   { (case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_try") 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_try") 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   ac_cv_prog_cc_g=yes
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571         CFLAGS=""
2572       cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578
2579 int
2580 main ()
2581 {
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2595   ac_status=$?
2596   grep -v '^ *+' conftest.er1 >conftest.err
2597   rm -f conftest.er1
2598   cat conftest.err >&5
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); } &&
2601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2602   { (case "(($ac_try" in
2603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604   *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607   (eval "$ac_try") 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; } &&
2611          { ac_try='test -s conftest.$ac_objext'
2612   { (case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617   (eval "$ac_try") 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   :
2622 else
2623   echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626         ac_c_werror_flag=$ac_save_c_werror_flag
2627          CFLAGS="-g"
2628          cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634
2635 int
2636 main ()
2637 {
2638
2639   ;
2640   return 0;
2641 }
2642 _ACEOF
2643 rm -f conftest.$ac_objext
2644 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2651   ac_status=$?
2652   grep -v '^ *+' conftest.er1 >conftest.err
2653   rm -f conftest.er1
2654   cat conftest.err >&5
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); } &&
2657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2658   { (case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_try") 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; } &&
2667          { ac_try='test -s conftest.$ac_objext'
2668   { (case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673   (eval "$ac_try") 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682
2683 fi
2684
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 fi
2687
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692    ac_c_werror_flag=$ac_save_c_werror_flag
2693 fi
2694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2696 if test "$ac_test_CFLAGS" = set; then
2697   CFLAGS=$ac_save_CFLAGS
2698 elif test $ac_cv_prog_cc_g = yes; then
2699   if test "$GCC" = yes; then
2700     CFLAGS="-g -O2"
2701   else
2702     CFLAGS="-g"
2703   fi
2704 else
2705   if test "$GCC" = yes; then
2706     CFLAGS="-O2"
2707   else
2708     CFLAGS=
2709   fi
2710 fi
2711 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2712 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_cc_c89+set}" = set; then
2714   echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716   ac_cv_prog_cc_c89=no
2717 ac_save_CC=$CC
2718 cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h.  */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h.  */
2724 #include <stdarg.h>
2725 #include <stdio.h>
2726 #include <sys/types.h>
2727 #include <sys/stat.h>
2728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2729 struct buf { int x; };
2730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2732      char **p;
2733      int i;
2734 {
2735   return p[i];
2736 }
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2738 {
2739   char *s;
2740   va_list v;
2741   va_start (v,p);
2742   s = g (p, va_arg (v,int));
2743   va_end (v);
2744   return s;
2745 }
2746
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2748    function prototypes and stuff, but not '\xHH' hex character constants.
2749    These don't provoke an error unfortunately, instead are silently treated
2750    as 'x'.  The following induces an error, until -std is added to get
2751    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2752    array size at least.  It's necessary to write '\x00'==0 to get something
2753    that's true only with -std.  */
2754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2755
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757    inside strings and character constants.  */
2758 #define FOO(x) 'x'
2759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2760
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2765 int argc;
2766 char **argv;
2767 int
2768 main ()
2769 {
2770 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2776         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 do
2778   CC="$ac_save_CC $ac_arg"
2779   rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794   { (case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_try") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_try") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813   ac_cv_prog_cc_c89=$ac_arg
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818
2819 fi
2820
2821 rm -f core conftest.err conftest.$ac_objext
2822   test "x$ac_cv_prog_cc_c89" != "xno" && break
2823 done
2824 rm -f conftest.$ac_ext
2825 CC=$ac_save_CC
2826
2827 fi
2828 # AC_CACHE_VAL
2829 case "x$ac_cv_prog_cc_c89" in
2830   x)
2831     { echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6; } ;;
2833   xno)
2834     { echo "$as_me:$LINENO: result: unsupported" >&5
2835 echo "${ECHO_T}unsupported" >&6; } ;;
2836   *)
2837     CC="$CC $ac_cv_prog_cc_c89"
2838     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2840 esac
2841
2842
2843 ac_ext=c
2844 ac_cpp='$CPP $CPPFLAGS'
2845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848
2849 ac_ext=cpp
2850 ac_cpp='$CXXCPP $CPPFLAGS'
2851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2854 if test -z "$CXX"; then
2855   if test -n "$CCC"; then
2856     CXX=$CCC
2857   else
2858     if test -n "$ac_tool_prefix"; then
2859   for ac_prog in clang++ g++
2860   do
2861     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CXX+set}" = set; then
2866   echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868   if test -n "$CXX"; then
2869   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874   IFS=$as_save_IFS
2875   test -z "$as_dir" && as_dir=.
2876   for ac_exec_ext in '' $ac_executable_extensions; do
2877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2878     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880     break 2
2881   fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 CXX=$ac_cv_prog_CXX
2889 if test -n "$CXX"; then
2890   { echo "$as_me:$LINENO: result: $CXX" >&5
2891 echo "${ECHO_T}$CXX" >&6; }
2892 else
2893   { echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6; }
2895 fi
2896
2897
2898     test -n "$CXX" && break
2899   done
2900 fi
2901 if test -z "$CXX"; then
2902   ac_ct_CXX=$CXX
2903   for ac_prog in clang++ g++
2904 do
2905   # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   if test -n "$ac_ct_CXX"; then
2913   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920   for ac_exec_ext in '' $ac_executable_extensions; do
2921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2922     ac_cv_prog_ac_ct_CXX="$ac_prog"
2923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2933 if test -n "$ac_ct_CXX"; then
2934   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2935 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2936 else
2937   { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2939 fi
2940
2941
2942   test -n "$ac_ct_CXX" && break
2943 done
2944
2945   if test "x$ac_ct_CXX" = x; then
2946     CXX="g++"
2947   else
2948     case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet.  If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&5
2953 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet.  If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958     CXX=$ac_ct_CXX
2959   fi
2960 fi
2961
2962   fi
2963 fi
2964 # Provide some information about the compiler.
2965 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2966 ac_compiler=`set X $ac_compile; echo $2`
2967 { (ac_try="$ac_compiler --version >&5"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compiler --version >&5") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }
2977 { (ac_try="$ac_compiler -v >&5"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_compiler -v >&5") 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }
2987 { (ac_try="$ac_compiler -V >&5"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_compiler -V >&5") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }
2997
2998 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2999 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3000 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013 #ifndef __GNUC__
3014        choke me
3015 #endif
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_compiler_gnu=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         ac_compiler_gnu=no
3061 fi
3062
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3065
3066 fi
3067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3069 GXX=`test $ac_compiler_gnu = yes && echo yes`
3070 ac_test_CXXFLAGS=${CXXFLAGS+set}
3071 ac_save_CXXFLAGS=$CXXFLAGS
3072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cxx_g+set}" = set; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3078    ac_cxx_werror_flag=yes
3079    ac_cv_prog_cxx_g=no
3080    CXXFLAGS="-g"
3081    cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } &&
3110          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111   { (case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_try") 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_try") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   ac_cv_prog_cxx_g=yes
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135         CXXFLAGS=""
3136       cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3166   { (case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_try") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; } &&
3175          { ac_try='test -s conftest.$ac_objext'
3176   { (case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_try") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; }; then
3185   :
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191          CXXFLAGS="-g"
3192          cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202
3203   ;
3204   return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3215   ac_status=$?
3216   grep -v '^ *+' conftest.er1 >conftest.err
3217   rm -f conftest.er1
3218   cat conftest.err >&5
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); } &&
3221          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3222   { (case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_try") 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; } &&
3231          { ac_try='test -s conftest.$ac_objext'
3232   { (case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_try") 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   ac_cv_prog_cxx_g=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3257 fi
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3260 if test "$ac_test_CXXFLAGS" = set; then
3261   CXXFLAGS=$ac_save_CXXFLAGS
3262 elif test $ac_cv_prog_cxx_g = yes; then
3263   if test "$GXX" = yes; then
3264     CXXFLAGS="-g -O2"
3265   else
3266     CXXFLAGS="-g"
3267   fi
3268 else
3269   if test "$GXX" = yes; then
3270     CXXFLAGS="-O2"
3271   else
3272     CXXFLAGS=
3273   fi
3274 fi
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281 ac_ext=c
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3287 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3288 # On Suns, sometimes $CPP names a directory.
3289 if test -n "$CPP" && test -d "$CPP"; then
3290   CPP=
3291 fi
3292 if test -z "$CPP"; then
3293   if test "${ac_cv_prog_CPP+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296       # Double quotes because CPP needs to be expanded
3297     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3298     do
3299       ac_preproc_ok=false
3300 for ac_c_preproc_warn_flag in '' yes
3301 do
3302   # Use a header file that comes with gcc, so configuring glibc
3303   # with a fresh cross-compiler works.
3304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305   # <limits.h> exists even on freestanding compilers.
3306   # On the NeXT, cc -E runs the code through the compiler's parser,
3307   # not just through cpp. "Syntax error" is here to catch this case.
3308   cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 #ifdef __STDC__
3315 # include <limits.h>
3316 #else
3317 # include <assert.h>
3318 #endif
3319                      Syntax error
3320 _ACEOF
3321 if { (ac_try="$ac_cpp conftest.$ac_ext"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } >/dev/null; then
3334   if test -s conftest.err; then
3335     ac_cpp_err=$ac_c_preproc_warn_flag
3336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337   else
3338     ac_cpp_err=
3339   fi
3340 else
3341   ac_cpp_err=yes
3342 fi
3343 if test -z "$ac_cpp_err"; then
3344   :
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349   # Broken: fails on valid input.
3350 continue
3351 fi
3352
3353 rm -f conftest.err conftest.$ac_ext
3354
3355   # OK, works on sane cases.  Now check whether nonexistent headers
3356   # can be detected and how.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   # Broken: success on invalid input.
3389 continue
3390 else
3391   echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394   # Passes both tests.
3395 ac_preproc_ok=:
3396 break
3397 fi
3398
3399 rm -f conftest.err conftest.$ac_ext
3400
3401 done
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3405   break
3406 fi
3407
3408     done
3409     ac_cv_prog_CPP=$CPP
3410
3411 fi
3412   CPP=$ac_cv_prog_CPP
3413 else
3414   ac_cv_prog_CPP=$CPP
3415 fi
3416 { echo "$as_me:$LINENO: result: $CPP" >&5
3417 echo "${ECHO_T}$CPP" >&6; }
3418 ac_preproc_ok=false
3419 for ac_c_preproc_warn_flag in '' yes
3420 do
3421   # Use a header file that comes with gcc, so configuring glibc
3422   # with a fresh cross-compiler works.
3423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424   # <limits.h> exists even on freestanding compilers.
3425   # On the NeXT, cc -E runs the code through the compiler's parser,
3426   # not just through cpp. "Syntax error" is here to catch this case.
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438                      Syntax error
3439 _ACEOF
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } >/dev/null; then
3453   if test -s conftest.err; then
3454     ac_cpp_err=$ac_c_preproc_warn_flag
3455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456   else
3457     ac_cpp_err=
3458   fi
3459 else
3460   ac_cpp_err=yes
3461 fi
3462 if test -z "$ac_cpp_err"; then
3463   :
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468   # Broken: fails on valid input.
3469 continue
3470 fi
3471
3472 rm -f conftest.err conftest.$ac_ext
3473
3474   # OK, works on sane cases.  Now check whether nonexistent headers
3475   # can be detected and how.
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491   ac_status=$?
3492   grep -v '^ *+' conftest.er1 >conftest.err
3493   rm -f conftest.er1
3494   cat conftest.err >&5
3495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496   (exit $ac_status); } >/dev/null; then
3497   if test -s conftest.err; then
3498     ac_cpp_err=$ac_c_preproc_warn_flag
3499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500   else
3501     ac_cpp_err=
3502   fi
3503 else
3504   ac_cpp_err=yes
3505 fi
3506 if test -z "$ac_cpp_err"; then
3507   # Broken: success on invalid input.
3508 continue
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513   # Passes both tests.
3514 ac_preproc_ok=:
3515 break
3516 fi
3517
3518 rm -f conftest.err conftest.$ac_ext
3519
3520 done
3521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522 rm -f conftest.err conftest.$ac_ext
3523 if $ac_preproc_ok; then
3524   :
3525 else
3526   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3527 See \`config.log' for more details." >&5
3528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3529 See \`config.log' for more details." >&2;}
3530    { (exit 1); exit 1; }; }
3531 fi
3532
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538
3539
3540 if test "$CXX" = "clang++" ; then
3541   { echo "$as_me:$LINENO: checking whether clang works" >&5
3542 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3543   ac_ext=cpp
3544 ac_cpp='$CXXCPP $CPPFLAGS'
3545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3548
3549
3550 cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #include <limits>
3557 #if __has_include (<cxxabi.h>)
3558 #include <cxxabi.h>
3559 #endif
3560 #if __has_include (<unwind.h>)
3561 #include <unwind.h>
3562 #endif
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3580   ac_status=$?
3581   grep -v '^ *+' conftest.er1 >conftest.err
3582   rm -f conftest.er1
3583   cat conftest.err >&5
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); } &&
3586          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3587   { (case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; } &&
3596          { ac_try='test -s conftest.$ac_objext'
3597   { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_try") 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; }; then
3606
3607   { echo "$as_me:$LINENO: result: yes" >&5
3608 echo "${ECHO_T}yes" >&6; }
3609
3610 else
3611   echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614
3615   { echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6; }
3617   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3618 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3619    { (exit 1); exit 1; }; }
3620
3621 fi
3622
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624   ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630 fi
3631
3632 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3633 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3634 ac_ext=cpp
3635 ac_cpp='$CXXCPP $CPPFLAGS'
3636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3639
3640 llvm_cv_cxx_compiler=unknown
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647 #if ! __clang__
3648                                     #error
3649                                     #endif
3650
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3660   ac_status=$?
3661   grep -v '^ *+' conftest.er1 >conftest.err
3662   rm -f conftest.er1
3663   cat conftest.err >&5
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); } &&
3666          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3667   { (case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672   (eval "$ac_try") 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; } &&
3676          { ac_try='test -s conftest.$ac_objext'
3677   { (case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682   (eval "$ac_try") 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); }; }; then
3686   llvm_cv_cxx_compiler=clang
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691         cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h.  */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h.  */
3697 #if ! __GNUC__
3698                                                        #error
3699                                                        #endif
3700
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3717   { (case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722   (eval "$ac_try") 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; } &&
3726          { ac_try='test -s conftest.$ac_objext'
3727   { (case "(($ac_try" in
3728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729   *) ac_try_echo=$ac_try;;
3730 esac
3731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732   (eval "$ac_try") 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; }; then
3736   llvm_cv_cxx_compiler=gcc
3737 else
3738   echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741
3742 fi
3743
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3755 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3756 CXX_COMPILER=$llvm_cv_cxx_compiler
3757
3758
3759
3760
3761 if test -d ${srcdir}/projects/test-suite ; then
3762   subdirs="$subdirs projects/test-suite"
3763
3764 fi
3765
3766 if test -d ${srcdir}/projects/llvm-test ; then
3767   subdirs="$subdirs projects/llvm-test"
3768
3769 fi
3770
3771 if test -d ${srcdir}/projects/poolalloc ; then
3772   subdirs="$subdirs projects/poolalloc"
3773
3774 fi
3775
3776 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3777   subdirs="$subdirs projects/llvm-poolalloc"
3778
3779 fi
3780
3781 for i in `ls ${srcdir}/projects`
3782 do
3783   if test -d ${srcdir}/projects/${i} ; then
3784     case ${i} in
3785       safecode)     subdirs="$subdirs projects/safecode"
3786  ;;
3787       compiler-rt)       ;;
3788       test-suite)     ;;
3789       llvm-test)      ;;
3790       poolalloc)      ;;
3791       llvm-poolalloc) ;;
3792       *)
3793         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3794 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3795         ;;
3796     esac
3797   fi
3798 done
3799
3800 # Check whether --enable-polly was given.
3801 if test "${enable_polly+set}" = set; then
3802   enableval=$enable_polly;
3803 else
3804   enableval=default
3805 fi
3806
3807 case "$enableval" in
3808   yes) ENABLE_POLLY=1
3809  ;;
3810   no)  ENABLE_POLLY=0
3811  ;;
3812   default) ENABLE_POLLY=1
3813  ;;
3814   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3815 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3816    { (exit 1); exit 1; }; } ;;
3817 esac
3818
3819
3820 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3821   LLVM_HAS_POLLY=1
3822
3823   subdirs="$subdirs tools/polly"
3824
3825 fi
3826
3827
3828 # Make sure we can run config.sub.
3829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3830   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3831 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3832    { (exit 1); exit 1; }; }
3833
3834 { echo "$as_me:$LINENO: checking build system type" >&5
3835 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3836 if test "${ac_cv_build+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   ac_build_alias=$build_alias
3840 test "x$ac_build_alias" = x &&
3841   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3842 test "x$ac_build_alias" = x &&
3843   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3844 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3845    { (exit 1); exit 1; }; }
3846 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3847   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3849    { (exit 1); exit 1; }; }
3850
3851 fi
3852 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3853 echo "${ECHO_T}$ac_cv_build" >&6; }
3854 case $ac_cv_build in
3855 *-*-*) ;;
3856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3857 echo "$as_me: error: invalid value of canonical build" >&2;}
3858    { (exit 1); exit 1; }; };;
3859 esac
3860 build=$ac_cv_build
3861 ac_save_IFS=$IFS; IFS='-'
3862 set x $ac_cv_build
3863 shift
3864 build_cpu=$1
3865 build_vendor=$2
3866 shift; shift
3867 # Remember, the first character of IFS is used to create $*,
3868 # except with old shells:
3869 build_os=$*
3870 IFS=$ac_save_IFS
3871 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3872
3873
3874 { echo "$as_me:$LINENO: checking host system type" >&5
3875 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3876 if test "${ac_cv_host+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   if test "x$host_alias" = x; then
3880   ac_cv_host=$ac_cv_build
3881 else
3882   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3883     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3885    { (exit 1); exit 1; }; }
3886 fi
3887
3888 fi
3889 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3890 echo "${ECHO_T}$ac_cv_host" >&6; }
3891 case $ac_cv_host in
3892 *-*-*) ;;
3893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3894 echo "$as_me: error: invalid value of canonical host" >&2;}
3895    { (exit 1); exit 1; }; };;
3896 esac
3897 host=$ac_cv_host
3898 ac_save_IFS=$IFS; IFS='-'
3899 set x $ac_cv_host
3900 shift
3901 host_cpu=$1
3902 host_vendor=$2
3903 shift; shift
3904 # Remember, the first character of IFS is used to create $*,
3905 # except with old shells:
3906 host_os=$*
3907 IFS=$ac_save_IFS
3908 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3909
3910
3911 { echo "$as_me:$LINENO: checking target system type" >&5
3912 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3913 if test "${ac_cv_target+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test "x$target_alias" = x; then
3917   ac_cv_target=$ac_cv_host
3918 else
3919   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3920     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3921 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3922    { (exit 1); exit 1; }; }
3923 fi
3924
3925 fi
3926 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3927 echo "${ECHO_T}$ac_cv_target" >&6; }
3928 case $ac_cv_target in
3929 *-*-*) ;;
3930 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3931 echo "$as_me: error: invalid value of canonical target" >&2;}
3932    { (exit 1); exit 1; }; };;
3933 esac
3934 target=$ac_cv_target
3935 ac_save_IFS=$IFS; IFS='-'
3936 set x $ac_cv_target
3937 shift
3938 target_cpu=$1
3939 target_vendor=$2
3940 shift; shift
3941 # Remember, the first character of IFS is used to create $*,
3942 # except with old shells:
3943 target_os=$*
3944 IFS=$ac_save_IFS
3945 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3946
3947
3948 # The aliases save the names the user supplied, while $host etc.
3949 # will get canonicalized.
3950 test -n "$target_alias" &&
3951   test "$program_prefix$program_suffix$program_transform_name" = \
3952     NONENONEs,x,x, &&
3953   program_prefix=${target_alias}-
3954
3955 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3956 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3957 if test "${llvm_cv_os_type+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   case $host in
3961   *-*-aix*)
3962     llvm_cv_link_all_option="-Wl,--whole-archive"
3963     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964     llvm_cv_os_type="AIX"
3965     llvm_cv_platform_type="Unix" ;;
3966   *-*-irix*)
3967     llvm_cv_link_all_option="-Wl,--whole-archive"
3968     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969     llvm_cv_os_type="IRIX"
3970     llvm_cv_platform_type="Unix" ;;
3971   *-*-cygwin*)
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="Cygwin"
3975     llvm_cv_platform_type="Unix" ;;
3976   *-*-darwin*)
3977     llvm_cv_link_all_option="-Wl,-all_load"
3978     llvm_cv_no_link_all_option="-Wl,-noall_load"
3979     llvm_cv_os_type="Darwin"
3980     llvm_cv_platform_type="Unix" ;;
3981   *-*-minix*)
3982     llvm_cv_link_all_option="-Wl,-all_load"
3983     llvm_cv_no_link_all_option="-Wl,-noall_load"
3984     llvm_cv_os_type="Minix"
3985     llvm_cv_platform_type="Unix" ;;
3986   *-*-freebsd*)
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="FreeBSD"
3990     llvm_cv_platform_type="Unix" ;;
3991   *-*-kfreebsd-gnu)
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="GNU/kFreeBSD"
3995     llvm_cv_platform_type="Unix" ;;
3996   *-*-openbsd*)
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="OpenBSD"
4000     llvm_cv_platform_type="Unix" ;;
4001   *-*-netbsd*)
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="NetBSD"
4005     llvm_cv_platform_type="Unix" ;;
4006   *-*-dragonfly*)
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="DragonFly"
4010     llvm_cv_platform_type="Unix" ;;
4011   *-*-bitrig*)
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="Bitrig"
4015     llvm_cv_platform_type="Unix" ;;
4016   *-*-hpux*)
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="HP-UX"
4020     llvm_cv_platform_type="Unix" ;;
4021   *-*-interix*)
4022     llvm_cv_link_all_option="-Wl,--whole-archive"
4023     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024     llvm_cv_os_type="Interix"
4025     llvm_cv_platform_type="Unix" ;;
4026   *-*-linux*)
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="Linux"
4030     llvm_cv_platform_type="Unix" ;;
4031   *-*-gnu*)
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="GNU"
4035     llvm_cv_platform_type="Unix" ;;
4036   *-*-solaris*)
4037     llvm_cv_link_all_option="-Wl,-z,allextract"
4038     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4039     llvm_cv_os_type="SunOS"
4040     llvm_cv_platform_type="Unix" ;;
4041   *-*-win32*)
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="Win32"
4045     llvm_cv_platform_type="Win32" ;;
4046   *-*-mingw*)
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="MingW"
4050     llvm_cv_platform_type="Win32" ;;
4051   *-*-haiku*)
4052     llvm_cv_link_all_option="-Wl,--whole-archive"
4053     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4054     llvm_cv_os_type="Haiku"
4055     llvm_cv_platform_type="Unix" ;;
4056   *-unknown-eabi*)
4057     llvm_cv_link_all_option="-Wl,--whole-archive"
4058     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4059     llvm_cv_os_type="Freestanding"
4060     llvm_cv_platform_type="Unix" ;;
4061   *-unknown-elf*)
4062     llvm_cv_link_all_option="-Wl,--whole-archive"
4063     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
40