a1b63f88888d55e02262fb8ad90434d3240f4d60
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 LLVM_CROSS_COMPILING
679 BUILD_CC
680 BUILD_EXEEXT
681 BUILD_CXX
682 CVSBUILD
683 ENABLE_LIBCPP
684 ENABLE_CXX11
685 ENABLE_SPLIT_DWARF
686 ENABLE_CLANG_ARCMT
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
689 ENABLE_OPTIMIZED
690 ENABLE_PROFILING
691 DISABLE_ASSERTIONS
692 ENABLE_WERROR
693 ENABLE_EXPENSIVE_CHECKS
694 EXPENSIVE_CHECKS
695 DEBUG_RUNTIME
696 DEBUG_SYMBOLS
697 KEEP_SYMBOLS
698 JIT
699 TARGET_HAS_JIT
700 ENABLE_DOCS
701 ENABLE_DOXYGEN
702 LLVM_ENABLE_THREADS
703 ENABLE_PTHREADS
704 LLVM_ENABLE_ZLIB
705 ENABLE_PIC
706 ENABLE_SHARED
707 ENABLE_EMBED_STDCXX
708 ENABLE_TIMESTAMPS
709 TARGETS_TO_BUILD
710 LLVM_ENUM_TARGETS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
714 OPTIMIZE_OPTION
715 EXTRA_OPTIONS
716 EXTRA_LD_OPTIONS
717 CLANG_SRC_ROOT
718 BINUTILS_INCDIR
719 INTERNAL_PREFIX
720 NM
721 ifGNUmake
722 LN_S
723 CMP
724 CP
725 DATE
726 FIND
727 GREP
728 MKDIR
729 MV
730 RANLIB
731 AR
732 RM
733 SED
734 TAR
735 BINPWD
736 GRAPHVIZ
737 DOT
738 FDP
739 NEATO
740 TWOPI
741 CIRCO
742 GV
743 DOTTY
744 XDOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 CXXCPP
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 CXXCPP'
817 ac_subdirs_all='projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/safecode
823 tools/polly'
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875   # If the previous option needs an argument, assign it.
876   if test -n "$ac_prev"; then
877     eval $ac_prev=\$ac_option
878     ac_prev=
879     continue
880   fi
881
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949    { (exit 1); exit 1; }; }
950     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951     eval enable_$ac_feature=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package| sed 's/-/_/g'`
1148     eval with_$ac_package=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package | sed 's/-/_/g'`
1157     eval with_$ac_package=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187    { (exit 1); exit 1; }; }
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   { echo "$as_me: error: missing argument to $ac_option" >&2
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Be sure to have absolute directory names.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { echo "$as_me: error: Working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$0" : 'X\(//\)[^/]' \| \
1264          X"$0" : 'X\(//\)$' \| \
1265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 echo X"$0" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR           user executables [EPREFIX/bin]
1360   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR       program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR           object code libraries [EPREFIX/lib]
1366   --includedir=DIR       C header files [PREFIX/include]
1367   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR          info documentation [DATAROOTDIR/info]
1371   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR           man documentation [DATAROOTDIR/man]
1373   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1374   --htmldir=DIR          html documentation [DOCDIR]
1375   --dvidir=DIR           dvi documentation [DOCDIR]
1376   --pdfdir=DIR           pdf documentation [DOCDIR]
1377   --psdir=DIR            ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385   --target=TARGET   configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-compiler-version-checks
1399                           Check the version of the host compiler (default is
1400                           YES)
1401   --enable-polly          Use polly if available (default is YES)
1402   --enable-libcpp         Use libc++ if available (default is NO)
1403   --enable-cxx11          Use c++11 if available (default is NO)
1404   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1405   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1406   --enable-clang-static-analyzer
1407                           Enable building of clang Static Analyzer (default is
1408                           YES)
1409   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410   --enable-optimized      Compile with optimizations enabled (default is NO)
1411   --enable-profiling      Compile with profiling enabled (default is NO)
1412   --enable-assertions     Compile with assertion checks enabled (default is
1413                           YES)
1414   --enable-werror         Compile with -Werror enabled (default is NO)
1415   --enable-expensive-checks
1416                           Compile with expensive debug checks enabled (default
1417                           is NO)
1418   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1419                           NO)
1420   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1421                           optimization is on and YES if it's off)
1422   --enable-keep-symbols   Do not strip installed executables)
1423   --enable-jit            Enable Just In Time Compiling (default is YES)
1424   --enable-docs           Build documents (default is YES)
1425   --enable-doxygen        Build doxygen documentation (default is NO)
1426   --enable-threads        Use threads if available (default is YES)
1427   --enable-pthreads       Use pthreads if available (default is YES)
1428   --enable-zlib           Use zlib for compression/decompression if available
1429                           (default is YES)
1430   --enable-pic            Build LLVM with Position Independent Code (default
1431                           is YES)
1432   --enable-shared         Build a shared library and link tools against it
1433                           (default is NO)
1434   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1435                           Win32 DLL (default is NO)
1436   --enable-timestamps     Enable embedding timestamp information in build
1437                           (default is YES)
1438   --enable-backtraces     Enable embedding backtraces on crash (default is
1439                           YES)
1440   --enable-crash-overrides
1441                           Enable crash handling overrides (default is YES)
1442   --enable-targets        Build specific host targets: all or
1443                           target1,target2,... Valid targets are: host, x86,
1444                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1445                           xcore, msp430, nvptx, systemz, r600, and cpp
1446                           (default=all)
1447   --enable-experimental-targets
1448                           Build experimental host targets: disable or
1449                           target1,target2,... (default=disable)
1450   --enable-bindings       Build specific language bindings:
1451                           all,auto,none,{binding-name} (default=auto)
1452   --enable-terminfo       Query the terminfo database if available (default is
1453                           YES)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.5svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.5svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 5
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 : ${CFLAGS=}
1991 : ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3581 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3582 ac_ext=cpp
3583 ac_cpp='$CXXCPP $CPPFLAGS'
3584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3587
3588 llvm_cv_cxx_compiler=unknown
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 #if ! __clang__
3596                                     #error
3597                                     #endif
3598
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } &&
3614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3615   { (case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_try") 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   llvm_cv_cxx_compiler=clang
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639         cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #if ! __GNUC__
3646                                                        #error
3647                                                        #endif
3648
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } &&
3664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665   { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; } &&
3674          { ac_try='test -s conftest.$ac_objext'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; }; then
3684   llvm_cv_cxx_compiler=gcc
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689
3690 fi
3691
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3703 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3704
3705 # Check whether --enable-compiler-version-checks was given.
3706 if test "${enable_compiler_version_checks+set}" = set; then
3707   enableval=$enable_compiler_version_checks;
3708 else
3709   enableval=default
3710 fi
3711
3712 case "$enableval" in
3713   no)
3714     ;;
3715   yes|default)
3716     ac_ext=cpp
3717 ac_cpp='$CXXCPP $CPPFLAGS'
3718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3721
3722     case "$llvm_cv_cxx_compiler" in
3723     clang)
3724       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3725 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3726       cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732
3733 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3734 #error This version of Clang is too old to build LLVM
3735 #endif
3736
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_compile") 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3753   { (case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758   (eval "$ac_try") 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); }; } &&
3762          { ac_try='test -s conftest.$ac_objext'
3763   { (case "(($ac_try" in
3764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765   *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768   (eval "$ac_try") 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); }; }; then
3772   { echo "$as_me:$LINENO: result: yes" >&5
3773 echo "${ECHO_T}yes" >&6; }
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778         { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3780            { { echo "$as_me:$LINENO: error:
3781 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3782 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3783 bypass these sanity checks." >&5
3784 echo "$as_me: error:
3785 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3786 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3787 bypass these sanity checks." >&2;}
3788    { (exit 1); exit 1; }; }
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792
3793                               { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
3794 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
3795       llvm_cv_old_cxxflags="$CXXFLAGS"
3796       CXXFLAGS="$CXXFLAGS -std=c++0x"
3797       cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h.  */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h.  */
3803
3804 #include <atomic>
3805 std::atomic<float> x(0.0f);
3806 int main() { return (float)x; }
3807
3808 _ACEOF
3809 rm -f conftest.$ac_objext conftest$ac_exeext
3810 if { (ac_try="$ac_link"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816   (eval "$ac_link") 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } &&
3823          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3824   { (case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829   (eval "$ac_try") 2>&5
3830   ac_status=$?
3831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832   (exit $ac_status); }; } &&
3833          { ac_try='test -s conftest$ac_exeext'
3834   { (case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_try") 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; }; then
3843   { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849         { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3851            { { echo "$as_me:$LINENO: error:
3852 We detected a missing feature in the standard C++ library that was known to be
3853 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
3854 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
3855 than 4.7. You will need to update your system and ensure Clang uses the newer
3856 standard library.
3857
3858 If this error is incorrect or you need to force things to work, you may pass
3859 '--disable-compiler-version-checks' to configure to bypass this test." >&5
3860 echo "$as_me: error:
3861 We detected a missing feature in the standard C++ library that was known to be
3862 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
3863 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
3864 than 4.7. You will need to update your system and ensure Clang uses the newer
3865 standard library.
3866
3867 If this error is incorrect or you need to force things to work, you may pass
3868 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
3869    { (exit 1); exit 1; }; }
3870 fi
3871
3872 rm -f core conftest.err conftest.$ac_objext \
3873       conftest$ac_exeext conftest.$ac_ext
3874       CXXFLAGS="$llvm_cv_old_cxxflags"
3875       ;;
3876     gcc)
3877       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3878 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3879       cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885
3886 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3887 #error This version of GCC is too old to build LLVM
3888 #endif
3889
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3893 case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898   (eval "$ac_compile") 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } &&
3905          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3906   { (case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911   (eval "$ac_try") 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }; } &&
3915          { ac_try='test -s conftest.$ac_objext'
3916   { (case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921   (eval "$ac_try") 2>&5
3922   ac_status=$?
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); }; }; then
3925   { echo "$as_me:$LINENO: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6; }
3927 else
3928   echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931         { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3933            { { echo "$as_me:$LINENO: error:
3934 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3935 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3936 bypass these sanity checks." >&5
3937 echo "$as_me: error:
3938 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3939 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3940 bypass these sanity checks." >&2;}
3941    { (exit 1); exit 1; }; }
3942 fi
3943
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945       ;;
3946     unknown)
3947       ;;
3948     esac
3949     ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955     ;;
3956   *)
3957     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3958 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3959    { (exit 1); exit 1; }; }
3960     ;;
3961 esac
3962
3963
3964
3965 if test -d ${srcdir}/projects/test-suite ; then
3966   subdirs="$subdirs projects/test-suite"
3967
3968 fi
3969
3970 if test -d ${srcdir}/projects/llvm-test ; then
3971   subdirs="$subdirs projects/llvm-test"
3972
3973 fi
3974
3975 if test -d ${srcdir}/projects/poolalloc ; then
3976   subdirs="$subdirs projects/poolalloc"
3977
3978 fi
3979
3980 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3981   subdirs="$subdirs projects/llvm-poolalloc"
3982
3983 fi
3984
3985 for i in `ls ${srcdir}/projects`
3986 do
3987   if test -d ${srcdir}/projects/${i} ; then
3988     case ${i} in
3989       sample)       subdirs="$subdirs projects/sample"
3990     ;;
3991       safecode)     subdirs="$subdirs projects/safecode"
3992  ;;
3993       compiler-rt)       ;;
3994       test-suite)     ;;
3995       llvm-test)      ;;
3996       poolalloc)      ;;
3997       llvm-poolalloc) ;;
3998       *)
3999         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
4000 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
4001         ;;
4002     esac
4003   fi
4004 done
4005
4006 # Check whether --enable-polly was given.
4007 if test "${enable_polly+set}" = set; then
4008   enableval=$enable_polly;
4009 else
4010   enableval=default
4011 fi
4012
4013 case "$enableval" in
4014   yes) ENABLE_POLLY=1
4015  ;;
4016   no)  ENABLE_POLLY=0
4017  ;;
4018   default) ENABLE_POLLY=1
4019  ;;
4020   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
4021 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
4022    { (exit 1); exit 1; }; } ;;
4023 esac
4024
4025
4026 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
4027   LLVM_HAS_POLLY=1
4028
4029   subdirs="$subdirs tools/polly"
4030
4031 fi
4032
4033
4034 # Make sure we can run config.sub.
4035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4036   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4038    { (exit 1); exit 1; }; }
4039
4040 { echo "$as_me:$LINENO: checking build system type" >&5
4041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4042 if test "${ac_cv_build+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   ac_build_alias=$build_alias
4046 test "x$ac_build_alias" = x &&
4047   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4048 test "x$ac_build_alias" = x &&
4049   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4051    { (exit 1); exit 1; }; }
4052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4053   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4055    { (exit 1); exit 1; }; }
4056
4057 fi
4058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4059 echo "${ECHO_T}$ac_cv_build" >&6; }
4060 case $ac_cv_build in
4061 *-*-*) ;;
4062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4063 echo "$as_me: error: invalid value of canonical build" >&2;}
4064    { (exit 1); exit 1; }; };;
4065 esac
4066 build=$ac_cv_build
4067 ac_save_IFS=$IFS; IFS='-'
4068 set x $ac_cv_build
4069 shift
4070 build_cpu=$1
4071 build_vendor=$2
4072 shift; shift
4073 # Remember, the first character of IFS is used to create $*,
4074 # except with old shells:
4075 build_os=$*
4076 IFS=$ac_save_IFS
4077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4078
4079
4080 { echo "$as_me:$LINENO: checking host system type" >&5
4081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4082 if test "${ac_cv_host+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   if test "x$host_alias" = x; then
4086   ac_cv_host=$ac_cv_build
4087 else
4088   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4089     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4091    { (exit 1); exit 1; }; }
4092 fi
4093
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4096 echo "${ECHO_T}$ac_cv_host" >&6; }
4097 case $ac_cv_host in
4098 *-*-*) ;;
4099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4100 echo "$as_me: error: invalid value of canonical host" >&2;}
4101    { (exit 1); exit 1; }; };;
4102 esac
4103 host=$ac_cv_host
4104 ac_save_IFS=$IFS; IFS='-'
4105 set x $ac_cv_host
4106 shift
4107 host_cpu=$1
4108 host_vendor=$2
4109 shift; shift
4110 # Remember, the first character of IFS is used to create $*,
4111 # except with old shells:
4112 host_os=$*
4113 IFS=$ac_save_IFS
4114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4115
4116
4117 { echo "$as_me:$LINENO: checking target system type" >&5
4118 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4119 if test "${ac_cv_target+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test "x$target_alias" = x; then
4123   ac_cv_target=$ac_cv_host
4124 else
4125   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4126     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4128    { (exit 1); exit 1; }; }
4129 fi
4130
4131 fi
4132 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4133 echo "${ECHO_T}$ac_cv_target" >&6; }
4134 case $ac_cv_target in
4135 *-*-*) ;;
4136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4137 echo "$as_me: error: invalid value of canonical target" >&2;}
4138    { (exit 1); exit 1; }; };;
4139 esac
4140 target=$ac_cv_target
4141 ac_save_IFS=$IFS; IFS='-'
4142 set x $ac_cv_target
4143 shift
4144 target_cpu=$1
4145 target_vendor=$2
4146 shift; shift
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4149 target_os=$*
4150 IFS=$ac_save_IFS
4151 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4152
4153
4154 # The aliases save the names the user supplied, while $host etc.
4155 # will get canonicalized.
4156 test -n "$target_alias" &&
4157   test "$program_prefix$program_suffix$program_transform_name" = \
4158     NONENONEs,x,x, &&
4159   program_prefix=${target_alias}-
4160
4161 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4162 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4163 if test "${llvm_cv_os_type+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   case $host in
4167   *-*-aix*)
4168     llvm_cv_link_all_option="-Wl,--whole-archive"
4169     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4170     llvm_cv_os_type="AIX"
4171     llvm_cv_platform_type="Unix" ;;
4172   *-*-irix*)
4173     llvm_cv_link_all_option="-Wl,--whole-archive"
4174     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4175     llvm_cv_os_type="IRIX"
4176     llvm_cv_platform_type="Unix" ;;
4177   *-*-cygwin*)
4178     llvm_cv_link_all_option="-Wl,--whole-archive"
4179     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4180     llvm_cv_os_type="Cygwin"
4181     llvm_cv_platform_type="Unix" ;;
4182   *-*-darwin*)
4183     llvm_cv_link_all_option="-Wl,-all_load"
4184     llvm_cv_no_link_all_option="-Wl,-noall_load"
4185     llvm_cv_os_type="Darwin"
4186     llvm_cv_platform_type="Unix" ;;
4187   *-*-minix*)
4188     llvm_cv_link_all_option="-Wl,-all_load"
4189     llvm_cv_no_link_all_option="-Wl,-noall_load"
4190     llvm_cv_os_type="Minix"
4191     llvm_cv_platform_type="Unix" ;;
4192   *-*-freebsd*)
4193     llvm_cv_link_all_option="-Wl,--whole-archive"
4194     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4195     llvm_cv_os_type="FreeBSD"
4196     llvm_cv_platform_type="Unix" ;;
4197   *-*-kfreebsd-gnu)
4198     llvm_cv_link_all_option="-Wl,--whole-archive"
4199     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4200     llvm_cv_os_type="GNU/kFreeBSD"
4201     llvm_cv_platform_type="Unix" ;;
4202   *-*-openbsd*)
4203     llvm_cv_link_all_option="-Wl,--whole-archive"
4204     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4205     llvm_cv_os_type="OpenBSD"
4206     llvm_cv_platform_type="Unix" ;;
4207   *-*-netbsd*)
4208     llvm_cv_link_all_option="-Wl,--whole-archive"
4209     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4210     llvm_cv_os_type="NetBSD"
4211     llvm_cv_platform_type="Unix" ;;
4212   *-*-dragonfly*)
4213     llvm_cv_link_all_option="-Wl,--whole-archive"
4214     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4215     llvm_cv_os_type="DragonFly"
4216     llvm_cv_platform_type="Unix" ;;
4217   *-*-hpux*)
4218     llvm_cv_link_all_option="-Wl,--whole-archive"
4219     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4220     llvm_cv_os_type="HP-UX"
4221     llvm_cv_platform_type="Unix" ;;
4222   *-*-interix*)
4223     llvm_cv_link_all_option="-Wl,--whole-archive"
4224     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4225     llvm_cv_os_type="Interix"
4226     llvm_cv_platform_type="Unix" ;;
4227   *-*-linux*)
4228     llvm_cv_link_all_option="-Wl,--whole-archive"
4229     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4230     llvm_cv_os_type="Linux"
4231     llvm_cv_platform_type="Unix" ;;
4232   *-*-gnu*)
4233     llvm_cv_link_all_option="-Wl,--whole-archive"
4234     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4235     llvm_cv_os_type="GNU"
4236     llvm_cv_platform_type="Unix" ;;
4237   *-*-solaris*)
4238     llvm_cv_link_all_option="-Wl,-z,allextract"
4239     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4240     llvm_cv_os_type="SunOS"
4241     llvm_cv_platform_type="Unix" ;;
4242   *-*-auroraux*)
4243     llvm_cv_link_all_option="-Wl,-z,allextract"
4244     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4245     llvm_cv_os_type="AuroraUX"
4246     llvm_cv_platform_type="Unix" ;;
4247   *-*-win32*)
4248     llvm_cv_link_all_option="-Wl,--whole-archive"
4249     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4250     llvm_cv_os_type="Win32"
4251     llvm_cv_platform_type="Win32" ;;
4252   *-*-mingw*)
4253     llvm_cv_link_all_option="-Wl,--whole-archive"
4254     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4255     llvm_cv_os_type="MingW"
4256     llvm_cv_platform_type="Win32" ;;
4257   *-*-haiku*)
4258     llvm_cv_link_all_option="-Wl,--whole-archive"
4259     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4260     llvm_cv_os_type="Haiku"
4261     llvm_cv_platform_type="Unix" ;;
4262   *-unknown-eabi*)
4263     llvm_cv_link_all_option="-Wl,--whole-archive"
4264     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4265     llvm_cv_os_type="Freestanding"
4266     llvm_cv_platform_type="Unix" ;;
4267   *-unknown-elf*)
4268     llvm_cv_link_all_option="-Wl,--whole-archive"
4269     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4270     llvm_cv_os_type="Freestanding"
4271     llvm_cv_platform_type="Unix" ;;
4272   *)
4273     llvm_cv_link_all_option=""
4274     llvm_cv_no_link_all_option=""
4275     llvm_cv_os_type="Unknown"
4276     llvm_cv_platform_type="Unknown" ;;
4277 esac
4278 fi
4279 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4280 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4281
4282 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4283 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4284 if test "${llvm_cv_target_os_type+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   case $target in
4288   *-*-aix*)
4289     llvm_cv_target_os_type="AIX" ;;
4290   *-*-irix*)
4291     llvm_cv_target_os_type="IRIX" ;;
4292   *-*-cygwin*)
4293     llvm_cv_target_os_type="Cygwin" ;;
4294   *-*-darwin*)
4295     llvm_cv_target_os_type="Darwin" ;;
4296   *-*-minix*)
4297     llvm_cv_target_os_type="Minix" ;;
4298   *-*-freebsd*)
4299     llvm_cv_target_os_type="FreeBSD" ;;
4300   *-*-kfreebsd-gnu)
4301     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4302   *-*-openbsd*)
4303     llvm_cv_target_os_type="OpenBSD" ;;
4304   *-*-netbsd*)
4305     llvm_cv_target_os_type="NetBSD" ;;
4306   *-*-dragonfly*)
4307     llvm_cv_target_os_type="DragonFly" ;;
4308   *-*-hpux*)
4309     llvm_cv_target_os_type="HP-UX" ;;
4310   *-*-interix*)
4311     llvm_cv_target_os_type="Interix" ;;
4312   *-*-linux*)
4313     llvm_cv_target_os_type="Linux" ;;
4314   *-*-gnu*)
4315     llvm_cv_target_os_type="GNU" ;;
4316   *-*-solaris*)
4317     llvm_cv_target_os_type="SunOS" ;;
4318   *-*-auroraux*)
4319     llvm_cv_target_os_type="AuroraUX" ;;
4320   *-*-win32*)
4321     llvm_cv_target_os_type="Win32" ;;
4322   *-*-mingw*)
4323     llvm_cv_target_os_type="MingW" ;;
4324   *-*-haiku*)
4325     llvm_cv_target_os_type="Haiku" ;;
4326   *-*-rtems*)
4327     llvm_cv_target_os_type="RTEMS" ;;
4328   *-*-nacl*)
4329     llvm_cv_target_os_type="NativeClient" ;;
4330   *-unknown-eabi*)
4331     llvm_cv_target_os_type="Freestanding" ;;
4332   *)
4333     llvm_cv_target_os_type="Unknown" ;;
4334 esac
4335 fi
4336 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4337 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4338
4339 if test "$llvm_cv_os_type" = "Unknown" ; then
4340   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4342    { (exit 1); exit 1; }; }
4343 fi
4344
4345 OS=$llvm_cv_os_type
4346
4347 HOST_OS=$llvm_cv_os_type
4348
4349 TARGET_OS=$llvm_cv_target_os_type
4350
4351
4352 LINKALL=$llvm_cv_link_all_option
4353
4354 NOLINKALL=$llvm_cv_no_link_all_option
4355
4356
4357 case $llvm_cv_platform_type in
4358   Unix)
4359
4360 cat >>confdefs.h <<\_ACEOF
4361 #define LLVM_ON_UNIX 1
4362 _ACEOF
4363
4364     LLVM_ON_UNIX=1
4365
4366     LLVM_ON_WIN32=0
4367
4368     ;;
4369   Win32)
4370
4371 cat >>confdefs.h <<\_ACEOF
4372 #define LLVM_ON_WIN32 1
4373 _ACEOF
4374
4375     LLVM_ON_UNIX=0
4376
4377     LLVM_ON_WIN32=1
4378
4379     ;;
4380 esac
4381
4382 { echo "$as_me:$LINENO: checking target architecture" >&5
4383 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4384 if test "${llvm_cv_target_arch+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   case $target in
4388   i?86-*)                 llvm_cv_target_arch="x86" ;;
4389   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4390   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4391   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4392   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4393   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4394   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4395   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4396   xcore-*)                llvm_cv_target_arch="XCore" ;;
4397   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4398   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4399   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4400   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4401   *)                      llvm_cv_target_arch="Unknown" ;;
4402 esac
4403 fi
4404 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4405 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4406
4407 if test "$llvm_cv_target_arch" = "Unknown" ; then
4408   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4409 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4410 fi
4411
4412 case "$llvm_cv_target_arch" in
4413     x86)     LLVM_NATIVE_ARCH="X86" ;;
4414     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4415     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4416 esac
4417
4418 ARCH=$llvm_cv_target_arch
4419
4420
4421 case $host in
4422   i?86-*)                 host_arch="x86" ;;
4423   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4424   sparc*-*)               host_arch="Sparc" ;;
4425   powerpc*-*)             host_arch="PowerPC" ;;
4426   arm*-*)                 host_arch="ARM" ;;
4427   aarch64*-*)             host_arch="AArch64" ;;
4428   mips-* | mips64-*)      host_arch="Mips" ;;
4429   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4430   xcore-*)                host_arch="XCore" ;;
4431   msp430-*)               host_arch="MSP430" ;;
4432   hexagon-*)              host_arch="Hexagon" ;;
4433   s390x-*)                host_arch="SystemZ" ;;
4434   *)                      host_arch="Unknown" ;;
4435 esac
4436
4437 if test "$host_arch" = "Unknown" ; then
4438   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4439 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4440 fi
4441
4442 HOST_ARCH=$host_arch
4443
4444
4445 if test "$cross_compiling" = yes; then
4446   LLVM_CROSS_COMPILING=1
4447
4448
4449 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4450 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4451 if test "${ac_cv_build_exeext+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4455   ac_cv_build_exeext=.exe
4456 else
4457   ac_build_prefix=${build_alias}-
4458
4459   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4460 set dummy ${ac_build_prefix}gcc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   if test -n "$BUILD_CC"; then
4467   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484 fi
4485 fi
4486 BUILD_CC=$ac_cv_prog_BUILD_CC
4487 if test -n "$BUILD_CC"; then
4488   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489 echo "${ECHO_T}$BUILD_CC" >&6; }
4490 else
4491   { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4493 fi
4494
4495
4496   if test -z "$BUILD_CC"; then
4497      # Extract the first word of "gcc", so it can be a program name with args.
4498 set dummy gcc; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   if test -n "$BUILD_CC"; then
4505   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     ac_cv_prog_BUILD_CC="gcc"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6; }
4528 else
4529   { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4531 fi
4532
4533
4534      if test -z "$BUILD_CC"; then
4535        # Extract the first word of "cc", so it can be a program name with args.
4536 set dummy cc; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   if test -n "$BUILD_CC"; then
4543   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4544 else
4545   ac_prog_rejected=no
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4553     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4554        ac_prog_rejected=yes
4555        continue
4556      fi
4557     ac_cv_prog_BUILD_CC="cc"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4564
4565 if test $ac_prog_rejected = yes; then
4566   # We found a bogon in the path, so make sure we never use it.
4567   set dummy $ac_cv_prog_BUILD_CC
4568   shift
4569   if test $# != 0; then
4570     # We chose a different compiler from the bogus one.
4571     # However, it has the same basename, so the bogon will be chosen
4572     # first if we set BUILD_CC to just the basename; use the full file name.
4573     shift
4574     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4575   fi
4576 fi
4577 fi
4578 fi
4579 BUILD_CC=$ac_cv_prog_BUILD_CC
4580 if test -n "$BUILD_CC"; then
4581   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4582 echo "${ECHO_T}$BUILD_CC" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589      fi
4590   fi
4591   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4592 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4593    { (exit 1); exit 1; }; }
4594   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4595   rm -f conftest*
4596   echo 'int main () { return 0; }' > conftest.$ac_ext
4597   ac_cv_build_exeext=
4598   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4599   (eval $ac_build_link) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; then
4603     for file in conftest.*; do
4604       case $file in
4605       *.c | *.o | *.obj | *.dSYM) ;;
4606       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4607       esac
4608     done
4609   else
4610     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4611 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4612    { (exit 1); exit 1; }; }
4613   fi
4614   rm -f conftest*
4615   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4616 fi
4617 fi
4618
4619 BUILD_EXEEXT=""
4620 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4621 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4622 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4623 ac_build_exeext=$BUILD_EXEEXT
4624
4625   ac_build_prefix=${build_alias}-
4626   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4627 set dummy ${ac_build_prefix}g++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631   echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4633   if test -n "$BUILD_CXX"; then
4634   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635 else
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH
4638 do
4639   IFS=$as_save_IFS
4640   test -z "$as_dir" && as_dir=.
4641   for ac_exec_ext in '' $ac_executable_extensions; do
4642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645     break 2
4646   fi
4647 done
4648 done
4649 IFS=$as_save_IFS
4650
4651 fi
4652 fi
4653 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4654 if test -n "$BUILD_CXX"; then
4655   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4656 echo "${ECHO_T}$BUILD_CXX" >&6; }
4657 else
4658   { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4660 fi
4661
4662
4663   if test -z "$BUILD_CXX"; then
4664      # Extract the first word of "g++", so it can be a program name with args.
4665 set dummy g++; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   if test -n "$BUILD_CXX"; then
4672   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   test -z "$as_dir" && as_dir=.
4679   for ac_exec_ext in '' $ac_executable_extensions; do
4680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4681     ac_cv_prog_BUILD_CXX="g++"
4682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683     break 2
4684   fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692 if test -n "$BUILD_CXX"; then
4693   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694 echo "${ECHO_T}$BUILD_CXX" >&6; }
4695 else
4696   { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701      if test -z "$BUILD_CXX"; then
4702        # Extract the first word of "c++", so it can be a program name with args.
4703 set dummy c++; ac_word=$2
4704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4706 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   if test -n "$BUILD_CXX"; then
4710   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4711 else
4712   ac_prog_rejected=no
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4720     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4721        ac_prog_rejected=yes
4722        continue
4723      fi
4724     ac_cv_prog_BUILD_CXX="c++"
4725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 if test $ac_prog_rejected = yes; then
4733   # We found a bogon in the path, so make sure we never use it.
4734   set dummy $ac_cv_prog_BUILD_CXX
4735   shift
4736   if test $# != 0; then
4737     # We chose a different compiler from the bogus one.
4738     # However, it has the same basename, so the bogon will be chosen
4739     # first if we set BUILD_CXX to just the basename; use the full file name.
4740     shift
4741     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4742   fi
4743 fi
4744 fi
4745 fi
4746 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4747 if test -n "$BUILD_CXX"; then
4748   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4749 echo "${ECHO_T}$BUILD_CXX" >&6; }
4750 else
4751   { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4753 fi
4754
4755
4756      fi
4757   fi
4758 else
4759   LLVM_CROSS_COMPILING=0
4760
4761 fi
4762
4763 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4764   cvsbuild="yes"
4765   optimize="no"
4766   CVSBUILD=CVSBUILD=1
4767
4768 else
4769   cvsbuild="no"
4770   optimize="yes"
4771 fi
4772
4773
4774 # Check whether --enable-libcpp was given.
4775 if test "${enable_libcpp+set}" = set; then
4776   enableval=$enable_libcpp;
4777 else
4778   enableval=default
4779 fi
4780
4781 case "$enableval" in
4782   yes) ENABLE_LIBCPP=1
4783  ;;
4784   no)  ENABLE_LIBCPP=0
4785  ;;
4786   default) ENABLE_LIBCPP=0
4787 ;;
4788   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4789 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4790    { (exit 1); exit 1; }; } ;;
4791 esac
4792
4793 # Check whether --enable-cxx11 was given.
4794 if test "${enable_cxx11+set}" = set; then
4795   enableval=$enable_cxx11;
4796 else
4797   enableval=default
4798 fi
4799
4800 case "$enableval" in
4801   yes) ENABLE_CXX11=1
4802  ;;
4803   no)  ENABLE_CXX11=0
4804  ;;
4805   default) ENABLE_CXX11=0
4806 ;;
4807   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4808 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4809    { (exit 1); exit 1; }; } ;;
4810 esac
4811
4812 # Check whether --enable-split-dwarf was given.
4813 if test "${enable_split_dwarf+set}" = set; then
4814   enableval=$enable_split_dwarf;
4815 else
4816   enableval=default
4817 fi
4818
4819 case "$enableval" in
4820   yes) ENABLE_SPLIT_DWARF=1
4821  ;;
4822   no)  ENABLE_SPLIT_DWARF=0
4823  ;;
4824   default) ENABLE_SPLIT_DWARF=0
4825 ;;
4826   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4827 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4828    { (exit 1); exit 1; }; } ;;
4829 esac
4830
4831 clang_arcmt="yes"
4832 # Check whether --enable-clang-arcmt was given.
4833 if test "${enable_clang_arcmt+set}" = set; then
4834   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4835 else
4836   enableval="yes"
4837 fi
4838
4839 case "$enableval" in
4840   yes) ENABLE_CLANG_ARCMT=1
4841  ;;
4842   no)  ENABLE_CLANG_ARCMT=0
4843  ;;
4844   default) ENABLE_CLANG_ARCMT=1
4845 ;;
4846   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4848    { (exit 1); exit 1; }; } ;;
4849 esac
4850
4851 clang_static_analyzer="yes"
4852 # Check whether --enable-clang-static-analyzer was given.
4853 if test "${enable_clang_static_analyzer+set}" = set; then
4854   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4855 else
4856   enableval="yes"
4857 fi
4858
4859 case "$enableval" in
4860   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4861  ;;
4862   no)
4863     if test ${clang_arcmt} != "no" ; then
4864       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4865 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4866    { (exit 1); exit 1; }; }
4867     fi
4868     ENABLE_CLANG_STATIC_ANALYZER=0
4869
4870     ;;
4871   default) ENABLE_CLANG_STATIC_ANALYZER=1
4872 ;;
4873   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4875    { (exit 1); exit 1; }; } ;;
4876 esac
4877
4878 # Check whether --enable-clang-rewriter was given.
4879 if test "${enable_clang_rewriter+set}" = set; then
4880   enableval=$enable_clang_rewriter;
4881 else
4882   enableval="yes"
4883 fi
4884
4885 case "$enableval" in
4886   yes) ENABLE_CLANG_REWRITER=1
4887  ;;
4888   no)
4889     if test ${clang_arcmt} != "no" ; then
4890       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4891 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4892    { (exit 1); exit 1; }; }
4893     fi
4894     if test ${clang_static_analyzer} != "no" ; then
4895       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4896 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4897    { (exit 1); exit 1; }; }
4898     fi
4899     ENABLE_CLANG_REWRITER=0
4900
4901     ;;
4902   default) ENABLE_CLANG_REWRITER=1
4903 ;;
4904   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4905 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4906    { (exit 1); exit 1; }; } ;;
4907 esac
4908
4909 # Check whether --enable-optimized was given.
4910 if test "${enable_optimized+set}" = set; then
4911   enableval=$enable_optimized;
4912 else
4913   enableval=$optimize
4914 fi
4915
4916 if test ${enableval} = "no" ; then
4917   ENABLE_OPTIMIZED=
4918
4919 else
4920   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4921
4922 fi
4923
4924 # Check whether --enable-profiling was given.
4925 if test "${enable_profiling+set}" = set; then
4926   enableval=$enable_profiling;
4927 else
4928   enableval="no"
4929 fi
4930
4931 if test ${enableval} = "no" ; then
4932   ENABLE_PROFILING=
4933
4934 else
4935   ENABLE_PROFILING=ENABLE_PROFILING=1
4936
4937 fi
4938
4939 # Check whether --enable-assertions was given.
4940 if test "${enable_assertions+set}" = set; then
4941   enableval=$enable_assertions;
4942 else
4943   enableval="yes"
4944 fi
4945
4946 if test ${enableval} = "yes" ; then
4947   DISABLE_ASSERTIONS=
4948
4949 else
4950   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4951
4952 fi
4953
4954 # Check whether --enable-werror was given.
4955 if test "${enable_werror+set}" = set; then
4956   enableval=$enable_werror;
4957 else
4958   enableval="no"
4959 fi
4960
4961 case "$enableval" in
4962   yes) ENABLE_WERROR=1
4963  ;;
4964   no)  ENABLE_WERROR=0
4965  ;;
4966   default) ENABLE_WERROR=0
4967 ;;
4968   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4969 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4970    { (exit 1); exit 1; }; } ;;
4971 esac
4972
4973 # Check whether --enable-expensive-checks was given.
4974 if test "${enable_expensive_checks+set}" = set; then
4975   enableval=$enable_expensive_checks;
4976 else
4977   enableval="no"
4978 fi
4979
4980 if test ${enableval} = "yes" ; then
4981   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4982
4983   EXPENSIVE_CHECKS=yes
4984
4985 else
4986   ENABLE_EXPENSIVE_CHECKS=
4987
4988   EXPENSIVE_CHECKS=no
4989
4990 fi
4991
4992 # Check whether --enable-debug-runtime was given.
4993 if test "${enable_debug_runtime+set}" = set; then
4994   enableval=$enable_debug_runtime;
4995 else
4996   enableval=no
4997 fi
4998
4999 if test ${enableval} = "no" ; then
5000   DEBUG_RUNTIME=
5001
5002 else
5003   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5004
5005 fi
5006
5007 # Check whether --enable-debug-symbols was given.
5008 if test "${enable_debug_symbols+set}" = set; then
5009   enableval=$enable_debug_symbols;
5010 else
5011   enableval=no
5012 fi
5013
5014 if test ${enableval} = "no" ; then
5015   DEBUG_SYMBOLS=
5016
5017 else
5018   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5019
5020 fi
5021
5022 # Check whether --enable-keep-symbols was given.
5023 if test "${enable_keep_symbols+set}" = set; then
5024   enableval=$enable_keep_symbols;
5025 else
5026   enableval=no
5027 fi
5028
5029 if test ${enableval} = "no" ; then
5030   KEEP_SYMBOLS=
5031
5032 else
5033   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5034
5035 fi
5036
5037 # Check whether --enable-jit was given.
5038 if test "${enable_jit+set}" = set; then
5039   enableval=$enable_jit;
5040 else
5041   enableval=default
5042 fi
5043
5044 if test ${enableval} = "no"
5045 then
5046   JIT=
5047
5048 else
5049   case "$llvm_cv_target_arch" in
5050     x86)         TARGET_HAS_JIT=1
5051  ;;
5052     Sparc)       TARGET_HAS_JIT=0
5053  ;;
5054     PowerPC)     TARGET_HAS_JIT=1
5055  ;;
5056     x86_64)      TARGET_HAS_JIT=1
5057  ;;
5058     ARM)         TARGET_HAS_JIT=1
5059  ;;
5060     AArch64)     TARGET_HAS_JIT=0
5061  ;;
5062     Mips)        TARGET_HAS_JIT=1
5063  ;;
5064     XCore)       TARGET_HAS_JIT=0
5065  ;;
5066     MSP430)      TARGET_HAS_JIT=0
5067  ;;
5068     Hexagon)     TARGET_HAS_JIT=0
5069  ;;
5070     NVPTX)       TARGET_HAS_JIT=0
5071  ;;
5072     SystemZ)     TARGET_HAS_JIT=1
5073  ;;
5074     *)           TARGET_HAS_JIT=0
5075  ;;
5076   esac
5077 fi
5078
5079 # Check whether --enable-docs was given.
5080 if test "${enable_docs+set}" = set; then
5081   enableval=$enable_docs;
5082 else
5083   enableval=default
5084 fi
5085
5086 case "$enableval" in
5087   yes) ENABLE_DOCS=1
5088  ;;
5089   no)  ENABLE_DOCS=0
5090  ;;
5091   default) ENABLE_DOCS=1
5092  ;;
5093   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095    { (exit 1); exit 1; }; } ;;
5096 esac
5097
5098 # Check whether --enable-doxygen was given.
5099 if test "${enable_doxygen+set}" = set; then
5100   enableval=$enable_doxygen;
5101 else
5102   enableval=default
5103 fi
5104
5105 case "$enableval" in
5106   yes) ENABLE_DOXYGEN=1
5107  ;;
5108   no)  ENABLE_DOXYGEN=0
5109  ;;
5110   default) ENABLE_DOXYGEN=0
5111  ;;
5112   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114    { (exit 1); exit 1; }; } ;;
5115 esac
5116
5117 # Check whether --enable-threads was given.
5118 if test "${enable_threads+set}" = set; then
5119   enableval=$enable_threads;
5120 else
5121   enableval=default
5122 fi
5123
5124 case "$enableval" in
5125   yes) LLVM_ENABLE_THREADS=1
5126  ;;
5127   no)  LLVM_ENABLE_THREADS=0
5128  ;;
5129   default) LLVM_ENABLE_THREADS=1
5130  ;;
5131   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133    { (exit 1); exit 1; }; } ;;
5134 esac
5135
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5138 _ACEOF
5139
5140
5141 # Check whether --enable-pthreads was given.
5142 if test "${enable_pthreads+set}" = set; then
5143   enableval=$enable_pthreads;
5144 else
5145   enableval=default
5146 fi
5147
5148 case "$enableval" in
5149   yes) ENABLE_PTHREADS=1
5150  ;;
5151   no)  ENABLE_PTHREADS=0
5152  ;;
5153   default) ENABLE_PTHREADS=1
5154  ;;
5155   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157    { (exit 1); exit 1; }; } ;;
5158 esac
5159
5160 # Check whether --enable-zlib was given.
5161 if test "${enable_zlib+set}" = set; then
5162   enableval=$enable_zlib;
5163 else
5164   enableval=default
5165 fi
5166
5167 case "$enableval" in
5168   yes) LLVM_ENABLE_ZLIB=1
5169  ;;
5170   no)  LLVM_ENABLE_ZLIB=0
5171  ;;
5172   default) LLVM_ENABLE_ZLIB=1
5173  ;;
5174   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5176    { (exit 1); exit 1; }; } ;;
5177 esac
5178
5179 cat >>confdefs.h <<_ACEOF
5180 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5181 _ACEOF
5182
5183
5184 # Check whether --enable-pic was given.
5185 if test "${enable_pic+set}" = set; then
5186   enableval=$enable_pic;
5187 else
5188   enableval=default
5189 fi
5190
5191 case "$enableval" in
5192   yes) ENABLE_PIC=1
5193  ;;
5194   no)  ENABLE_PIC=0
5195  ;;
5196   default) ENABLE_PIC=1
5197  ;;
5198   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5200    { (exit 1); exit 1; }; } ;;
5201 esac
5202
5203 cat >>confdefs.h <<_ACEOF
5204 #define ENABLE_PIC $ENABLE_PIC
5205 _ACEOF
5206
5207
5208 # Check whether --enable-shared was given.
5209 if test "${enable_shared+set}" = set; then
5210   enableval=$enable_shared;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_SHARED=1
5217  ;;
5218   no)  ENABLE_SHARED=0
5219  ;;
5220   default) ENABLE_SHARED=0
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 # Check whether --enable-embed-stdcxx was given.
5228 if test "${enable_embed_stdcxx+set}" = set; then
5229   enableval=$enable_embed_stdcxx;
5230 else
5231   enableval=default
5232 fi
5233
5234 case "$enableval" in
5235   yes) ENABLE_EMBED_STDCXX=1
5236  ;;
5237   no)  ENABLE_EMBED_STDCXX=0
5238  ;;
5239   default) ENABLE_EMBED_STDCXX=0
5240  ;;
5241   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5242 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5243    { (exit 1); exit 1; }; } ;;
5244 esac
5245
5246 # Check whether --enable-timestamps was given.
5247 if test "${enable_timestamps+set}" = set; then
5248   enableval=$enable_timestamps;
5249 else
5250   enableval=default
5251 fi
5252
5253 case "$enableval" in
5254   yes) ENABLE_TIMESTAMPS=1
5255  ;;
5256   no)  ENABLE_TIMESTAMPS=0
5257  ;;
5258   default) ENABLE_TIMESTAMPS=1
5259  ;;
5260   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5262    { (exit 1); exit 1; }; } ;;
5263 esac
5264
5265 cat >>confdefs.h <<_ACEOF
5266 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5267 _ACEOF
5268
5269
5270 # Check whether --enable-backtraces was given.
5271 if test "${enable_backtraces+set}" = set; then
5272   enableval=$enable_backtraces; case "$enableval" in
5273     yes) llvm_cv_enable_backtraces="yes" ;;
5274     no)  llvm_cv_enable_backtraces="no"  ;;
5275     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5277    { (exit 1); exit 1; }; } ;;
5278   esac
5279 else
5280   llvm_cv_enable_backtraces="yes"
5281 fi
5282
5283 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5284
5285 cat >>confdefs.h <<\_ACEOF
5286 #define ENABLE_BACKTRACES 1
5287 _ACEOF
5288
5289 fi
5290
5291 # Check whether --enable-crash-overrides was given.
5292 if test "${enable_crash_overrides+set}" = set; then
5293   enableval=$enable_crash_overrides; case "$enableval" in
5294     yes) llvm_cv_enable_crash_overrides="yes" ;;
5295     no)  llvm_cv_enable_crash_overrides="no"  ;;
5296     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5298    { (exit 1); exit 1; }; } ;;
5299   esac
5300 else
5301   llvm_cv_enable_crash_overrides="yes"
5302 fi
5303
5304 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5305
5306 cat >>confdefs.h <<\_ACEOF
5307 #define ENABLE_CRASH_OVERRIDES 1
5308 _ACEOF
5309
5310 fi
5311
5312 TARGETS_TO_BUILD=""
5313 # Check whether --enable-targets was given.
5314 if test "${enable_targets+set}" = set; then
5315   enableval=$enable_targets;
5316 else
5317   enableval=all
5318 fi
5319
5320 if test "$enableval" = host-only ; then
5321   enableval=host
5322 fi
5323 case "$enableval" in
5324   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5325   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5326       case "$a_target" in
5327         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5330         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5331         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5332         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5340         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5343         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5344         host) case "$llvm_cv_target_arch" in
5345             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5348             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5349             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5350             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5351             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5352             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5353             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5354             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5358 echo "$as_me: error: Can not set target to build" >&2;}
5359    { (exit 1); exit 1; }; } ;;
5360           esac ;;
5361         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5362 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5363    { (exit 1); exit 1; }; } ;;
5364       esac
5365   done
5366   ;;
5367 esac
5368
5369 # Check whether --enable-experimental-targets was given.
5370 if test "${enable_experimental_targets+set}" = set; then
5371   enableval=$enable_experimental_targets;
5372 else
5373   enableval=disable
5374 fi
5375
5376
5377 if test ${enableval} != "disable"
5378 then
5379   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5380 fi
5381
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5383
5384
5385 for a_target in $TARGETS_TO_BUILD; do
5386   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5390 _ACEOF
5391
5392     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398     fi
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5401     fi
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5405 _ACEOF
5406
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410 _ACEOF
5411
5412
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5415 _ACEOF
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5420 _ACEOF
5421
5422     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426 _ACEOF
5427
5428     fi
5429     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433 _ACEOF
5434
5435     fi
5436   fi
5437 done
5438
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447   fi
5448   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450   fi
5451   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453   fi
5454 done
5455
5456
5457
5458
5459
5460
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463   withval=$with_optimize_option;
5464 else
5465   withval=default
5466 fi
5467
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5470 case "$withval" in
5471   default)
5472     case "$llvm_cv_os_type" in
5473     FreeBSD) optimize_option=-O2 ;;
5474     MingW) optimize_option=-O2 ;;
5475     *)     optimize_option=-O3 ;;
5476     esac ;;
5477   *) optimize_option="$withval" ;;
5478 esac
5479 OPTIMIZE_OPTION=$optimize_option
5480
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5483
5484
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487   withval=$with_extra_options;
5488 else
5489   withval=default
5490 fi
5491
5492 case "$withval" in
5493   default) EXTRA_OPTIONS= ;;
5494   *) EXTRA_OPTIONS=$withval ;;
5495 esac
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5497
5498
5499
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502   withval=$with_extra_ld_options;
5503 else
5504   withval=default
5505 fi
5506
5507 case "$withval" in
5508   default) EXTRA_LD_OPTIONS= ;;
5509   *) EXTRA_LD_OPTIONS=$withval ;;
5510 esac
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512
5513
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516   enableval=$enable_bindings;
5517 else
5518   enableval=default
5519 fi
5520
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524   all ) BINDINGS_TO_BUILD="ocaml" ;;
5525   none | no) BINDINGS_TO_BUILD="" ;;
5526   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527       case "$a_binding" in
5528         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532       esac
5533   done
5534   ;;
5535 esac
5536
5537
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540   withval=$with_ocaml_libdir;
5541 else
5542   withval=auto
5543 fi
5544
5545 case "$withval" in
5546   auto) with_ocaml_libdir="$withval" ;;
5547   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550    { (exit 1); exit 1; }; } ;;
5551 esac
5552
5553
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556   withval=$with_clang_srcdir;
5557 else
5558   withval="-"
5559 fi
5560
5561 case "$withval" in
5562   -) clang_src_root="" ;;
5563   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564   *) clang_src_root="$ac_pwd/$withval" ;;
5565 esac
5566 CLANG_SRC_ROOT=$clang_src_root
5567
5568
5569
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572   withval=$with_clang_resource_dir;
5573 else
5574   withval=""
5575 fi
5576
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5580 _ACEOF
5581
5582
5583
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586   withval=$with_c_include_dirs;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5594 _ACEOF
5595
5596
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5600
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603   withval=$with_gcc_toolchain;
5604 else
5605   withval=""
5606 fi
5607
5608
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5611 _ACEOF
5612
5613
5614
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617   withval=$with_default_sysroot;
5618 else
5619   withval=""
5620 fi
5621
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5625 _ACEOF
5626
5627
5628
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631   withval=$with_binutils_include;
5632 else
5633   withval=default
5634 fi
5635
5636 case "$withval" in
5637   default) WITH_BINUTILS_INCDIR=default ;;
5638   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5639   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641    { (exit 1); exit 1; }; } ;;
5642 esac
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645
5646   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650    { (exit 1); exit 1; }; };
5651   fi
5652 fi
5653
5654
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657   withval=$with_bug_report_url;
5658 else
5659   withval="http://llvm.org/bugs/"
5660 fi
5661
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5665 _ACEOF
5666
5667
5668 # Check whether --enable-terminfo was given.
5669 if test "${enable_terminfo+set}" = set; then
5670   enableval=$enable_terminfo; case "$enableval" in
5671     yes) llvm_cv_enable_terminfo="yes" ;;
5672     no)  llvm_cv_enable_terminfo="no"  ;;
5673     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5675    { (exit 1); exit 1; }; } ;;
5676   esac
5677 else
5678   llvm_cv_enable_terminfo="yes"
5679 fi
5680
5681
5682 # Check whether --enable-libffi was given.
5683 if test "${enable_libffi+set}" = set; then
5684   enableval=$enable_libffi; case "$enableval" in
5685     yes) llvm_cv_enable_libffi="yes" ;;
5686     no)  llvm_cv_enable_libffi="no"  ;;
5687     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5688 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5689    { (exit 1); exit 1; }; } ;;
5690   esac
5691 else
5692   llvm_cv_enable_libffi=no
5693 fi
5694
5695
5696
5697 # Check whether --with-internal-prefix was given.
5698 if test "${with_internal_prefix+set}" = set; then
5699   withval=$with_internal_prefix;
5700 else
5701   withval=""
5702 fi
5703
5704 INTERNAL_PREFIX=$withval
5705
5706
5707
5708 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5709 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5710 if test "${lt_cv_path_NM+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$NM"; then
5714   # Let the user override the test.
5715   lt_cv_path_NM="$NM"
5716 else
5717   lt_nm_to_check="${ac_tool_prefix}nm"
5718   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5719     lt_nm_to_check="$lt_nm_to_check nm"
5720   fi
5721   for lt_tmp_nm in $lt_nm_to_check; do
5722     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5723     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5724       IFS="$lt_save_ifs"
5725       test -z "$ac_dir" && ac_dir=.
5726       tmp_nm="$ac_dir/$lt_tmp_nm"
5727       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5728         # Check to see if the nm accepts a BSD-compat flag.
5729         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5730         #   nm: unknown option "B" ignored
5731         # Tru64's nm complains that /dev/null is an invalid object file
5732         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5733         */dev/null* | *'Invalid file or object type'*)
5734           lt_cv_path_NM="$tmp_nm -B"
5735           break
5736           ;;
5737         *)
5738           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5739           */dev/null*)
5740             lt_cv_path_NM="$tmp_nm -p"
5741             break
5742             ;;
5743           *)
5744             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5745             continue # so that we can try to find one that supports BSD flags
5746             ;;
5747           esac
5748           ;;
5749         esac
5750       fi
5751     done
5752     IFS="$lt_save_ifs"
5753   done
5754   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5755 fi
5756 fi
5757 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5758 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5759 NM="$lt_cv_path_NM"
5760
5761
5762
5763 { echo "$as_me:$LINENO: checking for GNU make" >&5
5764 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5765 if test "${llvm_cv_gnu_make_command+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   llvm_cv_gnu_make_command=''
5769  for a in "$MAKE" make gmake gnumake ; do
5770   if test -z "$a" ; then continue ; fi ;
5771   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5772   then
5773    llvm_cv_gnu_make_command=$a ;
5774    break;
5775   fi
5776  done
5777 fi
5778 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5779 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5780  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5781    ifGNUmake='' ;
5782  else
5783    ifGNUmake='#' ;
5784    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5785 echo "${ECHO_T}\"Not found\"" >&6; };
5786  fi
5787
5788
5789 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5790 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5791 LN_S=$as_ln_s
5792 if test "$LN_S" = "ln -s"; then
5793   { echo "$as_me:$LINENO: result: yes" >&5
5794 echo "${ECHO_T}yes" >&6; }
5795 else
5796   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5797 echo "${ECHO_T}no, using $LN_S" >&6; }
5798 fi
5799
5800 # Extract the first word of "cmp", so it can be a program name with args.
5801 set dummy cmp; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_path_CMP+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   case $CMP in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817   for ac_exec_ext in '' $ac_executable_extensions; do
5818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5828   ;;
5829 esac
5830 fi
5831 CMP=$ac_cv_path_CMP
5832 if test -n "$CMP"; then
5833   { echo "$as_me:$LINENO: result: $CMP" >&5
5834 echo "${ECHO_T}$CMP" >&6; }
5835 else
5836   { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5838 fi
5839
5840
5841 # Extract the first word of "cp", so it can be a program name with args.
5842 set dummy cp; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_path_CP+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   case $CP in
5849   [\\/]* | ?:[\\/]*)
5850   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5851   ;;
5852   *)
5853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5869   ;;
5870 esac
5871 fi
5872 CP=$ac_cv_path_CP
5873 if test -n "$CP"; then
5874   { echo "$as_me:$LINENO: result: $CP" >&5
5875 echo "${ECHO_T}$CP" >&6; }
5876 else
5877   { echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6; }
5879 fi
5880
5881
5882 # Extract the first word of "date", so it can be a program name with args.
5883 set dummy date; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_path_DATE+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   case $DATE in
5890   [\\/]* | ?:[\\/]*)
5891   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5892   ;;
5893   *)
5894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907 IFS=$as_save_IFS
5908
5909   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5910   ;;
5911 esac
5912 fi
5913 DATE=$ac_cv_path_DATE
5914 if test -n "$DATE"; then
5915   { echo "$as_me:$LINENO: result: $DATE" >&5
5916 echo "${ECHO_T}$DATE" >&6; }
5917 else
5918   { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5920 fi
5921
5922
5923 # Extract the first word of "find", so it can be a program name with args.
5924 set dummy find; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_FIND+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   case $FIND in
5931   [\\/]* | ?:[\\/]*)
5932   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5933   ;;
5934   *)
5935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940   for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947 done
5948 IFS=$as_save_IFS
5949
5950   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5951   ;;
5952 esac
5953 fi
5954 FIND=$ac_cv_path_FIND
5955 if test -n "$FIND"; then
5956   { echo "$as_me:$LINENO: result: $FIND" >&5
5957 echo "${ECHO_T}$FIND" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5961 fi
5962
5963
5964 # Extract the first word of "grep", so it can be a program name with args.
5965 set dummy grep; ac_word=$2
5966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968 if test "${ac_cv_path_GREP+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   case $GREP in
5972   [\\/]* | ?:[\\/]*)
5973   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5974   ;;
5975   *)
5976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5983     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5992   ;;
5993 esac
5994 fi
5995 GREP=$ac_cv_path_GREP
5996 if test -n "$GREP"; then
5997   { echo "$as_me:$LINENO: result: $GREP" >&5
5998 echo "${ECHO_T}$GREP" >&6; }
5999 else
6000   { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002 fi
6003
6004
6005 # Extract the first word of "mkdir", so it can be a program name with args.
6006 set dummy mkdir; ac_word=$2
6007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009 if test "${ac_cv_path_MKDIR+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   case $MKDIR in
6013   [\\/]* | ?:[\\/]*)
6014   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6015   ;;
6016   *)
6017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6033   ;;
6034 esac
6035 fi
6036 MKDIR=$ac_cv_path_MKDIR
6037 if test -n "$MKDIR"; then
6038   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6039 echo "${ECHO_T}$MKDIR" >&6; }
6040 else
6041   { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6043 fi
6044
6045
6046 # Extract the first word of "mv", so it can be a program name with args.
6047 set dummy mv; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_path_MV+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   case $MV in
6054   [\\/]* | ?:[\\/]*)
6055   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6056   ;;
6057   *)
6058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6065     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6074   ;;
6075 esac
6076 fi
6077 MV=$ac_cv_path_MV
6078 if test -n "$MV"; then
6079   { echo "$as_me:$LINENO: result: $MV" >&5
6080 echo "${ECHO_T}$MV" >&6; }
6081 else
6082   { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6084 fi
6085
6086
6087 if test -n "$ac_tool_prefix"; then
6088   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_RANLIB+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   if test -n "$RANLIB"; then
6096   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 RANLIB=$ac_cv_prog_RANLIB
6116 if test -n "$RANLIB"; then
6117   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6118 echo "${ECHO_T}$RANLIB" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127   ac_ct_RANLIB=$RANLIB
6128   # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   if test -n "$ac_ct_RANLIB"; then
6136   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143   for ac_exec_ext in '' $ac_executable_extensions; do
6144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6145     ac_cv_prog_ac_ct_RANLIB="ranlib"
6146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6159 else
6160   { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6162 fi
6163
6164   if test "x$ac_ct_RANLIB" = x; then
6165     RANLIB=":"
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet.  If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&5
6172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173 whose name does not start with the host triplet.  If you think this
6174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175 ac_tool_warned=yes ;;
6176 esac
6177     RANLIB=$ac_ct_RANLIB
6178   fi
6179 else
6180   RANLIB="$ac_cv_prog_RANLIB"
6181 fi
6182
6183 if test -n "$ac_tool_prefix"; then
6184   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}ar; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_prog_AR+set}" = set; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191   if test -n "$AR"; then
6192   ac_cv_prog_AR="$AR" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199   for ac_exec_ext in '' $ac_executable_extensions; do
6200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201     ac_cv_prog_AR="${ac_tool_prefix}ar"
6202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206 done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 AR=$ac_cv_prog_AR
6212 if test -n "$AR"; then
6213   { echo "$as_me:$LINENO: result: $AR" >&5
6214 echo "${ECHO_T}$AR" >&6; }
6215 else
6216   { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_AR"; then
6223   ac_ct_AR=$AR
6224   # Extract the first word of "ar", so it can be a program name with args.
6225 set dummy ar; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   if test -n "$ac_ct_AR"; then
6232   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239   for ac_exec_ext in '' $ac_executable_extensions; do
6240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6241     ac_cv_prog_ac_ct_AR="ar"
6242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6252 if test -n "$ac_ct_AR"; then
6253   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6254 echo "${ECHO_T}$ac_ct_AR" >&6; }
6255 else
6256   { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6258 fi
6259
6260   if test "x$ac_ct_AR" = x; then
6261     AR="false"
6262   else
6263     case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6266 whose name does not start with the host triplet.  If you think this
6267 configuration is useful to you, please write to autoconf@gnu.org." >&5
6268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6269 whose name does not start with the host triplet.  If you think this
6270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6271 ac_tool_warned=yes ;;
6272 esac
6273     AR=$ac_ct_AR
6274   fi
6275 else
6276   AR="$ac_cv_prog_AR"
6277 fi
6278
6279 # Extract the first word of "rm", so it can be a program name with args.
6280 set dummy rm; ac_word=$2
6281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283 if test "${ac_cv_path_RM+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   case $RM in
6287   [\\/]* | ?:[\\/]*)
6288   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6289   ;;
6290   *)
6291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296   for ac_exec_ext in '' $ac_executable_extensions; do
6297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6298     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303 done
6304 IFS=$as_save_IFS
6305
6306   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6307   ;;
6308 esac
6309 fi
6310 RM=$ac_cv_path_RM
6311 if test -n "$RM"; then
6312   { echo "$as_me:$LINENO: result: $RM" >&5
6313 echo "${ECHO_T}$RM" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6317 fi
6318
6319
6320 # Extract the first word of "sed", so it can be a program name with args.
6321 set dummy sed; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_path_SED+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   case $SED in
6328   [\\/]* | ?:[\\/]*)
6329   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6330   ;;
6331   *)
6332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6348   ;;
6349 esac
6350 fi
6351 SED=$ac_cv_path_SED
6352 if test -n "$SED"; then
6353   { echo "$as_me:$LINENO: result: $SED" >&5
6354 echo "${ECHO_T}$SED" >&6; }
6355 else
6356   { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6358 fi
6359
6360
6361 # Extract the first word of "tar", so it can be a program name with args.
6362 set dummy tar; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_TAR+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   case $TAR in
6369   [\\/]* | ?:[\\/]*)
6370   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6371   ;;
6372   *)
6373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378   for ac_exec_ext in '' $ac_executable_extensions; do
6379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6380     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382     break 2
6383   fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6389   ;;
6390 esac
6391 fi
6392 TAR=$ac_cv_path_TAR
6393 if test -n "$TAR"; then
6394   { echo "$as_me:$LINENO: result: $TAR" >&5
6395 echo "${ECHO_T}$TAR" >&6; }
6396 else
6397   { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6399 fi
6400
6401
6402 # Extract the first word of "pwd", so it can be a program name with args.
6403 set dummy pwd; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_BINPWD+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   case $BINPWD in
6410   [\\/]* | ?:[\\/]*)
6411   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6412   ;;
6413   *)
6414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419   for ac_exec_ext in '' $ac_executable_extensions; do
6420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6430   ;;
6431 esac
6432 fi
6433 BINPWD=$ac_cv_path_BINPWD
6434 if test -n "$BINPWD"; then
6435   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6436 echo "${ECHO_T}$BINPWD" >&6; }
6437 else
6438   { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6440 fi
6441
6442
6443
6444 # Extract the first word of "Graphviz", so it can be a program name with args.
6445 set dummy Graphviz; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6449   echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451   case $GRAPHVIZ in
6452   [\\/]* | ?:[\\/]*)
6453   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6454   ;;
6455   *)
6456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459   IFS=$as_save_IFS
6460   test -z "$as_dir" && as_dir=.
6461   for ac_exec_ext in '' $ac_executable_extensions; do
6462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6463     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465     break 2
6466   fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6472   ;;
6473 esac
6474 fi
6475 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6476 if test -n "$GRAPHVIZ"; then
6477   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6478 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6479 else
6480   { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6482 fi
6483
6484
6485 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6486
6487 cat >>confdefs.h <<\_ACEOF
6488 #define HAVE_GRAPHVIZ 1
6489 _ACEOF
6490
6491     if test "$llvm_cv_os_type" = "MingW" ; then
6492     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6493   fi
6494
6495 cat >>confdefs.h <<_ACEOF
6496 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6497 _ACEOF
6498
6499 fi
6500 # Extract the first word of "dot", so it can be a program name with args.
6501 set dummy dot; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_path_DOT+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507   case $DOT in
6508   [\\/]* | ?:[\\/]*)
6509   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6510   ;;
6511   *)
6512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517   for ac_exec_ext in '' $ac_executable_extensions; do
6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6526
6527   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6528   ;;
6529 esac
6530 fi
6531 DOT=$ac_cv_path_DOT
6532 if test -n "$DOT"; then
6533   { echo "$as_me:$LINENO: result: $DOT" >&5
6534 echo "${ECHO_T}$DOT" >&6; }
6535 else
6536   { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6538 fi
6539
6540
6541 if test "$DOT" != "echo dot" ; then
6542
6543 cat >>confdefs.h <<\_ACEOF
6544 #define HAVE_DOT 1
6545 _ACEOF
6546
6547     if test "$llvm_cv_os_type" = "MingW" ; then
6548     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6549   fi
6550
6551 cat >>confdefs.h <<_ACEOF
6552 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6553 _ACEOF
6554
6555 fi
6556 # Extract the first word of "fdp", so it can be a program name with args.
6557 set dummy fdp; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_path_FDP+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   case $FDP in
6564   [\\/]* | ?:[\\/]*)
6565   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6566   ;;
6567   *)
6568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573   for ac_exec_ext in '' $ac_executable_extensions; do
6574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6575     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6584   ;;
6585 esac
6586 fi
6587 FDP=$ac_cv_path_FDP
6588 if test -n "$FDP"; then
6589   { echo "$as_me:$LINENO: result: $FDP" >&5
6590 echo "${ECHO_T}$FDP" >&6; }
6591 else
6592   { echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6; }
6594 fi
6595
6596
6597 if test "$FDP" != "echo fdp" ; then
6598
6599 cat >>confdefs.h <<\_ACEOF
6600 #define HAVE_FDP 1
6601 _ACEOF
6602
6603     if test "$llvm_cv_os_type" = "MingW" ; then
6604     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6605   fi
6606
6607 cat >>confdefs.h <<_ACEOF
6608 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6609 _ACEOF
6610
6611 fi
6612 # Extract the first word of "neato", so it can be a program name with args.
6613 set dummy neato; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_NEATO+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   case $NEATO in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6640   ;;
6641 esac
6642 fi
6643 NEATO=$ac_cv_path_NEATO
6644 if test -n "$NEATO"; then
6645   { echo "$as_me:$LINENO: result: $NEATO" >&5
6646 echo "${ECHO_T}$NEATO" >&6; }
6647 else
6648   { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6650 fi
6651
6652
6653 if test "$NEATO" != "echo neato" ; then
6654
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_NEATO 1
6657 _ACEOF
6658
6659     if test "$llvm_cv_os_type" = "MingW" ; then
6660     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6661   fi
6662
6663 cat >>confdefs.h <<_ACEOF
6664 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6665 _ACEOF
6666
6667 fi
6668 # Extract the first word of "twopi", so it can be a program name with args.
6669 set dummy twopi; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_TWOPI+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   case $TWOPI in
6676   [\\/]* | ?:[\\/]*)
6677   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6678   ;;
6679   *)
6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685   for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6696   ;;
6697 esac
6698 fi
6699 TWOPI=$ac_cv_path_TWOPI
6700 if test -n "$TWOPI"; then
6701   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6702 echo "${ECHO_T}$TWOPI" >&6; }
6703 else
6704   { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6706 fi
6707
6708
6709 if test "$TWOPI" != "echo twopi" ; then
6710
6711 cat >>confdefs.h <<\_ACEOF
6712 #define HAVE_TWOPI 1
6713 _ACEOF
6714
6715     if test "$llvm_cv_os_type" = "MingW" ; then
6716     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6717   fi
6718
6719 cat >>confdefs.h <<_ACEOF
6720 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6721 _ACEOF
6722
6723 fi
6724 # Extract the first word of "circo", so it can be a program name with args.
6725 set dummy circo; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_CIRCO+set}" = set; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731   case $CIRCO in
6732   [\\/]* | ?:[\\/]*)
6733   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6734   ;;
6735   *)
6736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741   for ac_exec_ext in '' $ac_executable_extensions; do
6742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6752   ;;
6753 esac
6754 fi
6755 CIRCO=$ac_cv_path_CIRCO
6756 if test -n "$CIRCO"; then
6757   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6758 echo "${ECHO_T}$CIRCO" >&6; }
6759 else
6760   { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6762 fi
6763
6764
6765 if test "$CIRCO" != "echo circo" ; then
6766
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_CIRCO 1
6769 _ACEOF
6770
6771     if test "$llvm_cv_os_type" = "MingW" ; then
6772     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6773   fi
6774
6775 cat >>confdefs.h <<_ACEOF
6776 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6777 _ACEOF
6778
6779 fi
6780 for ac_prog in gv gsview32
6781 do
6782   # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_GV+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $GV in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809   ;;
6810 esac
6811 fi
6812 GV=$ac_cv_path_GV
6813 if test -n "$GV"; then
6814   { echo "$as_me:$LINENO: result: $GV" >&5
6815 echo "${ECHO_T}$GV" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822   test -n "$GV" && break
6823 done
6824 test -n "$GV" || GV="echo gv"
6825
6826 if test "$GV" != "echo gv" ; then
6827
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_GV 1
6830 _ACEOF
6831
6832     if test "$llvm_cv_os_type" = "MingW" ; then
6833     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834   fi
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define LLVM_PATH_GV "$GV${EXEEXT}"
6838 _ACEOF
6839
6840 fi
6841 # Extract the first word of "dotty", so it can be a program name with args.
6842 set dummy dotty; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_DOTTY+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $DOTTY in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6869   ;;
6870 esac
6871 fi
6872 DOTTY=$ac_cv_path_DOTTY
6873 if test -n "$DOTTY"; then
6874   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6875 echo "${ECHO_T}$DOTTY" >&6; }
6876 else
6877   { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6879 fi
6880
6881
6882 if test "$DOTTY" != "echo dotty" ; then
6883
6884 cat >>confdefs.h <<\_ACEOF
6885 #define HAVE_DOTTY 1
6886 _ACEOF
6887
6888     if test "$llvm_cv_os_type" = "MingW" ; then
6889     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6890   fi
6891
6892 cat >>confdefs.h <<_ACEOF
6893 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6894 _ACEOF
6895
6896 fi
6897 for ac_prog in xdot xdot.py
6898 do
6899   # Extract the first word of "$ac_prog", so it can be a program name with args.
6900 set dummy $ac_prog; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_XDOT+set}" = set; then
6904   echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906   case $XDOT in
6907   [\\/]* | ?:[\\/]*)
6908   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6909   ;;
6910   *)
6911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916   for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926   ;;
6927 esac
6928 fi
6929 XDOT=$ac_cv_path_XDOT
6930 if test -n "$XDOT"; then
6931   { echo "$as_me:$LINENO: result: $XDOT" >&5
6932 echo "${ECHO_T}$XDOT" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6936 fi
6937
6938
6939   test -n "$XDOT" && break
6940 done
6941 test -n "$XDOT" || XDOT="echo xdot"
6942
6943 if test "$XDOT" != "echo xdot" ; then
6944
6945 cat >>confdefs.h <<\_ACEOF
6946 #define HAVE_XDOT 1
6947 _ACEOF
6948
6949     if test "$llvm_cv_os_type" = "MingW" ; then
6950     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6951   fi
6952
6953 cat >>confdefs.h <<_ACEOF
6954 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6955 _ACEOF
6956
6957 fi
6958
6959 # Find a good install program.  We prefer a C program (faster),
6960 # so one script is as good as another.  But avoid the broken or
6961 # incompatible versions:
6962 # SysV /etc/install, /usr/sbin/install
6963 # SunOS /usr/etc/install
6964 # IRIX /sbin/install
6965 # AIX /bin/install
6966 # AmigaOS /C/install, which installs bootblocks on floppy discs
6967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6970 # OS/2's system install, which has a completely different semantic
6971 # ./install, which can be erroneously created by make from ./install.sh.
6972 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6973 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6974 if test -z "$INSTALL"; then
6975 if test "${ac_cv_path_install+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983   # Account for people who put trailing slashes in PATH elements.
6984 case $as_dir/ in
6985   ./ | .// | /cC/* | \
6986   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6987   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6988   /usr/ucb/* ) ;;
6989   *)
6990     # OSF1 and SCO ODT 3.0 have their own names for install.
6991     # Don't use installbsd from OSF since it installs stuff as root
6992     # by default.
6993     for ac_prog in ginstall scoinst install; do
6994       for ac_exec_ext in '' $ac_executable_extensions; do
6995         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6996           if test $ac_prog = install &&
6997             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6998             # AIX install.  It has an incompatible calling convention.
6999             :
7000           elif test $ac_prog = install &&
7001             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7002             # program-specific install script used by HP pwplus--don't use.
7003             :
7004           else
7005             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7006             break 3
7007           fi
7008         fi
7009       done
7010     done
7011     ;;
7012 esac
7013 done
7014 IFS=$as_save_IFS
7015
7016
7017 fi
7018   if test "${ac_cv_path_install+set}" = set; then
7019     INSTALL=$ac_cv_path_install
7020   else
7021     # As a last resort, use the slow shell script.  Don't cache a
7022     # value for INSTALL within a source directory, because that will
7023     # break other packages using the cache if that directory is
7024     # removed, or if the value is a relative name.
7025     INSTALL=$ac_install_sh
7026   fi
7027 fi
7028 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7029 echo "${ECHO_T}$INSTALL" >&6; }
7030
7031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7032 # It thinks the first close brace ends the variable substitution.
7033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7034
7035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7036
7037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7038
7039 case "$INSTALL" in
7040  [\\/$]* | ?:[\\/]* ) ;;
7041  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7042 esac
7043
7044 # Extract the first word of "bzip2", so it can be a program name with args.
7045 set dummy bzip2; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_BZIP2+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   case $BZIP2 in
7052   [\\/]* | ?:[\\/]*)
7053   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7054   ;;
7055   *)
7056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061   for ac_exec_ext in '' $ac_executable_extensions; do
7062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071   ;;
7072 esac
7073 fi
7074 BZIP2=$ac_cv_path_BZIP2
7075 if test -n "$BZIP2"; then
7076   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7077 echo "${ECHO_T}$BZIP2" >&6; }
7078 else
7079   { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7081 fi
7082
7083
7084 # Extract the first word of "cat", so it can be a program name with args.
7085 set dummy cat; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_path_CAT+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   case $CAT in
7092   [\\/]* | ?:[\\/]*)
7093   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7094   ;;
7095   *)
7096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101   for ac_exec_ext in '' $ac_executable_extensions; do
7102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111   ;;
7112 esac
7113 fi
7114 CAT=$ac_cv_path_CAT
7115 if test -n "$CAT"; then
7116   { echo "$as_me:$LINENO: result: $CAT" >&5
7117 echo "${ECHO_T}$CAT" >&6; }
7118 else
7119   { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7121 fi
7122
7123
7124 # Extract the first word of "doxygen", so it can be a program name with args.
7125 set dummy doxygen; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   case $DOXYGEN in
7132   [\\/]* | ?:[\\/]*)
7133   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7134   ;;
7135   *)
7136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141   for ac_exec_ext in '' $ac_executable_extensions; do
7142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151   ;;
7152 esac
7153 fi
7154 DOXYGEN=$ac_cv_path_DOXYGEN
7155 if test -n "$DOXYGEN"; then
7156   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7157 echo "${ECHO_T}$DOXYGEN" >&6; }
7158 else
7159   { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7161 fi
7162
7163
7164 # Extract the first word of "groff", so it can be a program name with args.
7165 set dummy groff; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_GROFF+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   case $GROFF in
7172   [\\/]* | ?:[\\/]*)
7173   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7174   ;;
7175   *)
7176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181   for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191   ;;
7192 esac
7193 fi
7194 GROFF=$ac_cv_path_GROFF
7195 if test -n "$GROFF"; then
7196   { echo "$as_me:$LINENO: result: $GROFF" >&5
7197 echo "${ECHO_T}$GROFF" >&6; }
7198 else
7199   { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7201 fi
7202
7203
7204 # Extract the first word of "gzip", so it can be a program name with args.
7205 set dummy gzip; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   case $GZIPBIN in
7212   [\\/]* | ?:[\\/]*)
7213   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7214   ;;
7215   *)
7216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221   for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231   ;;
7232 esac
7233 fi
7234 GZIPBIN=$ac_cv_path_GZIPBIN
7235 if test -n "$GZIPBIN"; then
7236   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7237 echo "${ECHO_T}$GZIPBIN" >&6; }
7238 else
7239   { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7241 fi
7242
7243
7244 # Extract the first word of "pdfroff", so it can be a program name with args.
7245 set dummy pdfroff; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_PDFROFF+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   case $PDFROFF in
7252   [\\/]* | ?:[\\/]*)
7253   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7254   ;;
7255   *)
7256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261   for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271   ;;
7272 esac
7273 fi
7274 PDFROFF=$ac_cv_path_PDFROFF
7275 if test -n "$PDFROFF"; then
7276   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7277 echo "${ECHO_T}$PDFROFF" >&6; }
7278 else
7279   { echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6; }
7281 fi
7282
7283
7284 # Extract the first word of "zip", so it can be a program name with args.
7285 set dummy zip; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_ZIP+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   case $ZIP in
7292   [\\/]* | ?:[\\/]*)
7293   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7294   ;;
7295   *)
7296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301   for ac_exec_ext in '' $ac_executable_extensions; do
7302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311   ;;
7312 esac
7313 fi
7314 ZIP=$ac_cv_path_ZIP
7315 if test -n "$ZIP"; then
7316   { echo "$as_me:$LINENO: result: $ZIP" >&5
7317 echo "${ECHO_T}$ZIP" >&6; }
7318 else
7319   { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7321 fi
7322
7323
7324 for ac_prog in ocamlc
7325 do
7326   # Extract the first word of "$ac_prog", so it can be a program name with args.
7327 set dummy $ac_prog; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_OCAMLC+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   case $OCAMLC in
7334   [\\/]* | ?:[\\/]*)
7335   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7336   ;;
7337   *)
7338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343   for ac_exec_ext in '' $ac_executable_extensions; do
7344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353   ;;
7354 esac
7355 fi
7356 OCAMLC=$ac_cv_path_OCAMLC
7357 if test -n "$OCAMLC"; then
7358   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7359 echo "${ECHO_T}$OCAMLC" >&6; }
7360 else
7361   { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7363 fi
7364
7365
7366   test -n "$OCAMLC" && break
7367 done
7368
7369 for ac_prog in ocamlopt
7370 do
7371   # Extract the first word of "$ac_prog", so it can be a program name with args.
7372 set dummy $ac_prog; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   case $OCAMLOPT in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7381   ;;
7382   *)
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398   ;;
7399 esac
7400 fi
7401 OCAMLOPT=$ac_cv_path_OCAMLOPT
7402 if test -n "$OCAMLOPT"; then
7403   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7404 echo "${ECHO_T}$OCAMLOPT" >&6; }
7405 else
7406   { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7408 fi
7409
7410
7411   test -n "$OCAMLOPT" && break
7412 done
7413
7414 for ac_prog in ocamldep
7415 do
7416   # Extract the first word of "$ac_prog", so it can be a program name with args.
7417 set dummy $ac_prog; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   case $OCAMLDEP in
7424   [\\/]* | ?:[\\/]*)
7425   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7426   ;;
7427   *)
7428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433   for ac_exec_ext in '' $ac_executable_extensions; do
7434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443   ;;
7444 esac
7445 fi
7446 OCAMLDEP=$ac_cv_path_OCAMLDEP
7447 if test -n "$OCAMLDEP"; then
7448   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7449 echo "${ECHO_T}$OCAMLDEP" >&6; }
7450 else
7451   { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7453 fi
7454
7455
7456   test -n "$OCAMLDEP" && break
7457 done
7458
7459 for ac_prog in ocamldoc
7460 do
7461   # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy $ac_prog; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   case $OCAMLDOC in
7469   [\\/]* | ?:[\\/]*)
7470   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7471   ;;
7472   *)
7473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488   ;;
7489 esac
7490 fi
7491 OCAMLDOC=$ac_cv_path_OCAMLDOC
7492 if test -n "$OCAMLDOC"; then
7493   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7494 echo "${ECHO_T}$OCAMLDOC" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501   test -n "$OCAMLDOC" && break
7502 done
7503
7504 for ac_prog in gas as
7505 do
7506   # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_GAS+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   case $GAS in
7514   [\\/]* | ?:[\\/]*)
7515   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7516   ;;
7517   *)
7518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533   ;;
7534 esac
7535 fi
7536 GAS=$ac_cv_path_GAS
7537 if test -n "$GAS"; then
7538   { echo "$as_me:$LINENO: result: $GAS" >&5
7539 echo "${ECHO_T}$GAS" >&6; }
7540 else
7541   { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7543 fi
7544
7545
7546   test -n "$GAS" && break
7547 done
7548
7549
7550 { echo "$as_me:$LINENO: checking for linker version" >&5
7551 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7552 if test "${llvm_cv_link_version+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555
7556    version_string="$(ld -v 2>&1 | head -1)"
7557
7558    # Check for ld64.
7559    if (echo "$version_string" | grep -q "ld64"); then
7560      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7561    else
7562      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7563    fi
7564
7565 fi
7566 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7567 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7568
7569 cat >>confdefs.h <<_ACEOF
7570 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7571 _ACEOF
7572
7573
7574
7575
7576 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7577 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7578 if test "${llvm_cv_link_use_r+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581    ac_ext=c
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7586
7587   oldcflags="$CFLAGS"
7588   CFLAGS="$CFLAGS -Wl,-R."
7589   cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595
7596 int
7597 main ()
7598 {
7599
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (ac_try="$ac_link"
7606 case "(($ac_try" in
7607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608   *) ac_try_echo=$ac_try;;
7609 esac
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611   (eval "$ac_link") 2>conftest.er1
7612   ac_status=$?
7613   grep -v '^ *+' conftest.er1 >conftest.err
7614   rm -f conftest.er1
7615   cat conftest.err >&5
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); } &&
7618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7619   { (case "(($ac_try" in
7620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621   *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624   (eval "$ac_try") 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; } &&
7628          { ac_try='test -s conftest$ac_exeext'
7629   { (case "(($ac_try" in
7630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631   *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634   (eval "$ac_try") 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   llvm_cv_link_use_r=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643         llvm_cv_link_use_r=no
7644 fi
7645
7646 rm -f core conftest.err conftest.$ac_objext \
7647       conftest$ac_exeext conftest.$ac_ext
7648   CFLAGS="$oldcflags"
7649   ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655
7656 fi
7657 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7658 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7659 if test "$llvm_cv_link_use_r" = yes ; then
7660
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_LINK_R 1
7663 _ACEOF
7664
7665   fi
7666
7667
7668 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7669 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7670 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673    ac_ext=c
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679   oldcflags="$CFLAGS"
7680   CFLAGS="$CFLAGS -rdynamic"
7681   cat >conftest.$ac_ext <<_ACEOF
7682 /* confdefs.h.  */
7683 _ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h.  */
7687
7688 int
7689 main ()
7690 {
7691
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 rm -f conftest.$ac_objext conftest$ac_exeext
7697 if { (ac_try="$ac_link"
7698 case "(($ac_try" in
7699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700   *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703   (eval "$ac_link") 2>conftest.er1
7704   ac_status=$?
7705   grep -v '^ *+' conftest.er1 >conftest.err
7706   rm -f conftest.er1
7707   cat conftest.err >&5
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } &&
7710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7711   { (case "(($ac_try" in
7712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713   *) ac_try_echo=$ac_try;;
7714 esac
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716   (eval "$ac_try") 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; } &&
7720          { ac_try='test -s conftest$ac_exeext'
7721   { (case "(($ac_try" in
7722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723   *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726   (eval "$ac_try") 2>&5
7727   ac_status=$?
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); }; }; then
7730   llvm_cv_link_use_export_dynamic=yes
7731 else
7732   echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735         llvm_cv_link_use_export_dynamic=no
7736 fi
7737
7738 rm -f core conftest.err conftest.$ac_objext \
7739       conftest$ac_exeext conftest.$ac_ext
7740   CFLAGS="$oldcflags"
7741   ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747
7748 fi
7749 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7750 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7751 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7752
7753 cat >>confdefs.h <<\_ACEOF
7754 #define HAVE_LINK_EXPORT_DYNAMIC 1
7755 _ACEOF
7756
7757   fi
7758
7759
7760 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7761 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7762 if test "${llvm_cv_link_use_version_script+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765    ac_ext=c
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771   oldcflags="$CFLAGS"
7772
7773   # The following code is from the autoconf manual,
7774   # "11.13: Limitations of Usual Tools".
7775   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7776   # Use mktemp if possible; otherwise fall back on mkdir,
7777   # with $RANDOM to make collisions less likely.
7778   : ${TMPDIR=/tmp}
7779   {
7780     tmp=`
7781       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7782     ` &&
7783     test -n "$tmp" && test -d "$tmp"
7784   } || {
7785     tmp=$TMPDIR/foo$$-$RANDOM
7786     (umask 077 && mkdir "$tmp")
7787   } || exit $?
7788
7789   echo "{" > "$tmp/export.map"
7790   echo "  global: main;" >> "$tmp/export.map"
7791   echo "  local: *;" >> "$tmp/export.map"
7792   echo "};" >> "$tmp/export.map"
7793
7794   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7795   cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801
7802 int
7803 main ()
7804 {
7805
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (ac_try="$ac_link"
7812 case "(($ac_try" in
7813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814   *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817   (eval "$ac_link") 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825   { (case "(($ac_try" in
7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827   *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830   (eval "$ac_try") 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (case "(($ac_try" in
7836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837   *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840   (eval "$ac_try") 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   llvm_cv_link_use_version_script=yes
7845 else
7846   echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849         llvm_cv_link_use_version_script=no
7850 fi
7851
7852 rm -f core conftest.err conftest.$ac_objext \
7853       conftest$ac_exeext conftest.$ac_ext
7854   rm "$tmp/export.map"
7855   rmdir "$tmp"
7856   CFLAGS="$oldcflags"
7857   ac_ext=c
7858 ac_cpp='$CPP $CPPFLAGS'
7859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862
7863
7864 fi
7865 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7866 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7867 if test "$llvm_cv_link_use_version_script" = yes ; then
7868   HAVE_LINK_VERSION_SCRIPT=1
7869
7870   fi
7871
7872
7873
7874
7875 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7876 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7877 if test "${ac_cv_c_const+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886
7887 int
7888 main ()
7889 {
7890 /* FIXME: Include the comments suggested by Paul. */
7891 #ifndef __cplusplus
7892   /* Ultrix mips cc rejects this.  */
7893   typedef int charset[2];
7894   const charset x;
7895   /* SunOS 4.1.1 cc rejects this.  */
7896   char const *const *ccp;
7897   char **p;
7898   /* NEC SVR4.0.2 mips cc rejects this.  */
7899   struct point {int x, y;};
7900   static struct point const zero = {0,0};
7901   /* AIX XL C 1.02.0.0 rejects this.
7902      It does not let you subtract one const X* pointer from another in
7903      an arm of an if-expression whose if-part is not a constant
7904      expression */
7905   const char *g = "string";
7906   ccp = &g + (g ? g-g : 0);
7907   /* HPUX 7.0 cc rejects these. */
7908   ++ccp;
7909   p = (char**) ccp;
7910   ccp = (char const *const *) p;
7911   { /* SCO 3.2v4 cc rejects this.  */
7912     char *t;
7913     char const *s = 0 ? (char *) 0 : (char const *) 0;
7914
7915     *t++ = 0;
7916     if (s) return 0;
7917   }
7918   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7919     int x[] = {25, 17};
7920     const int *foo = &x[0];
7921     ++foo;
7922   }
7923   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7924     typedef const int *iptr;
7925     iptr p = 0;
7926     ++p;
7927   }
7928   { /* AIX XL C 1.02.0.0 rejects this saying
7929        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7930     struct s { int j; const int *ap[3]; };
7931     struct s *b; b->j = 5;
7932   }
7933   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7934     const int foo = 10;
7935     if (!foo) return 0;
7936   }
7937   return !x[0] && !zero.x;
7938 #endif
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_compile") 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959   { (case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_try") 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; } &&
7968          { ac_try='test -s conftest.$ac_objext'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   ac_cv_c_const=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983         ac_cv_c_const=no
7984 fi
7985
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 fi
7988 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7989 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7990 if test $ac_cv_c_const = no; then
7991
7992 cat >>confdefs.h <<\_ACEOF
7993 #define const
7994 _ACEOF
7995
7996 fi
7997
7998
7999 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8000 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8001 if test "${ac_cv_path_GREP+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   # Extract the first word of "grep ggrep" to use in msg output
8005 if test -z "$GREP"; then
8006 set dummy grep ggrep; ac_prog_name=$2
8007 if test "${ac_cv_path_GREP+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010   ac_path_GREP_found=false
8011 # Loop through the user's path and test for each of PROGNAME-LIST
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8014 do
8015   IFS=$as_save_IFS
8016   test -z "$as_dir" && as_dir=.
8017   for ac_prog in grep ggrep; do
8018   for ac_exec_ext in '' $ac_executable_extensions; do
8019     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8020     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8021     # Check for GNU ac_path_GREP and select it if it is found.
8022   # Check for GNU $ac_path_GREP
8023 case `"$ac_path_GREP" --version 2>&1` in
8024 *GNU*)
8025   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8026 *)
8027   ac_count=0
8028   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8029   while :
8030   do
8031     cat "conftest.in" "conftest.in" >"conftest.tmp"
8032     mv "conftest.tmp" "conftest.in"
8033     cp "conftest.in" "conftest.nl"
8034     echo 'GREP' >> "conftest.nl"
8035     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8036     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8037     ac_count=`expr $ac_count + 1`
8038     if test $ac_count -gt ${ac_path_GREP_max-0}; then
8039       # Best one so far, save it but keep looking for a better one
8040       ac_cv_path_GREP="$ac_path_GREP"
8041       ac_path_GREP_max=$ac_count
8042     fi
8043     # 10*(2^10) chars as input seems more than enough
8044     test $ac_count -gt 10 && break
8045   done
8046   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8047 esac
8048
8049
8050     $ac_path_GREP_found && break 3
8051   done
8052 done
8053
8054 done
8055 IFS=$as_save_IFS
8056
8057
8058 fi
8059
8060 GREP="$ac_cv_path_GREP"
8061 if test -z "$GREP"; then
8062   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8064    { (exit 1); exit 1; }; }
8065 fi
8066
8067 else
8068   ac_cv_path_GREP=$GREP
8069 fi
8070
8071
8072 fi
8073 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8074 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8075  GREP="$ac_cv_path_GREP"
8076
8077
8078 { echo "$as_me:$LINENO: checking for egrep" >&5
8079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8080 if test "${ac_cv_path_EGREP+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8084    then ac_cv_path_EGREP="$GREP -E"
8085    else
8086      # Extract the first word of "egrep" to use in msg output
8087 if test -z "$EGREP"; then
8088 set dummy egrep; ac_prog_name=$2
8089 if test "${ac_cv_path_EGREP+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   ac_path_EGREP_found=false
8093 # Loop through the user's path and test for each of PROGNAME-LIST
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099   for ac_prog in egrep; do
8100   for ac_exec_ext in '' $ac_executable_extensions; do
8101     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8102     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8103     # Check for GNU ac_path_EGREP and select it if it is found.
8104   # Check for GNU $ac_path_EGREP
8105 case `"$ac_path_EGREP" --version 2>&1` in
8106 *GNU*)
8107   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8108 *)
8109   ac_count=0
8110   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8111   while :
8112   do
8113     cat "conftest.in" "conftest.in" >"conftest.tmp"
8114     mv "conftest.tmp" "conftest.in"
8115     cp "conftest.in" "conftest.nl"
8116     echo 'EGREP' >> "conftest.nl"
8117     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8118     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8119     ac_count=`expr $ac_count + 1`
8120     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8121       # Best one so far, save it but keep looking for a better one
8122       ac_cv_path_EGREP="$ac_path_EGREP"
8123       ac_path_EGREP_max=$ac_count
8124     fi
8125     # 10*(2^10) chars as input seems more than enough
8126     test $ac_count -gt 10 && break
8127   done
8128   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8129 esac
8130
8131
8132     $ac_path_EGREP_found && break 3
8133   done
8134 done
8135
8136 done
8137 IFS=$as_save_IFS
8138
8139
8140 fi
8141
8142 EGREP="$ac_cv_path_EGREP"
8143 if test -z "$EGREP"; then
8144   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8145 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8146    { (exit 1); exit 1; }; }
8147 fi
8148
8149 else
8150   ac_cv_path_EGREP=$EGREP
8151 fi
8152
8153
8154    fi
8155 fi
8156 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8157 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8158  EGREP="$ac_cv_path_EGREP"
8159
8160
8161 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8162 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8163 if test "${ac_cv_header_stdc+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #include <stdlib.h>
8173 #include <stdarg.h>
8174 #include <string.h>
8175 #include <float.h>
8176
8177 int
8178 main ()
8179 {
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } &&
8199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200   { (case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_try") 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; } &&
8209          { ac_try='test -s conftest.$ac_objext'
8210   { (case "(($ac_try" in
8211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212   *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215   (eval "$ac_try") 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219   ac_cv_header_stdc=yes
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224         ac_cv_header_stdc=no
8225 fi
8226
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228
8229 if test $ac_cv_header_stdc = yes; then
8230   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 #include <string.h>
8238
8239 _ACEOF
8240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8241   $EGREP "memchr" >/dev/null 2>&1; then
8242   :
8243 else
8244   ac_cv_header_stdc=no
8245 fi
8246 rm -f conftest*
8247
8248 fi
8249
8250 if test $ac_cv_header_stdc = yes; then
8251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8252   cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258 #include <stdlib.h>
8259
8260 _ACEOF
8261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8262   $EGREP "free" >/dev/null 2>&1; then
8263   :
8264 else
8265   ac_cv_header_stdc=no
8266 fi
8267 rm -f conftest*
8268
8269 fi
8270
8271 if test $ac_cv_header_stdc = yes; then
8272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8273   if test "$cross_compiling" = yes; then
8274   :
8275 else
8276   cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 #include <ctype.h>
8283 #include <stdlib.h>
8284 #if ((' ' & 0x0FF) == 0x020)
8285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8287 #else
8288 # define ISLOWER(c) \
8289                    (('a' <= (c) && (c) <= 'i') \
8290                      || ('j' <= (c) && (c) <= 'r') \
8291                      || ('s' <= (c) && (c) <= 'z'))
8292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8293 #endif
8294
8295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8296 int
8297 main ()
8298 {
8299   int i;
8300   for (i = 0; i < 256; i++)
8301     if (XOR (islower (i), ISLOWER (i))
8302         || toupper (i) != TOUPPER (i))
8303       return 2;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8309 case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_link") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8318   { (case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_try") 2>&5
8324   ac_status=$?
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); }; }; then
8327   :
8328 else
8329   echo "$as_me: program exited with status $ac_status" >&5
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333 ( exit $ac_status )
8334 ac_cv_header_stdc=no
8335 fi
8336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8337 fi
8338
8339
8340 fi
8341 fi
8342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8344 if test $ac_cv_header_stdc = yes; then
8345
8346 cat >>confdefs.h <<\_ACEOF
8347 #define STDC_HEADERS 1
8348 _ACEOF
8349
8350 fi
8351
8352
8353
8354
8355
8356
8357 ac_header_dirent=no
8358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8359   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8360 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8361 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371 #include <sys/types.h>
8372 #include <$ac_hdr>
8373
8374 int
8375 main ()
8376 {
8377 if ((DIR *) 0)
8378 return 0;
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8385 case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_compile") 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398   { (case "(($ac_try" in
8399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400   *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403   (eval "$ac_try") 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest.$ac_objext'
8408   { (case "(($ac_try" in
8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410   *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413   (eval "$ac_try") 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   eval "$as_ac_Header=yes"
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422         eval "$as_ac_Header=no"
8423 fi
8424
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 ac_res=`eval echo '${'$as_ac_Header'}'`
8428                { echo "$as_me:$LINENO: result: $ac_res" >&5
8429 echo "${ECHO_T}$ac_res" >&6; }
8430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8431   cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8433 _ACEOF
8434
8435 ac_header_dirent=$ac_hdr; break
8436 fi
8437
8438 done
8439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8440 if test $ac_header_dirent = dirent.h; then
8441   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8443 if test "${ac_cv_search_opendir+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   ac_func_search_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 /* Override any GCC internal prototype to avoid an error.
8455    Use char because int might match the return type of a GCC
8456    builtin and then its argument prototype would still apply.  */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 char opendir ();
8461 int
8462 main ()
8463 {
8464 return opendir ();
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 for ac_lib in '' dir; do
8470   if test -z "$ac_lib"; then
8471     ac_res="none required"
8472   else
8473     ac_res=-l$ac_lib
8474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8475   fi
8476   rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (ac_try="$ac_link"
8478 case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_link") 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491   { (case "(($ac_try" in
8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493   *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496   (eval "$ac_try") 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_cv_search_opendir=$ac_res
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext \
8519       conftest$ac_exeext
8520   if test "${ac_cv_search_opendir+set}" = set; then
8521   break
8522 fi
8523 done
8524 if test "${ac_cv_search_opendir+set}" = set; then
8525   :
8526 else
8527   ac_cv_search_opendir=no
8528 fi
8529 rm conftest.$ac_ext
8530 LIBS=$ac_func_search_save_LIBS
8531 fi
8532 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8533 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8534 ac_res=$ac_cv_search_opendir
8535 if test "$ac_res" != no; then
8536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8537
8538 fi
8539
8540 else
8541   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8542 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8543 if test "${ac_cv_search_opendir+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   ac_func_search_save_LIBS=$LIBS
8547 cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553
8554 /* Override any GCC internal prototype to avoid an error.
8555    Use char because int might match the return type of a GCC
8556    builtin and then its argument prototype would still apply.  */
8557 #ifdef __cplusplus
8558 extern "C"
8559 #endif
8560 char opendir ();
8561 int
8562 main ()
8563 {
8564 return opendir ();
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 for ac_lib in '' x; do
8570   if test -z "$ac_lib"; then
8571     ac_res="none required"
8572   else
8573     ac_res=-l$ac_lib
8574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8575   fi
8576   rm -f conftest.$ac_objext conftest$ac_exeext
8577 if { (ac_try="$ac_link"
8578 case "(($ac_try" in
8579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580   *) ac_try_echo=$ac_try;;
8581 esac
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583   (eval "$ac_link") 2>conftest.er1
8584   ac_status=$?
8585   grep -v '^ *+' conftest.er1 >conftest.err
8586   rm -f conftest.er1
8587   cat conftest.err >&5
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); } &&
8590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8591   { (case "(($ac_try" in
8592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593   *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596   (eval "$ac_try") 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (case "(($ac_try" in
8602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603   *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606   (eval "$ac_try") 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_cv_search_opendir=$ac_res
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615
8616 fi
8617
8618 rm -f core conftest.err conftest.$ac_objext \
8619       conftest$ac_exeext
8620   if test "${ac_cv_search_opendir+set}" = set; then
8621   break
8622 fi
8623 done
8624 if test "${ac_cv_search_opendir+set}" = set; then
8625   :
8626 else
8627   ac_cv_search_opendir=no
8628 fi
8629 rm conftest.$ac_ext
8630 LIBS=$ac_func_search_save_LIBS
8631 fi
8632 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8633 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8634 ac_res=$ac_cv_search_opendir
8635 if test "$ac_res" != no; then
8636   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8637
8638 fi
8639
8640 fi
8641
8642 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8653                   inttypes.h stdint.h unistd.h
8654 do
8655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 $ac_includes_default
8668
8669 #include <$ac_header>
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678   (eval "$ac_compile") 2>conftest.er1
8679   ac_status=$?
8680   grep -v '^ *+' conftest.er1 >conftest.err
8681   rm -f conftest.er1
8682   cat conftest.err >&5
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); } &&
8685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686   { (case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_try") 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; } &&
8695          { ac_try='test -s conftest.$ac_objext'
8696   { (case "(($ac_try" in
8697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698   *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701   (eval "$ac_try") 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   eval "$as_ac_Header=yes"
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710         eval "$as_ac_Header=no"
8711 fi
8712
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 ac_res=`eval echo '${'$as_ac_Header'}'`
8716                { echo "$as_me:$LINENO: result: $ac_res" >&5
8717 echo "${ECHO_T}$ac_res" >&6; }
8718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8719   cat >>confdefs.h <<_ACEOF
8720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721 _ACEOF
8722
8723 fi
8724
8725 done
8726
8727
8728
8729 for ac_header in dlfcn.h
8730 do
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 fi
8738 ac_res=`eval echo '${'$as_ac_Header'}'`
8739                { echo "$as_me:$LINENO: result: $ac_res" >&5
8740 echo "${ECHO_T}$ac_res" >&6; }
8741 else
8742   # Is the header compilable?
8743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 $ac_includes_default
8752 #include <$ac_header>
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_compile") 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769   { (case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_try") 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; } &&
8778          { ac_try='test -s conftest.$ac_objext'
8779   { (case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_try") 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   ac_header_compiler=yes
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793         ac_header_compiler=no
8794 fi
8795
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 echo "${ECHO_T}$ac_header_compiler" >&6; }
8799
8800 # Is the header present?
8801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 #include <$ac_header>
8810 _ACEOF
8811 if { (ac_try="$ac_cpp conftest.$ac_ext"
8812 case "(($ac_try" in
8813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814   *) ac_try_echo=$ac_try;;
8815 esac
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } >/dev/null; then
8824   if test -s conftest.err; then
8825     ac_cpp_err=$ac_c_preproc_warn_flag
8826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8827   else
8828     ac_cpp_err=
8829   fi
8830 else
8831   ac_cpp_err=yes
8832 fi
8833 if test -z "$ac_cpp_err"; then
8834   ac_header_preproc=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839   ac_header_preproc=no
8840 fi
8841
8842 rm -f conftest.err conftest.$ac_ext
8843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8844 echo "${ECHO_T}$ac_header_preproc" >&6; }
8845
8846 # So?  What about this header?
8847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8848   yes:no: )
8849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8853     ac_header_preproc=yes
8854     ;;
8855   no:yes:* )
8856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8868     ( cat <<\_ASBOX
8869 ## ------------------------------------ ##
8870 ## Report this to http://llvm.org/bugs/ ##
8871 ## ------------------------------------ ##
8872 _ASBOX
8873      ) | sed "s/^/$as_me: WARNING:     /" >&2
8874     ;;
8875 esac
8876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881   eval "$as_ac_Header=\$ac_header_preproc"
8882 fi
8883 ac_res=`eval echo '${'$as_ac_Header'}'`
8884                { echo "$as_me:$LINENO: result: $ac_res" >&5
8885 echo "${ECHO_T}$ac_res" >&6; }
8886
8887 fi
8888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8889   cat >>confdefs.h <<_ACEOF
8890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 _ACEOF
8892
8893 fi
8894
8895 done
8896
8897 # Check whether --enable-ltdl-install was given.
8898 if test "${enable_ltdl_install+set}" = set; then
8899   enableval=$enable_ltdl_install;
8900 fi
8901
8902
8903
8904
8905 if test x"${enable_ltdl_install-no}" != xno; then
8906   INSTALL_LTDL_TRUE=
8907   INSTALL_LTDL_FALSE='#'
8908 else
8909   INSTALL_LTDL_TRUE='#'
8910   INSTALL_LTDL_FALSE=
8911 fi
8912
8913
8914
8915 if test x"${enable_ltdl_convenience-no}" != xno; then
8916   CONVENIENCE_LTDL_TRUE=
8917   CONVENIENCE_LTDL_FALSE='#'
8918 else
8919   CONVENIENCE_LTDL_TRUE='#'
8920   CONVENIENCE_LTDL_FALSE=
8921 fi
8922
8923
8924 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8926 library_names_spec=
8927 libname_spec='lib$name'
8928 soname_spec=
8929 shrext_cmds=".so"
8930 postinstall_cmds=
8931 postuninstall_cmds=
8932 finish_cmds=
8933 finish_eval=
8934 shlibpath_var=
8935 shlibpath_overrides_runpath=unknown
8936 version_type=none
8937 dynamic_linker="$host_os ld.so"
8938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8939 if test "$GCC" = yes; then
8940   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8941   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8942     # if the path contains ";" then we assume it to be the separator
8943     # otherwise default to the standard path separator (i.e. ":") - it is
8944     # assumed that no part of a normal pathname contains ";" but that should
8945     # okay in the real world where ";" in dirpaths is itself problematic.
8946     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8947   else
8948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8949   fi
8950 else
8951   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8952 fi
8953 need_lib_prefix=unknown
8954 hardcode_into_libs=no
8955
8956 # when you set need_version to no, make sure it does not cause -set_version
8957 # flags to be left without arguments
8958 need_version=unknown
8959
8960 case $host_os in
8961 aix3*)
8962   version_type=linux
8963   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8964   shlibpath_var=LIBPATH
8965
8966   # AIX 3 has no versioning support, so we append a major version to the name.
8967   soname_spec='${libname}${release}${shared_ext}$major'
8968   ;;
8969
8970 aix4* | aix5*)
8971   version_type=linux
8972   need_lib_prefix=no
8973   need_version=no
8974   hardcode_into_libs=yes
8975   if test "$host_cpu" = ia64; then
8976     # AIX 5 supports IA64
8977     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8978     shlibpath_var=LD_LIBRARY_PATH
8979   else
8980     # With GCC up to 2.95.x, collect2 would create an import file
8981     # for dependence libraries.  The import file would start with
8982     # the line `#! .'.  This would cause the generated library to
8983     # depend on `.', always an invalid library.  This was fixed in
8984     # development snapshots of GCC prior to 3.0.
8985     case $host_os in
8986       aix4 | aix4.[01] | aix4.[01].*)
8987       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8988            echo ' yes '
8989            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8990         :
8991       else
8992         can_build_shared=no
8993       fi
8994       ;;
8995     esac
8996     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8997     # soname into executable. Probably we can add versioning support to
8998     # collect2, so additional links can be useful in future.
8999     if test "$aix_use_runtimelinking" = yes; then
9000       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9001       # instead of lib<name>.a to let people know that these are not
9002       # typical AIX shared libraries.
9003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004     else
9005       # We preserve .a as extension for shared libraries through AIX4.2
9006       # and later when we are not doing run time linking.
9007       library_names_spec='${libname}${release}.a $libname.a'
9008       soname_spec='${libname}${release}${shared_ext}$major'
9009     fi
9010     shlibpath_var=LIBPATH
9011   fi
9012   ;;
9013
9014 amigaos*)
9015   library_names_spec='$libname.ixlibrary $libname.a'
9016   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9017   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9018   ;;
9019
9020 beos*)
9021   library_names_spec='${libname}${shared_ext}'
9022   dynamic_linker="$host_os ld.so"
9023   shlibpath_var=LIBRARY_PATH
9024   ;;
9025
9026 bsdi[45]*)
9027   version_type=linux
9028   need_version=no
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9034   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9035   # the default ld.so.conf also contains /usr/contrib/lib and
9036   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9037   # libtool to hard-code these into programs
9038   ;;
9039
9040 cygwin* | mingw* | pw32*)
9041   version_type=windows
9042   shrext_cmds=".dll"
9043   need_version=no
9044   need_lib_prefix=no
9045
9046   case $GCC,$host_os in
9047   yes,cygwin* | yes,mingw* | yes,pw32*)
9048     library_names_spec='$libname.dll.a'
9049     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9050     postinstall_cmds='base_file=`basename \${file}`~
9051       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9052       dldir=$destdir/`dirname \$dlpath`~
9053       test -d \$dldir || mkdir -p \$dldir~
9054       $install_prog $dir/$dlname \$dldir/$dlname~
9055       chmod a+x \$dldir/$dlname'
9056     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9057       dlpath=$dir/\$dldll~
9058        $rm \$dlpath'
9059     shlibpath_overrides_runpath=yes
9060
9061     case $host_os in
9062     cygwin*)
9063       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9064       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9065       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9066       ;;
9067     mingw*)
9068       # MinGW DLLs use traditional 'lib' prefix
9069       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9070       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9071       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9072         # It is most probably a Windows format PATH printed by
9073         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9074         # path with ; separators, and with drive letters. We can handle the
9075         # drive letters (cygwin fileutils understands them), so leave them,
9076         # especially as we might pass files found there to a mingw objdump,
9077         # which wouldn't understand a cygwinified path. Ahh.
9078         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9079       else
9080         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9081       fi
9082       ;;
9083     pw32*)
9084       # pw32 DLLs use 'pw' prefix rather than 'lib'
9085       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9086       ;;
9087     esac
9088     ;;
9089
9090   *)
9091     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9092     ;;
9093   esac
9094   dynamic_linker='Win32 ld.exe'
9095   # FIXME: first we should search . and the directory the executable is in
9096   shlibpath_var=PATH
9097   ;;
9098
9099 darwin* | rhapsody*)
9100   dynamic_linker="$host_os dyld"
9101   version_type=darwin
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9105   soname_spec='${libname}${release}${major}$shared_ext'
9106   shlibpath_overrides_runpath=yes
9107   shlibpath_var=DYLD_LIBRARY_PATH
9108   shrext_cmds='.dylib'
9109   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9110   if test "$GCC" = yes; then
9111     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9112   else
9113     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9114   fi
9115   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9116   ;;
9117
9118 dgux*)
9119   version_type=linux
9120   need_lib_prefix=no
9121   need_version=no
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9123   soname_spec='${libname}${release}${shared_ext}$major'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   ;;
9126
9127 freebsd1.*)
9128   dynamic_linker=no
9129   ;;
9130
9131 kfreebsd*-gnu)
9132   version_type=linux
9133   need_lib_prefix=no
9134   need_version=no
9135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9136   soname_spec='${libname}${release}${shared_ext}$major'
9137   shlibpath_var=LD_LIBRARY_PATH
9138   shlibpath_overrides_runpath=no
9139   hardcode_into_libs=yes
9140   dynamic_linker='GNU ld.so'
9141   ;;
9142
9143 freebsd* | dragonfly*)
9144   # DragonFly does not have aout.  When/if they implement a new
9145   # versioning mechanism, adjust this.
9146   if test -x /usr/bin/objformat; then
9147     objformat=`/usr/bin/objformat`
9148   else
9149     case $host_os in
9150     freebsd[123].*) objformat=aout ;;
9151     *) objformat=elf ;;
9152     esac
9153   fi
9154   version_type=freebsd-$objformat
9155   case $version_type in
9156     freebsd-elf*)
9157       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9158       need_version=no
9159       need_lib_prefix=no
9160       ;;
9161     freebsd-*)
9162       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9163       need_version=yes
9164       ;;
9165   esac
9166   shlibpath_var=LD_LIBRARY_PATH
9167   case $host_os in
9168   freebsd2.*)
9169     shlibpath_overrides_runpath=yes
9170     ;;
9171   freebsd3.[01]* | freebsdelf3.[01]*)
9172     shlibpath_overrides_runpath=yes
9173     hardcode_into_libs=yes
9174     ;;
9175   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9176   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9177     shlibpath_overrides_runpath=no
9178     hardcode_into_libs=yes
9179     ;;
9180   freebsd*) # from 4.6 on
9181     shlibpath_overrides_runpath=yes
9182     hardcode_into_libs=yes
9183     ;;
9184   esac
9185   ;;
9186
9187 gnu*)
9188   version_type=linux
9189   need_lib_prefix=no
9190   need_version=no
9191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9192   soname_spec='${libname}${release}${shared_ext}$major'
9193   shlibpath_var=LD_LIBRARY_PATH
9194   hardcode_into_libs=yes
9195   ;;
9196
9197 hpux9* | hpux10* | hpux11*)
9198   # Give a soname corresponding to the major version so that dld.sl refuses to
9199   # link against other versions.
9200   version_type=sunos
9201   need_lib_prefix=no
9202   need_version=no
9203   case $host_cpu in
9204   ia64*)
9205     shrext_cmds='.so'
9206     hardcode_into_libs=yes
9207     dynamic_linker="$host_os dld.so"
9208     shlibpath_var=LD_LIBRARY_PATH
9209     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211     soname_spec='${libname}${release}${shared_ext}$major'
9212     if test "X$HPUX_IA64_MODE" = X32; then
9213       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9214     else
9215       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9216     fi
9217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9218     ;;
9219    hppa*64*)
9220      shrext_cmds='.sl'
9221      hardcode_into_libs=yes
9222      dynamic_linker="$host_os dld.sl"
9223      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9224      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226      soname_spec='${libname}${release}${shared_ext}$major'
9227      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9228      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9229      ;;
9230    *)
9231     shrext_cmds='.sl'
9232     dynamic_linker="$host_os dld.sl"
9233     shlibpath_var=SHLIB_PATH
9234     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236     soname_spec='${libname}${release}${shared_ext}$major'
9237     ;;
9238   esac
9239   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9240   postinstall_cmds='chmod 555 $lib'
9241   ;;
9242
9243 interix3*)
9244   version_type=linux
9245   need_lib_prefix=no
9246   need_version=no
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248   soname_spec='${libname}${release}${shared_ext}$major'
9249   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   shlibpath_overrides_runpath=no
9252   hardcode_into_libs=yes
9253   ;;
9254
9255 irix5* | irix6* | nonstopux*)
9256   case $host_os in
9257     nonstopux*) version_type=nonstopux ;;
9258     *)
9259         if test "$lt_cv_prog_gnu_ld" = yes; then
9260                 version_type=linux
9261         else
9262                 version_type=irix
9263         fi ;;
9264   esac
9265   need_lib_prefix=no
9266   need_version=no
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9269   case $host_os in
9270   irix5* | nonstopux*)
9271     libsuff= shlibsuff=
9272     ;;
9273   *)
9274     case $LD in # libtool.m4 will add one of these switches to LD
9275     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9276       libsuff= shlibsuff= libmagic=32-bit;;
9277     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9278       libsuff=32 shlibsuff=N32 libmagic=N32;;
9279     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9280       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9281     *) libsuff= shlibsuff= libmagic=never-match;;
9282     esac
9283     ;;
9284   esac
9285   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9286   shlibpath_overrides_runpath=no
9287   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9288   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9289   hardcode_into_libs=yes
9290   ;;
9291
9292 # No shared lib support for Linux oldld, aout, or coff.
9293 linux*oldld* | linux*aout* | linux*coff*)
9294   dynamic_linker=no
9295   ;;
9296
9297 # This must be Linux ELF.
9298 linux*)
9299   version_type=linux
9300   need_lib_prefix=no
9301   need_version=no
9302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303   soname_spec='${libname}${release}${shared_ext}$major'
9304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   shlibpath_overrides_runpath=no
9307   # This implies no fast_install, which is unacceptable.
9308   # Some rework will be needed to allow for fast_install
9309   # before this can be enabled.
9310   hardcode_into_libs=yes
9311
9312   # Append ld.so.conf contents to the search path
9313   if test -f /etc/ld.so.conf; then
9314     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9315     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9316   fi
9317
9318   # We used to test for /lib/ld.so.1 and disable shared libraries on
9319   # powerpc, because MkLinux only supported shared libraries with the
9320   # GNU dynamic linker.  Since this was broken with cross compilers,
9321   # most powerpc-linux boxes support dynamic linking these days and
9322   # people can always --disable-shared, the test was removed, and we
9323   # assume the GNU/Linux dynamic linker is in use.
9324   dynamic_linker='GNU/Linux ld.so'
9325   ;;
9326
9327 knetbsd*-gnu)
9328   version_type=linux
9329   need_lib_prefix=no
9330   need_version=no
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9332   soname_spec='${libname}${release}${shared_ext}$major'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   shlibpath_overrides_runpath=no
9335   hardcode_into_libs=yes
9336   dynamic_linker='GNU ld.so'
9337   ;;
9338
9339 netbsd*)
9340   version_type=sunos
9341   need_lib_prefix=no
9342   need_version=no
9343   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9345     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9346     dynamic_linker='NetBSD (a.out) ld.so'
9347   else
9348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9349     soname_spec='${libname}${release}${shared_ext}$major'
9350     dynamic_linker='NetBSD ld.elf_so'
9351   fi
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=yes
9354   hardcode_into_libs=yes
9355   ;;
9356
9357 newsos6)
9358   version_type=linux
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360   shlibpath_var=LD_LIBRARY_PATH
9361   shlibpath_overrides_runpath=yes
9362   ;;
9363
9364 nto-qnx*)
9365   version_type=linux
9366   need_lib_prefix=no
9367   need_version=no
9368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369   soname_spec='${libname}${release}${shared_ext}$major'
9370   shlibpath_var=LD_LIBRARY_PATH
9371   shlibpath_overrides_runpath=yes
9372   ;;
9373
9374 openbsd* | bitrig*)
9375   version_type=sunos
9376   sys_lib_dlsearch_path_spec="/usr/lib"
9377   need_lib_prefix=no
9378   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9379   case $host_os in
9380     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9381     *)                         need_version=no  ;;
9382   esac
9383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9385   shlibpath_var=LD_LIBRARY_PATH
9386   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9387     case $host_os in
9388       openbsd2.[89] | openbsd2.[89].*)
9389         shlibpath_overrides_runpath=no
9390         ;;
9391       *)
9392         shlibpath_overrides_runpath=yes
9393         ;;
9394       esac
9395   else
9396     shlibpath_overrides_runpath=yes
9397   fi
9398   ;;
9399
9400 os2*)
9401   libname_spec='$name'
9402   shrext_cmds=".dll"
9403   need_lib_prefix=no
9404   library_names_spec='$libname${shared_ext} $libname.a'
9405   dynamic_linker='OS/2 ld.exe'
9406   shlibpath_var=LIBPATH
9407   ;;
9408
9409 osf3* | osf4* | osf5*)
9410   version_type=osf
9411   need_lib_prefix=no
9412   need_version=no
9413   soname_spec='${libname}${release}${shared_ext}$major'
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415   shlibpath_var=LD_LIBRARY_PATH
9416   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9417   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9418   ;;
9419
9420 solaris*)
9421   version_type=linux
9422   need_lib_prefix=no
9423   need_version=no
9424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425   soname_spec='${libname}${release}${shared_ext}$major'
9426   shlibpath_var=LD_LIBRARY_PATH
9427   shlibpath_overrides_runpath=yes
9428   hardcode_into_libs=yes
9429   # ldd complains unless libraries are executable
9430   postinstall_cmds='chmod +x $lib'
9431   ;;
9432
9433 sunos4*)
9434   version_type=sunos
9435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9437   shlibpath_var=LD_LIBRARY_PATH
9438   shlibpath_overrides_runpath=yes
9439   if test "$with_gnu_ld" = yes; then
9440     need_lib_prefix=no
9441   fi
9442   need_version=yes
9443   ;;
9444
9445 sysv4 | sysv4.3*)
9446   version_type=linux
9447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448   soname_spec='${libname}${release}${shared_ext}$major'
9449   shlibpath_var=LD_LIBRARY_PATH
9450   case $host_vendor in
9451     sni)
9452       shlibpath_overrides_runpath=no
9453       need_lib_prefix=no
9454       export_dynamic_flag_spec='${wl}-Blargedynsym'
9455       runpath_var=LD_RUN_PATH
9456       ;;
9457     siemens)
9458       need_lib_prefix=no
9459       ;;
9460     motorola)
9461       need_lib_prefix=no
9462       need_version=no
9463       shlibpath_overrides_runpath=no
9464       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9465       ;;
9466   esac
9467   ;;
9468
9469 sysv4*MP*)
9470   if test -d /usr/nec ;then
9471     version_type=linux
9472     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9473     soname_spec='$libname${shared_ext}.$major'
9474     shlibpath_var=LD_LIBRARY_PATH
9475   fi
9476   ;;
9477
9478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9479   version_type=freebsd-elf
9480   need_lib_prefix=no
9481   need_version=no
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   hardcode_into_libs=yes
9486   if test "$with_gnu_ld" = yes; then
9487     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9488     shlibpath_overrides_runpath=no
9489   else
9490     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9491     shlibpath_overrides_runpath=yes
9492     case $host_os in
9493       sco3.2v5*)
9494         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9495         ;;
9496     esac
9497   fi
9498   sys_lib_dlsearch_path_spec='/usr/lib'
9499   ;;
9500
9501 uts4*)
9502   version_type=linux
9503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504   soname_spec='${libname}${release}${shared_ext}$major'
9505   shlibpath_var=LD_LIBRARY_PATH
9506   ;;
9507
9508 *)
9509   dynamic_linker=no
9510   ;;
9511 esac
9512 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9513 echo "${ECHO_T}$dynamic_linker" >&6; }
9514 test "$dynamic_linker" = no && can_build_shared=no
9515
9516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9517 if test "$GCC" = yes; then
9518   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9519 fi
9520
9521
9522 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9523 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9524 if test "${libltdl_cv_shlibext+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527
9528 module=yes
9529 eval libltdl_cv_shlibext=$shrext_cmds
9530
9531 fi
9532 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9533 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9534 if test -n "$libltdl_cv_shlibext"; then
9535
9536 cat >>confdefs.h <<_ACEOF
9537 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9538 _ACEOF
9539
9540 fi
9541
9542
9543 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9544 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9545 if test "${libltdl_cv_sys_search_path+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9549 fi
9550 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9551 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9552 if test -n "$libltdl_cv_sys_search_path"; then
9553   sys_search_path=
9554   for dir in $libltdl_cv_sys_search_path; do
9555     if test -z "$sys_search_path"; then
9556       sys_search_path="$dir"
9557     else
9558       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9559     fi
9560   done
9561
9562 cat >>confdefs.h <<_ACEOF
9563 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9564 _ACEOF
9565
9566 fi
9567
9568 { echo "$as_me:$LINENO: checking for objdir" >&5
9569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9570 if test "${libltdl_cv_objdir+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   libltdl_cv_objdir="$objdir"
9574   if test -n "$objdir"; then
9575     :
9576   else
9577     rm -f .libs 2>/dev/null
9578     mkdir .libs 2>/dev/null
9579     if test -d .libs; then
9580       libltdl_cv_objdir=.libs
9581     else
9582       # MS-DOS does not allow filenames that begin with a dot.
9583       libltdl_cv_objdir=_libs
9584     fi
9585   rmdir .libs 2>/dev/null
9586   fi
9587
9588 fi
9589 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9590 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9591
9592 cat >>confdefs.h <<_ACEOF
9593 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9594 _ACEOF
9595
9596
9597
9598
9599
9600
9601 # Check for command to grab the raw symbol name followed by C symbol from nm.
9602 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9603 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9604 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607
9608 # These are sane defaults that work on at least a few old systems.
9609 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9610
9611 # Character class describing NM global symbol codes.
9612 symcode='[BCDEGRST]'
9613
9614 # Regexp to match symbols that can be accessed directly from C.
9615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9616
9617 # Transform an extracted symbol line into a proper C declaration
9618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9619
9620 # Transform an extracted symbol line into symbol name and symbol address
9621 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9622
9623 # Define system-specific variables.
9624 case $host_os in
9625 aix*)
9626   symcode='[BCDT]'
9627   ;;
9628 cygwin* | mingw* | pw32*)
9629   symcode='[ABCDGISTW]'
9630   ;;
9631 hpux*) # Its linker distinguishes data from code symbols
9632   if test "$host_cpu" = ia64; then
9633     symcode='[ABCDEGRST]'
9634   fi
9635   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9636   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9637   ;;
9638 linux*)
9639   if test "$host_cpu" = ia64; then
9640     symcode='[ABCDGIRSTW]'
9641     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9642     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9643   fi
9644   ;;
9645 irix* | nonstopux*)
9646   symcode='[BCDEGRST]'
9647   ;;
9648 osf*)
9649   symcode='[BCDEGQRST]'
9650   ;;
9651 solaris*)
9652   symcode='[BDRT]'
9653   ;;
9654 sco3.2v5*)
9655   symcode='[DT]'
9656   ;;
9657 sysv4.2uw2*)
9658   symcode='[DT]'
9659   ;;
9660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9661   symcode='[ABDT]'
9662   ;;
9663 sysv4)
9664   symcode='[DFNSTU]'
9665   ;;
9666 esac
9667
9668 # Handle CRLF in mingw tool chain
9669 opt_cr=
9670 case $build_os in
9671 mingw*)
9672   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9673   ;;
9674 esac
9675
9676 # If we're using GNU nm, then use its standard symbol codes.
9677 case `$NM -V 2>&1` in
9678 *GNU* | *'with BFD'*)
9679   symcode='[ABCDGIRSTW]' ;;
9680 esac
9681
9682 # Try without a prefix undercore, then with it.
9683 for ac_symprfx in "" "_"; do
9684
9685   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9686   symxfrm="\\1 $ac_symprfx\\2 \\2"
9687
9688   # Write the raw and C identifiers.
9689   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9690
9691   # Check to see that the pipe works correctly.
9692   pipe_works=no
9693
9694   rm -f conftest*
9695   cat > conftest.$ac_ext <<EOF
9696 #ifdef __cplusplus
9697 extern "C" {
9698 #endif
9699 char nm_test_var;
9700 void nm_test_func(){}
9701 #ifdef __cplusplus
9702 }
9703 #endif
9704 int main(){nm_test_var='a';nm_test_func();return(0);}
9705 EOF
9706
9707   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708   (eval $ac_compile) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; then
9712     # Now try to grab the symbols.
9713     nlist=conftest.nm
9714     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9715   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } && test -s "$nlist"; then
9719       # Try sorting and uniquifying the output.
9720       if sort "$nlist" | uniq > "$nlist"T; then
9721         mv -f "$nlist"T "$nlist"
9722       else
9723         rm -f "$nlist"T
9724       fi
9725
9726       # Make sure that we snagged all the symbols we need.
9727       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9728         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9729           cat <<EOF > conftest.$ac_ext
9730 #ifdef __cplusplus
9731 extern "C" {
9732 #endif
9733
9734 EOF
9735           # Now generate the symbol file.
9736           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9737
9738           cat <<EOF >> conftest.$ac_ext
9739 #if defined (__STDC__) && __STDC__
9740 # define lt_ptr_t void *
9741 #else
9742 # define lt_ptr_t char *
9743 # define const
9744 #endif
9745
9746 /* The mapping between symbol names and symbols. */
9747 const struct {
9748   const char *name;
9749   lt_ptr_t address;
9750 }
9751 lt_preloaded_symbols[] =
9752 {
9753 EOF
9754           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9755           cat <<\EOF >> conftest.$ac_ext
9756   {0, (lt_ptr_t) 0}
9757 };
9758
9759 #ifdef __cplusplus
9760 }
9761 #endif
9762 EOF
9763           # Now try linking the two files.
9764           mv conftest.$ac_objext conftstm.$ac_objext
9765           lt_save_LIBS="$LIBS"
9766           lt_save_CFLAGS="$CFLAGS"
9767           LIBS="conftstm.$ac_objext"
9768           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9769           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770   (eval $ac_link) 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9774             pipe_works=yes
9775           fi
9776           LIBS="$lt_save_LIBS"
9777           CFLAGS="$lt_save_CFLAGS"
9778         else
9779           echo "cannot find nm_test_func in $nlist" >&5
9780         fi
9781       else
9782         echo "cannot find nm_test_var in $nlist" >&5
9783       fi
9784     else
9785       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9786     fi
9787   else
9788     echo "$progname: failed program was:" >&5
9789     cat conftest.$ac_ext >&5
9790   fi
9791   rm -f conftest* conftst*
9792
9793   # Do not use the global_symbol_pipe unless it works.
9794   if test "$pipe_works" = yes; then
9795     break
9796   else
9797     lt_cv_sys_global_symbol_pipe=
9798   fi
9799 done
9800
9801 fi
9802
9803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9804   lt_cv_sys_global_symbol_to_cdecl=
9805 fi
9806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9807   { echo "$as_me:$LINENO: result: failed" >&5
9808 echo "${ECHO_T}failed" >&6; }
9809 else
9810   { echo "$as_me:$LINENO: result: ok" >&5
9811 echo "${ECHO_T}ok" >&6; }
9812 fi
9813
9814
9815 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9816 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9817 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9821     libltdl_cv_preloaded_symbols=yes
9822   else
9823     libltdl_cv_preloaded_symbols=no
9824   fi
9825
9826 fi
9827 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9828 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9829 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_PRELOADED_SYMBOLS 1
9833 _ACEOF
9834
9835 fi
9836
9837 LIBADD_DL=
9838
9839 ac_ext=c
9840 ac_cpp='$CPP $CPPFLAGS'
9841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9844
9845
9846 { echo "$as_me:$LINENO: checking for shl_load" >&5
9847 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9848 if test "${ac_cv_func_shl_load+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9859 #define shl_load innocuous_shl_load
9860
9861 /* System header to define __stub macros and hopefully few prototypes,
9862     which can conflict with char shl_load (); below.
9863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864     <limits.h> exists even on freestanding compilers.  */
9865
9866 #ifdef __STDC__
9867 # include <limits.h>
9868 #else
9869 # include <assert.h>
9870 #endif
9871
9872 #undef shl_load
9873
9874 /* Override any GCC internal prototype to avoid an error.
9875    Use char because int might match the return type of a GCC
9876    builtin and then its argument prototype would still apply.  */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 char shl_load ();
9881 /* The GNU C library defines this for functions which it implements
9882     to always fail with ENOSYS.  Some functions are actually named
9883     something starting with __ and the normal name is an alias.  */
9884 #if defined __stub_shl_load || defined __stub___shl_load
9885 choke me
9886 #endif
9887
9888 int
9889 main ()
9890 {
9891 return shl_load ();
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9898 case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_link") 2>conftest.er1
9904   ac_status=$?
9905   grep -v '^ *+' conftest.er1 >conftest.err
9906   rm -f conftest.er1
9907   cat conftest.err >&5
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); } &&
9910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9911   { (case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_try") 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_try") 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; }; then
9930   ac_cv_func_shl_load=yes
9931 else
9932   echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935         ac_cv_func_shl_load=no
9936 fi
9937
9938 rm -f core conftest.err conftest.$ac_objext \
9939       conftest$ac_exeext conftest.$ac_ext
9940 fi
9941 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9942 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9943 if test $ac_cv_func_shl_load = yes; then
9944
9945 cat >>confdefs.h <<\_ACEOF
9946 #define HAVE_SHL_LOAD 1
9947 _ACEOF
9948
9949 else
9950   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   ac_check_lib_save_LIBS=$LIBS
9956 LIBS="-ldld  $LIBS"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963
9964 /* Override any GCC internal prototype to avoid an error.
9965    Use char because int might match the return type of a GCC
9966    builtin and then its argument prototype would still apply.  */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char shl_load ();
9971 int
9972 main ()
9973 {
9974 return shl_load ();
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9981 case "(($ac_try" in
9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983   *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986   (eval "$ac_link") 2>conftest.er1
9987   ac_status=$?
9988   grep -v '^ *+' conftest.er1 >conftest.err
9989   rm -f conftest.er1
9990   cat conftest.err >&5
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994   { (case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_try") 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; } &&
10003          { ac_try='test -s conftest$ac_exeext'
10004   { (case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_try") 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013   ac_cv_lib_dld_shl_load=yes
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018         ac_cv_lib_dld_shl_load=no
10019 fi
10020
10021 rm -f core conftest.err conftest.$ac_objext \
10022       conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10024 fi
10025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10026 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10027 if test $ac_cv_lib_dld_shl_load = yes; then
10028
10029 cat >>confdefs.h <<\_ACEOF
10030 #define HAVE_SHL_LOAD 1
10031 _ACEOF
10032
10033         LIBADD_DL="$LIBADD_DL -ldld"
10034 else
10035   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-ldl  $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048
10049 /* Override any GCC internal prototype to avoid an error.
10050    Use char because int might match the return type of a GCC
10051    builtin and then its argument prototype would still apply.  */
10052 #ifdef __cplusplus
10053 extern "C"
10054 #endif
10055 char dlopen ();
10056 int
10057 main ()
10058 {
10059 return dlopen ();
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_link") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079   { (case "(($ac_try" in
10080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081   *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084   (eval "$ac_try") 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; } &&
10088          { ac_try='test -s conftest$ac_exeext'
10089   { (case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_try") 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; }; then
10098   ac_cv_lib_dl_dlopen=yes
10099 else
10100   echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103         ac_cv_lib_dl_dlopen=no
10104 fi
10105
10106 rm -f core conftest.err conftest.$ac_objext \
10107       conftest$ac_exeext conftest.$ac_ext
10108 LIBS=$ac_check_lib_save_LIBS
10109 fi
10110 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10112 if test $ac_cv_lib_dl_dlopen = yes; then
10113
10114 cat >>confdefs.h <<\_ACEOF
10115 #define HAVE_LIBDL 1
10116 _ACEOF
10117
10118                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10119 else
10120   cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126 #if HAVE_DLFCN_H
10127 #  include <dlfcn.h>
10128 #endif
10129
10130 int
10131 main ()
10132 {
10133 dlopen(0, 0);
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (ac_try="$ac_link"
10140 case "(($ac_try" in
10141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142   *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145   (eval "$ac_link") 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } &&
10152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10153   { (case "(($ac_try" in
10154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155   *) ac_try_echo=$ac_try;;
10156 esac
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158   (eval "$ac_try") 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; } &&
10162          { ac_try='test -s conftest$ac_exeext'
10163   { (case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_try") 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; }; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_LIBDL 1
10175 _ACEOF
10176  libltdl_cv_func_dlopen="yes"
10177 else
10178   echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10182 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10183 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186   ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lsvld  $LIBS"
10188 cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194
10195 /* Override any GCC internal prototype to avoid an error.
10196    Use char because int might match the return type of a GCC
10197    builtin and then its argument prototype would still apply.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char dlopen ();
10202 int
10203 main ()
10204 {
10205 return dlopen ();
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214   *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217   (eval "$ac_link") 2>conftest.er1
10218   ac_status=$?
10219   grep -v '^ *+' conftest.er1 >conftest.err
10220   rm -f conftest.er1
10221   cat conftest.err >&5
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } &&
10224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10225   { (case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_try") 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); }; } &&
10234          { ac_try='test -s conftest$ac_exeext'
10235   { (case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240   (eval "$ac_try") 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_lib_svld_dlopen=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249         ac_cv_lib_svld_dlopen=no
10250 fi
10251
10252 rm -f core conftest.err conftest.$ac_objext \
10253       conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10255 fi
10256 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10257 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10258 if test $ac_cv_lib_svld_dlopen = yes; then
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_LIBDL 1
10262 _ACEOF
10263
10264                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10265 else
10266   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10267 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10268 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-ldld  $LIBS"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279
10280 /* Override any GCC internal prototype to avoid an error.
10281    Use char because int might match the return type of a GCC
10282    builtin and then its argument prototype would still apply.  */
10283 #ifdef __cplusplus
10284 extern "C"
10285 #endif
10286 char dld_link ();
10287 int
10288 main ()
10289 {
10290 return dld_link ();
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302   (eval "$ac_link") 2>conftest.er1
10303   ac_status=$?
10304   grep -v '^ *+' conftest.er1 >conftest.err
10305   rm -f conftest.er1
10306   cat conftest.err >&5
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } &&
10309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10310   { (case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315   (eval "$ac_try") 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; } &&
10319          { ac_try='test -s conftest$ac_exeext'
10320   { (case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_try") 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   ac_cv_lib_dld_dld_link=yes
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334         ac_cv_lib_dld_dld_link=no
10335 fi
10336
10337 rm -f core conftest.err conftest.$ac_objext \
10338       conftest$ac_exeext conftest.$ac_ext
10339 LIBS=$ac_check_lib_save_LIBS
10340 fi
10341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10342 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10343 if test $ac_cv_lib_dld_dld_link = yes; then
10344
10345 cat >>confdefs.h <<\_ACEOF
10346 #define HAVE_DLD 1
10347 _ACEOF
10348
10349                 LIBADD_DL="$LIBADD_DL -ldld"
10350 else
10351   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10352 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10353 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10354   echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356   cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10364 #define _dyld_func_lookup innocuous__dyld_func_lookup
10365
10366 /* System header to define __stub macros and hopefully few prototypes,
10367     which can conflict with char _dyld_func_lookup (); below.
10368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10369     <limits.h> exists even on freestanding compilers.  */
10370
10371 #ifdef __STDC__
10372 # include <limits.h>
10373 #else
10374 # include <assert.h>
10375 #endif
10376
10377 #undef _dyld_func_lookup
10378
10379 /* Override any GCC internal prototype to avoid an error.
10380    Use char because int might match the return type of a GCC
10381    builtin and then its argument prototype would still apply.  */
10382 #ifdef __cplusplus
10383 extern "C"
10384 #endif
10385 char _dyld_func_lookup ();
10386 /* The GNU C library defines this for functions which it implements
10387     to always fail with ENOSYS.  Some functions are actually named
10388     something starting with __ and the normal name is an alias.  */
10389 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10390 choke me
10391 #endif
10392
10393 int
10394 main ()
10395 {
10396 return _dyld_func_lookup ();
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (ac_try="$ac_link"
10403 case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408   (eval "$ac_link") 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } &&
10415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416   { (case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421   (eval "$ac_try") 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; } &&
10425          { ac_try='test -s conftest$ac_exeext'
10426   { (case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431   (eval "$ac_try") 2>&5
10432   ac_status=$?
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); }; }; then
10435   ac_cv_func__dyld_func_lookup=yes
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440         ac_cv_func__dyld_func_lookup=no
10441 fi
10442
10443 rm -f core conftest.err conftest.$ac_objext \
10444       conftest$ac_exeext conftest.$ac_ext
10445 fi
10446 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10447 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10448 if test $ac_cv_func__dyld_func_lookup = yes; then
10449
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_DYLD 1
10452 _ACEOF
10453
10454 fi
10455
10456
10457 fi
10458
10459
10460 fi
10461
10462
10463 fi
10464
10465 rm -f core conftest.err conftest.$ac_objext \
10466       conftest$ac_exeext conftest.$ac_ext
10467
10468 fi
10469
10470
10471 fi
10472
10473
10474 fi
10475
10476
10477 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10478 then
10479   lt_save_LIBS="$LIBS"
10480   LIBS="$LIBS $LIBADD_DL"
10481
10482 for ac_func in dlerror
10483 do
10484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h.  */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h.  */
10496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10498 #define $ac_func innocuous_$ac_func
10499
10500 /* System header to define __stub macros and hopefully few prototypes,
10501     which can conflict with char $ac_func (); below.
10502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10503     <limits.h> exists even on freestanding compilers.  */
10504
10505 #ifdef __STDC__
10506 # include <limits.h>
10507 #else
10508 # include <assert.h>
10509 #endif
10510
10511 #undef $ac_func
10512
10513 /* Override any GCC internal prototype to avoid an error.
10514    Use char because int might match the return type of a GCC
10515    builtin and then its argument prototype would still apply.  */
10516 #ifdef __cplusplus
10517 extern "C"
10518 #endif
10519 char $ac_func ();
10520 /* The GNU C library defines this for functions which it implements
10521     to always fail with ENOSYS.  Some functions are actually named
10522     something starting with __ and the normal name is an alias.  */
10523 #if defined __stub_$ac_func || defined __stub___$ac_func
10524 choke me
10525 #endif
10526
10527 int
10528 main ()
10529 {
10530 return $ac_func ();
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_link") 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550   { (case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_try") 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; } &&
10559          { ac_try='test -s conftest$ac_exeext'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   eval "$as_ac_var=yes"
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574         eval "$as_ac_var=no"
10575 fi
10576
10577 rm -f core conftest.err conftest.$ac_objext \
10578       conftest$ac_exeext conftest.$ac_ext
10579 fi
10580 ac_res=`eval echo '${'$as_ac_var'}'`
10581                { echo "$as_me:$LINENO: result: $ac_res" >&5
10582 echo "${ECHO_T}$ac_res" >&6; }
10583 if test `eval echo '${'$as_ac_var'}'` = yes; then
10584   cat >>confdefs.h <<_ACEOF
10585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10586 _ACEOF
10587
10588 fi
10589 done
10590
10591   LIBS="$lt_save_LIBS"
10592 fi
10593 ac_ext=c
10594 ac_cpp='$CPP $CPPFLAGS'
10595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10598
10599
10600
10601 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10602 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10603 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   ac_cv_sys_symbol_underscore=no
10607   cat > conftest.$ac_ext <<EOF
10608 void nm_test_func(){}
10609 int main(){nm_test_func;return 0;}
10610 EOF
10611   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612   (eval $ac_compile) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; then
10616     # Now try to grab the symbols.
10617     ac_nlist=conftest.nm
10618     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10619   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } && test -s "$ac_nlist"; then
10623       # See whether the symbols have a leading underscore.
10624       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10625         ac_cv_sys_symbol_underscore=yes
10626       else
10627         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10628           :
10629         else
10630           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10631         fi
10632       fi
10633     else
10634       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10635     fi
10636   else
10637     echo "configure: failed program was:" >&5
10638     cat conftest.c >&5
10639   fi
10640   rm -rf conftest*
10641
10642 fi
10643 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10644 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10645
10646
10647 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10648   if test x"$libltdl_cv_func_dlopen" = xyes ||
10649      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10650         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10651 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10652 if test "${libltdl_cv_need_uscore+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   libltdl_cv_need_uscore=unknown
10656           save_LIBS="$LIBS"
10657           LIBS="$LIBS $LIBADD_DL"
10658           if test "$cross_compiling" = yes; then :
10659   libltdl_cv_need_uscore=cross
10660 else
10661   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10662   lt_status=$lt_dlunknown
10663   cat > conftest.$ac_ext <<EOF
10664 #line 10664 "configure"
10665 #include "confdefs.h"
10666
10667 #if HAVE_DLFCN_H
10668 #include <dlfcn.h>
10669 #endif
10670
10671 #include <stdio.h>
10672
10673 #ifdef RTLD_GLOBAL
10674 #  define LT_DLGLOBAL           RTLD_GLOBAL
10675 #else
10676 #  ifdef DL_GLOBAL
10677 #    define LT_DLGLOBAL         DL_GLOBAL
10678 #  else
10679 #    define LT_DLGLOBAL         0
10680 #  endif
10681 #endif
10682
10683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10684    find out it does not work in some platform. */
10685 #ifndef LT_DLLAZY_OR_NOW
10686 #  ifdef RTLD_LAZY
10687 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10688 #  else
10689 #    ifdef DL_LAZY
10690 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10691 #    else
10692 #      ifdef RTLD_NOW
10693 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10694 #      else
10695 #        ifdef DL_NOW
10696 #          define LT_DLLAZY_OR_NOW      DL_NOW
10697 #        else
10698 #          define LT_DLLAZY_OR_NOW      0
10699 #        endif
10700 #      endif
10701 #    endif
10702 #  endif
10703 #endif
10704
10705 #ifdef __cplusplus
10706 extern "C" void exit (int);
10707 #endif
10708
10709 void fnord() { int i=42;}
10710 int main ()
10711 {
10712   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10713   int status = $lt_dlunknown;
10714
10715   if (self)
10716     {
10717       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10718       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10719       /* dlclose (self); */
10720     }
10721   else
10722     puts (dlerror ());
10723
10724     exit (status);
10725 }
10726 EOF
10727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728   (eval $ac_link) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10732     (./conftest; exit; ) >&5 2>/dev/null
10733     lt_status=$?
10734     case x$lt_status in
10735       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10736       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10737       x$lt_dlunknown|x*)  ;;
10738     esac
10739   else :
10740     # compilation failed
10741
10742   fi
10743 fi
10744 rm -fr conftest*
10745
10746           LIBS="$save_LIBS"
10747
10748 fi
10749 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10750 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10751   fi
10752 fi
10753
10754 if test x"$libltdl_cv_need_uscore" = xyes; then
10755
10756 cat >>confdefs.h <<\_ACEOF
10757 #define NEED_USCORE 1
10758 _ACEOF
10759
10760 fi
10761
10762
10763 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10764 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10765 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   # PORTME does your system automatically load deplibs for dlopen?
10769   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10770   # For now, we just catch OSes we know something about -- in the
10771   # future, we'll try test this programmatically.
10772   libltdl_cv_sys_dlopen_deplibs=unknown
10773   case "$host_os" in
10774   aix3*|aix4.1.*|aix4.2.*)
10775     # Unknown whether this is true for these versions of AIX, but
10776     # we want this `case' here to explicitly catch those versions.
10777     libltdl_cv_sys_dlopen_deplibs=unknown
10778     ;;
10779   aix[45]*)
10780     libltdl_cv_sys_dlopen_deplibs=yes
10781     ;;
10782   darwin*)
10783     # Assuming the user has installed a libdl from somewhere, this is true
10784     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10785     libltdl_cv_sys_dlopen_deplibs=yes
10786     ;;
10787   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10788     # GNU and its variants, using gnu ld.so (Glibc)
10789     libltdl_cv_sys_dlopen_deplibs=yes
10790     ;;
10791   hpux10*|hpux11*)
10792     libltdl_cv_sys_dlopen_deplibs=yes
10793     ;;
10794   interix*)
10795     libltdl_cv_sys_dlopen_deplibs=yes
10796     ;;
10797   irix[12345]*|irix6.[01]*)
10798     # Catch all versions of IRIX before 6.2, and indicate that we don't
10799     # know how it worked for any of those versions.
10800     libltdl_cv_sys_dlopen_deplibs=unknown
10801     ;;
10802   irix*)
10803     # The case above catches anything before 6.2, and it's known that
10804     # at 6.2 and later dlopen does load deplibs.
10805     libltdl_cv_sys_dlopen_deplibs=yes
10806     ;;
10807   netbsd*)
10808     libltdl_cv_sys_dlopen_deplibs=yes
10809     ;;
10810   openbsd*)
10811     libltdl_cv_sys_dlopen_deplibs=yes
10812     ;;
10813   osf[1234]*)
10814     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10815     # it did *not* use an RPATH in a shared library to find objects the
10816     # library depends on, so we explicitly say `no'.
10817     libltdl_cv_sys_dlopen_deplibs=no
10818     ;;
10819   osf5.0|osf5.0a|osf5.1)
10820     # dlopen *does* load deplibs and with the right loader patch applied
10821     # it even uses RPATH in a shared library to search for shared objects
10822     # that the library depends on, but there's no easy way to know if that
10823     # patch is installed.  Since this is the case, all we can really
10824     # say is unknown -- it depends on the patch being installed.  If
10825     # it is, this changes to `yes'.  Without it, it would be `no'.
10826     libltdl_cv_sys_dlopen_deplibs=unknown
10827     ;;
10828   osf*)
10829     # the two cases above should catch all versions of osf <= 5.1.  Read
10830     # the comments above for what we know about them.
10831     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10832     # is used to find them so we can finally say `yes'.
10833     libltdl_cv_sys_dlopen_deplibs=yes
10834     ;;
10835   solaris*)
10836     libltdl_cv_sys_dlopen_deplibs=yes
10837     ;;
10838   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10839     libltdl_cv_sys_dlopen_deplibs=yes
10840     ;;
10841   esac
10842
10843 fi
10844 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10845 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10846 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10847
10848 cat >>confdefs.h <<\_ACEOF
10849 #define LTDL_DLOPEN_DEPLIBS 1
10850 _ACEOF
10851
10852 fi
10853
10854
10855 for ac_header in argz.h
10856 do
10857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 fi
10864 ac_res=`eval echo '${'$as_ac_Header'}'`
10865                { echo "$as_me:$LINENO: result: $ac_res" >&5
10866 echo "${ECHO_T}$ac_res" >&6; }
10867 else
10868   # Is the header compilable?
10869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 $ac_includes_default
10878 #include <$ac_header>
10879 _ACEOF
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884   *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887   (eval "$ac_compile") 2>conftest.er1
10888   ac_status=$?
10889   grep -v '^ *+' conftest.er1 >conftest.err
10890   rm -f conftest.er1
10891   cat conftest.err >&5
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); } &&
10894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895   { (case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_try") 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; } &&
10904          { ac_try='test -s conftest.$ac_objext'
10905   { (case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_try") 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; }; then
10914   ac_header_compiler=yes
10915 else
10916   echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919         ac_header_compiler=no
10920 fi
10921
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10924 echo "${ECHO_T}$ac_header_compiler" >&6; }
10925
10926 # Is the header present?
10927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h.  */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h.  */
10935 #include <$ac_header>
10936 _ACEOF
10937 if { (ac_try="$ac_cpp conftest.$ac_ext"
10938 case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } >/dev/null; then
10950   if test -s conftest.err; then
10951     ac_cpp_err=$ac_c_preproc_warn_flag
10952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10953   else
10954     ac_cpp_err=
10955   fi
10956 else
10957   ac_cpp_err=yes
10958 fi
10959 if test -z "$ac_cpp_err"; then
10960   ac_header_preproc=yes
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965   ac_header_preproc=no
10966 fi
10967
10968 rm -f conftest.err conftest.$ac_ext
10969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10970 echo "${ECHO_T}$ac_header_preproc" >&6; }
10971
10972 # So?  What about this header?
10973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10974   yes:no: )
10975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10979     ac_header_preproc=yes
10980     ;;
10981   no:yes:* )
10982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10994     ( cat <<\_ASBOX
10995 ## ------------------------------------ ##
10996 ## Report this to http://llvm.org/bugs/ ##
10997 ## ------------------------------------ ##
10998 _ASBOX
10999      ) | sed "s/^/$as_me: WARNING:     /" >&2
11000     ;;
11001 esac
11002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   eval "$as_ac_Header=\$ac_header_preproc"
11008 fi
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010                { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012
11013 fi
11014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11015   cat >>confdefs.h <<_ACEOF
11016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11017 _ACEOF
11018
11019 fi
11020
11021 done
11022
11023
11024 { echo "$as_me:$LINENO: checking for error_t" >&5
11025 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11026 if test "${ac_cv_type_error_t+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h.  */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h.  */
11035 #if HAVE_ARGZ_H
11036 #  include <argz.h>
11037 #endif
11038
11039 typedef error_t ac__type_new_;
11040 int
11041 main ()
11042 {
11043 if ((ac__type_new_ *) 0)
11044   return 0;
11045 if (sizeof (ac__type_new_))
11046   return 0;
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_compile") 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } &&
11065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066   { (case "(($ac_try" in
11067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068   *) ac_try_echo=$ac_try;;
11069 esac
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071   (eval "$ac_try") 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; } &&
11075          { ac_try='test -s conftest.$ac_objext'
11076   { (case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081   (eval "$ac_try") 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; }; then
11085   ac_cv_type_error_t=yes
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090         ac_cv_type_error_t=no
11091 fi
11092
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 fi
11095 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11096 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11097 if test $ac_cv_type_error_t = yes; then
11098
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_ERROR_T 1
11101 _ACEOF
11102
11103
11104 else
11105
11106 cat >>confdefs.h <<\_ACEOF
11107 #define error_t int
11108 _ACEOF
11109
11110 fi
11111
11112
11113
11114
11115
11116
11117
11118 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11119 do
11120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11134 #define $ac_func innocuous_$ac_func
11135
11136 /* System header to define __stub macros and hopefully few prototypes,
11137     which can conflict with char $ac_func (); below.
11138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11139     <limits.h> exists even on freestanding compilers.  */
11140
11141 #ifdef __STDC__
11142 # include <limits.h>
11143 #else
11144 # include <assert.h>
11145 #endif
11146
11147 #undef $ac_func
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150    Use char because int might match the return type of a GCC
11151    builtin and then its argument prototype would still apply.  */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char $ac_func ();
11156 /* The GNU C library defines this for functions which it implements
11157     to always fail with ENOSYS.  Some functions are actually named
11158     something starting with __ and the normal name is an alias.  */
11159 #if defined __stub_$ac_func || defined __stub___$ac_func
11160 choke me
11161 #endif
11162
11163 int
11164 main ()
11165 {
11166 return $ac_func ();
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_link") 2>conftest.er1
11179   ac_status=$?
11180   grep -v '^ *+' conftest.er1 >conftest.err
11181   rm -f conftest.er1
11182   cat conftest.err >&5
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } &&
11185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186   { (case "(($ac_try" in
11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188   *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191   (eval "$ac_try") 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; } &&
11195          { ac_try='test -s conftest$ac_exeext'
11196   { (case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_try") 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; }; then
11205   eval "$as_ac_var=yes"
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210         eval "$as_ac_var=no"
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext \
11214       conftest$ac_exeext conftest.$ac_ext
11215 fi
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217                { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220   cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 _ACEOF
11223
11224 fi
11225 done
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249 for ac_header in errno.h malloc.h memory.h unistd.h
11250 do
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 fi
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259                { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11261 else
11262   # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271 $ac_includes_default
11272 #include <$ac_header>
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_compile") 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289   { (case "(($ac_try" in
11290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291   *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294   (eval "$ac_try") 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; } &&
11298          { ac_try='test -s conftest.$ac_objext'
11299   { (case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_try") 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }; then
11308   ac_header_compiler=yes
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313         ac_header_compiler=no
11314 fi
11315
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319
11320 # Is the header present?
11321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h.  */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h.  */
11329 #include <$ac_header>
11330 _ACEOF
11331 if { (ac_try="$ac_cpp conftest.$ac_ext"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } >/dev/null; then
11344   if test -s conftest.err; then
11345     ac_cpp_err=$ac_c_preproc_warn_flag
11346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11347   else
11348     ac_cpp_err=
11349   fi
11350 else
11351   ac_cpp_err=yes
11352 fi
11353 if test -z "$ac_cpp_err"; then
11354   ac_header_preproc=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359   ac_header_preproc=no
11360 fi
11361
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365
11366 # So?  What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368   yes:no: )
11369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373     ac_header_preproc=yes
11374     ;;
11375   no:yes:* )
11376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388     ( cat <<\_ASBOX
11389 ## ------------------------------------ ##
11390 ## Report this to http://llvm.org/bugs/ ##
11391 ## ------------------------------------ ##
11392 _ASBOX
11393      ) | sed "s/^/$as_me: WARNING:     /" >&2
11394     ;;
11395 esac
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   eval "$as_ac_Header=\$ac_header_preproc"
11402 fi
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404                { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406
11407 fi
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409   cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 _ACEOF
11412
11413 fi
11414
11415 done
11416
11417
11418 for ac_header in mach-o/dyld.h
11419 do
11420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 fi
11427 ac_res=`eval echo '${'$as_ac_Header'}'`
11428                { echo "$as_me:$LINENO: result: $ac_res" >&5
11429 echo "${ECHO_T}$ac_res" >&6; }
11430 else
11431   # Is the header compilable?
11432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440 $ac_includes_default
11441 #include <$ac_header>
11442 _ACEOF
11443 rm -f conftest.$ac_objext
11444 if { (ac_try="$ac_compile"
11445 case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_compile") 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } &&
11457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11458   { (case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_try") 2>&5
11464   ac_status=$?
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); }; } &&
11467          { ac_try='test -s conftest.$ac_objext'
11468   { (case "(($ac_try" in
11469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470   *) ac_try_echo=$ac_try;;
11471 esac
11472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473   (eval "$ac_try") 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; }; then
11477   ac_header_compiler=yes
11478 else
11479   echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482         ac_header_compiler=no
11483 fi
11484
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11487 echo "${ECHO_T}$ac_header_compiler" >&6; }
11488
11489 # Is the header present?
11490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498 #include <$ac_header>
11499 _ACEOF
11500 if { (ac_try="$ac_cpp conftest.$ac_ext"
11501 case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11507   ac_status=$?
11508   grep -v '^ *+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } >/dev/null; then
11513   if test -s conftest.err; then
11514     ac_cpp_err=$ac_c_preproc_warn_flag
11515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11516   else
11517     ac_cpp_err=
11518   fi
11519 else
11520   ac_cpp_err=yes
11521 fi
11522 if test -z "$ac_cpp_err"; then
11523   ac_header_preproc=yes
11524 else
11525   echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528   ac_header_preproc=no
11529 fi
11530
11531 rm -f conftest.err conftest.$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11533 echo "${ECHO_T}$ac_header_preproc" >&6; }
11534
11535 # So?  What about this header?
11536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11537   yes:no: )
11538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11542     ac_header_preproc=yes
11543     ;;
11544   no:yes:* )
11545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11557     ( cat <<\_ASBOX
11558 ## ------------------------------------ ##
11559 ## Report this to http://llvm.org/bugs/ ##
11560 ## ------------------------------------ ##
11561 _ASBOX
11562      ) | sed "s/^/$as_me: WARNING:     /" >&2
11563     ;;
11564 esac
11565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   eval "$as_ac_Header=\$ac_header_preproc"
11571 fi
11572 ac_res=`eval echo '${'$as_ac_Header'}'`
11573                { echo "$as_me:$LINENO: result: $ac_res" >&5
11574 echo "${ECHO_T}$ac_res" >&6; }
11575
11576 fi
11577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11578   cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580 _ACEOF
11581
11582 fi
11583
11584 done
11585
11586
11587
11588
11589
11590 for ac_func in closedir opendir readdir
11591 do
11592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h.  */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h.  */
11604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11606 #define $ac_func innocuous_$ac_func
11607
11608 /* System header to define __stub macros and hopefully few prototypes,
11609     which can conflict with char $ac_func (); below.
11610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611     <limits.h> exists even on freestanding compilers.  */
11612
11613 #ifdef __STDC__
11614 # include <limits.h>
11615 #else
11616 # include <assert.h>
11617 #endif
11618
11619 #undef $ac_func
11620
11621 /* Override any GCC internal prototype to avoid an error.
11622    Use char because int might match the return type of a GCC
11623    builtin and then its argument prototype would still apply.  */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char $ac_func ();
11628 /* The GNU C library defines this for functions which it implements
11629     to always fail with ENOSYS.  Some functions are actually named
11630     something starting with __ and the normal name is an alias.  */
11631 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 choke me
11633 #endif
11634
11635 int
11636 main ()
11637 {
11638 return $ac_func ();
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647   *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650   (eval "$ac_link") 2>conftest.er1
11651   ac_status=$?
11652   grep -v '^ *+' conftest.er1 >conftest.err
11653   rm -f conftest.er1
11654   cat conftest.err >&5
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11658   { (case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663   (eval "$ac_try") 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; } &&
11667          { ac_try='test -s conftest$ac_exeext'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; }; then
11677   eval "$as_ac_var=yes"
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682         eval "$as_ac_var=no"
11683 fi
11684
11685 rm -f core conftest.err conftest.$ac_objext \
11686       conftest$ac_exeext conftest.$ac_ext
11687 fi
11688 ac_res=`eval echo '${'$as_ac_var'}'`
11689                { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_var'}'` = yes; then
11692   cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694 _ACEOF
11695
11696 fi
11697 done
11698
11699
11700
11701 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11702 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11703
11704 ICC=no
11705 IXX=no
11706 case $CC in
11707   icc*|icpc*)
11708     ICC=yes
11709     IXX=yes
11710     ;;
11711    *)
11712     ;;
11713 esac
11714
11715 if test "$GCC" != "yes" && test "$ICC" != "yes"
11716 then
11717   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11718 echo "$as_me: error: gcc|icc required but not found" >&2;}
11719    { (exit 1); exit 1; }; }
11720 fi
11721
11722 if test "$GXX" != "yes" && test "$IXX" != "yes"
11723 then
11724   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11725 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11726    { (exit 1); exit 1; }; }
11727 fi
11728
11729 if test "$GCC" = "yes"
11730 then
11731   cat >conftest.$ac_ext <<_ACEOF
11732
11733   /* confdefs.h.  */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h.  */
11738
11739     #if !defined(__GNUC__) || __GNUC__ < 3
11740     #error Unsupported GCC version
11741     #endif
11742
11743
11744 _ACEOF
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752   (eval "$ac_compile") 2>conftest.er1
11753   ac_status=$?
11754   grep -v '^ *+' conftest.er1 >conftest.err
11755   rm -f conftest.er1
11756   cat conftest.err >&5
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); } &&
11759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11760   { (case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_try") 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest.$ac_objext'
11770   { (case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_try") 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; }; then
11779   :
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11785 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11786    { (exit 1); exit 1; }; }
11787 fi
11788
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791
11792 if test -z "$llvm_cv_gnu_make_command"
11793 then
11794   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11795 echo "$as_me: error: GNU Make required but not found" >&2;}
11796    { (exit 1); exit 1; }; }
11797 fi
11798
11799 { echo "$as_me:$LINENO: result: ok" >&5
11800 echo "${ECHO_T}ok" >&6; }
11801
11802 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11803 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11804 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11805
11806 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11807
11808 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11809
11810
11811 NO_UNINITIALIZED=
11812 NO_MAYBE_UNINITIALIZED=
11813 if test "$GXX" = "yes"
11814 then
11815   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11816
11817         if test -z "$NO_MAYBE_UNINITIALIZED"
11818   then
11819     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11820
11821   fi
11822 fi
11823 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11824 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11825
11826
11827 # Check whether --with-python was given.
11828 if test "${with_python+set}" = set; then
11829   withval=$with_python; PYTHON="$withval"
11830 fi
11831
11832
11833 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11834   { echo "$as_me:$LINENO: checking for python" >&5
11835 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11836   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11837 echo "${ECHO_T}user defined: $with_python" >&6; }
11838 else
11839   if test -n "$PYTHON" ; then
11840     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11841 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11842   fi
11843
11844   # Extract the first word of "python python2 python26", so it can be a program name with args.
11845 set dummy python python2 python26; ac_word=$2
11846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11848 if test "${ac_cv_path_PYTHON+set}" = set; then
11849   echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851   case $PYTHON in
11852   [\\/]* | ?:[\\/]*)
11853   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11854   ;;
11855   *)
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861   for ac_exec_ext in '' $ac_executable_extensions; do
11862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11863     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11865     break 2
11866   fi
11867 done
11868 done
11869 IFS=$as_save_IFS
11870
11871   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11872 echo "${ECHO_T}not found" >&6; }
11873                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11874 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11875    { (exit 1); exit 1; }; }"
11876   ;;
11877 esac
11878 fi
11879 PYTHON=$ac_cv_path_PYTHON
11880 if test -n "$PYTHON"; then
11881   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11882 echo "${ECHO_T}$PYTHON" >&6; }
11883 else
11884   { echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6; }
11886 fi
11887
11888
11889 fi
11890
11891 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11892 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11893 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11894 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11895 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11896 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11897 if test "$ac_python_version_major" -gt "2" || \
11898    (test "$ac_python_version_major" -eq "2" && \
11899     test "$ac_python_version_minor" -ge "5") ; then
11900   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11901 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11902 else
11903   { echo "$as_me:$LINENO: result: not found" >&5
11904 echo "${ECHO_T}not found" >&6; }
11905   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11908 See \`config.log' for more details." >&2;}
11909    { (exit 1); exit 1; }; }
11910 fi
11911
11912
11913
11914 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11915 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11916 if test "${ac_cv_lib_m_sin+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-lm  $LIBS"
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927
11928 /* Override any GCC internal prototype to avoid an error.
11929    Use char because int might match the return type of a GCC
11930    builtin and then its argument prototype would still apply.  */
11931 #ifdef __cplusplus
11932 extern "C"
11933 #endif
11934 char sin ();
11935 int
11936 main ()
11937 {
11938 return sin ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_link") 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11958   { (case "(($ac_try" in
11959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960   *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963   (eval "$ac_try") 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; } &&
11967          { ac_try='test -s conftest$ac_exeext'
11968   { (case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_try") 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; }; then
11977   ac_cv_lib_m_sin=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982         ac_cv_lib_m_sin=no
11983 fi
11984
11985 rm -f core conftest.err conftest.$ac_objext \
11986       conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11990 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11991 if test $ac_cv_lib_m_sin = yes; then
11992   cat >>confdefs.h <<_ACEOF
11993 #define HAVE_LIBM 1
11994 _ACEOF
11995
11996   LIBS="-lm $LIBS"
11997
11998 fi
11999
12000 if test "$llvm_cv_os_type" = "MingW" ; then
12001
12002 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12003 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12004 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007   ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-limagehlp  $LIBS"
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015
12016
12017 int
12018 main ()
12019 {
12020 return main ();
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_link") 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12040   { (case "(($ac_try" in
12041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042   *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045   (eval "$ac_try") 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; } &&
12049          { ac_try='test -s conftest$ac_exeext'
12050   { (case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055   (eval "$ac_try") 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   ac_cv_lib_imagehlp_main=yes
12060 else
12061   echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064         ac_cv_lib_imagehlp_main=no
12065 fi
12066
12067 rm -f core conftest.err conftest.$ac_objext \
12068       conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12070 fi
12071 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12072 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12073 if test $ac_cv_lib_imagehlp_main = yes; then
12074   cat >>confdefs.h <<_ACEOF
12075 #define HAVE_LIBIMAGEHLP 1
12076 _ACEOF
12077
12078   LIBS="-limagehlp $LIBS"
12079
12080 fi
12081
12082
12083 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12084 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12085 if test "${ac_cv_lib_psapi_main+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-lpsapi  $LIBS"
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096
12097
12098 int
12099 main ()
12100 {
12101 return main ();
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_link") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121   { (case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_try") 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; } &&
12130          { ac_try='test -s conftest$ac_exeext'
12131   { (case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_try") 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   ac_cv_lib_psapi_main=yes
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145         ac_cv_lib_psapi_main=no
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext \
12149       conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12153 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12154 if test $ac_cv_lib_psapi_main = yes; then
12155   cat >>confdefs.h <<_ACEOF
12156 #define HAVE_LIBPSAPI 1
12157 _ACEOF
12158
12159   LIBS="-lpsapi $LIBS"
12160
12161 fi
12162
12163
12164 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12165 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12166 if test "${ac_cv_lib_shell32_main+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lshell32  $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177
12178
12179 int
12180 main ()
12181 {
12182 return main ();
12183   ;
12184   return 0;
12185 }
12186 _ACEOF
12187 rm -f conftest.$ac_objext conftest$ac_exeext
12188 if { (ac_try="$ac_link"
12189 case "(($ac_try" in
12190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191   *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194   (eval "$ac_link") 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } &&
12201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12202   { (case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_try") 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; } &&
12211          { ac_try='test -s conftest$ac_exeext'
12212   { (case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_try") 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; }; then
12221   ac_cv_lib_shell32_main=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226         ac_cv_lib_shell32_main=no
12227 fi
12228
12229 rm -f core conftest.err conftest.$ac_objext \
12230       conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12232 fi
12233 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12234 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12235 if test $ac_cv_lib_shell32_main = yes; then
12236   cat >>confdefs.h <<_ACEOF
12237 #define HAVE_LIBSHELL32 1
12238 _ACEOF
12239
12240   LIBS="-lshell32 $LIBS"
12241
12242 fi
12243
12244 fi
12245
12246 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12247 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12248 if test "${ac_cv_search_dlopen+set}" = set; then
12249   echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251   ac_func_search_save_LIBS=$LIBS
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h.  */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h.  */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260    Use char because int might match the return type of a GCC
12261    builtin and then its argument prototype would still apply.  */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char dlopen ();
12266 int
12267 main ()
12268 {
12269 return dlopen ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 for ac_lib in '' dl; do
12275   if test -z "$ac_lib"; then
12276     ac_res="none required"
12277   else
12278     ac_res=-l$ac_lib
12279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12280   fi
12281   rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288   (eval "$ac_link") 2>conftest.er1
12289   ac_status=$?
12290   grep -v '^ *+' conftest.er1 >conftest.err
12291   rm -f conftest.er1
12292   cat conftest.err >&5
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296   { (case "(($ac_try" in
12297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298   *) ac_try_echo=$ac_try;;
12299 esac
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301   (eval "$ac_try") 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; } &&
12305          { ac_try='test -s conftest$ac_exeext'
12306   { (case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311   (eval "$ac_try") 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   ac_cv_search_dlopen=$ac_res
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320
12321 fi
12322
12323 rm -f core conftest.err conftest.$ac_objext \
12324       conftest$ac_exeext
12325   if test "${ac_cv_search_dlopen+set}" = set; then
12326   break
12327 fi
12328 done
12329 if test "${ac_cv_search_dlopen+set}" = set; then
12330   :
12331 else
12332   ac_cv_search_dlopen=no
12333 fi
12334 rm conftest.$ac_ext
12335 LIBS=$ac_func_search_save_LIBS
12336 fi
12337 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12338 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12339 ac_res=$ac_cv_search_dlopen
12340 if test "$ac_res" != no; then
12341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12342
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAVE_DLOPEN 1
12345 _ACEOF
12346
12347 else
12348   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12349 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12350 fi
12351
12352
12353 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12354 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12355 if test "${ac_cv_search_clock_gettime+set}" = set; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   ac_func_search_save_LIBS=$LIBS
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365
12366 /* Override any GCC internal prototype to avoid an error.
12367    Use char because int might match the return type of a GCC
12368    builtin and then its argument prototype would still apply.  */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char clock_gettime ();
12373 int
12374 main ()
12375 {
12376 return clock_gettime ();
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 for ac_lib in '' rt; do
12382   if test -z "$ac_lib"; then
12383     ac_res="none required"
12384   else
12385     ac_res=-l$ac_lib
12386     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12387   fi
12388   rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_link") 2>conftest.er1
12396   ac_status=$?
12397   grep -v '^ *+' conftest.er1 >conftest.err
12398   rm -f conftest.er1
12399   cat conftest.err >&5
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); } &&
12402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12403   { (case "(($ac_try" in
12404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405   *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408   (eval "$ac_try") 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; } &&
12412          { ac_try='test -s conftest$ac_exeext'
12413   { (case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_try") 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; }; then
12422   ac_cv_search_clock_gettime=$ac_res
12423 else
12424   echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427
12428 fi
12429
12430 rm -f core conftest.err conftest.$ac_objext \
12431       conftest$ac_exeext
12432   if test "${ac_cv_search_clock_gettime+set}" = set; then
12433   break
12434 fi
12435 done
12436 if test "${ac_cv_search_clock_gettime+set}" = set; then
12437   :
12438 else
12439   ac_cv_search_clock_gettime=no
12440 fi
12441 rm conftest.$ac_ext
12442 LIBS=$ac_func_search_save_LIBS
12443 fi
12444 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12445 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12446 ac_res=$ac_cv_search_clock_gettime
12447 if test "$ac_res" != no; then
12448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12449
12450 fi
12451
12452
12453 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12454     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12455 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12456 if test "${ac_cv_search_setupterm+set}" = set; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   ac_func_search_save_LIBS=$LIBS
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468    Use char because int might match the return type of a GCC
12469    builtin and then its argument prototype would still apply.  */
12470 #ifdef __cplusplus
12471 extern "C"
12472 #endif
12473 char setupterm ();
12474 int
12475 main ()
12476 {
12477 return setupterm ();
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12483   if test -z "$ac_lib"; then
12484     ac_res="none required"
12485   else
12486     ac_res=-l$ac_lib
12487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12488   fi
12489   rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_link") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } &&
12503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12504   { (case "(($ac_try" in
12505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506   *) ac_try_echo=$ac_try;;
12507 esac
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509   (eval "$ac_try") 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; } &&
12513          { ac_try='test -s conftest$ac_exeext'
12514   { (case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_try") 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; }; then
12523   ac_cv_search_setupterm=$ac_res
12524 else
12525   echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12527
12528
12529 fi
12530
12531 rm -f core conftest.err conftest.$ac_objext \
12532       conftest$ac_exeext
12533   if test "${ac_cv_search_setupterm+set}" = set; then
12534   break
12535 fi
12536 done
12537 if test "${ac_cv_search_setupterm+set}" = set; then
12538   :
12539 else
12540   ac_cv_search_setupterm=no
12541 fi
12542 rm conftest.$ac_ext
12543 LIBS=$ac_func_search_save_LIBS
12544 fi
12545 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12546 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12547 ac_res=$ac_cv_search_setupterm
12548 if test "$ac_res" != no; then
12549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12550
12551 cat >>confdefs.h <<\_ACEOF
12552 #define HAVE_TERMINFO 1
12553 _ACEOF
12554
12555 fi
12556
12557 fi
12558
12559 if test "$llvm_cv_enable_libffi" = "yes" ; then
12560   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12561 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12562 if test "${ac_cv_search_ffi_call+set}" = set; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   ac_func_search_save_LIBS=$LIBS
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572
12573 /* Override any GCC internal prototype to avoid an error.
12574    Use char because int might match the return type of a GCC
12575    builtin and then its argument prototype would still apply.  */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char ffi_call ();
12580 int
12581 main ()
12582 {
12583 return ffi_call ();
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 for ac_lib in '' ffi; do
12589   if test -z "$ac_lib"; then
12590     ac_res="none required"
12591   else
12592     ac_res=-l$ac_lib
12593     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12594   fi
12595   rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (ac_try="$ac_link"
12597 case "(($ac_try" in
12598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599   *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602   (eval "$ac_link") 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } &&
12609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12610   { (case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_try") 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; } &&
12619          { ac_try='test -s conftest$ac_exeext'
12620   { (case "(($ac_try" in
12621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622   *) ac_try_echo=$ac_try;;
12623 esac
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625   (eval "$ac_try") 2>&5
12626   ac_status=$?
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); }; }; then
12629   ac_cv_search_ffi_call=$ac_res
12630 else
12631   echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634
12635 fi
12636
12637 rm -f core conftest.err conftest.$ac_objext \
12638       conftest$ac_exeext
12639   if test "${ac_cv_search_ffi_call+set}" = set; then
12640   break
12641 fi
12642 done
12643 if test "${ac_cv_search_ffi_call+set}" = set; then
12644   :
12645 else
12646   ac_cv_search_ffi_call=no
12647 fi
12648 rm conftest.$ac_ext
12649 LIBS=$ac_func_search_save_LIBS
12650 fi
12651 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12652 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12653 ac_res=$ac_cv_search_ffi_call
12654 if test "$ac_res" != no; then
12655   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12656
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_FFI_CALL 1
12659 _ACEOF
12660
12661 else
12662   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12663 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12664    { (exit 1); exit 1; }; }
12665 fi
12666
12667 fi
12668
12669 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12670 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12671 if test "${ac_cv_search_mallinfo+set}" = set; then
12672   echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674   ac_func_search_save_LIBS=$LIBS
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683    Use char because int might match the return type of a GCC
12684    builtin and then its argument prototype would still apply.  */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char mallinfo ();
12689 int
12690 main ()
12691 {
12692 return mallinfo ();
12693   ;
12694   return 0;
12695 }
12696 _ACEOF
12697 for ac_lib in '' malloc; do
12698   if test -z "$ac_lib"; then
12699     ac_res="none required"
12700   else
12701     ac_res=-l$ac_lib
12702     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12703   fi
12704   rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (ac_try="$ac_link"
12706 case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711   (eval "$ac_link") 2>conftest.er1
12712   ac_status=$?
12713   grep -v '^ *+' conftest.er1 >conftest.err
12714   rm -f conftest.er1
12715   cat conftest.err >&5
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); } &&
12718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12719   { (case "(($ac_try" in
12720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721   *) ac_try_echo=$ac_try;;
12722 esac
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724   (eval "$ac_try") 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; } &&
12728          { ac_try='test -s conftest$ac_exeext'
12729   { (case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_try") 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; }; then
12738   ac_cv_search_mallinfo=$ac_res
12739 else
12740   echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12742
12743
12744 fi
12745
12746 rm -f core conftest.err conftest.$ac_objext \
12747       conftest$ac_exeext
12748   if test "${ac_cv_search_mallinfo+set}" = set; then
12749   break
12750 fi
12751 done
12752 if test "${ac_cv_search_mallinfo+set}" = set; then
12753   :
12754 else
12755   ac_cv_search_mallinfo=no
12756 fi
12757 rm conftest.$ac_ext
12758 LIBS=$ac_func_search_save_LIBS
12759 fi
12760 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12761 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12762 ac_res=$ac_cv_search_mallinfo
12763 if test "$ac_res" != no; then
12764   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12765
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_MALLINFO 1
12768 _ACEOF
12769
12770 fi
12771
12772
12773 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12774
12775 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12776 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12777 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lpthread  $LIBS"
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788
12789 /* Override any GCC internal prototype to avoid an error.
12790    Use char because int might match the return type of a GCC
12791    builtin and then its argument prototype would still apply.  */
12792 #ifdef __cplusplus
12793 extern "C"
12794 #endif
12795 char pthread_mutex_init ();
12796 int
12797 main ()
12798 {
12799 return pthread_mutex_init ();
12800   ;
12801   return 0;
12802 }
12803 _ACEOF
12804 rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (ac_try="$ac_link"
12806 case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811   (eval "$ac_link") 2>conftest.er1
12812   ac_status=$?
12813   grep -v '^ *+' conftest.er1 >conftest.err
12814   rm -f conftest.er1
12815   cat conftest.err >&5
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); } &&
12818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819   { (case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_try") 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; } &&
12828          { ac_try='test -s conftest$ac_exeext'
12829   { (case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_try") 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838   ac_cv_lib_pthread_pthread_mutex_init=yes
12839 else
12840   echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12842
12843         ac_cv_lib_pthread_pthread_mutex_init=no
12844 fi
12845
12846 rm -f core conftest.err conftest.$ac_objext \
12847       conftest$ac_exeext conftest.$ac_ext
12848 LIBS=$ac_check_lib_save_LIBS
12849 fi
12850 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12851 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12852 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12853   cat >>confdefs.h <<_ACEOF
12854 #define HAVE_LIBPTHREAD 1
12855 _ACEOF
12856
12857   LIBS="-lpthread $LIBS"
12858
12859 fi
12860
12861   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12862 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12863 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   ac_func_search_save_LIBS=$LIBS
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873
12874 /* Override any GCC internal prototype to avoid an error.
12875    Use char because int might match the return type of a GCC
12876    builtin and then its argument prototype would still apply.  */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char pthread_mutex_lock ();
12881 int
12882 main ()
12883 {
12884 return pthread_mutex_lock ();
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 for ac_lib in '' pthread; do
12890   if test -z "$ac_lib"; then
12891     ac_res="none required"
12892   else
12893     ac_res=-l$ac_lib
12894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12895   fi
12896   rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900   *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903   (eval "$ac_link") 2>conftest.er1
12904   ac_status=$?
12905   grep -v '^ *+' conftest.er1 >conftest.err
12906   rm -f conftest.er1
12907   cat conftest.err >&5
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } &&
12910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12911   { (case "(($ac_try" in
12912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913   *) ac_try_echo=$ac_try;;
12914 esac
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916   (eval "$ac_try") 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; } &&
12920          { ac_try='test -s conftest$ac_exeext'
12921   { (case "(($ac_try" in
12922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923   *) ac_try_echo=$ac_try;;
12924 esac
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926   (eval "$ac_try") 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; }; then
12930   ac_cv_search_pthread_mutex_lock=$ac_res
12931 else
12932   echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12934
12935
12936 fi
12937
12938 rm -f core conftest.err conftest.$ac_objext \
12939       conftest$ac_exeext
12940   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12941   break
12942 fi
12943 done
12944 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12945   :
12946 else
12947   ac_cv_search_pthread_mutex_lock=no
12948 fi
12949 rm conftest.$ac_ext
12950 LIBS=$ac_func_search_save_LIBS
12951 fi
12952 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12953 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12954 ac_res=$ac_cv_search_pthread_mutex_lock
12955 if test "$ac_res" != no; then
12956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_PTHREAD_MUTEX_LOCK 1
12960 _ACEOF
12961
12962 fi
12963
12964   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12965 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12966 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12967   echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969   ac_func_search_save_LIBS=$LIBS
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char pthread_rwlock_init ();
12984 int
12985 main ()
12986 {
12987 return pthread_rwlock_init ();
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 for ac_lib in '' pthread; do
12993   if test -z "$ac_lib"; then
12994     ac_res="none required"
12995   else
12996     ac_res=-l$ac_lib
12997     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12998   fi
12999   rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003   *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006   (eval "$ac_link") 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } &&
13013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014   { (case "(($ac_try" in
13015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016   *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019   (eval "$ac_try") 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; } &&
13023          { ac_try='test -s conftest$ac_exeext'
13024   { (case "(($ac_try" in
13025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026   *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029   (eval "$ac_try") 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); }; }; then
13033   ac_cv_search_pthread_rwlock_init=$ac_res
13034 else
13035   echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038
13039 fi
13040
13041 rm -f core conftest.err conftest.$ac_objext \
13042       conftest$ac_exeext
13043   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13044   break
13045 fi
13046 done
13047 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13048   :
13049 else
13050   ac_cv_search_pthread_rwlock_init=no
13051 fi
13052 rm conftest.$ac_ext
13053 LIBS=$ac_func_search_save_LIBS
13054 fi
13055 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13056 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13057 ac_res=$ac_cv_search_pthread_rwlock_init
13058 if test "$ac_res" != no; then
13059   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13060
13061 cat >>confdefs.h <<\_ACEOF
13062 #define HAVE_PTHREAD_RWLOCK_INIT 1
13063 _ACEOF
13064
13065 fi
13066
13067   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13068 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13069 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13070   echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072   ac_func_search_save_LIBS=$LIBS
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081    Use char because int might match the return type of a GCC
13082    builtin and then its argument prototype would still apply.  */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char pthread_getspecific ();
13087 int
13088 main ()
13089 {
13090 return pthread_getspecific ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 for ac_lib in '' pthread; do
13096   if test -z "$ac_lib"; then
13097     ac_res="none required"
13098   else
13099     ac_res=-l$ac_lib
13100     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13101   fi
13102   rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (ac_try="$ac_link"
13104 case "(($ac_try" in
13105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106   *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109   (eval "$ac_link") 2>conftest.er1
13110   ac_status=$?
13111   grep -v '^ *+' conftest.er1 >conftest.err
13112   rm -f conftest.er1
13113   cat conftest.err >&5
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } &&
13116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13117   { (case "(($ac_try" in
13118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119   *) ac_try_echo=$ac_try;;
13120 esac
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122   (eval "$ac_try") 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_try") 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136   ac_cv_search_pthread_getspecific=$ac_res
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141
13142 fi
13143
13144 rm -f core conftest.err conftest.$ac_objext \
13145       conftest$ac_exeext
13146   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13147   break
13148 fi
13149 done
13150 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13151   :
13152 else
13153   ac_cv_search_pthread_getspecific=no
13154 fi
13155 rm conftest.$ac_ext
13156 LIBS=$ac_func_search_save_LIBS
13157 fi
13158 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13159 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13160 ac_res=$ac_cv_search_pthread_getspecific
13161 if test "$ac_res" != no; then
13162   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13163
13164 cat >>confdefs.h <<\_ACEOF
13165 #define HAVE_PTHREAD_GETSPECIFIC 1
13166 _ACEOF
13167
13168 fi
13169
13170 fi
13171
13172 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13173
13174 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13175 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13176 if test "${ac_cv_lib_z_compress2+set}" = set; then
13177   echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179   ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-lz  $LIBS"
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187
13188 /* Override any GCC internal prototype to avoid an error.
13189    Use char because int might match the return type of a GCC
13190    builtin and then its argument prototype would still apply.  */
13191 #ifdef __cplusplus
13192 extern "C"
13193 #endif
13194 char compress2 ();
13195 int
13196 main ()
13197 {
13198 return compress2 ();
13199   ;
13200   return 0;
13201 }
13202 _ACEOF
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (ac_try="$ac_link"
13205 case "(($ac_try" in
13206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207   *) ac_try_echo=$ac_try;;
13208 esac
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210   (eval "$ac_link") 2>conftest.er1
13211   ac_status=$?
13212   grep -v '^ *+' conftest.er1 >conftest.err
13213   rm -f conftest.er1
13214   cat conftest.err >&5
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } &&
13217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13218   { (case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_try") 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; } &&
13227          { ac_try='test -s conftest$ac_exeext'
13228   { (case "(($ac_try" in
13229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230   *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233   (eval "$ac_try") 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   ac_cv_lib_z_compress2=yes
13238 else
13239   echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242         ac_cv_lib_z_compress2=no
13243 fi
13244
13245 rm -f core conftest.err conftest.$ac_objext \
13246       conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13248 fi
13249 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13250 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13251 if test $ac_cv_lib_z_compress2 = yes; then
13252   cat >>confdefs.h <<_ACEOF
13253 #define HAVE_LIBZ 1
13254 _ACEOF
13255
13256   LIBS="-lz $LIBS"
13257
13258 fi
13259
13260 fi
13261
13262
13263 # Check whether --with-udis86 was given.
13264 if test "${with_udis86+set}" = set; then
13265   withval=$with_udis86;
13266       USE_UDIS86=1
13267
13268       case "$withval" in
13269         /usr/lib|yes) ;;
13270         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13271       esac
13272
13273 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13274 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13275 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13276   echo $ECHO_N "(cached) $ECHO_C" >&6
13277 else
13278   ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-ludis86  $LIBS"
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288    Use char because int might match the return type of a GCC
13289    builtin and then its argument prototype would still apply.  */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char ud_init ();
13294 int
13295 main ()
13296 {
13297 return ud_init ();
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_link") 2>conftest.er1
13310   ac_status=$?
13311   grep -v '^ *+' conftest.er1 >conftest.err
13312   rm -f conftest.er1
13313   cat conftest.err >&5
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); } &&
13316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317   { (case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_try") 2>&5
13323   ac_status=$?
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); }; } &&
13326          { ac_try='test -s conftest$ac_exeext'
13327   { (case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_try") 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   ac_cv_lib_udis86_ud_init=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341         ac_cv_lib_udis86_ud_init=no
13342 fi
13343
13344 rm -f core conftest.err conftest.$ac_objext \
13345       conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13347 fi
13348 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13349 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13350 if test $ac_cv_lib_udis86_ud_init = yes; then
13351   cat >>confdefs.h <<_ACEOF
13352 #define HAVE_LIBUDIS86 1
13353 _ACEOF
13354
13355   LIBS="-ludis86 $LIBS"
13356
13357 else
13358
13359         echo "Error! You need to have libudis86 around."
13360         exit -1
13361
13362 fi
13363
13364
13365 else
13366   USE_UDIS86=0
13367
13368 fi
13369
13370
13371 cat >>confdefs.h <<_ACEOF
13372 #define USE_UDIS86 $USE_UDIS86
13373 _ACEOF
13374
13375
13376
13377 # Check whether --with-oprofile was given.
13378 if test "${with_oprofile+set}" = set; then
13379   withval=$with_oprofile;
13380       USE_OPROFILE=1
13381
13382       case "$withval" in
13383         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13384         no) llvm_cv_oppath=
13385             USE_OPROFILE=0
13386  ;;
13387         *) llvm_cv_oppath="${withval}/lib/oprofile"
13388            CPPFLAGS="-I${withval}/include";;
13389       esac
13390       case $llvm_cv_os_type in
13391         Linux)
13392           if test -n "$llvm_cv_oppath" ; then
13393             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13394                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13395 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13396 if test "${ac_cv_search_bfd_init+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   ac_func_search_save_LIBS=$LIBS
13400 cat >conftest.$ac_ext <<_ACEOF
13401 /* confdefs.h.  */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h.  */
13406
13407 /* Override any GCC internal prototype to avoid an error.
13408    Use char because int might match the return type of a GCC
13409    builtin and then its argument prototype would still apply.  */
13410 #ifdef __cplusplus
13411 extern "C"
13412 #endif
13413 char bfd_init ();
13414 int
13415 main ()
13416 {
13417 return bfd_init ();
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 for ac_lib in '' bfd; do
13423   if test -z "$ac_lib"; then
13424     ac_res="none required"
13425   else
13426     ac_res=-l$ac_lib
13427     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13428   fi
13429   rm -f conftest.$ac_objext conftest$ac_exeext
13430 if { (ac_try="$ac_link"
13431 case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436   (eval "$ac_link") 2>conftest.er1
13437   ac_status=$?
13438   grep -v '^ *+' conftest.er1 >conftest.err
13439   rm -f conftest.er1
13440   cat conftest.err >&5
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } &&
13443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13444   { (case "(($ac_try" in
13445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446   *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449   (eval "$ac_try") 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; } &&
13453          { ac_try='test -s conftest$ac_exeext'
13454   { (case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_try") 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   ac_cv_search_bfd_init=$ac_res
13464 else
13465   echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468
13469 fi
13470
13471 rm -f core conftest.err conftest.$ac_objext \
13472       conftest$ac_exeext
13473   if test "${ac_cv_search_bfd_init+set}" = set; then
13474   break
13475 fi
13476 done
13477 if test "${ac_cv_search_bfd_init+set}" = set; then
13478   :
13479 else
13480   ac_cv_search_bfd_init=no
13481 fi
13482 rm conftest.$ac_ext
13483 LIBS=$ac_func_search_save_LIBS
13484 fi
13485 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13486 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13487 ac_res=$ac_cv_search_bfd_init
13488 if test "$ac_res" != no; then
13489   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490
13491 fi
13492
13493             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13494 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13495 if test "${ac_cv_search_op_open_agent+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   ac_func_search_save_LIBS=$LIBS
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505
13506 /* Override any GCC internal prototype to avoid an error.
13507    Use char because int might match the return type of a GCC
13508    builtin and then its argument prototype would still apply.  */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 char op_open_agent ();
13513 int
13514 main ()
13515 {
13516 return op_open_agent ();
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 for ac_lib in '' opagent; do
13522   if test -z "$ac_lib"; then
13523     ac_res="none required"
13524   else
13525     ac_res=-l$ac_lib
13526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13527   fi
13528   rm -f conftest.$ac_objext conftest$ac_exeext
13529 if { (ac_try="$ac_link"
13530 case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535   (eval "$ac_link") 2>conftest.er1
13536   ac_status=$?
13537   grep -v '^ *+' conftest.er1 >conftest.err
13538   rm -f conftest.er1
13539   cat conftest.err >&5
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); } &&
13542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13543   { (case "(($ac_try" in
13544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545   *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548   (eval "$ac_try") 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; } &&
13552          { ac_try='test -s conftest$ac_exeext'
13553   { (case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558   (eval "$ac_try") 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; }; then
13562   ac_cv_search_op_open_agent=$ac_res
13563 else
13564   echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567
13568 fi
13569
13570 rm -f core conftest.err conftest.$ac_objext \
13571       conftest$ac_exeext
13572   if test "${ac_cv_search_op_open_agent+set}" = set; then
13573   break
13574 fi
13575 done
13576 if test "${ac_cv_search_op_open_agent+set}" = set; then
13577   :
13578 else
13579   ac_cv_search_op_open_agent=no
13580 fi
13581 rm conftest.$ac_ext
13582 LIBS=$ac_func_search_save_LIBS
13583 fi
13584 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13585 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13586 ac_res=$ac_cv_search_op_open_agent
13587 if test "$ac_res" != no; then
13588   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13589
13590 else
13591
13592               echo "Error! You need to have libopagent around."
13593               exit -1
13594
13595 fi
13596
13597             if test "${ac_cv_header_opagent_h+set}" = set; then
13598   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13599 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13600 if test "${ac_cv_header_opagent_h+set}" = set; then
13601   echo $ECHO_N "(cached) $ECHO_C" >&6
13602 fi
13603 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13604 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13605 else
13606   # Is the header compilable?
13607 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13608 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615 $ac_includes_default
13616 #include <opagent.h>
13617 _ACEOF
13618 rm -f conftest.$ac_objext
13619 if { (ac_try="$ac_compile"
13620 case "(($ac_try" in
13621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622   *) ac_try_echo=$ac_try;;
13623 esac
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625   (eval "$ac_compile") 2>conftest.er1
13626   ac_status=$?
13627   grep -v '^ *+' conftest.er1 >conftest.err
13628   rm -f conftest.er1
13629   cat conftest.err >&5
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13633   { (case "(($ac_try" in
13634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635   *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638   (eval "$ac_try") 2>&5
13639   ac_status=$?
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); }; } &&
13642          { ac_try='test -s conftest.$ac_objext'
13643   { (case "(($ac_try" in
13644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645   *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648   (eval "$ac_try") 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); }; }; then
13652   ac_header_compiler=yes
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657         ac_header_compiler=no
13658 fi
13659
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13662 echo "${ECHO_T}$ac_header_compiler" >&6; }
13663
13664 # Is the header present?
13665 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13666 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 #include <opagent.h>
13674 _ACEOF
13675 if { (ac_try="$ac_cpp conftest.$ac_ext"
13676 case "(($ac_try" in
13677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678   *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } >/dev/null; then
13688   if test -s conftest.err; then
13689     ac_cpp_err=$ac_c_preproc_warn_flag
13690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13691   else
13692     ac_cpp_err=
13693   fi
13694 else
13695   ac_cpp_err=yes
13696 fi
13697 if test -z "$ac_cpp_err"; then
13698   ac_header_preproc=yes
13699 else
13700   echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703   ac_header_preproc=no
13704 fi
13705
13706 rm -f conftest.err conftest.$ac_ext
13707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13708 echo "${ECHO_T}$ac_header_preproc" >&6; }
13709
13710 # So?  What about this header?
13711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13712   yes:no: )
13713     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13714 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13715     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13716 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13717     ac_header_preproc=yes
13718     ;;
13719   no:yes:* )
13720     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13721 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13722     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13723 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13724     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13725 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13726     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13727 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13728     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13729 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13730     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13731 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13732     ( cat <<\_ASBOX
13733 ## ------------------------------------ ##
13734 ## Report this to http://llvm.org/bugs/ ##
13735 ## ------------------------------------ ##
13736 _ASBOX
13737      ) | sed "s/^/$as_me: WARNING:     /" >&2
13738     ;;
13739 esac
13740 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13741 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13742 if test "${ac_cv_header_opagent_h+set}" = set; then
13743   echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745   ac_cv_header_opagent_h=$ac_header_preproc
13746 fi
13747 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13748 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13749
13750 fi
13751 if test $ac_cv_header_opagent_h = yes; then
13752   :
13753 else
13754
13755               echo "Error! You need to have opagent.h around."
13756               exit -1
13757
13758 fi
13759
13760
13761           fi ;;
13762         *)
13763           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13764 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13765    { (exit 1); exit 1; }; } ;;
13766       esac
13767
13768 else
13769
13770       USE_OPROFILE=0
13771
13772
13773 fi
13774
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define LLVM_USE_OPROFILE $USE_OPROFILE
13778 _ACEOF
13779
13780
13781
13782 # Check whether --with-intel-jitevents was given.
13783 if test "${with_intel_jitevents+set}" = set; then
13784   withval=$with_intel_jitevents;
13785        case "$withval" in
13786           yes) USE_INTEL_JITEVENTS=1
13787 ;;
13788           no)  USE_INTEL_JITEVENTS=0
13789 ;;
13790           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13791 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13792    { (exit 1); exit 1; }; };;
13793        esac
13794
13795       case $llvm_cv_os_type in
13796         Linux|Win32|Cygwin|MingW) ;;
13797         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13798 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13799    { (exit 1); exit 1; }; };;
13800       esac
13801
13802       case "$llvm_cv_target_arch" in
13803         x86|x86_64) ;;
13804         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13805 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13806    { (exit 1); exit 1; }; };;
13807       esac
13808
13809 else
13810
13811       USE_INTEL_JITEVENTS=0
13812
13813
13814 fi
13815
13816
13817 cat >>confdefs.h <<_ACEOF
13818 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13819 _ACEOF
13820
13821
13822 for ac_prog in xml2-config
13823 do
13824   # Extract the first word of "$ac_prog", so it can be a program name with args.
13825 set dummy $ac_prog; ac_word=$2
13826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13828 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   if test -n "$XML2CONFIG"; then
13832   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13833 else
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13836 do
13837   IFS=$as_save_IFS
13838   test -z "$as_dir" && as_dir=.
13839   for ac_exec_ext in '' $ac_executable_extensions; do
13840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13841     ac_cv_prog_XML2CONFIG="$ac_prog"
13842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13843     break 2
13844   fi
13845 done
13846 done
13847 IFS=$as_save_IFS
13848
13849 fi
13850 fi
13851 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13852 if test -n "$XML2CONFIG"; then
13853   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13854 echo "${ECHO_T}$XML2CONFIG" >&6; }
13855 else
13856   { echo "$as_me:$LINENO: result: no" >&5
13857 echo "${ECHO_T}no" >&6; }
13858 fi
13859
13860
13861   test -n "$XML2CONFIG" && break
13862 done
13863
13864
13865 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13866 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13867 if test "x$XML2CONFIG" = "x"; then
13868  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13869 echo "${ECHO_T}xml2-config not found" >&6; }
13870 else
13871  LIBXML2_INC=`$XML2CONFIG --cflags`
13872  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13873 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13874  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13875 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13876 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-lxml2  $LIBS"
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h.  */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h.  */
13887
13888 /* Override any GCC internal prototype to avoid an error.
13889    Use char because int might match the return type of a GCC
13890    builtin and then its argument prototype would still apply.  */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 char xmlReadFile ();
13895 int
13896 main ()
13897 {
13898 return xmlReadFile ();
13899   ;
13900   return 0;
13901 }
13902 _ACEOF
13903 rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907   *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910   (eval "$ac_link") 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918   { (case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_try") 2>&5
13924   ac_status=$?
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); }; } &&
13927          { ac_try='test -s conftest$ac_exeext'
13928   { (case "(($ac_try" in
13929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930   *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933   (eval "$ac_try") 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; }; then
13937   ac_cv_lib_xml2_xmlReadFile=yes
13938 else
13939   echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942         ac_cv_lib_xml2_xmlReadFile=no
13943 fi
13944
13945 rm -f core conftest.err conftest.$ac_objext \
13946       conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13948 fi
13949 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13950 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13951 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13952
13953 cat >>confdefs.h <<\_ACEOF
13954 #define CLANG_HAVE_LIBXML 1
13955 _ACEOF
13956
13957                                 LIBXML2_LIBS="-lxml2"
13958 fi
13959
13960 fi
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970 ac_header_dirent=no
13971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13972   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13973 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13974 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 #include <sys/types.h>
13985 #include <$ac_hdr>
13986
13987 int
13988 main ()
13989 {
13990 if ((DIR *) 0)
13991 return 0;
13992   ;
13993   return 0;
13994 }
13995 _ACEOF
13996 rm -f conftest.$ac_objext
13997 if { (ac_try="$ac_compile"
13998 case "(($ac_try" in
13999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000   *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003   (eval "$ac_compile") 2>conftest.er1
14004   ac_status=$?
14005   grep -v '^ *+' conftest.er1 >conftest.err
14006   rm -f conftest.er1
14007   cat conftest.err >&5
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); } &&
14010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011   { (case "(($ac_try" in
14012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013   *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016   (eval "$ac_try") 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; } &&
14020          { ac_try='test -s conftest.$ac_objext'
14021   { (case "(($ac_try" in
14022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023   *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026   (eval "$ac_try") 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); }; }; then
14030   eval "$as_ac_Header=yes"
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035         eval "$as_ac_Header=no"
14036 fi
14037
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039 fi
14040 ac_res=`eval echo '${'$as_ac_Header'}'`
14041                { echo "$as_me:$LINENO: result: $ac_res" >&5
14042 echo "${ECHO_T}$ac_res" >&6; }
14043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14044   cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14046 _ACEOF
14047
14048 ac_header_dirent=$ac_hdr; break
14049 fi
14050
14051 done
14052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14053 if test $ac_header_dirent = dirent.h; then
14054   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14055 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14056 if test "${ac_cv_search_opendir+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   ac_func_search_save_LIBS=$LIBS
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h.  */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h.  */
14066
14067 /* Override any GCC internal prototype to avoid an error.
14068    Use char because int might match the return type of a GCC
14069    builtin and then its argument prototype would still apply.  */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 char opendir ();
14074 int
14075 main ()
14076 {
14077 return opendir ();
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 for ac_lib in '' dir; do
14083   if test -z "$ac_lib"; then
14084     ac_res="none required"
14085   else
14086     ac_res=-l$ac_lib
14087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14088   fi
14089   rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096   (eval "$ac_link") 2>conftest.er1
14097   ac_status=$?
14098   grep -v '^ *+' conftest.er1 >conftest.err
14099   rm -f conftest.er1
14100   cat conftest.err >&5
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } &&
14103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104   { (case "(($ac_try" in
14105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106   *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109   (eval "$ac_try") 2>&5
14110   ac_status=$?
14111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112   (exit $ac_status); }; } &&
14113          { ac_try='test -s conftest$ac_exeext'
14114   { (case "(($ac_try" in
14115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116   *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119   (eval "$ac_try") 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; }; then
14123   ac_cv_search_opendir=$ac_res
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128
14129 fi
14130
14131 rm -f core conftest.err conftest.$ac_objext \
14132       conftest$ac_exeext
14133   if test "${ac_cv_search_opendir+set}" = set; then
14134   break
14135 fi
14136 done
14137 if test "${ac_cv_search_opendir+set}" = set; then
14138   :
14139 else
14140   ac_cv_search_opendir=no
14141 fi
14142 rm conftest.$ac_ext
14143 LIBS=$ac_func_search_save_LIBS
14144 fi
14145 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14146 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14147 ac_res=$ac_cv_search_opendir
14148 if test "$ac_res" != no; then
14149   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14150
14151 fi
14152
14153 else
14154   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14156 if test "${ac_cv_search_opendir+set}" = set; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   ac_func_search_save_LIBS=$LIBS
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166
14167 /* Override any GCC internal prototype to avoid an error.
14168    Use char because int might match the return type of a GCC
14169    builtin and then its argument prototype would still apply.  */
14170 #ifdef __cplusplus
14171 extern "C"
14172 #endif
14173 char opendir ();
14174 int
14175 main ()
14176 {
14177 return opendir ();
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 for ac_lib in '' x; do
14183   if test -z "$ac_lib"; then
14184     ac_res="none required"
14185   else
14186     ac_res=-l$ac_lib
14187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14188   fi
14189   rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193   *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196   (eval "$ac_link") 2>conftest.er1
14197   ac_status=$?
14198   grep -v '^ *+' conftest.er1 >conftest.err
14199   rm -f conftest.er1
14200   cat conftest.err >&5
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); } &&
14203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204   { (case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_try") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest$ac_exeext'
14214   { (case "(($ac_try" in
14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216   *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219   (eval "$ac_try") 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; }; then
14223   ac_cv_search_opendir=$ac_res
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228
14229 fi
14230
14231 rm -f core conftest.err conftest.$ac_objext \
14232       conftest$ac_exeext
14233   if test "${ac_cv_search_opendir+set}" = set; then
14234   break
14235 fi
14236 done
14237 if test "${ac_cv_search_opendir+set}" = set; then
14238   :
14239 else
14240   ac_cv_search_opendir=no
14241 fi
14242 rm conftest.$ac_ext
14243 LIBS=$ac_func_search_save_LIBS
14244 fi
14245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14247 ac_res=$ac_cv_search_opendir
14248 if test "$ac_res" != no; then
14249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14250
14251 fi
14252
14253 fi
14254
14255 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14256 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14257 if test "${ac_cv_header_mmap_anon+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260    ac_ext=c
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
14266   cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 #include <sys/mman.h>
14273 #include <unistd.h>
14274 #include <fcntl.h>
14275 int
14276 main ()
14277 {
14278 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (ac_try="$ac_compile"
14285 case "(($ac_try" in
14286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287   *) ac_try_echo=$ac_try;;
14288 esac
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290   (eval "$ac_compile") 2>conftest.er1
14291   ac_status=$?
14292   grep -v '^ *+' conftest.er1 >conftest.err
14293   rm -f conftest.er1
14294   cat conftest.err >&5
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); } &&
14297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298   { (case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_try") 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; } &&
14307          { ac_try='test -s conftest.$ac_objext'
14308   { (case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_try") 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317   ac_cv_header_mmap_anon=yes
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322         ac_cv_header_mmap_anon=no
14323 fi
14324
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326   ac_ext=c
14327 ac_cpp='$CPP $CPPFLAGS'
14328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14331
14332
14333 fi
14334 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14335 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14336 if test "$ac_cv_header_mmap_anon" = yes; then
14337
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_MMAP_ANONYMOUS 1
14340 _ACEOF
14341
14342 fi
14343
14344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_stat_broken+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 #include <sys/types.h>
14356 #include <sys/stat.h>
14357
14358 #if defined S_ISBLK && defined S_IFDIR
14359 # if S_ISBLK (S_IFDIR)
14360 You lose.
14361 # endif
14362 #endif
14363
14364 #if defined S_ISBLK && defined S_IFCHR
14365 # if S_ISBLK (S_IFCHR)
14366 You lose.
14367 # endif
14368 #endif
14369
14370 #if defined S_ISLNK && defined S_IFREG
14371 # if S_ISLNK (S_IFREG)
14372 You lose.
14373 # endif
14374 #endif
14375
14376 #if defined S_ISSOCK && defined S_IFREG
14377 # if S_ISSOCK (S_IFREG)
14378 You lose.
14379 # endif
14380 #endif
14381
14382 _ACEOF
14383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14384   $EGREP "You lose" >/dev/null 2>&1; then
14385   ac_cv_header_stat_broken=yes
14386 else
14387   ac_cv_header_stat_broken=no
14388 fi
14389 rm -f conftest*
14390
14391 fi
14392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14394 if test $ac_cv_header_stat_broken = yes; then
14395
14396 cat >>confdefs.h <<\_ACEOF
14397 #define STAT_MACROS_BROKEN 1
14398 _ACEOF
14399
14400 fi
14401
14402 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <sys/types.h>
14414 #include <sys/wait.h>
14415 #ifndef WEXITSTATUS
14416 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14417 #endif
14418 #ifndef WIFEXITED
14419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14420 #endif
14421
14422 int
14423 main ()
14424 {
14425   int s;
14426   wait (&s);
14427   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436   *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439   (eval "$ac_compile") 2>conftest.er1
14440   ac_status=$?
14441   grep -v '^ *+' conftest.er1 >conftest.err
14442   rm -f conftest.er1
14443   cat conftest.err >&5
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447   { (case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_try") 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest.$ac_objext'
14457   { (case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_try") 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_cv_header_sys_wait_h=yes
14467 else
14468   echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14470
14471         ac_cv_header_sys_wait_h=no
14472 fi
14473
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14478 if test $ac_cv_header_sys_wait_h = yes; then
14479
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_SYS_WAIT_H 1
14482 _ACEOF
14483
14484 fi
14485
14486 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14487 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_time+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497 #include <sys/types.h>
14498 #include <sys/time.h>
14499 #include <time.h>
14500
14501 int
14502 main ()
14503 {
14504 if ((struct tm *) 0)
14505 return 0;
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_compile") 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525   { (case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_try") 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; } &&
14534          { ac_try='test -s conftest.$ac_objext'
14535   { (case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_try") 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   ac_cv_header_time=yes
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549         ac_cv_header_time=no
14550 fi
14551
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14555 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14556 if test $ac_cv_header_time = yes; then
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define TIME_WITH_SYS_TIME 1
14560 _ACEOF
14561
14562 fi
14563
14564
14565 ac_ext=cpp
14566 ac_cpp='$CXXCPP $CPPFLAGS'
14567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14570
14571 ac_ext=cpp
14572 ac_cpp='$CXXCPP $CPPFLAGS'
14573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14576 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14577 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14578 if test -z "$CXXCPP"; then
14579   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14580   echo $ECHO_N "(cached) $ECHO_C" >&6
14581 else
14582       # Double quotes because CXXCPP needs to be expanded
14583     for CXXCPP in "$CXX -E" "/lib/cpp"
14584     do
14585       ac_preproc_ok=false
14586 for ac_cxx_preproc_warn_flag in '' yes
14587 do
14588   # Use a header file that comes with gcc, so configuring glibc
14589   # with a fresh cross-compiler works.
14590   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14591   # <limits.h> exists even on freestanding compilers.
14592   # On the NeXT, cc -E runs the code through the compiler's parser,
14593   # not just through cpp. "Syntax error" is here to catch this case.
14594   cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 #ifdef __STDC__
14601 # include <limits.h>
14602 #else
14603 # include <assert.h>
14604 #endif
14605                      Syntax error
14606 _ACEOF
14607 if { (ac_try="$ac_cpp conftest.$ac_ext"
14608 case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14614   ac_status=$?
14615   grep -v '^ *+' conftest.er1 >conftest.err
14616   rm -f conftest.er1
14617   cat conftest.err >&5
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); } >/dev/null; then
14620   if test -s conftest.err; then
14621     ac_cpp_err=$ac_cxx_preproc_warn_flag
14622     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14623   else
14624     ac_cpp_err=
14625   fi
14626 else
14627   ac_cpp_err=yes
14628 fi
14629 if test -z "$ac_cpp_err"; then
14630   :
14631 else
14632   echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635   # Broken: fails on valid input.
14636 continue
14637 fi
14638
14639 rm -f conftest.err conftest.$ac_ext
14640
14641   # OK, works on sane cases.  Now check whether nonexistent headers
14642   # can be detected and how.
14643   cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649 #include <ac_nonexistent.h>
14650 _ACEOF
14651 if { (ac_try="$ac_cpp conftest.$ac_ext"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } >/dev/null; then
14664   if test -s conftest.err; then
14665     ac_cpp_err=$ac_cxx_preproc_warn_flag
14666     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14667   else
14668     ac_cpp_err=
14669   fi
14670 else
14671   ac_cpp_err=yes
14672 fi
14673 if test -z "$ac_cpp_err"; then
14674   # Broken: success on invalid input.
14675 continue
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680   # Passes both tests.
14681 ac_preproc_ok=:
14682 break
14683 fi
14684
14685 rm -f conftest.err conftest.$ac_ext
14686
14687 done
14688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14689 rm -f conftest.err conftest.$ac_ext
14690 if $ac_preproc_ok; then
14691   break
14692 fi
14693
14694     done
14695     ac_cv_prog_CXXCPP=$CXXCPP
14696
14697 fi
14698   CXXCPP=$ac_cv_prog_CXXCPP
14699 else
14700   ac_cv_prog_CXXCPP=$CXXCPP
14701 fi
14702 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14703 echo "${ECHO_T}$CXXCPP" >&6; }
14704 ac_preproc_ok=false
14705 for ac_cxx_preproc_warn_flag in '' yes
14706 do
14707   # Use a header file that comes with gcc, so configuring glibc
14708   # with a fresh cross-compiler works.
14709   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14710   # <limits.h> exists even on freestanding compilers.
14711   # On the NeXT, cc -E runs the code through the compiler's parser,
14712   # not just through cpp. "Syntax error" is here to catch this case.
14713   cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719 #ifdef __STDC__
14720 # include <limits.h>
14721 #else
14722 # include <assert.h>
14723 #endif
14724                      Syntax error
14725 _ACEOF
14726 if { (ac_try="$ac_cpp conftest.$ac_ext"
14727 case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733   ac_status=$?
14734   grep -v '^ *+' conftest.er1 >conftest.err
14735   rm -f conftest.er1
14736   cat conftest.err >&5
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); } >/dev/null; then
14739   if test -s conftest.err; then
14740     ac_cpp_err=$ac_cxx_preproc_warn_flag
14741     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14742   else
14743     ac_cpp_err=
14744   fi
14745 else
14746   ac_cpp_err=yes
14747 fi
14748 if test -z "$ac_cpp_err"; then
14749   :
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754   # Broken: fails on valid input.
14755 continue
14756 fi
14757
14758 rm -f conftest.err conftest.$ac_ext
14759
14760   # OK, works on sane cases.  Now check whether nonexistent headers
14761   # can be detected and how.
14762   cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768 #include <ac_nonexistent.h>
14769 _ACEOF
14770 if { (ac_try="$ac_cpp conftest.$ac_ext"
14771 case "(($ac_try" in
14772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773   *) ac_try_echo=$ac_try;;
14774 esac
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } >/dev/null; then
14783   if test -s conftest.err; then
14784     ac_cpp_err=$ac_cxx_preproc_warn_flag
14785     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14786   else
14787     ac_cpp_err=
14788   fi
14789 else
14790   ac_cpp_err=yes
14791 fi
14792 if test -z "$ac_cpp_err"; then
14793   # Broken: success on invalid input.
14794 continue
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799   # Passes both tests.
14800 ac_preproc_ok=:
14801 break
14802 fi
14803
14804 rm -f conftest.err conftest.$ac_ext
14805
14806 done
14807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14808 rm -f conftest.err conftest.$ac_ext
14809 if $ac_preproc_ok; then
14810   :
14811 else
14812   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14813 See \`config.log' for more details." >&5
14814 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14815 See \`config.log' for more details." >&2;}
14816    { (exit 1); exit 1; }; }
14817 fi
14818
14819 ac_ext=cpp
14820 ac_cpp='$CXXCPP $CPPFLAGS'
14821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14824
14825
14826
14827 for ac_header in cxxabi.h
14828 do
14829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834   echo $ECHO_N "(cached) $ECHO_C" >&6
14835 fi
14836 ac_res=`eval echo '${'$as_ac_Header'}'`
14837                { echo "$as_me:$LINENO: result: $ac_res" >&5
14838 echo "${ECHO_T}$ac_res" >&6; }
14839 else
14840   # Is the header compilable?
14841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h.  */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h.  */
14849 $ac_includes_default
14850 #include <$ac_header>
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (ac_try="$ac_compile"
14854 case "(($ac_try" in
14855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856   *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859   (eval "$ac_compile") 2>conftest.er1
14860   ac_status=$?
14861   grep -v '^ *+' conftest.er1 >conftest.err
14862   rm -f conftest.er1
14863   cat conftest.err >&5
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); } &&
14866          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14867   { (case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_try") 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; } &&
14876          { ac_try='test -s conftest.$ac_objext'
14877   { (case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_try") 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }; then
14886   ac_header_compiler=yes
14887 else
14888   echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891         ac_header_compiler=no
14892 fi
14893
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14896 echo "${ECHO_T}$ac_header_compiler" >&6; }
14897
14898 # Is the header present?
14899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h.  */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h.  */
14907 #include <$ac_header>
14908 _ACEOF
14909 if { (ac_try="$ac_cpp conftest.$ac_ext"
14910 case "(($ac_try" in
14911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912   *) ac_try_echo=$ac_try;;
14913 esac
14914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14916   ac_status=$?
14917   grep -v '^ *+' conftest.er1 >conftest.err
14918   rm -f conftest.er1
14919   cat conftest.err >&5
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } >/dev/null; then
14922   if test -s conftest.err; then
14923     ac_cpp_err=$ac_cxx_preproc_warn_flag
14924     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14925   else
14926     ac_cpp_err=
14927   fi
14928 else
14929   ac_cpp_err=yes
14930 fi
14931 if test -z "$ac_cpp_err"; then
14932   ac_header_preproc=yes
14933 else
14934   echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14936
14937   ac_header_preproc=no
14938 fi
14939
14940 rm -f conftest.err conftest.$ac_ext
14941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14942 echo "${ECHO_T}$ac_header_preproc" >&6; }
14943
14944 # So?  What about this header?
14945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14946   yes:no: )
14947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14951     ac_header_preproc=yes
14952     ;;
14953   no:yes:* )
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14966     ( cat <<\_ASBOX
14967 ## ------------------------------------ ##
14968 ## Report this to http://llvm.org/bugs/ ##
14969 ## ------------------------------------ ##
14970 _ASBOX
14971      ) | sed "s/^/$as_me: WARNING:     /" >&2
14972     ;;
14973 esac
14974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14977   echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979   eval "$as_ac_Header=\$ac_header_preproc"
14980 fi
14981 ac_res=`eval echo '${'$as_ac_Header'}'`
14982                { echo "$as_me:$LINENO: result: $ac_res" >&5
14983 echo "${ECHO_T}$ac_res" >&6; }
14984
14985 fi
14986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14987   cat >>confdefs.h <<_ACEOF
14988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14989 _ACEOF
14990
14991 fi
14992
14993 done
14994
14995 ac_ext=c
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15000
15001
15002
15003
15004
15005
15006 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15007 do
15008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15010   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 fi
15015 ac_res=`eval echo '${'$as_ac_Header'}'`
15016                { echo "$as_me:$LINENO: result: $ac_res" >&5
15017 echo "${ECHO_T}$ac_res" >&6; }
15018 else
15019   # Is the header compilable?
15020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 $ac_includes_default
15029 #include <$ac_header>
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_compile") 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046   { (case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_try") 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest.$ac_objext'
15056   { (case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_try") 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; }; then
15065   ac_header_compiler=yes
15066 else
15067   echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070         ac_header_compiler=no
15071 fi
15072
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6; }
15076
15077 # Is the header present?
15078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 #include <$ac_header>
15087 _ACEOF
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } >/dev/null; then
15101   if test -s conftest.err; then
15102     ac_cpp_err=$ac_c_preproc_warn_flag
15103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15104   else
15105     ac_cpp_err=
15106   fi
15107 else
15108   ac_cpp_err=yes
15109 fi
15110 if test -z "$ac_cpp_err"; then
15111   ac_header_preproc=yes
15112 else
15113   echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15115
15116   ac_header_preproc=no
15117 fi
15118
15119 rm -f conftest.err conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121 echo "${ECHO_T}$ac_header_preproc" >&6; }
15122
15123 # So?  What about this header?
15124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125   yes:no: )
15126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15130     ac_header_preproc=yes
15131     ;;
15132   no:yes:* )
15133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15145     ( cat <<\_ASBOX
15146 ## ------------------------------------ ##
15147 ## Report this to http://llvm.org/bugs/ ##
15148 ## ------------------------------------ ##
15149 _ASBOX
15150      ) | sed "s/^/$as_me: WARNING:     /" >&2
15151     ;;
15152 esac
15153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   eval "$as_ac_Header=\$ac_header_preproc"
15159 fi
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161                { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15163
15164 fi
15165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15166   cat >>confdefs.h <<_ACEOF
15167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15168 _ACEOF
15169
15170 fi
15171
15172 done
15173
15174
15175
15176
15177
15178
15179
15180 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15181 do
15182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 fi
15189 ac_res=`eval echo '${'$as_ac_Header'}'`
15190                { echo "$as_me:$LINENO: result: $ac_res" >&5
15191 echo "${ECHO_T}$ac_res" >&6; }
15192 else
15193   # Is the header compilable?
15194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15196 cat >conftest.$ac_ext <<_ACEOF
15197 /* confdefs.h.  */
15198 _ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h.  */
15202 $ac_includes_default
15203 #include <$ac_header>
15204 _ACEOF
15205 rm -f conftest.$ac_objext
15206 if { (ac_try="$ac_compile"
15207 case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_compile") 2>conftest.er1
15213   ac_status=$?
15214   grep -v '^ *+' conftest.er1 >conftest.err
15215   rm -f conftest.er1
15216   cat conftest.err >&5
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); } &&
15219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220   { (case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225   (eval "$ac_try") 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); }; } &&
15229          { ac_try='test -s conftest.$ac_objext'
15230   { (case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_try") 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); }; }; then
15239   ac_header_compiler=yes
15240 else
15241   echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244         ac_header_compiler=no
15245 fi
15246
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15249 echo "${ECHO_T}$ac_header_compiler" >&6; }
15250
15251 # Is the header present?
15252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h.  */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h.  */
15260 #include <$ac_header>
15261 _ACEOF
15262 if { (ac_try="$ac_cpp conftest.$ac_ext"
15263 case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } >/dev/null; then
15275   if test -s conftest.err; then
15276     ac_cpp_err=$ac_c_preproc_warn_flag
15277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15278   else
15279     ac_cpp_err=
15280   fi
15281 else
15282   ac_cpp_err=yes
15283 fi
15284 if test -z "$ac_cpp_err"; then
15285   ac_header_preproc=yes
15286 else
15287   echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290   ac_header_preproc=no
15291 fi
15292
15293 rm -f conftest.err conftest.$ac_ext
15294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15295 echo "${ECHO_T}$ac_header_preproc" >&6; }
15296
15297 # So?  What about this header?
15298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15299   yes:no: )
15300     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15304     ac_header_preproc=yes
15305     ;;
15306   no:yes:* )
15307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15309     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15310 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15314 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15317     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15319     ( cat <<\_ASBOX
15320 ## ------------------------------------ ##
15321 ## Report this to http://llvm.org/bugs/ ##
15322 ## ------------------------------------ ##
15323 _ASBOX
15324      ) | sed "s/^/$as_me: WARNING:     /" >&2
15325     ;;
15326 esac
15327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330   echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332   eval "$as_ac_Header=\$ac_header_preproc"
15333 fi
15334 ac_res=`eval echo '${'$as_ac_Header'}'`
15335                { echo "$as_me:$LINENO: result: $ac_res" >&5
15336 echo "${ECHO_T}$ac_res" >&6; }
15337
15338 fi
15339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15340   cat >>confdefs.h <<_ACEOF
15341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15342 _ACEOF
15343
15344 fi
15345
15346 done
15347
15348
15349 for ac_header in utime.h
15350 do
15351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15356   echo $ECHO_N "(cached) $ECHO_C" >&6
15357 fi
15358 ac_res=`eval echo '${'$as_ac_Header'}'`
15359                { echo "$as_me:$LINENO: result: $ac_res" >&5
15360 echo "${ECHO_T}$ac_res" >&6; }
15361 else
15362   # Is the header compilable?
15363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15365 cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371 $ac_includes_default
15372 #include <$ac_header>
15373 _ACEOF
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_compile") 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } &&
15388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15389   { (case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_try") 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; } &&
15398          { ac_try='test -s conftest.$ac_objext'
15399   { (case "(($ac_try" in
15400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401   *) ac_try_echo=$ac_try;;
15402 esac
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404   (eval "$ac_try") 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_header_compiler=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413         ac_header_compiler=no
15414 fi
15415
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15418 echo "${ECHO_T}$ac_header_compiler" >&6; }
15419
15420 # Is the header present?
15421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h.  */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h.  */
15429 #include <$ac_header>
15430 _ACEOF
15431 if { (ac_try="$ac_cpp conftest.$ac_ext"
15432 case "(($ac_try" in
15433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434   *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438   ac_status=$?
15439   grep -v '^ *+' conftest.er1 >conftest.err
15440   rm -f conftest.er1
15441   cat conftest.err >&5
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); } >/dev/null; then
15444   if test -s conftest.err; then
15445     ac_cpp_err=$ac_c_preproc_warn_flag
15446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15447   else
15448     ac_cpp_err=
15449   fi
15450 else
15451   ac_cpp_err=yes
15452 fi
15453 if test -z "$ac_cpp_err"; then
15454   ac_header_preproc=yes
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459   ac_header_preproc=no
15460 fi
15461
15462 rm -f conftest.err conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15464 echo "${ECHO_T}$ac_header_preproc" >&6; }
15465
15466 # So?  What about this header?
15467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468   yes:no: )
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15473     ac_header_preproc=yes
15474     ;;
15475   no:yes:* )
15476     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15478     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15479 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15480     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15483 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15486     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15488     ( cat <<\_ASBOX
15489 ## ------------------------------------ ##
15490 ## Report this to http://llvm.org/bugs/ ##
15491 ## ------------------------------------ ##
15492 _ASBOX
15493      ) | sed "s/^/$as_me: WARNING:     /" >&2
15494     ;;
15495 esac
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501   eval "$as_ac_Header=\$ac_header_preproc"
15502 fi
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504                { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15506
15507 fi
15508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509   cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 _ACEOF
15512
15513 fi
15514
15515 done
15516
15517
15518
15519
15520
15521
15522 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15523 do
15524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15526   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 fi
15531 ac_res=`eval echo '${'$as_ac_Header'}'`
15532                { echo "$as_me:$LINENO: result: $ac_res" >&5
15533 echo "${ECHO_T}$ac_res" >&6; }
15534 else
15535   # Is the header compilable?
15536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h.  */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h.  */
15544 $ac_includes_default
15545 #include <$ac_header>
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551   *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554   (eval "$ac_compile") 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562   { (case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_try") 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; } &&
15571          { ac_try='test -s conftest.$ac_objext'
15572   { (case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_try") 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581   ac_header_compiler=yes
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586         ac_header_compiler=no
15587 fi
15588
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15591 echo "${ECHO_T}$ac_header_compiler" >&6; }
15592
15593 # Is the header present?
15594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h.  */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h.  */
15602 #include <$ac_header>
15603 _ACEOF
15604 if { (ac_try="$ac_cpp conftest.$ac_ext"
15605 case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15611   ac_status=$?
15612   grep -v '^ *+' conftest.er1 >conftest.err
15613   rm -f conftest.er1
15614   cat conftest.err >&5
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); } >/dev/null; then
15617   if test -s conftest.err; then
15618     ac_cpp_err=$ac_c_preproc_warn_flag
15619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15620   else
15621     ac_cpp_err=
15622   fi
15623 else
15624   ac_cpp_err=yes
15625 fi
15626 if test -z "$ac_cpp_err"; then
15627   ac_header_preproc=yes
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632   ac_header_preproc=no
15633 fi
15634
15635 rm -f conftest.err conftest.$ac_ext
15636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15637 echo "${ECHO_T}$ac_header_preproc" >&6; }
15638
15639 # So?  What about this header?
15640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15641   yes:no: )
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15646     ac_header_preproc=yes
15647     ;;
15648   no:yes:* )
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15661     ( cat <<\_ASBOX
15662 ## ------------------------------------ ##
15663 ## Report this to http://llvm.org/bugs/ ##
15664 ## ------------------------------------ ##
15665 _ASBOX
15666      ) | sed "s/^/$as_me: WARNING:     /" >&2
15667     ;;
15668 esac
15669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674   eval "$as_ac_Header=\$ac_header_preproc"
15675 fi
15676 ac_res=`eval echo '${'$as_ac_Header'}'`
15677                { echo "$as_me:$LINENO: result: $ac_res" >&5
15678 echo "${ECHO_T}$ac_res" >&6; }
15679
15680 fi
15681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15682   cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15684 _ACEOF
15685
15686 fi
15687
15688 done
15689
15690
15691
15692
15693 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15694 do
15695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15700   echo $ECHO_N "(cached) $ECHO_C" >&6
15701 fi
15702 ac_res=`eval echo '${'$as_ac_Header'}'`
15703                { echo "$as_me:$LINENO: result: $ac_res" >&5
15704 echo "${ECHO_T}$ac_res" >&6; }
15705 else
15706   # Is the header compilable?
15707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715 $ac_includes_default
15716 #include <$ac_header>
15717 _ACEOF
15718 rm -f conftest.$ac_objext
15719 if { (ac_try="$ac_compile"
15720 case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_compile") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15733   { (case "(($ac_try" in
15734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735   *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738   (eval "$ac_try") 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; } &&
15742          { ac_try='test -s conftest.$ac_objext'
15743   { (case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_try") 2>&5
15749   ac_status=$?
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); }; }; then
15752   ac_header_compiler=yes
15753 else
15754   echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757         ac_header_compiler=no
15758 fi
15759
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15762 echo "${ECHO_T}$ac_header_compiler" >&6; }
15763
15764 # Is the header present?
15765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15767 cat >conftest.$ac_ext <<_ACEOF
15768 /* confdefs.h.  */
15769 _ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h.  */
15773 #include <$ac_header>
15774 _ACEOF
15775 if { (ac_try="$ac_cpp conftest.$ac_ext"
15776 case "(($ac_try" in
15777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778   *) ac_try_echo=$ac_try;;
15779 esac
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15782   ac_status=$?
15783   grep -v '^ *+' conftest.er1 >conftest.err
15784   rm -f conftest.er1
15785   cat conftest.err >&5
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); } >/dev/null; then
15788   if test -s conftest.err; then
15789     ac_cpp_err=$ac_c_preproc_warn_flag
15790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15791   else
15792     ac_cpp_err=
15793   fi
15794 else
15795   ac_cpp_err=yes
15796 fi
15797 if test -z "$ac_cpp_err"; then
15798   ac_header_preproc=yes
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803   ac_header_preproc=no
15804 fi
15805
15806 rm -f conftest.err conftest.$ac_ext
15807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15808 echo "${ECHO_T}$ac_header_preproc" >&6; }
15809
15810 # So?  What about this header?
15811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15812   yes:no: )
15813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15817     ac_header_preproc=yes
15818     ;;
15819   no:yes:* )
15820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15832     ( cat <<\_ASBOX
15833 ## ------------------------------------ ##
15834 ## Report this to http://llvm.org/bugs/ ##
15835 ## ------------------------------------ ##
15836 _ASBOX
15837      ) | sed "s/^/$as_me: WARNING:     /" >&2
15838     ;;
15839 esac
15840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845   eval "$as_ac_Header=\$ac_header_preproc"
15846 fi
15847 ac_res=`eval echo '${'$as_ac_Header'}'`
15848                { echo "$as_me:$LINENO: result: $ac_res" >&5
15849 echo "${ECHO_T}$ac_res" >&6; }
15850
15851 fi
15852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15853   cat >>confdefs.h <<_ACEOF
15854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15855 _ACEOF
15856
15857 fi
15858
15859 done
15860
15861
15862 for ac_header in valgrind/valgrind.h
15863 do
15864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15866   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869   echo $ECHO_N "(cached) $ECHO_C" >&6
15870 fi
15871 ac_res=`eval echo '${'$as_ac_Header'}'`
15872                { echo "$as_me:$LINENO: result: $ac_res" >&5
15873 echo "${ECHO_T}$ac_res" >&6; }
15874 else
15875   # Is the header compilable?
15876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15878 cat >conftest.$ac_ext <<_ACEOF
15879 /* confdefs.h.  */
15880 _ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h.  */
15884 $ac_includes_default
15885 #include <$ac_header>
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (ac_try="$ac_compile"
15889 case "(($ac_try" in
15890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891   *) ac_try_echo=$ac_try;;
15892 esac
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894   (eval "$ac_compile") 2>conftest.er1
15895   ac_status=$?
15896   grep -v '^ *+' conftest.er1 >conftest.err
15897   rm -f conftest.er1
15898   cat conftest.err >&5
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); } &&
15901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15902   { (case "(($ac_try" in
15903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904   *) ac_try_echo=$ac_try;;
15905 esac
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907   (eval "$ac_try") 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; } &&
15911          { ac_try='test -s conftest.$ac_objext'
15912   { (case "(($ac_try" in
15913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914   *) ac_try_echo=$ac_try;;
15915 esac
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917   (eval "$ac_try") 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; }; then
15921   ac_header_compiler=yes
15922 else
15923   echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15925
15926         ac_header_compiler=no
15927 fi
15928
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15931 echo "${ECHO_T}$ac_header_compiler" >&6; }
15932
15933 # Is the header present?
15934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 #include <$ac_header>
15943 _ACEOF
15944 if { (ac_try="$ac_cpp conftest.$ac_ext"
15945 case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } >/dev/null; then
15957   if test -s conftest.err; then
15958     ac_cpp_err=$ac_c_preproc_warn_flag
15959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15960   else
15961     ac_cpp_err=
15962   fi
15963 else
15964   ac_cpp_err=yes
15965 fi
15966 if test -z "$ac_cpp_err"; then
15967   ac_header_preproc=yes
15968 else
15969   echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15971
15972   ac_header_preproc=no
15973 fi
15974
15975 rm -f conftest.err conftest.$ac_ext
15976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15977 echo "${ECHO_T}$ac_header_preproc" >&6; }
15978
15979 # So?  What about this header?
15980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15981   yes:no: )
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15986     ac_header_preproc=yes
15987     ;;
15988   no:yes:* )
15989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16001     ( cat <<\_ASBOX
16002 ## ------------------------------------ ##
16003 ## Report this to http://llvm.org/bugs/ ##
16004 ## ------------------------------------ ##
16005 _ASBOX
16006      ) | sed "s/^/$as_me: WARNING:     /" >&2
16007     ;;
16008 esac
16009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   eval "$as_ac_Header=\$ac_header_preproc"
16015 fi
16016 ac_res=`eval echo '${'$as_ac_Header'}'`
16017                { echo "$as_me:$LINENO: result: $ac_res" >&5
16018 echo "${ECHO_T}$ac_res" >&6; }
16019
16020 fi
16021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16022   cat >>confdefs.h <<_ACEOF
16023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16024 _ACEOF
16025
16026 fi
16027
16028 done
16029
16030
16031 for ac_header in fenv.h
16032 do
16033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16035   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16038   echo $ECHO_N "(cached) $ECHO_C" >&6
16039 fi
16040 ac_res=`eval echo '${'$as_ac_Header'}'`
16041                { echo "$as_me:$LINENO: result: $ac_res" >&5
16042 echo "${ECHO_T}$ac_res" >&6; }
16043 else
16044   # Is the header compilable?
16045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053 $ac_includes_default
16054 #include <$ac_header>
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060   *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063   (eval "$ac_compile") 2>conftest.er1
16064   ac_status=$?
16065   grep -v '^ *+' conftest.er1 >conftest.err
16066   rm -f conftest.er1
16067   cat conftest.err >&5
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } &&
16070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16071   { (case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_try") 2>&5
16077   ac_status=$?
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); }; } &&
16080          { ac_try='test -s conftest.$ac_objext'
16081   { (case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_try") 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; }; then
16090   ac_header_compiler=yes
16091 else
16092   echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095         ac_header_compiler=no
16096 fi
16097
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16100 echo "${ECHO_T}$ac_header_compiler" >&6; }
16101
16102 # Is the header present?
16103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16105 cat >conftest.$ac_ext <<_ACEOF
16106 /* confdefs.h.  */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h.  */
16111 #include <$ac_header>
16112 _ACEOF
16113 if { (ac_try="$ac_cpp conftest.$ac_ext"
16114 case "(($ac_try" in
16115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116   *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16120   ac_status=$?
16121   grep -v '^ *+' conftest.er1 >conftest.err
16122   rm -f conftest.er1
16123   cat conftest.err >&5
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); } >/dev/null; then
16126   if test -s conftest.err; then
16127     ac_cpp_err=$ac_c_preproc_warn_flag
16128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16129   else
16130     ac_cpp_err=
16131   fi
16132 else
16133   ac_cpp_err=yes
16134 fi
16135 if test -z "$ac_cpp_err"; then
16136   ac_header_preproc=yes
16137 else
16138   echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141   ac_header_preproc=no
16142 fi
16143
16144 rm -f conftest.err conftest.$ac_ext
16145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16146 echo "${ECHO_T}$ac_header_preproc" >&6; }
16147
16148 # So?  What about this header?
16149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16150   yes:no: )
16151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16155     ac_header_preproc=yes
16156     ;;
16157   no:yes:* )
16158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16170     ( cat <<\_ASBOX
16171 ## ------------------------------------ ##
16172 ## Report this to http://llvm.org/bugs/ ##
16173 ## ------------------------------------ ##
16174 _ASBOX
16175      ) | sed "s/^/$as_me: WARNING:     /" >&2
16176     ;;
16177 esac
16178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183   eval "$as_ac_Header=\$ac_header_preproc"
16184 fi
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186                { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16188
16189 fi
16190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16191   cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16193 _ACEOF
16194
16195 fi
16196
16197 done
16198
16199 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16200 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16201 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16202   echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204   cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210 #include <fenv.h>
16211
16212 int
16213 main ()
16214 {
16215 #ifndef FE_ALL_EXCEPT
16216   char *p = (char *) FE_ALL_EXCEPT;
16217   return !p;
16218 #endif
16219
16220   ;
16221   return 0;
16222 }
16223 _ACEOF
16224 rm -f conftest.$ac_objext
16225 if { (ac_try="$ac_compile"
16226 case "(($ac_try" in
16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228   *) ac_try_echo=$ac_try;;
16229 esac
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231   (eval "$ac_compile") 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16239   { (case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_try") 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; } &&
16248          { ac_try='test -s conftest.$ac_objext'
16249   { (case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254   (eval "$ac_try") 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; }; then
16258   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16259 else
16260   echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263         ac_cv_have_decl_FE_ALL_EXCEPT=no
16264 fi
16265
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 fi
16268 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16269 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16270 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16271
16272 cat >>confdefs.h <<_ACEOF
16273 #define HAVE_DECL_FE_ALL_EXCEPT 1
16274 _ACEOF
16275
16276
16277 else
16278   cat >>confdefs.h <<_ACEOF
16279 #define HAVE_DECL_FE_ALL_EXCEPT 0
16280 _ACEOF
16281
16282
16283 fi
16284 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16285 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16286 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 #include <fenv.h>
16296
16297 int
16298 main ()
16299 {
16300 #ifndef FE_INEXACT
16301   char *p = (char *) FE_INEXACT;
16302   return !p;
16303 #endif
16304
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext
16310 if { (ac_try="$ac_compile"
16311 case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_compile") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } &&
16323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324   { (case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329   (eval "$ac_try") 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); }; } &&
16333          { ac_try='test -s conftest.$ac_objext'
16334   { (case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_try") 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); }; }; then
16343   ac_cv_have_decl_FE_INEXACT=yes
16344 else
16345   echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348         ac_cv_have_decl_FE_INEXACT=no
16349 fi
16350
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16354 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16355 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16356
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_FE_INEXACT 1
16359 _ACEOF
16360
16361
16362 else
16363   cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_FE_INEXACT 0
16365 _ACEOF
16366
16367
16368 fi
16369
16370
16371 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16372
16373 for ac_header in pthread.h
16374 do
16375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16377   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 fi
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383                { echo "$as_me:$LINENO: result: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16385 else
16386   # Is the header compilable?
16387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16389 cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395 $ac_includes_default
16396 #include <$ac_header>
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (ac_try="$ac_compile"
16400 case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405   (eval "$ac_compile") 2>conftest.er1
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
16409   cat conftest.err >&5
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); } &&
16412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16413   { (case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_try") 2>&5
16419   ac_status=$?
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); }; } &&
16422          { ac_try='test -s conftest.$ac_objext'
16423   { (case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_try") 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; }; then
16432   ac_header_compiler=yes
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437         ac_header_compiler=no
16438 fi
16439
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16442 echo "${ECHO_T}$ac_header_compiler" >&6; }
16443
16444 # Is the header present?
16445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453 #include <$ac_header>
16454 _ACEOF
16455 if { (ac_try="$ac_cpp conftest.$ac_ext"
16456 case "(($ac_try" in
16457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458   *) ac_try_echo=$ac_try;;
16459 esac
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16462   ac_status=$?
16463   grep -v '^ *+' conftest.er1 >conftest.err
16464   rm -f conftest.er1
16465   cat conftest.err >&5
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } >/dev/null; then
16468   if test -s conftest.err; then
16469     ac_cpp_err=$ac_c_preproc_warn_flag
16470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16471   else
16472     ac_cpp_err=
16473   fi
16474 else
16475   ac_cpp_err=yes
16476 fi
16477 if test -z "$ac_cpp_err"; then
16478   ac_header_preproc=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483   ac_header_preproc=no
16484 fi
16485
16486 rm -f conftest.err conftest.$ac_ext
16487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16488 echo "${ECHO_T}$ac_header_preproc" >&6; }
16489
16490 # So?  What about this header?
16491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16492   yes:no: )
16493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16497     ac_header_preproc=yes
16498     ;;
16499   no:yes:* )
16500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16512     ( cat <<\_ASBOX
16513 ## ------------------------------------ ##
16514 ## Report this to http://llvm.org/bugs/ ##
16515 ## ------------------------------------ ##
16516 _ASBOX
16517      ) | sed "s/^/$as_me: WARNING:     /" >&2
16518     ;;
16519 esac
16520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   eval "$as_ac_Header=\$ac_header_preproc"
16526 fi
16527 ac_res=`eval echo '${'$as_ac_Header'}'`
16528                { echo "$as_me:$LINENO: result: $ac_res" >&5
16529 echo "${ECHO_T}$ac_res" >&6; }
16530
16531 fi
16532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16533   cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16535 _ACEOF
16536  HAVE_PTHREAD=1
16537
16538 else
16539   HAVE_PTHREAD=0
16540
16541 fi
16542
16543 done
16544
16545 else
16546   HAVE_PTHREAD=0
16547
16548 fi
16549 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16550
16551 for ac_header in zlib.h
16552 do
16553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 fi
16560 ac_res=`eval echo '${'$as_ac_Header'}'`
16561                { echo "$as_me:$LINENO: result: $ac_res" >&5
16562 echo "${ECHO_T}$ac_res" >&6; }
16563 else
16564   # Is the header compilable?
16565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573 $ac_includes_default
16574 #include <$ac_header>
16575 _ACEOF
16576 rm -f conftest.$ac_objext
16577 if { (ac_try="$ac_compile"
16578 case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_compile") 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } &&
16590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591   { (case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_try") 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; } &&
16600          { ac_try='test -s conftest.$ac_objext'
16601   { (case "(($ac_try" in
16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603   *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606   (eval "$ac_try") 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_header_compiler=yes
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615         ac_header_compiler=no
16616 fi
16617
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16620 echo "${ECHO_T}$ac_header_compiler" >&6; }
16621
16622 # Is the header present?
16623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h.  */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h.  */
16631 #include <$ac_header>
16632 _ACEOF
16633 if { (ac_try="$ac_cpp conftest.$ac_ext"
16634 case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } >/dev/null; then
16646   if test -s conftest.err; then
16647     ac_cpp_err=$ac_c_preproc_warn_flag
16648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16649   else
16650     ac_cpp_err=
16651   fi
16652 else
16653   ac_cpp_err=yes
16654 fi
16655 if test -z "$ac_cpp_err"; then
16656   ac_header_preproc=yes
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661   ac_header_preproc=no
16662 fi
16663
16664 rm -f conftest.err conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16666 echo "${ECHO_T}$ac_header_preproc" >&6; }
16667
16668 # So?  What about this header?
16669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16670   yes:no: )
16671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16675     ac_header_preproc=yes
16676     ;;
16677   no:yes:* )
16678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16690     ( cat <<\_ASBOX
16691 ## ------------------------------------ ##
16692 ## Report this to http://llvm.org/bugs/ ##
16693 ## ------------------------------------ ##
16694 _ASBOX
16695      ) | sed "s/^/$as_me: WARNING:     /" >&2
16696     ;;
16697 esac
16698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 else
16703   eval "$as_ac_Header=\$ac_header_preproc"
16704 fi
16705 ac_res=`eval echo '${'$as_ac_Header'}'`
16706                { echo "$as_me:$LINENO: result: $ac_res" >&5
16707 echo "${ECHO_T}$ac_res" >&6; }
16708
16709 fi
16710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16711   cat >>confdefs.h <<_ACEOF
16712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16713 _ACEOF
16714  HAVE_LIBZ=1
16715
16716 else
16717   HAVE_LIBZ=0
16718
16719 fi
16720
16721 done
16722
16723 else
16724   HAVE_LIBZ=0
16725
16726 fi
16727
16728 if test "$llvm_cv_enable_libffi" = "yes" ; then
16729
16730
16731 for ac_header in ffi.h ffi/ffi.h
16732 do
16733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 fi
16740 ac_res=`eval echo '${'$as_ac_Header'}'`
16741                { echo "$as_me:$LINENO: result: $ac_res" >&5
16742 echo "${ECHO_T}$ac_res" >&6; }
16743 else
16744   # Is the header compilable?
16745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h.  */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h.  */
16753 $ac_includes_default
16754 #include <$ac_header>
16755 _ACEOF
16756 rm -f conftest.$ac_objext
16757 if { (ac_try="$ac_compile"
16758 case "(($ac_try" in
16759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760   *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763   (eval "$ac_compile") 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } &&
16770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771   { (case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_try") 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); }; } &&
16780          { ac_try='test -s conftest.$ac_objext'
16781   { (case "(($ac_try" in
16782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783   *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786   (eval "$ac_try") 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); }; }; then
16790   ac_header_compiler=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795         ac_header_compiler=no
16796 fi
16797
16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16800 echo "${ECHO_T}$ac_header_compiler" >&6; }
16801
16802 # Is the header present?
16803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h.  */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h.  */
16811 #include <$ac_header>
16812 _ACEOF
16813 if { (ac_try="$ac_cpp conftest.$ac_ext"
16814 case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16820   ac_status=$?
16821   grep -v '^ *+' conftest.er1 >conftest.err
16822   rm -f conftest.er1
16823   cat conftest.err >&5
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } >/dev/null; then
16826   if test -s conftest.err; then
16827     ac_cpp_err=$ac_c_preproc_warn_flag
16828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16829   else
16830     ac_cpp_err=
16831   fi
16832 else
16833   ac_cpp_err=yes
16834 fi
16835 if test -z "$ac_cpp_err"; then
16836   ac_header_preproc=yes
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841   ac_header_preproc=no
16842 fi
16843
16844 rm -f conftest.err conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16846 echo "${ECHO_T}$ac_header_preproc" >&6; }
16847
16848 # So?  What about this header?
16849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16850   yes:no: )
16851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16855     ac_header_preproc=yes
16856     ;;
16857   no:yes:* )
16858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16870     ( cat <<\_ASBOX
16871 ## ------------------------------------ ##
16872 ## Report this to http://llvm.org/bugs/ ##
16873 ## ------------------------------------ ##
16874 _ASBOX
16875      ) | sed "s/^/$as_me: WARNING:     /" >&2
16876     ;;
16877 esac
16878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   eval "$as_ac_Header=\$ac_header_preproc"
16884 fi
16885 ac_res=`eval echo '${'$as_ac_Header'}'`
16886                { echo "$as_me:$LINENO: result: $ac_res" >&5
16887 echo "${ECHO_T}$ac_res" >&6; }
16888
16889 fi
16890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16891   cat >>confdefs.h <<_ACEOF
16892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16893 _ACEOF
16894
16895 fi
16896
16897 done
16898
16899 fi
16900
16901
16902 for ac_header in CrashReporterClient.h
16903 do
16904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16906   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 fi
16911 ac_res=`eval echo '${'$as_ac_Header'}'`
16912                { echo "$as_me:$LINENO: result: $ac_res" >&5
16913 echo "${ECHO_T}$ac_res" >&6; }
16914 else
16915   # Is the header compilable?
16916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 $ac_includes_default
16925 #include <$ac_header>
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_compile") 2>conftest.er1
16935   ac_status=$?
16936   grep -v '^ *+' conftest.er1 >conftest.err
16937   rm -f conftest.er1
16938   cat conftest.err >&5
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); } &&
16941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942   { (case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_try") 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; } &&
16951          { ac_try='test -s conftest.$ac_objext'
16952   { (case "(($ac_try" in
16953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954   *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957   (eval "$ac_try") 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; }; then
16961   ac_header_compiler=yes
16962 else
16963   echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966         ac_header_compiler=no
16967 fi
16968
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16971 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972
16973 # Is the header present?
16974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h.  */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h.  */
16982 #include <$ac_header>
16983 _ACEOF
16984 if { (ac_try="$ac_cpp conftest.$ac_ext"
16985 case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } >/dev/null; then
16997   if test -s conftest.err; then
16998     ac_cpp_err=$ac_c_preproc_warn_flag
16999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17000   else
17001     ac_cpp_err=
17002   fi
17003 else
17004   ac_cpp_err=yes
17005 fi
17006 if test -z "$ac_cpp_err"; then
17007   ac_header_preproc=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012   ac_header_preproc=no
17013 fi
17014
17015 rm -f conftest.err conftest.$ac_ext
17016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018
17019 # So?  What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021   yes:no: )
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026     ac_header_preproc=yes
17027     ;;
17028   no:yes:* )
17029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041     ( cat <<\_ASBOX
17042 ## ------------------------------------ ##
17043 ## Report this to http://llvm.org/bugs/ ##
17044 ## ------------------------------------ ##
17045 _ASBOX
17046      ) | sed "s/^/$as_me: WARNING:     /" >&2
17047     ;;
17048 esac
17049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   eval "$as_ac_Header=\$ac_header_preproc"
17055 fi
17056 ac_res=`eval echo '${'$as_ac_Header'}'`
17057                { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059
17060 fi
17061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17062   cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17064 _ACEOF
17065
17066 fi
17067
17068 done
17069
17070
17071 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17072 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17074
17075   /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080
17081     extern const char *__crashreporter_info__;
17082     int main() {
17083       __crashreporter_info__ = "test";
17084       return 0;
17085     }
17086
17087
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_link") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } &&
17103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17104   { (case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_try") 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; } &&
17113          { ac_try='test -s conftest$ac_exeext'
17114   { (case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_try") 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; }; then
17123
17124   { echo "$as_me:$LINENO: result: yes" >&5
17125 echo "${ECHO_T}yes" >&6; }
17126
17127 cat >>confdefs.h <<\_ACEOF
17128 #define HAVE_CRASHREPORTER_INFO 1
17129 _ACEOF
17130
17131
17132 else
17133   echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136
17137   { echo "$as_me:$LINENO: result: no" >&5
17138 echo "${ECHO_T}no" >&6; }
17139
17140 cat >>confdefs.h <<\_ACEOF
17141 #define HAVE_CRASHREPORTER_INFO 0
17142 _ACEOF
17143
17144
17145 fi
17146
17147 rm -f core conftest.err conftest.$ac_objext \
17148       conftest$ac_exeext conftest.$ac_ext
17149
17150
17151
17152   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17153 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17154 if test "${ac_cv_huge_val_sanity+set}" = set; then
17155   echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157
17158     ac_ext=cpp
17159 ac_cpp='$CXXCPP $CPPFLAGS'
17160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17163
17164     ac_save_CXXFLAGS=$CXXFLAGS
17165     CXXFLAGS="$CXXFLAGS -pedantic"
17166     if test "$cross_compiling" = yes; then
17167   ac_cv_huge_val_sanity=yes
17168 else
17169   cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175 #include <math.h>
17176 int
17177 main ()
17178 {
17179 double x = HUGE_VAL; return x != x;
17180   ;
17181   return 0;
17182 }
17183 _ACEOF
17184 rm -f conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188   *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191   (eval "$ac_link") 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195   { (case "(($ac_try" in
17196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197   *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200   (eval "$ac_try") 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); }; }; then
17204   ac_cv_huge_val_sanity=yes
17205 else
17206   echo "$as_me: program exited with status $ac_status" >&5
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210 ( exit $ac_status )
17211 ac_cv_huge_val_sanity=no
17212 fi
17213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17214 fi
17215
17216
17217     CXXFLAGS=$ac_save_CXXFLAGS
17218     ac_ext=c
17219 ac_cpp='$CPP $CPPFLAGS'
17220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17223
17224
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17227 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17228   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17229
17230
17231 { echo "$as_me:$LINENO: checking for pid_t" >&5
17232 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17233 if test "${ac_cv_type_pid_t+set}" = set; then
17234   echo $ECHO_N "(cached) $ECHO_C" >&6
17235 else
17236   cat >conftest.$ac_ext <<_ACEOF
17237 /* confdefs.h.  */
17238 _ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h.  */
17242 $ac_includes_default
17243 typedef pid_t ac__type_new_;
17244 int
17245 main ()
17246 {
17247 if ((ac__type_new_ *) 0)
17248   return 0;
17249 if (sizeof (ac__type_new_))
17250   return 0;
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext
17256 if { (ac_try="$ac_compile"
17257 case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_compile") 2>conftest.er1
17263   ac_status=$?
17264   grep -v '^ *+' conftest.er1 >conftest.err
17265   rm -f conftest.er1
17266   cat conftest.err >&5
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270   { (case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_try") 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; } &&
17279          { ac_try='test -s conftest.$ac_objext'
17280   { (case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_try") 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_type_pid_t=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         ac_cv_type_pid_t=no
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 fi
17299 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17301 if test $ac_cv_type_pid_t = yes; then
17302   :
17303 else
17304
17305 cat >>confdefs.h <<_ACEOF
17306 #define pid_t int
17307 _ACEOF
17308
17309 fi
17310
17311 { echo "$as_me:$LINENO: checking for size_t" >&5
17312 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17313 if test "${ac_cv_type_size_t+set}" = set; then
17314   echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316   cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322 $ac_includes_default
17323 typedef size_t ac__type_new_;
17324 int
17325 main ()
17326 {
17327 if ((ac__type_new_ *) 0)
17328   return 0;
17329 if (sizeof (ac__type_new_))
17330   return 0;
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (ac_try="$ac_compile"
17337 case "(($ac_try" in
17338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339   *) ac_try_echo=$ac_try;;
17340 esac
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342   (eval "$ac_compile") 2>conftest.er1
17343   ac_status=$?
17344   grep -v '^ *+' conftest.er1 >conftest.err
17345   rm -f conftest.er1
17346   cat conftest.err >&5
17347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } &&
17349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17350   { (case "(($ac_try" in
17351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352   *) ac_try_echo=$ac_try;;
17353 esac
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355   (eval "$ac_try") 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; } &&
17359          { ac_try='test -s conftest.$ac_objext'
17360   { (case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_try") 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; }; then
17369   ac_cv_type_size_t=yes
17370 else
17371   echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17373
17374         ac_cv_type_size_t=no
17375 fi
17376
17377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378 fi
17379 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17380 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17381 if test $ac_cv_type_size_t = yes; then
17382   :
17383 else
17384
17385 cat >>confdefs.h <<_ACEOF
17386 #define size_t unsigned int
17387 _ACEOF
17388
17389 fi
17390
17391
17392 cat >>confdefs.h <<_ACEOF
17393 #define RETSIGTYPE void
17394 _ACEOF
17395
17396 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17397 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17398 if test "${ac_cv_struct_tm+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 #include <sys/types.h>
17408 #include <time.h>
17409
17410 int
17411 main ()
17412 {
17413 struct tm *tp; tp->tm_sec;
17414   ;
17415   return 0;
17416 }
17417 _ACEOF
17418 rm -f conftest.$ac_objext
17419 if { (ac_try="$ac_compile"
17420 case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_compile") 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } &&
17432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433   { (case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_try") 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }; } &&
17442          { ac_try='test -s conftest.$ac_objext'
17443   { (case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_try") 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); }; }; then
17452   ac_cv_struct_tm=time.h
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         ac_cv_struct_tm=sys/time.h
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 fi
17462 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17463 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17464 if test $ac_cv_struct_tm = sys/time.h; then
17465
17466 cat >>confdefs.h <<\_ACEOF
17467 #define TM_IN_SYS_TIME 1
17468 _ACEOF
17469
17470 fi
17471
17472 { echo "$as_me:$LINENO: checking for int64_t" >&5
17473 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17474 if test "${ac_cv_type_int64_t+set}" = set; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483 $ac_includes_default
17484 typedef int64_t ac__type_new_;
17485 int
17486 main ()
17487 {
17488 if ((ac__type_new_ *) 0)
17489   return 0;
17490 if (sizeof (ac__type_new_))
17491   return 0;
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_compile") 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } &&
17510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511   { (case "(($ac_try" in
17512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513   *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516   (eval "$ac_try") 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; } &&
17520          { ac_try='test -s conftest.$ac_objext'
17521   { (case "(($ac_try" in
17522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523   *) ac_try_echo=$ac_try;;
17524 esac
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526   (eval "$ac_try") 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; }; then
17530   ac_cv_type_int64_t=yes
17531 else
17532   echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535         ac_cv_type_int64_t=no
17536 fi
17537
17538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 fi
17540 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17541 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17542 if test $ac_cv_type_int64_t = yes; then
17543
17544 cat >>confdefs.h <<_ACEOF
17545 #define HAVE_INT64_T 1
17546 _ACEOF
17547
17548
17549 else
17550   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17551 echo "$as_me: error: Type int64_t required but not found" >&2;}
17552    { (exit 1); exit 1; }; }
17553 fi
17554
17555 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17556 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17557 if test "${ac_cv_type_uint64_t+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566 $ac_includes_default
17567 typedef uint64_t ac__type_new_;
17568 int
17569 main ()
17570 {
17571 if ((ac__type_new_ *) 0)
17572   return 0;
17573 if (sizeof (ac__type_new_))
17574   return 0;
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (ac_try="$ac_compile"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_compile") 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594   { (case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_try") 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; } &&
17603          { ac_try='test -s conftest.$ac_objext'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; }; then
17613   ac_cv_type_uint64_t=yes
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618         ac_cv_type_uint64_t=no
17619 fi
17620
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622 fi
17623 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17624 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17625 if test $ac_cv_type_uint64_t = yes; then
17626
17627 cat >>confdefs.h <<_ACEOF
17628 #define HAVE_UINT64_T 1
17629 _ACEOF
17630
17631
17632 else
17633   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17634 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17635 if test "${ac_cv_type_u_int64_t+set}" = set; then
17636   echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 $ac_includes_default
17645 typedef u_int64_t ac__type_new_;
17646 int
17647 main ()
17648 {
17649 if ((ac__type_new_ *) 0)
17650   return 0;
17651 if (sizeof (ac__type_new_))
17652   return 0;
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664   (eval "$ac_compile") 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } &&
17671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672   { (case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_try") 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; } &&
17681          { ac_try='test -s conftest.$ac_objext'
17682   { (case "(($ac_try" in
17683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684   *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687   (eval "$ac_try") 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   ac_cv_type_u_int64_t=yes
17692 else
17693   echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         ac_cv_type_u_int64_t=no
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 fi
17701 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17702 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17703 if test $ac_cv_type_u_int64_t = yes; then
17704
17705 cat >>confdefs.h <<_ACEOF
17706 #define HAVE_U_INT64_T 1
17707 _ACEOF
17708
17709
17710 else
17711   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17712 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17713    { (exit 1); exit 1; }; }
17714 fi
17715
17716 fi
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17728 do
17729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h.  */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h.  */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17743 #define $ac_func innocuous_$ac_func
17744
17745 /* System header to define __stub macros and hopefully few prototypes,
17746     which can conflict with char $ac_func (); below.
17747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748     <limits.h> exists even on freestanding compilers.  */
17749
17750 #ifdef __STDC__
17751 # include <limits.h>
17752 #else
17753 # include <assert.h>
17754 #endif
17755
17756 #undef $ac_func
17757
17758 /* Override any GCC internal prototype to avoid an error.
17759    Use char because int might match the return type of a GCC
17760    builtin and then its argument prototype would still apply.  */
17761 #ifdef __cplusplus
17762 extern "C"
17763 #endif
17764 char $ac_func ();
17765 /* The GNU C library defines this for functions which it implements
17766     to always fail with ENOSYS.  Some functions are actually named
17767     something starting with __ and the normal name is an alias.  */
17768 #if defined __stub_$ac_func || defined __stub___$ac_func
17769 choke me
17770 #endif
17771
17772 int
17773 main ()
17774 {
17775 return $ac_func ();
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787   (eval "$ac_link") 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } &&
17794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795   { (case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800   (eval "$ac_try") 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; } &&
17804          { ac_try='test -s conftest$ac_exeext'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; }; then
17814   eval "$as_ac_var=yes"
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819         eval "$as_ac_var=no"
17820 fi
17821
17822 rm -f core conftest.err conftest.$ac_objext \
17823       conftest$ac_exeext conftest.$ac_ext
17824 fi
17825 ac_res=`eval echo '${'$as_ac_var'}'`
17826                { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829   cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17831 _ACEOF
17832
17833 fi
17834 done
17835
17836
17837
17838
17839
17840 for ac_func in powf fmodf strtof round
17841 do
17842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17846   echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848   cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17856 #define $ac_func innocuous_$ac_func
17857
17858 /* System header to define __stub macros and hopefully few prototypes,
17859     which can conflict with char $ac_func (); below.
17860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17861     <limits.h> exists even on freestanding compilers.  */
17862
17863 #ifdef __STDC__
17864 # include <limits.h>
17865 #else
17866 # include <assert.h>
17867 #endif
17868
17869 #undef $ac_func
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872    Use char because int might match the return type of a GCC
17873    builtin and then its argument prototype would still apply.  */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char $ac_func ();
17878 /* The GNU C library defines this for functions which it implements
17879     to always fail with ENOSYS.  Some functions are actually named
17880     something starting with __ and the normal name is an alias.  */
17881 #if defined __stub_$ac_func || defined __stub___$ac_func
17882 choke me
17883 #endif
17884
17885 int
17886 main ()
17887 {
17888 return $ac_func ();
17889   ;
17890   return 0;
17891 }
17892 _ACEOF
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (ac_try="$ac_link"
17895 case "(($ac_try" in
17896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897   *) ac_try_echo=$ac_try;;
17898 esac
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900   (eval "$ac_link") 2>conftest.er1
17901   ac_status=$?
17902   grep -v '^ *+' conftest.er1 >conftest.err
17903   rm -f conftest.er1
17904   cat conftest.err >&5
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); } &&
17907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908   { (case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_try") 2>&5
17914   ac_status=$?
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); }; } &&
17917          { ac_try='test -s conftest$ac_exeext'
17918   { (case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   eval "$as_ac_var=yes"
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932         eval "$as_ac_var=no"
17933 fi
17934
17935 rm -f core conftest.err conftest.$ac_objext \
17936       conftest$ac_exeext conftest.$ac_ext
17937 fi
17938 ac_res=`eval echo '${'$as_ac_var'}'`
17939                { echo "$as_me:$LINENO: result: $ac_res" >&5
17940 echo "${ECHO_T}$ac_res" >&6; }
17941 if test `eval echo '${'$as_ac_var'}'` = yes; then
17942   cat >>confdefs.h <<_ACEOF
17943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17944 _ACEOF
17945
17946 fi
17947 done
17948
17949
17950
17951
17952
17953
17954 for ac_func in log log2 log10 exp exp2
17955 do
17956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17960   echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962   cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17970 #define $ac_func innocuous_$ac_func
17971
17972 /* System header to define __stub macros and hopefully few prototypes,
17973     which can conflict with char $ac_func (); below.
17974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17975     <limits.h> exists even on freestanding compilers.  */
17976
17977 #ifdef __STDC__
17978 # include <limits.h>
17979 #else
17980 # include <assert.h>
17981 #endif
17982
17983 #undef $ac_func
17984
17985 /* Override any GCC internal prototype to avoid an error.
17986    Use char because int might match the return type of a GCC
17987    builtin and then its argument prototype would still apply.  */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 char $ac_func ();
17992 /* The GNU C library defines this for functions which it implements
17993     to always fail with ENOSYS.  Some functions are actually named
17994     something starting with __ and the normal name is an alias.  */
17995 #if defined __stub_$ac_func || defined __stub___$ac_func
17996 choke me
17997 #endif
17998
17999 int
18000 main ()
18001 {
18002 return $ac_func ();
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_link") 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022   { (case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_try") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; } &&
18031          { ac_try='test -s conftest$ac_exeext'
18032   { (case "(($ac_try" in
18033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034   *) ac_try_echo=$ac_try;;
18035 esac
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037   (eval "$ac_try") 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041   eval "$as_ac_var=yes"
18042 else
18043   echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046         eval "$as_ac_var=no"
18047 fi
18048
18049 rm -f core conftest.err conftest.$ac_objext \
18050       conftest$ac_exeext conftest.$ac_ext
18051 fi
18052 ac_res=`eval echo '${'$as_ac_var'}'`
18053                { echo "$as_me:$LINENO: result: $ac_res" >&5
18054 echo "${ECHO_T}$ac_res" >&6; }
18055 if test `eval echo '${'$as_ac_var'}'` = yes; then
18056   cat >>confdefs.h <<_ACEOF
18057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18058 _ACEOF
18059
18060 fi
18061 done
18062
18063
18064
18065
18066
18067
18068 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18069 do
18070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18074   echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076   cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h.  */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h.  */
18082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18084 #define $ac_func innocuous_$ac_func
18085
18086 /* System header to define __stub macros and hopefully few prototypes,
18087     which can conflict with char $ac_func (); below.
18088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18089     <limits.h> exists even on freestanding compilers.  */
18090
18091 #ifdef __STDC__
18092 # include <limits.h>
18093 #else
18094 # include <assert.h>
18095 #endif
18096
18097 #undef $ac_func
18098
18099 /* Override any GCC internal prototype to avoid an error.
18100    Use char because int might match the return type of a GCC
18101    builtin and then its argument prototype would still apply.  */
18102 #ifdef __cplusplus
18103 extern "C"
18104 #endif
18105 char $ac_func ();
18106 /* The GNU C library defines this for functions which it implements
18107     to always fail with ENOSYS.  Some functions are actually named
18108     something starting with __ and the normal name is an alias.  */
18109 #if defined __stub_$ac_func || defined __stub___$ac_func
18110 choke me
18111 #endif
18112
18113 int
18114 main ()
18115 {
18116 return $ac_func ();
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125   *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128   (eval "$ac_link") 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } &&
18135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18136   { (case "(($ac_try" in
18137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138   *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141   (eval "$ac_try") 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest$ac_exeext'
18146   { (case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_try") 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; }; then
18155   eval "$as_ac_var=yes"
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160         eval "$as_ac_var=no"
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext \
18164       conftest$ac_exeext conftest.$ac_ext
18165 fi
18166 ac_res=`eval echo '${'$as_ac_var'}'`
18167                { echo "$as_me:$LINENO: result: $ac_res" >&5
18168 echo "${ECHO_T}$ac_res" >&6; }
18169 if test `eval echo '${'$as_ac_var'}'` = yes; then
18170   cat >>confdefs.h <<_ACEOF
18171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18172 _ACEOF
18173
18174 fi
18175 done
18176
18177
18178
18179
18180 for ac_func in isatty mkdtemp mkstemp
18181 do
18182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h.  */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h.  */
18194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18196 #define $ac_func innocuous_$ac_func
18197
18198 /* System header to define __stub macros and hopefully few prototypes,
18199     which can conflict with char $ac_func (); below.
18200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201     <limits.h> exists even on freestanding compilers.  */
18202
18203 #ifdef __STDC__
18204 # include <limits.h>
18205 #else
18206 # include <assert.h>
18207 #endif
18208
18209 #undef $ac_func
18210
18211 /* Override any GCC internal prototype to avoid an error.
18212    Use char because int might match the return type of a GCC
18213    builtin and then its argument prototype would still apply.  */
18214 #ifdef __cplusplus
18215 extern "C"
18216 #endif
18217 char $ac_func ();
18218 /* The GNU C library defines this for functions which it implements
18219     to always fail with ENOSYS.  Some functions are actually named
18220     something starting with __ and the normal name is an alias.  */
18221 #if defined __stub_$ac_func || defined __stub___$ac_func
18222 choke me
18223 #endif
18224
18225 int
18226 main ()
18227 {
18228 return $ac_func ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_link") 2>conftest.er1
18241   ac_status=$?
18242   grep -v '^ *+' conftest.er1 >conftest.err
18243   rm -f conftest.er1
18244   cat conftest.err >&5
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); } &&
18247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248   { (case "(($ac_try" in
18249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250   *) ac_try_echo=$ac_try;;
18251 esac
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253   (eval "$ac_try") 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; } &&
18257          { ac_try='test -s conftest$ac_exeext'
18258   { (case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_try") 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; }; then
18267   eval "$as_ac_var=yes"
18268 else
18269   echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272         eval "$as_ac_var=no"
18273 fi
18274
18275 rm -f core conftest.err conftest.$ac_objext \
18276       conftest$ac_exeext conftest.$ac_ext
18277 fi
18278 ac_res=`eval echo '${'$as_ac_var'}'`
18279                { echo "$as_me:$LINENO: result: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18281 if test `eval echo '${'$as_ac_var'}'` = yes; then
18282   cat >>confdefs.h <<_ACEOF
18283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18284 _ACEOF
18285
18286 fi
18287 done
18288
18289
18290
18291
18292
18293
18294
18295 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18296 do
18297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18311 #define $ac_func innocuous_$ac_func
18312
18313 /* System header to define __stub macros and hopefully few prototypes,
18314     which can conflict with char $ac_func (); below.
18315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18316     <limits.h> exists even on freestanding compilers.  */
18317
18318 #ifdef __STDC__
18319 # include <limits.h>
18320 #else
18321 # include <assert.h>
18322 #endif
18323
18324 #undef $ac_func
18325
18326 /* Override any GCC internal prototype to avoid an error.
18327    Use char because int might match the return type of a GCC
18328    builtin and then its argument prototype would still apply.  */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 char $ac_func ();
18333 /* The GNU C library defines this for functions which it implements
18334     to always fail with ENOSYS.  Some functions are actually named
18335     something starting with __ and the normal name is an alias.  */
18336 #if defined __stub_$ac_func || defined __stub___$ac_func
18337 choke me
18338 #endif
18339
18340 int
18341 main ()
18342 {
18343 return $ac_func ();
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_link") 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } &&
18362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363   { (case "(($ac_try" in
18364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365   *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368   (eval "$ac_try") 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest$ac_exeext'
18373   { (case "(($ac_try" in
18374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375   *) ac_try_echo=$ac_try;;
18376 esac
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378   (eval "$ac_try") 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; }; then
18382   eval "$as_ac_var=yes"
18383 else
18384   echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387         eval "$as_ac_var=no"
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext \
18391       conftest$ac_exeext conftest.$ac_ext
18392 fi
18393 ac_res=`eval echo '${'$as_ac_var'}'`
18394                { echo "$as_me:$LINENO: result: $ac_res" >&5
18395 echo "${ECHO_T}$ac_res" >&6; }
18396 if test `eval echo '${'$as_ac_var'}'` = yes; then
18397   cat >>confdefs.h <<_ACEOF
18398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18399 _ACEOF
18400
18401 fi
18402 done
18403
18404
18405
18406
18407
18408 for ac_func in strerror strerror_r setenv arc4random
18409 do
18410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18414   echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416   cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18424 #define $ac_func innocuous_$ac_func
18425
18426 /* System header to define __stub macros and hopefully few prototypes,
18427     which can conflict with char $ac_func (); below.
18428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429     <limits.h> exists even on freestanding compilers.  */
18430
18431 #ifdef __STDC__
18432 # include <limits.h>
18433 #else
18434 # include <assert.h>
18435 #endif
18436
18437 #undef $ac_func
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440    Use char because int might match the return type of a GCC
18441    builtin and then its argument prototype would still apply.  */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char $ac_func ();
18446 /* The GNU C library defines this for functions which it implements
18447     to always fail with ENOSYS.  Some functions are actually named
18448     something starting with __ and the normal name is an alias.  */
18449 #if defined __stub_$ac_func || defined __stub___$ac_func
18450 choke me
18451 #endif
18452
18453 int
18454 main ()
18455 {
18456 return $ac_func ();
18457   ;
18458   return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_link") 2>conftest.er1
18469   ac_status=$?
18470   grep -v '^ *+' conftest.er1 >conftest.err
18471   rm -f conftest.er1
18472   cat conftest.err >&5
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); } &&
18475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18476   { (case "(($ac_try" in
18477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478   *) ac_try_echo=$ac_try;;
18479 esac
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481   (eval "$ac_try") 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); }; } &&
18485          { ac_try='test -s conftest$ac_exeext'
18486   { (case "(($ac_try" in
18487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488   *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491   (eval "$ac_try") 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; }; then
18495   eval "$as_ac_var=yes"
18496 else
18497   echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500         eval "$as_ac_var=no"
18501 fi
18502
18503 rm -f core conftest.err conftest.$ac_objext \
18504       conftest$ac_exeext conftest.$ac_ext
18505 fi
18506 ac_res=`eval echo '${'$as_ac_var'}'`
18507                { echo "$as_me:$LINENO: result: $ac_res" >&5
18508 echo "${ECHO_T}$ac_res" >&6; }
18509 if test `eval echo '${'$as_ac_var'}'` = yes; then
18510   cat >>confdefs.h <<_ACEOF
18511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18512 _ACEOF
18513
18514 fi
18515 done
18516
18517
18518
18519
18520
18521 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18522 do
18523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18527   echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529   cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h.  */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h.  */
18535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18537 #define $ac_func innocuous_$ac_func
18538
18539 /* System header to define __stub macros and hopefully few prototypes,
18540     which can conflict with char $ac_func (); below.
18541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18542     <limits.h> exists even on freestanding compilers.  */
18543
18544 #ifdef __STDC__
18545 # include <limits.h>
18546 #else
18547 # include <assert.h>
18548 #endif
18549
18550 #undef $ac_func
18551
18552 /* Override any GCC internal prototype to avoid an error.
18553    Use char because int might match the return type of a GCC
18554    builtin and then its argument prototype would still apply.  */
18555 #ifdef __cplusplus
18556 extern "C"
18557 #endif
18558 char $ac_func ();
18559 /* The GNU C library defines this for functions which it implements
18560     to always fail with ENOSYS.  Some functions are actually named
18561     something starting with __ and the normal name is an alias.  */
18562 #if defined __stub_$ac_func || defined __stub___$ac_func
18563 choke me
18564 #endif
18565
18566 int
18567 main ()
18568 {
18569 return $ac_func ();
18570   ;
18571   return 0;
18572 }
18573 _ACEOF
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (ac_try="$ac_link"
18576 case "(($ac_try" in
18577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578   *) ac_try_echo=$ac_try;;
18579 esac
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581   (eval "$ac_link") 2>conftest.er1
18582   ac_status=$?
18583   grep -v '^ *+' conftest.er1 >conftest.err
18584   rm -f conftest.er1
18585   cat conftest.err >&5
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); } &&
18588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589   { (case "(($ac_try" in
18590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591   *) ac_try_echo=$ac_try;;
18592 esac
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594   (eval "$ac_try") 2>&5
18595   ac_status=$?
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); }; } &&
18598          { ac_try='test -s conftest$ac_exeext'
18599   { (case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_try") 2>&5
18605   ac_status=$?
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); }; }; then
18608   eval "$as_ac_var=yes"
18609 else
18610   echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18612
18613         eval "$as_ac_var=no"
18614 fi
18615
18616 rm -f core conftest.err conftest.$ac_objext \
18617       conftest$ac_exeext conftest.$ac_ext
18618 fi
18619 ac_res=`eval echo '${'$as_ac_var'}'`
18620                { echo "$as_me:$LINENO: result: $ac_res" >&5
18621 echo "${ECHO_T}$ac_res" >&6; }
18622 if test `eval echo '${'$as_ac_var'}'` = yes; then
18623   cat >>confdefs.h <<_ACEOF
18624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18625 _ACEOF
18626
18627 fi
18628 done
18629
18630
18631
18632
18633
18634
18635 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18636 do
18637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643   cat >conftest.$ac_ext <<_ACEOF
18644 /* confdefs.h.  */
18645 _ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h.  */
18649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18651 #define $ac_func innocuous_$ac_func
18652
18653 /* System header to define __stub macros and hopefully few prototypes,
18654     which can conflict with char $ac_func (); below.
18655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18656     <limits.h> exists even on freestanding compilers.  */
18657
18658 #ifdef __STDC__
18659 # include <limits.h>
18660 #else
18661 # include <assert.h>
18662 #endif
18663
18664 #undef $ac_func
18665
18666 /* Override any GCC internal prototype to avoid an error.
18667    Use char because int might match the return type of a GCC
18668    builtin and then its argument prototype would still apply.  */
18669 #ifdef __cplusplus
18670 extern "C"
18671 #endif
18672 char $ac_func ();
18673 /* The GNU C library defines this for functions which it implements
18674     to always fail with ENOSYS.  Some functions are actually named
18675     something starting with __ and the normal name is an alias.  */
18676 #if defined __stub_$ac_func || defined __stub___$ac_func
18677 choke me
18678 #endif
18679
18680 int
18681 main ()
18682 {
18683 return $ac_func ();
18684   ;
18685   return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_link") 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } &&
18702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18703   { (case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708   (eval "$ac_try") 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; } &&
18712          { ac_try='test -s conftest$ac_exeext'
18713   { (case "(($ac_try" in
18714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715   *) ac_try_echo=$ac_try;;
18716 esac
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718   (eval "$ac_try") 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; }; then
18722   eval "$as_ac_var=yes"
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727         eval "$as_ac_var=no"
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext \
18731       conftest$ac_exeext conftest.$ac_ext
18732 fi
18733 ac_res=`eval echo '${'$as_ac_var'}'`
18734                { echo "$as_me:$LINENO: result: $ac_res" >&5
18735 echo "${ECHO_T}$ac_res" >&6; }
18736 if test `eval echo '${'$as_ac_var'}'` = yes; then
18737   cat >>confdefs.h <<_ACEOF
18738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18739 _ACEOF
18740
18741 fi
18742 done
18743
18744
18745
18746 for ac_func in futimes futimens
18747 do
18748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h.  */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h.  */
18760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18762 #define $ac_func innocuous_$ac_func
18763
18764 /* System header to define __stub macros and hopefully few prototypes,
18765     which can conflict with char $ac_func (); below.
18766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18767     <limits.h> exists even on freestanding compilers.  */
18768
18769 #ifdef __STDC__
18770 # include <limits.h>
18771 #else
18772 # include <assert.h>
18773 #endif
18774
18775 #undef $ac_func
18776
18777 /* Override any GCC internal prototype to avoid an error.
18778    Use char because int might match the return type of a GCC
18779    builtin and then its argument prototype would still apply.  */
18780 #ifdef __cplusplus
18781 extern "C"
18782 #endif
18783 char $ac_func ();
18784 /* The GNU C library defines this for functions which it implements
18785     to always fail with ENOSYS.  Some functions are actually named
18786     something starting with __ and the normal name is an alias.  */
18787 #if defined __stub_$ac_func || defined __stub___$ac_func
18788 choke me
18789 #endif
18790
18791 int
18792 main ()
18793 {
18794 return $ac_func ();
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (ac_try="$ac_link"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_link") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } &&
18813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18814   { (case "(($ac_try" in
18815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816   *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819   (eval "$ac_try") 2>&5
18820   ac_status=$?
18821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822   (exit $ac_status); }; } &&
18823          { ac_try='test -s conftest$ac_exeext'
18824   { (case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_try") 2>&5
18830   ac_status=$?
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); }; }; then
18833   eval "$as_ac_var=yes"
18834 else
18835   echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838         eval "$as_ac_var=no"
18839 fi
18840
18841 rm -f core conftest.err conftest.$ac_objext \
18842       conftest$ac_exeext conftest.$ac_ext
18843 fi
18844 ac_res=`eval echo '${'$as_ac_var'}'`
18845                { echo "$as_me:$LINENO: result: $ac_res" >&5
18846 echo "${ECHO_T}$ac_res" >&6; }
18847 if test `eval echo '${'$as_ac_var'}'` = yes; then
18848   cat >>confdefs.h <<_ACEOF
18849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18850 _ACEOF
18851
18852 fi
18853 done
18854
18855 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18856 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18857 if test "${llvm_cv_c_printf_a+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   ac_ext=c
18861 ac_cpp='$CPP $CPPFLAGS'
18862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18865
18866  if test "$cross_compiling" = yes; then
18867   llvmac_cv_c_printf_a=no
18868 else
18869   cat >conftest.$ac_ext <<_ACEOF
18870
18871   /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876
18877 #include <stdio.h>
18878 #include <stdlib.h>
18879
18880 int
18881 main ()
18882 {
18883
18884 volatile double A, B;
18885 char Buffer[100];
18886 A = 1;
18887 A /= 10.0;
18888 sprintf(Buffer, "%a", A);
18889 B = atof(Buffer);
18890 if (A != B)
18891   return (1);
18892 if (A != 0x1.999999999999ap-4)
18893   return (1);
18894 return (0);
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906   (eval "$ac_link") 2>&5
18907   ac_status=$?
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18910   { (case "(($ac_try" in
18911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912   *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915   (eval "$ac_try") 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; }; then
18919   llvm_cv_c_printf_a=yes
18920 else
18921   echo "$as_me: program exited with status $ac_status" >&5
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 ( exit $ac_status )
18926 llvmac_cv_c_printf_a=no
18927 fi
18928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18929 fi
18930
18931
18932  ac_ext=c
18933 ac_cpp='$CPP $CPPFLAGS'
18934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18937
18938 fi
18939 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18940 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18941  if test "$llvm_cv_c_printf_a" = "yes"; then
18942
18943 cat >>confdefs.h <<\_ACEOF
18944 #define HAVE_PRINTF_A 1
18945 _ACEOF
18946
18947  fi
18948
18949
18950
18951   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18952 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18953 if test "${ac_cv_func_rand48+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956
18957     ac_ext=cpp
18958 ac_cpp='$CXXCPP $CPPFLAGS'
18959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18962
18963     cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h.  */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h.  */
18969 #include <stdlib.h>
18970 int
18971 main ()
18972 {
18973 srand48(0);lrand48();drand48();
18974   ;
18975   return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_compile") 2>conftest.er1
18986   ac_status=$?
18987   grep -v '^ *+' conftest.er1 >conftest.err
18988   rm -f conftest.er1
18989   cat conftest.err >&5
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } &&
18992          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18993   { (case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_try") 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; } &&
19002          { ac_try='test -s conftest.$ac_objext'
19003   { (case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_try") 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; }; then
19012   ac_cv_func_rand48=yes
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017         ac_cv_func_rand48=no
19018 fi
19019
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021     ac_ext=c
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027
19028 fi
19029 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19030 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19031
19032 if test "$ac_cv_func_rand48" = "yes" ; then
19033
19034 cat >>confdefs.h <<\_ACEOF
19035 #define HAVE_RAND48 1
19036 _ACEOF
19037
19038 fi
19039
19040
19041 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19042 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19043 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046   cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052 $ac_includes_default
19053 int
19054 main ()
19055 {
19056 #ifndef strerror_s
19057   char *p = (char *) strerror_s;
19058   return !p;
19059 #endif
19060
19061   ;
19062   return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
19067 case "(($ac_try" in
19068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069   *) ac_try_echo=$ac_try;;
19070 esac
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072   (eval "$ac_compile") 2>conftest.er1
19073   ac_status=$?
19074   grep -v '^ *+' conftest.er1 >conftest.err
19075   rm -f conftest.er1
19076   cat conftest.err >&5
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); } &&
19079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080   { (case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_try") 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; } &&
19089          { ac_try='test -s conftest.$ac_objext'
19090   { (case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_try") 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; }; then
19099   ac_cv_have_decl_strerror_s=yes
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104         ac_cv_have_decl_strerror_s=no
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108 fi
19109 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19110 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19111 if test $ac_cv_have_decl_strerror_s = yes; then
19112
19113 cat >>confdefs.h <<_ACEOF
19114 #define HAVE_DECL_STRERROR_S 1
19115 _ACEOF
19116
19117
19118 else
19119   cat >>confdefs.h <<_ACEOF
19120 #define HAVE_DECL_STRERROR_S 0
19121 _ACEOF
19122
19123
19124 fi
19125
19126
19127
19128 if test "$llvm_cv_os_type" = "MingW" ; then
19129   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19130 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19131 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134   ac_check_lib_save_LIBS=$LIBS
19135 LIBS="-lgcc  $LIBS"
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142
19143 /* Override any GCC internal prototype to avoid an error.
19144    Use char because int might match the return type of a GCC
19145    builtin and then its argument prototype would still apply.  */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char _alloca ();
19150 int
19151 main ()
19152 {
19153 return _alloca ();
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_link") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } &&
19172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173   { (case "(($ac_try" in
19174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175   *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178   (eval "$ac_try") 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; } &&
19182          { ac_try='test -s conftest$ac_exeext'
19183   { (case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_try") 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192   ac_cv_lib_gcc__alloca=yes
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197         ac_cv_lib_gcc__alloca=no
19198 fi
19199
19200 rm -f core conftest.err conftest.$ac_objext \
19201       conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19203 fi
19204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19205 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19206 if test $ac_cv_lib_gcc__alloca = yes; then
19207
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE__ALLOCA 1
19210 _ACEOF
19211
19212 fi
19213
19214   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19215 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19216 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19217   echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219   ac_check_lib_save_LIBS=$LIBS
19220 LIBS="-lgcc  $LIBS"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227
19228 /* Override any GCC internal prototype to avoid an error.
19229    Use char because int might match the return type of a GCC
19230    builtin and then its argument prototype would still apply.  */
19231 #ifdef __cplusplus
19232 extern "C"
19233 #endif
19234 char __alloca ();
19235 int
19236 main ()
19237 {
19238 return __alloca ();
19239   ;
19240   return 0;
19241 }
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250   (eval "$ac_link") 2>conftest.er1
19251   ac_status=$?
19252   grep -v '^ *+' conftest.er1 >conftest.err
19253   rm -f conftest.er1
19254   cat conftest.err >&5
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); } &&
19257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19258   { (case "(($ac_try" in
19259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260   *) ac_try_echo=$ac_try;;
19261 esac
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263   (eval "$ac_try") 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; } &&
19267          { ac_try='test -s conftest$ac_exeext'
19268   { (case "(($ac_try" in
19269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270   *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273   (eval "$ac_try") 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); }; }; then
19277   ac_cv_lib_gcc___alloca=yes
19278 else
19279   echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282         ac_cv_lib_gcc___alloca=no
19283 fi
19284
19285 rm -f core conftest.err conftest.$ac_objext \
19286       conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19288 fi
19289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19290 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19291 if test $ac_cv_lib_gcc___alloca = yes; then
19292
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE___ALLOCA 1
19295 _ACEOF
19296
19297 fi
19298
19299   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19300 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19301 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19302   echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304   ac_check_lib_save_LIBS=$LIBS
19305 LIBS="-lgcc  $LIBS"
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312
19313 /* Override any GCC internal prototype to avoid an error.
19314    Use char because int might match the return type of a GCC
19315    builtin and then its argument prototype would still apply.  */
19316 #ifdef __cplusplus
19317 extern "C"
19318 #endif
19319 char __chkstk ();
19320 int
19321 main ()
19322 {
19323 return __chkstk ();
19324   ;
19325   return 0;
19326 }
19327 _ACEOF
19328 rm -f conftest.$ac_objext conftest$ac_exeext
19329 if { (ac_try="$ac_link"
19330 case "(($ac_try" in
19331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332   *) ac_try_echo=$ac_try;;
19333 esac
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335   (eval "$ac_link") 2>conftest.er1
19336   ac_status=$?
19337   grep -v '^ *+' conftest.er1 >conftest.err
19338   rm -f conftest.er1
19339   cat conftest.err >&5
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); } &&
19342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19343   { (case "(($ac_try" in
19344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345   *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348   (eval "$ac_try") 2>&5
19349   ac_status=$?
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); }; } &&
19352          { ac_try='test -s conftest$ac_exeext'
19353   { (case "(($ac_try" in
19354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355   *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358   (eval "$ac_try") 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; }; then
19362   ac_cv_lib_gcc___chkstk=yes
19363 else
19364   echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367         ac_cv_lib_gcc___chkstk=no
19368 fi
19369
19370 rm -f core conftest.err conftest.$ac_objext \
19371       conftest$ac_exeext conftest.$ac_ext
19372 LIBS=$ac_check_lib_save_LIBS
19373 fi
19374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19375 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19376 if test $ac_cv_lib_gcc___chkstk = yes; then
19377
19378 cat >>confdefs.h <<\_ACEOF
19379 #define HAVE___CHKSTK 1
19380 _ACEOF
19381
19382 fi
19383
19384   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19385 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19386 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19387   echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389   ac_check_lib_save_LIBS=$LIBS
19390 LIBS="-lgcc  $LIBS"
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397
19398 /* Override any GCC internal prototype to avoid an error.
19399    Use char because int might match the return type of a GCC
19400    builtin and then its argument prototype would still apply.  */
19401 #ifdef __cplusplus
19402 extern "C"
19403 #endif
19404 char ___chkstk ();
19405 int
19406 main ()
19407 {
19408 return ___chkstk ();
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_link") 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428   { (case "(($ac_try" in
19429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430   *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433   (eval "$ac_try") 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }; } &&
19437          { ac_try='test -s conftest$ac_exeext'
19438   { (case "(($ac_try" in
19439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440   *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443   (eval "$ac_try") 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; }; then
19447   ac_cv_lib_gcc____chkstk=yes
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452         ac_cv_lib_gcc____chkstk=no
19453 fi
19454
19455 rm -f core conftest.err conftest.$ac_objext \
19456       conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19458 fi
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19460 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19461 if test $ac_cv_lib_gcc____chkstk = yes; then
19462
19463 cat >>confdefs.h <<\_ACEOF
19464 #define HAVE____CHKSTK 1
19465 _ACEOF
19466
19467 fi
19468
19469
19470   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19471 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19473   echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475   ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lgcc  $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 /* Override any GCC internal prototype to avoid an error.
19485    Use char because int might match the return type of a GCC
19486    builtin and then its argument prototype would still apply.  */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 char __ashldi3 ();
19491 int
19492 main ()
19493 {
19494 return __ashldi3 ();
19495   ;
19496   return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_link") 2>conftest.er1
19507   ac_status=$?
19508   grep -v '^ *+' conftest.er1 >conftest.err
19509   rm -f conftest.er1
19510   cat conftest.err >&5
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } &&
19513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19514   { (case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_try") 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; } &&
19523          { ac_try='test -s conftest$ac_exeext'
19524   { (case "(($ac_try" in
19525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526   *) ac_try_echo=$ac_try;;
19527 esac
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529   (eval "$ac_try") 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; }; then
19533   ac_cv_lib_gcc___ashldi3=yes
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538         ac_cv_lib_gcc___ashldi3=no
19539 fi
19540
19541 rm -f core conftest.err conftest.$ac_objext \
19542       conftest$ac_exeext conftest.$ac_ext
19543 LIBS=$ac_check_lib_save_LIBS
19544 fi
19545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19546 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19547 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE___ASHLDI3 1
19551 _ACEOF
19552
19553 fi
19554
19555   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19556 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19557 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19558   echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19560   ac_check_lib_save_LIBS=$LIBS
19561 LIBS="-lgcc  $LIBS"
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h.  */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h.  */
19568
19569 /* Override any GCC internal prototype to avoid an error.
19570    Use char because int might match the return type of a GCC
19571    builtin and then its argument prototype would still apply.  */
19572 #ifdef __cplusplus
19573 extern "C"
19574 #endif
19575 char __ashrdi3 ();
19576 int
19577 main ()
19578 {
19579 return __ashrdi3 ();
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 rm -f conftest.$ac_objext conftest$ac_exeext
19585 if { (ac_try="$ac_link"
19586 case "(($ac_try" in
19587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588   *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591   (eval "$ac_link") 2>conftest.er1
19592   ac_status=$?
19593   grep -v '^ *+' conftest.er1 >conftest.err
19594   rm -f conftest.er1
19595   cat conftest.err >&5
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); } &&
19598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19599   { (case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_try") 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; } &&
19608          { ac_try='test -s conftest$ac_exeext'
19609   { (case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_try") 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; }; then
19618   ac_cv_lib_gcc___ashrdi3=yes
19619 else
19620   echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623         ac_cv_lib_gcc___ashrdi3=no
19624 fi
19625
19626 rm -f core conftest.err conftest.$ac_objext \
19627       conftest$ac_exeext conftest.$ac_ext
19628 LIBS=$ac_check_lib_save_LIBS
19629 fi
19630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19631 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19632 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19633
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE___ASHRDI3 1
19636 _ACEOF
19637
19638 fi
19639
19640   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19641 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19642 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19643   echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645   ac_check_lib_save_LIBS=$LIBS
19646 LIBS="-lgcc  $LIBS"
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653
19654 /* Override any GCC internal prototype to avoid an error.
19655    Use char because int might match the return type of a GCC
19656    builtin and then its argument prototype would still apply.  */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char __divdi3 ();
19661 int
19662 main ()
19663 {
19664 return __divdi3 ();
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_link") 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } &&
19683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19684   { (case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_try") 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; } &&
19693          { ac_try='test -s conftest$ac_exeext'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703   ac_cv_lib_gcc___divdi3=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708         ac_cv_lib_gcc___divdi3=no
19709 fi
19710
19711 rm -f core conftest.err conftest.$ac_objext \
19712       conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19714 fi
19715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19716 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19717 if test $ac_cv_lib_gcc___divdi3 = yes; then
19718
19719 cat >>confdefs.h <<\_ACEOF
19720 #define HAVE___DIVDI3 1
19721 _ACEOF
19722
19723 fi
19724
19725   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19726 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19727 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-lgcc  $LIBS"
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738
19739 /* Override any GCC internal prototype to avoid an error.
19740    Use char because int might match the return type of a GCC
19741    builtin and then its argument prototype would still apply.  */
19742 #ifdef __cplusplus
19743 extern "C"
19744 #endif
19745 char __fixdfdi ();
19746 int
19747 main ()
19748 {
19749 return __fixdfdi ();
19750   ;
19751   return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (ac_try="$ac_link"
19756 case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_link") 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } &&
19768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19769   { (case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_try") 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; } &&
19778          { ac_try='test -s conftest$ac_exeext'
19779   { (case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_try") 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; }; then
19788   ac_cv_lib_gcc___fixdfdi=yes
19789 else
19790   echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793         ac_cv_lib_gcc___fixdfdi=no
19794 fi
19795
19796 rm -f core conftest.err conftest.$ac_objext \
19797       conftest$ac_exeext conftest.$ac_ext
19798 LIBS=$ac_check_lib_save_LIBS
19799 fi
19800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19801 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19802 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19803
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE___FIXDFDI 1
19806 _ACEOF
19807
19808 fi
19809
19810   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19811 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19812 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815   ac_check_lib_save_LIBS=$LIBS
19816 LIBS="-lgcc  $LIBS"
19817 cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h.  */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h.  */
19823
19824 /* Override any GCC internal prototype to avoid an error.
19825    Use char because int might match the return type of a GCC
19826    builtin and then its argument prototype would still apply.  */
19827 #ifdef __cplusplus
19828 extern "C"
19829 #endif
19830 char __fixsfdi ();
19831 int
19832 main ()
19833 {
19834 return __fixsfdi ();
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_link") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } &&
19853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19854   { (case "(($ac_try" in
19855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856   *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859   (eval "$ac_try") 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); }; } &&
19863          { ac_try='test -s conftest$ac_exeext'
19864   { (case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_try") 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; }; then
19873   ac_cv_lib_gcc___fixsfdi=yes
19874 else
19875   echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878         ac_cv_lib_gcc___fixsfdi=no
19879 fi
19880
19881 rm -f core conftest.err conftest.$ac_objext \
19882       conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19884 fi
19885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19886 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19887 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19888
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE___FIXSFDI 1
19891 _ACEOF
19892
19893 fi
19894
19895   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19896 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19897 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900   ac_check_lib_save_LIBS=$LIBS
19901 LIBS="-lgcc  $LIBS"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908
19909 /* Override any GCC internal prototype to avoid an error.
19910    Use char because int might match the return type of a GCC
19911    builtin and then its argument prototype would still apply.  */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 char __floatdidf ();
19916 int
19917 main ()
19918 {
19919 return __floatdidf ();
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928   *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931   (eval "$ac_link") 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939   { (case "(($ac_try" in
19940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941   *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944   (eval "$ac_try") 2>&5
19945   ac_status=$?
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); }; } &&
19948          { ac_try='test -s conftest$ac_exeext'
19949   { (case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_try") 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; }; then
19958   ac_cv_lib_gcc___floatdidf=yes
19959 else
19960   echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963         ac_cv_lib_gcc___floatdidf=no
19964 fi
19965
19966 rm -f core conftest.err conftest.$ac_objext \
19967       conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19969 fi
19970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19971 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19972 if test $ac_cv_lib_gcc___floatdidf = yes; then
19973
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE___FLOATDIDF 1
19976 _ACEOF
19977
19978 fi
19979
19980   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19981 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19982 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19983   echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985   ac_check_lib_save_LIBS=$LIBS
19986 LIBS="-lgcc  $LIBS"
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993
19994 /* Override any GCC internal prototype to avoid an error.
19995    Use char because int might match the return type of a GCC
19996    builtin and then its argument prototype would still apply.  */
19997 #ifdef __cplusplus
19998 extern "C"
19999 #endif
20000 char __lshrdi3 ();
20001 int
20002 main ()
20003 {
20004 return __lshrdi3 ();
20005   ;
20006   return 0;
20007 }
20008 _ACEOF
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (ac_try="$ac_link"
20011 case "(($ac_try" in
20012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013   *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016   (eval "$ac_link") 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } &&
20023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20024   { (case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_try") 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); }; } &&
20033          { ac_try='test -s conftest$ac_exeext'
20034   { (case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_try") 2>&5
20040   ac_status=$?
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); }; }; then
20043   ac_cv_lib_gcc___lshrdi3=yes
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048         ac_cv_lib_gcc___lshrdi3=no
20049 fi
20050
20051 rm -f core conftest.err conftest.$ac_objext \
20052       conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20054 fi
20055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20056 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20057 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20058
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE___LSHRDI3 1
20061 _ACEOF
20062
20063 fi
20064
20065   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20066 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20067 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070   ac_check_lib_save_LIBS=$LIBS
20071 LIBS="-lgcc  $LIBS"
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078
20079 /* Override any GCC internal prototype to avoid an error.
20080    Use char because int might match the return type of a GCC
20081    builtin and then its argument prototype would still apply.  */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char __moddi3 ();
20086 int
20087 main ()
20088 {
20089 return __moddi3 ();
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_link") 2>conftest.er1
20102   ac_status=$?
20103   grep -v '^ *+' conftest.er1 >conftest.err
20104   rm -f conftest.er1
20105   cat conftest.err >&5
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } &&
20108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20109   { (case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114   (eval "$ac_try") 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; } &&
20118          { ac_try='test -s conftest$ac_exeext'
20119   { (case "(($ac_try" in
20120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121   *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124   (eval "$ac_try") 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; }; then
20128   ac_cv_lib_gcc___moddi3=yes
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133         ac_cv_lib_gcc___moddi3=no
20134 fi
20135
20136 rm -f core conftest.err conftest.$ac_objext \
20137       conftest$ac_exeext conftest.$ac_ext
20138 LIBS=$ac_check_lib_save_LIBS
20139 fi
20140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20141 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20142 if test $ac_cv_lib_gcc___moddi3 = yes; then
20143
20144 cat >>confdefs.h <<\_ACEOF
20145 #define HAVE___MODDI3 1
20146 _ACEOF
20147
20148 fi
20149
20150   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20151 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20152 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20153   echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155   ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lgcc  $LIBS"
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163
20164 /* Override any GCC internal prototype to avoid an error.
20165    Use char because int might match the return type of a GCC
20166    builtin and then its argument prototype would still apply.  */
20167 #ifdef __cplusplus
20168 extern "C"
20169 #endif
20170 char __udivdi3 ();
20171 int
20172 main ()
20173 {
20174 return __udivdi3 ();
20175   ;
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_link") 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } &&
20193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194   { (case "(($ac_try" in
20195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196   *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199   (eval "$ac_try") 2>&5
20200   ac_status=$?
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); }; } &&
20203          { ac_try='test -s conftest$ac_exeext'
20204   { (case "(($ac_try" in
20205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206   *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209   (eval "$ac_try") 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); }; }; then
20213   ac_cv_lib_gcc___udivdi3=yes
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218         ac_cv_lib_gcc___udivdi3=no
20219 fi
20220
20221 rm -f core conftest.err conftest.$ac_objext \
20222       conftest$ac_exeext conftest.$ac_ext
20223 LIBS=$ac_check_lib_save_LIBS
20224 fi
20225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20226 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20227 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20228
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE___UDIVDI3 1
20231 _ACEOF
20232
20233 fi
20234
20235   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20236 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20237 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20238   echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240   ac_check_lib_save_LIBS=$LIBS
20241 LIBS="-lgcc  $LIBS"
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248
20249 /* Override any GCC internal prototype to avoid an error.
20250    Use char because int might match the return type of a GCC
20251    builtin and then its argument prototype would still apply.  */
20252 #ifdef __cplusplus
20253 extern "C"
20254 #endif
20255 char __umoddi3 ();
20256 int
20257 main ()
20258 {
20259 return __umoddi3 ();
20260   ;
20261   return 0;
20262 }
20263 _ACEOF
20264 rm -f conftest.$ac_objext conftest$ac_exeext
20265 if { (ac_try="$ac_link"
20266 case "(($ac_try" in
20267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268   *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271   (eval "$ac_link") 2>conftest.er1
20272   ac_status=$?
20273   grep -v '^ *+' conftest.er1 >conftest.err
20274   rm -f conftest.er1
20275   cat conftest.err >&5
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); } &&
20278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279   { (case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_try") 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; } &&
20288          { ac_try='test -s conftest$ac_exeext'
20289   { (case "(($ac_try" in
20290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291   *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294   (eval "$ac_try") 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   ac_cv_lib_gcc___umoddi3=yes
20299 else
20300   echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303         ac_cv_lib_gcc___umoddi3=no
20304 fi
20305
20306 rm -f core conftest.err conftest.$ac_objext \
20307       conftest$ac_exeext conftest.$ac_ext
20308 LIBS=$ac_check_lib_save_LIBS
20309 fi
20310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20311 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20312 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20313
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE___UMODDI3 1
20316 _ACEOF
20317
20318 fi
20319
20320
20321   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20322 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20323 if test "${ac_cv_lib_gcc___main+set}" = set; then
20324   echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326   ac_check_lib_save_LIBS=$LIBS
20327 LIBS="-lgcc  $LIBS"
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334
20335 /* Override any GCC internal prototype to avoid an error.
20336    Use char because int might match the return type of a GCC
20337    builtin and then its argument prototype would still apply.  */
20338 #ifdef __cplusplus
20339 extern "C"
20340 #endif
20341 char __main ();
20342 int
20343 main ()
20344 {
20345 return __main ();
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357   (eval "$ac_link") 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } &&
20364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20365   { (case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_try") 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); }; } &&
20374          { ac_try='test -s conftest$ac_exeext'
20375   { (case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_try") 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); }; }; then
20384   ac_cv_lib_gcc___main=yes
20385 else
20386   echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389         ac_cv_lib_gcc___main=no
20390 fi
20391
20392 rm -f core conftest.err conftest.$ac_objext \
20393       conftest$ac_exeext conftest.$ac_ext
20394 LIBS=$ac_check_lib_save_LIBS
20395 fi
20396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20397 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20398 if test $ac_cv_lib_gcc___main = yes; then
20399
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE___MAIN 1
20402 _ACEOF
20403
20404 fi
20405
20406   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20407 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20408 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   ac_check_lib_save_LIBS=$LIBS
20412 LIBS="-lgcc  $LIBS"
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419
20420 /* Override any GCC internal prototype to avoid an error.
20421    Use char because int might match the return type of a GCC
20422    builtin and then its argument prototype would still apply.  */
20423 #ifdef __cplusplus
20424 extern "C"
20425 #endif
20426 char __cmpdi2 ();
20427 int
20428 main ()
20429 {
20430 return __cmpdi2 ();
20431   ;
20432   return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext conftest$ac_exeext
20436 if { (ac_try="$ac_link"
20437 case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442   (eval "$ac_link") 2>conftest.er1
20443   ac_status=$?
20444   grep -v '^ *+' conftest.er1 >conftest.err
20445   rm -f conftest.er1
20446   cat conftest.err >&5
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); } &&
20449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20450   { (case "(($ac_try" in
20451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452   *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455   (eval "$ac_try") 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; } &&
20459          { ac_try='test -s conftest$ac_exeext'
20460   { (case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_try") 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; }; then
20469   ac_cv_lib_gcc___cmpdi2=yes
20470 else
20471   echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474         ac_cv_lib_gcc___cmpdi2=no
20475 fi
20476
20477 rm -f core conftest.err conftest.$ac_objext \
20478       conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20480 fi
20481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20482 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20483 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20484
20485 cat >>confdefs.h <<\_ACEOF
20486 #define HAVE___CMPDI2 1
20487 _ACEOF
20488
20489 fi
20490
20491 fi
20492
20493 if test "$llvm_cv_os_type" = "MingW" ; then
20494   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20495 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20496   cat >conftest.$ac_ext <<_ACEOF
20497
20498   /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503
20504     #include <windows.h>
20505     #include <imagehlp.h>
20506     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20507     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20508
20509
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515   *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518   (eval "$ac_compile") 2>conftest.er1
20519   ac_status=$?
20520   grep -v '^ *+' conftest.er1 >conftest.err
20521   rm -f conftest.er1
20522   cat conftest.err >&5
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } &&
20525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20526   { (case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531   (eval "$ac_try") 2>&5
20532   ac_status=$?
20533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); }; } &&
20535          { ac_try='test -s conftest.$ac_objext'
20536   { (case "(($ac_try" in
20537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538   *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541   (eval "$ac_try") 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; }; then
20545
20546   { echo "$as_me:$LINENO: result: yes" >&5
20547 echo "${ECHO_T}yes" >&6; }
20548   llvm_cv_win32_elmcb_pcstr="PCSTR"
20549
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554
20555   { echo "$as_me:$LINENO: result: no" >&5
20556 echo "${ECHO_T}no" >&6; }
20557   llvm_cv_win32_elmcb_pcstr="PSTR"
20558
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562
20563 cat >>confdefs.h <<_ACEOF
20564 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20565 _ACEOF
20566
20567 fi
20568
20569
20570
20571   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20572 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20573 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576
20577     ac_ext=cpp
20578 ac_cpp='$CXXCPP $CPPFLAGS'
20579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582
20583     cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 #include <math.h>
20590 int
20591 main ()
20592 {
20593 float f; isnan(f);
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602   *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605   (eval "$ac_compile") 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } &&
20612          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20613   { (case "(($ac_try" in
20614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615   *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618   (eval "$ac_try") 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; } &&
20622          { ac_try='test -s conftest.$ac_objext'
20623   { (case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_try") 2>&5
20629   ac_status=$?
20630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); }; }; then
20632   ac_cv_func_isnan_in_math_h=yes
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         ac_cv_func_isnan_in_math_h=no
20638 fi
20639
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641     ac_ext=c
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646
20647
20648 fi
20649 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20650 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20651
20652
20653 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20654
20655 cat >>confdefs.h <<\_ACEOF
20656 #define HAVE_ISNAN_IN_MATH_H 1
20657 _ACEOF
20658
20659 fi
20660
20661
20662   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20663 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20664 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667
20668     ac_ext=cpp
20669 ac_cpp='$CXXCPP $CPPFLAGS'
20670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20673
20674     cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 #include <cmath>
20681 int
20682 main ()
20683 {
20684 float f; isnan(f);
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693   *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696   (eval "$ac_compile") 2>conftest.er1
20697   ac_status=$?
20698   grep -v '^ *+' conftest.er1 >conftest.err
20699   rm -f conftest.er1
20700   cat conftest.err >&5
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } &&
20703          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20704   { (case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; } &&
20713          { ac_try='test -s conftest.$ac_objext'
20714   { (case "(($ac_try" in
20715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716   *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719   (eval "$ac_try") 2>&5
20720   ac_status=$?
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); }; }; then
20723   ac_cv_func_isnan_in_cmath=yes
20724 else
20725   echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728         ac_cv_func_isnan_in_cmath=no
20729 fi
20730
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732     ac_ext=c
20733 ac_cpp='$CPP $CPPFLAGS'
20734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20737
20738
20739 fi
20740 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20741 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20742
20743 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20744
20745 cat >>confdefs.h <<\_ACEOF
20746 #define HAVE_ISNAN_IN_CMATH 1
20747 _ACEOF
20748
20749 fi
20750
20751
20752   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20753 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20754 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20755   echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757
20758     ac_ext=cpp
20759 ac_cpp='$CXXCPP $CPPFLAGS'
20760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20763
20764     cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770 #include <cmath>
20771 int
20772 main ()
20773 {
20774 float f; std::isnan(f);
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783   *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786   (eval "$ac_compile") 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } &&
20793          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794   { (case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799   (eval "$ac_try") 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; } &&
20803          { ac_try='test -s conftest.$ac_objext'
20804   { (case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_try") 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; }; then
20813   ac_cv_func_std_isnan_in_cmath=yes
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818         ac_cv_func_std_isnan_in_cmath=no
20819 fi
20820
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822     ac_ext=c
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827
20828
20829 fi
20830 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20831 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20832
20833 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20834
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_STD_ISNAN_IN_CMATH 1
20837 _ACEOF
20838
20839 fi
20840
20841
20842
20843
20844   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20845 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20846 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849
20850     ac_ext=cpp
20851 ac_cpp='$CXXCPP $CPPFLAGS'
20852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20855
20856     cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h.  */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h.  */
20862 #include <math.h>
20863 int
20864 main ()
20865 {
20866 float f; isinf(f);
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875   *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878   (eval "$ac_compile") 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } &&
20885          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; } &&
20895          { ac_try='test -s conftest.$ac_objext'
20896   { (case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_try") 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); }; }; then
20905   ac_cv_func_isinf_in_math_h=yes
20906 else
20907   echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910         ac_cv_func_isinf_in_math_h=no
20911 fi
20912
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914     ac_ext=c
20915 ac_cpp='$CPP $CPPFLAGS'
20916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20919
20920
20921 fi
20922 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20923 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20924
20925 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20926
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_ISINF_IN_MATH_H 1
20929 _ACEOF
20930
20931 fi
20932
20933
20934   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20935 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20936 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20937   echo $ECHO_N "(cached) $ECHO_C" >&6
20938 else
20939
20940     ac_ext=cpp
20941 ac_cpp='$CXXCPP $CPPFLAGS'
20942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20945
20946     cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 #include <cmath>
20953 int
20954 main ()
20955 {
20956 float f; isinf(f);
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (ac_try="$ac_compile"
20963 case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_compile") 2>conftest.er1
20969   ac_status=$?
20970   grep -v '^ *+' conftest.er1 >conftest.err
20971   rm -f conftest.er1
20972   cat conftest.err >&5
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } &&
20975          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20976   { (case "(($ac_try" in
20977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978   *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981   (eval "$ac_try") 2>&5
20982   ac_status=$?
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); }; } &&
20985          { ac_try='test -s conftest.$ac_objext'
20986   { (case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_try") 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; }; then
20995   ac_cv_func_isinf_in_cmath=yes
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000         ac_cv_func_isinf_in_cmath=no
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004     ac_ext=c
21005 ac_cpp='$CPP $CPPFLAGS'
21006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21009
21010
21011 fi
21012 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21013 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21014
21015 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21016
21017 cat >>confdefs.h <<\_ACEOF
21018 #define HAVE_ISINF_IN_CMATH 1
21019 _ACEOF
21020
21021 fi
21022
21023
21024   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21025 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21026 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21027   echo $ECHO_N "(cached) $ECHO_C" >&6
21028 else
21029
21030     ac_ext=cpp
21031 ac_cpp='$CXXCPP $CPPFLAGS'
21032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
21036     cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #include <cmath>
21043 int
21044 main ()
21045 {
21046 float f; std::isinf(f);
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_compile") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } &&
21065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21066   { (case "(($ac_try" in
21067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068   *) ac_try_echo=$ac_try;;
21069 esac
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071   (eval "$ac_try") 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; } &&
21075          { ac_try='test -s conftest.$ac_objext'
21076   { (case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_try") 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   ac_cv_func_std_isinf_in_cmath=yes
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090         ac_cv_func_std_isinf_in_cmath=no
21091 fi
21092
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21094     ac_ext=c
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100
21101 fi
21102 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21103 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21104
21105 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21106
21107 cat >>confdefs.h <<\_ACEOF
21108 #define HAVE_STD_ISINF_IN_CMATH 1
21109 _ACEOF
21110
21111 fi
21112
21113
21114   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21115 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21116 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21117   echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119
21120     ac_ext=cpp
21121 ac_cpp='$CXXCPP $CPPFLAGS'
21122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21125
21126     cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132 #include <ieeefp.h>
21133 int
21134 main ()
21135 {
21136 float f; finite(f);
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (ac_try="$ac_compile"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148   (eval "$ac_compile") 2>conftest.er1
21149   ac_status=$?
21150   grep -v '^ *+' conftest.er1 >conftest.err
21151   rm -f conftest.er1
21152   cat conftest.err >&5
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); } &&
21155          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21156   { (case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_try") 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; } &&
21165          { ac_try='test -s conftest.$ac_objext'
21166   { (case "(($ac_try" in
21167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168   *) ac_try_echo=$ac_try;;
21169 esac
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171   (eval "$ac_try") 2>&5
21172   ac_status=$?
21173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174   (exit $ac_status); }; }; then
21175   ac_cv_func_finite_in_ieeefp_h=yes
21176 else
21177   echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21179
21180         ac_cv_func_finite_in_ieeefp_h=no
21181 fi
21182
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184     ac_ext=c
21185 ac_cpp='$CPP $CPPFLAGS'
21186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21189
21190
21191 fi
21192 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21193 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21194
21195 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21196
21197 cat >>confdefs.h <<\_ACEOF
21198 #define HAVE_FINITE_IN_IEEEFP_H 1
21199 _ACEOF
21200
21201 fi
21202
21203
21204
21205 if test "$llvm_cv_platform_type" = "Unix" ; then
21206
21207
21208 for ac_header in stdlib.h unistd.h
21209 do
21210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 fi
21217 ac_res=`eval echo '${'$as_ac_Header'}'`
21218                { echo "$as_me:$LINENO: result: $ac_res" >&5
21219 echo "${ECHO_T}$ac_res" >&6; }
21220 else
21221   # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h.  */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h.  */
21230 $ac_includes_default
21231 #include <$ac_header>
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237   *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240   (eval "$ac_compile") 2>conftest.er1
21241   ac_status=$?
21242   grep -v '^ *+' conftest.er1 >conftest.err
21243   rm -f conftest.er1
21244   cat conftest.err >&5
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); } &&
21247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21248   { (case "(($ac_try" in
21249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250   *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253   (eval "$ac_try") 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; } &&
21257          { ac_try='test -s conftest.$ac_objext'
21258   { (case "(($ac_try" in
21259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260   *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263   (eval "$ac_try") 2>&5
21264   ac_status=$?
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); }; }; then
21267   ac_header_compiler=yes
21268 else
21269   echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272         ac_header_compiler=no
21273 fi
21274
21275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21277 echo "${ECHO_T}$ac_header_compiler" >&6; }
21278
21279 # Is the header present?
21280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21282 cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 #include <$ac_header>
21289 _ACEOF
21290 if { (ac_try="$ac_cpp conftest.$ac_ext"
21291 case "(($ac_try" in
21292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293   *) ac_try_echo=$ac_try;;
21294 esac
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21297   ac_status=$?
21298   grep -v '^ *+' conftest.er1 >conftest.err
21299   rm -f conftest.er1
21300   cat conftest.err >&5
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); } >/dev/null; then
21303   if test -s conftest.err; then
21304     ac_cpp_err=$ac_c_preproc_warn_flag
21305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21306   else
21307     ac_cpp_err=
21308   fi
21309 else
21310   ac_cpp_err=yes
21311 fi
21312 if test -z "$ac_cpp_err"; then
21313   ac_header_preproc=yes
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318   ac_header_preproc=no
21319 fi
21320
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21324
21325 # So?  What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21327   yes:no: )
21328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21332     ac_header_preproc=yes
21333     ;;
21334   no:yes:* )
21335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21347     ( cat <<\_ASBOX
21348 ## ------------------------------------ ##
21349 ## Report this to http://llvm.org/bugs/ ##
21350 ## ------------------------------------ ##
21351 _ASBOX
21352      ) | sed "s/^/$as_me: WARNING:     /" >&2
21353     ;;
21354 esac
21355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21358   echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360   eval "$as_ac_Header=\$ac_header_preproc"
21361 fi
21362 ac_res=`eval echo '${'$as_ac_Header'}'`
21363                { echo "$as_me:$LINENO: result: $ac_res" >&5
21364 echo "${ECHO_T}$ac_res" >&6; }
21365
21366 fi
21367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21368   cat >>confdefs.h <<_ACEOF
21369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21370 _ACEOF
21371
21372 fi
21373
21374 done
21375
21376
21377 for ac_func in getpagesize
21378 do
21379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21383   echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385   cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21393 #define $ac_func innocuous_$ac_func
21394
21395 /* System header to define __stub macros and hopefully few prototypes,
21396     which can conflict with char $ac_func (); below.
21397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21398     <limits.h> exists even on freestanding compilers.  */
21399
21400 #ifdef __STDC__
21401 # include <limits.h>
21402 #else
21403 # include <assert.h>
21404 #endif
21405
21406 #undef $ac_func
21407
21408 /* Override any GCC internal prototype to avoid an error.
21409    Use char because int might match the return type of a GCC
21410    builtin and then its argument prototype would still apply.  */
21411 #ifdef __cplusplus
21412 extern "C"
21413 #endif
21414 char $ac_func ();
21415 /* The GNU C library defines this for functions which it implements
21416     to always fail with ENOSYS.  Some functions are actually named
21417     something starting with __ and the normal name is an alias.  */
21418 #if defined __stub_$ac_func || defined __stub___$ac_func
21419 choke me
21420 #endif
21421
21422 int
21423 main ()
21424 {
21425 return $ac_func ();
21426   ;
21427   return 0;
21428 }
21429 _ACEOF
21430 rm -f conftest.$ac_objext conftest$ac_exeext
21431 if { (ac_try="$ac_link"
21432 case "(($ac_try" in
21433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434   *) ac_try_echo=$ac_try;;
21435 esac
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437   (eval "$ac_link") 2>conftest.er1
21438   ac_status=$?
21439   grep -v '^ *+' conftest.er1 >conftest.err
21440   rm -f conftest.er1
21441   cat conftest.err >&5
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } &&
21444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21445   { (case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450   (eval "$ac_try") 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; } &&
21454          { ac_try='test -s conftest$ac_exeext'
21455   { (case "(($ac_try" in
21456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457   *) ac_try_echo=$ac_try;;
21458 esac
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460   (eval "$ac_try") 2>&5
21461   ac_status=$?
21462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463   (exit $ac_status); }; }; then
21464   eval "$as_ac_var=yes"
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         eval "$as_ac_var=no"
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext \
21473       conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 ac_res=`eval echo '${'$as_ac_var'}'`
21476                { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_var'}'` = yes; then
21479   cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21481 _ACEOF
21482
21483 fi
21484 done
21485
21486 { echo "$as_me:$LINENO: checking for working mmap" >&5
21487 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21488 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21489   echo $ECHO_N "(cached) $ECHO_C" >&6
21490 else
21491   if test "$cross_compiling" = yes; then
21492   ac_cv_func_mmap_fixed_mapped=no
21493 else
21494   cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500 $ac_includes_default
21501 /* malloc might have been renamed as rpl_malloc. */
21502 #undef malloc
21503
21504 /* Thanks to Mike Haertel and Jim Avera for this test.
21505    Here is a matrix of mmap possibilities:
21506         mmap private not fixed
21507         mmap private fixed at somewhere currently unmapped
21508         mmap private fixed at somewhere already mapped
21509         mmap shared not fixed
21510         mmap shared fixed at somewhere currently unmapped
21511         mmap shared fixed at somewhere already mapped
21512    For private mappings, we should verify that changes cannot be read()
21513    back from the file, nor mmap's back from the file at a different
21514    address.  (There have been systems where private was not correctly
21515    implemented like the infamous i386 svr4.0, and systems where the
21516    VM page cache was not coherent with the file system buffer cache
21517    like early versions of FreeBSD and possibly contemporary NetBSD.)
21518    For shared mappings, we should conversely verify that changes get
21519    propagated back to all the places they're supposed to be.
21520
21521    Grep wants private fixed already mapped.
21522    The main things grep needs to know about mmap are:
21523    * does it exist and is it safe to write into the mmap'd area
21524    * how to use it (BSD variants)  */
21525
21526 #include <fcntl.h>
21527 #include <sys/mman.h>
21528
21529 #if !STDC_HEADERS && !HAVE_STDLIB_H
21530 char *malloc ();
21531 #endif
21532
21533 /* This mess was copied from the GNU getpagesize.h.  */
21534 #if !HAVE_GETPAGESIZE
21535 /* Assume that all systems that can run configure have sys/param.h.  */
21536 # if !HAVE_SYS_PARAM_H
21537 #  define HAVE_SYS_PARAM_H 1
21538 # endif
21539
21540 # ifdef _SC_PAGESIZE
21541 #  define getpagesize() sysconf(_SC_PAGESIZE)
21542 # else /* no _SC_PAGESIZE */
21543 #  if HAVE_SYS_PARAM_H
21544 #   include <sys/param.h>
21545 #   ifdef EXEC_PAGESIZE
21546 #    define getpagesize() EXEC_PAGESIZE
21547 #   else /* no EXEC_PAGESIZE */
21548 #    ifdef NBPG
21549 #     define getpagesize() NBPG * CLSIZE
21550 #     ifndef CLSIZE
21551 #      define CLSIZE 1
21552 #     endif /* no CLSIZE */
21553 #    else /* no NBPG */
21554 #     ifdef NBPC
21555 #      define getpagesize() NBPC
21556 #     else /* no NBPC */
21557 #      ifdef PAGESIZE
21558 #       define getpagesize() PAGESIZE
21559 #      endif /* PAGESIZE */
21560 #     endif /* no NBPC */
21561 #    endif /* no NBPG */
21562 #   endif /* no EXEC_PAGESIZE */
21563 #  else /* no HAVE_SYS_PARAM_H */
21564 #   define getpagesize() 8192   /* punt totally */
21565 #  endif /* no HAVE_SYS_PARAM_H */
21566 # endif /* no _SC_PAGESIZE */
21567
21568 #endif /* no HAVE_GETPAGESIZE */
21569
21570 int
21571 main ()
21572 {
21573   char *data, *data2, *data3;
21574   int i, pagesize;
21575   int fd;
21576
21577   pagesize = getpagesize ();
21578
21579   /* First, make a file with some known garbage in it. */
21580   data = (char *) malloc (pagesize);
21581   if (!data)
21582     return 1;
21583   for (i = 0; i < pagesize; ++i)
21584     *(data + i) = rand ();
21585   umask (0);
21586   fd = creat ("conftest.mmap", 0600);
21587   if (fd < 0)
21588     return 1;
21589   if (write (fd, data, pagesize) != pagesize)
21590     return 1;
21591   close (fd);
21592
21593   /* Next, try to mmap the file at a fixed address which already has
21594      something else allocated at it.  If we can, also make sure that
21595      we see the same garbage.  */
21596   fd = open ("conftest.mmap", O_RDWR);
21597   if (fd < 0)
21598     return 1;
21599   data2 = (char *) malloc (2 * pagesize);
21600   if (!data2)
21601     return 1;
21602   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21603   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21604                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21605     return 1;
21606   for (i = 0; i < pagesize; ++i)
21607     if (*(data + i) != *(data2 + i))
21608       return 1;
21609
21610   /* Finally, make sure that changes to the mapped area do not
21611      percolate back to the file as seen by read().  (This is a bug on
21612      some variants of i386 svr4.0.)  */
21613   for (i = 0; i < pagesize; ++i)
21614     *(data2 + i) = *(data2 + i) + 1;
21615   data3 = (char *) malloc (pagesize);
21616   if (!data3)
21617     return 1;
21618   if (read (fd, data3, pagesize) != pagesize)
21619     return 1;
21620   for (i = 0; i < pagesize; ++i)
21621     if (*(data + i) != *(data3 + i))
21622       return 1;
21623   close (fd);
21624   return 0;
21625 }
21626 _ACEOF
21627 rm -f conftest$ac_exeext
21628 if { (ac_try="$ac_link"
21629 case "(($ac_try" in
21630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631   *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634   (eval "$ac_link") 2>&5
21635   ac_status=$?
21636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638   { (case "(($ac_try" in
21639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640   *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643   (eval "$ac_try") 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; }; then
21647   ac_cv_func_mmap_fixed_mapped=yes
21648 else
21649   echo "$as_me: program exited with status $ac_status" >&5
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ( exit $ac_status )
21654 ac_cv_func_mmap_fixed_mapped=no
21655 fi
21656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 fi
21658
21659
21660 fi
21661 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21662 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21663 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21664
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_MMAP 1
21667 _ACEOF
21668
21669 fi
21670 rm -f conftest.mmap
21671
21672   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21673 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21674 if test "${ac_cv_func_mmap_file+set}" = set; then
21675   echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677    ac_ext=c
21678 ac_cpp='$CPP $CPPFLAGS'
21679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21682
21683   if test "$cross_compiling" = yes; then
21684   ac_cv_func_mmap_file=no
21685 else
21686   cat >conftest.$ac_ext <<_ACEOF
21687
21688     /* confdefs.h.  */
21689 _ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h.  */
21693
21694 #include <sys/types.h>
21695 #include <sys/mman.h>
21696 #include <fcntl.h>
21697
21698 int
21699 main ()
21700 {
21701
21702   int fd;
21703   fd = creat ("foo",0777);
21704   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21705   unlink ("foo");
21706   return (fd != (int) MAP_FAILED);
21707   ;
21708   return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest$ac_exeext
21712 if { (ac_try="$ac_link"
21713 case "(($ac_try" in
21714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715   *) ac_try_echo=$ac_try;;
21716 esac
21717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718   (eval "$ac_link") 2>&5
21719   ac_status=$?
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21722   { (case "(($ac_try" in
21723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724   *) ac_try_echo=$ac_try;;
21725 esac
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727   (eval "$ac_try") 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); }; }; then
21731   ac_cv_func_mmap_file=yes
21732 else
21733   echo "$as_me: program exited with status $ac_status" >&5
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737 ( exit $ac_status )
21738 ac_cv_func_mmap_file=no
21739 fi
21740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21741 fi
21742
21743
21744   ac_ext=c
21745 ac_cpp='$CPP $CPPFLAGS'
21746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21749
21750
21751 fi
21752 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21753 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21754 if test "$ac_cv_func_mmap_file" = yes; then
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define HAVE_MMAP_FILE
21758 _ACEOF
21759
21760    MMAP_FILE=yes
21761
21762 fi
21763
21764   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21765 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21766 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21767   echo $ECHO_N "(cached) $ECHO_C" >&6
21768 else
21769   if test "$llvm_cv_os_type" = "Interix" ; then
21770    ac_cv_need_dev_zero_for_mmap=yes
21771  else
21772    ac_cv_need_dev_zero_for_mmap=no
21773  fi
21774
21775 fi
21776 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21777 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21778 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21779
21780 cat >>confdefs.h <<\_ACEOF
21781 #define NEED_DEV_ZERO_FOR_MMAP 1
21782 _ACEOF
21783
21784 fi
21785
21786   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21787   then
21788     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21789 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21790   fi
21791   if test "$ac_cv_func_mmap_file" = "no"
21792   then
21793     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21794 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21795   fi
21796 fi
21797
21798 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21799 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21800 ac_ext=cpp
21801 ac_cpp='$CXXCPP $CPPFLAGS'
21802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21805
21806 cat >conftest.$ac_ext <<_ACEOF
21807
21808   /* confdefs.h.  */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h.  */
21813
21814     int main() {
21815       volatile unsigned long val = 1;
21816       __sync_synchronize();
21817       __sync_val_compare_and_swap(&val, 1, 0);
21818       __sync_add_and_fetch(&val, 1);
21819       __sync_sub_and_fetch(&val, 1);
21820       return 0;
21821     }
21822
21823
21824 _ACEOF
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (ac_try="$ac_link"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_link") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } &&
21839          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21840   { (case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_try") 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; } &&
21849          { ac_try='test -s conftest$ac_exeext'
21850   { (case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_try") 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859
21860   { echo "$as_me:$LINENO: result: yes" >&5
21861 echo "${ECHO_T}yes" >&6; }
21862
21863 cat >>confdefs.h <<\_ACEOF
21864 #define LLVM_HAS_ATOMICS 1
21865 _ACEOF
21866
21867
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872
21873   { echo "$as_me:$LINENO: result: no" >&5
21874 echo "${ECHO_T}no" >&6; }
21875
21876 cat >>confdefs.h <<\_ACEOF
21877 #define LLVM_HAS_ATOMICS 0
21878 _ACEOF
21879
21880   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21881 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21882
21883 fi
21884
21885 rm -f core conftest.err conftest.$ac_objext \
21886       conftest$ac_exeext conftest.$ac_ext
21887 ac_ext=c
21888 ac_cpp='$CPP $CPPFLAGS'
21889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21892
21893
21894
21895 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21896   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21897 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21898 if test "${llvm_cv_linux_mixed+set}" = set; then
21899   echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901    ac_ext=c
21902 ac_cpp='$CPP $CPPFLAGS'
21903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21906
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 #ifndef __x86_64__
21914        error: Not x86-64 even if uname says so!
21915       #endif
21916
21917 int
21918 main ()
21919 {
21920
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 rm -f conftest.$ac_objext
21926 if { (ac_try="$ac_compile"
21927 case "(($ac_try" in
21928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929   *) ac_try_echo=$ac_try;;
21930 esac
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932   (eval "$ac_compile") 2>conftest.er1
21933   ac_status=$?
21934   grep -v '^ *+' conftest.er1 >conftest.err
21935   rm -f conftest.er1
21936   cat conftest.err >&5
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } &&
21939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21940   { (case "(($ac_try" in
21941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942   *) ac_try_echo=$ac_try;;
21943 esac
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945   (eval "$ac_try") 2>&5
21946   ac_status=$?
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); }; } &&
21949          { ac_try='test -s conftest.$ac_objext'
21950   { (case "(($ac_try" in
21951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952   *) ac_try_echo=$ac_try;;
21953 esac
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955   (eval "$ac_try") 2>&5
21956   ac_status=$?
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); }; }; then
21959   llvm_cv_linux_mixed=no
21960 else
21961   echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21963
21964         llvm_cv_linux_mixed=yes
21965 fi
21966
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968   ac_ext=c
21969 ac_cpp='$CPP $CPPFLAGS'
21970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21973
21974
21975 fi
21976 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21977 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21978
21979   if test "$llvm_cv_linux_mixed" = "yes"; then
21980     llvm_cv_target_arch="x86"
21981     ARCH="x86"
21982   fi
21983 fi
21984
21985
21986 for ac_func in __dso_handle
21987 do
21988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21992   echo $ECHO_N "(cached) $ECHO_C" >&6
21993 else
21994   cat >conftest.$ac_ext <<_ACEOF
21995 /* confdefs.h.  */
21996 _ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h.  */
22000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22002 #define $ac_func innocuous_$ac_func
22003
22004 /* System header to define __stub macros and hopefully few prototypes,
22005     which can conflict with char $ac_func (); below.
22006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22007     <limits.h> exists even on freestanding compilers.  */
22008
22009 #ifdef __STDC__
22010 # include <limits.h>
22011 #else
22012 # include <assert.h>
22013 #endif
22014
22015 #undef $ac_func
22016
22017 /* Override any GCC internal prototype to avoid an error.
22018    Use char because int might match the return type of a GCC
22019    builtin and then its argument prototype would still apply.  */
22020 #ifdef __cplusplus
22021 extern "C"
22022 #endif
22023 char $ac_func ();
22024 /* The GNU C library defines this for functions which it implements
22025     to always fail with ENOSYS.  Some functions are actually named
22026     something starting with __ and the normal name is an alias.  */
22027 #if defined __stub_$ac_func || defined __stub___$ac_func
22028 choke me
22029 #endif
22030
22031 int
22032 main ()
22033 {
22034 return $ac_func ();
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_link") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } &&
22053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054   { (case "(($ac_try" in
22055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056   *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059   (eval "$ac_try") 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; } &&
22063          { ac_try='test -s conftest$ac_exeext'
22064   { (case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_try") 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); }; }; then
22073   eval "$as_ac_var=yes"
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         eval "$as_ac_var=no"
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext \
22082       conftest$ac_exeext conftest.$ac_ext
22083 fi
22084 ac_res=`eval echo '${'$as_ac_var'}'`
22085                { echo "$as_me:$LINENO: result: $ac_res" >&5
22086 echo "${ECHO_T}$ac_res" >&6; }
22087 if test `eval echo '${'$as_ac_var'}'` = yes; then
22088   cat >>confdefs.h <<_ACEOF
22089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22090 _ACEOF
22091
22092 fi
22093 done
22094
22095
22096 SHLIBEXT=$libltdl_cv_shlibext
22097
22098
22099 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22100
22101
22102 if test "${prefix}" = "NONE" ; then
22103   prefix="/usr/local"
22104 fi
22105 eval LLVM_PREFIX="${prefix}";
22106 eval LLVM_BINDIR="${prefix}/bin";
22107 eval LLVM_DATADIR="${prefix}/share/llvm";
22108 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22109 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22110 eval LLVM_INCLUDEDIR="${prefix}/include";
22111 eval LLVM_INFODIR="${prefix}/info";
22112 eval LLVM_MANDIR="${prefix}/man";
22113 LLVM_CONFIGTIME=`date`
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22125   LLVM_CONFIGTIME="(timestamp not enabled)"
22126 fi
22127
22128
22129 cat >>confdefs.h <<_ACEOF
22130 #define LLVM_PREFIX "$LLVM_PREFIX"
22131 _ACEOF
22132
22133
22134 cat >>confdefs.h <<_ACEOF
22135 #define LLVM_BINDIR "$LLVM_BINDIR"
22136 _ACEOF
22137
22138
22139 cat >>confdefs.h <<_ACEOF
22140 #define LLVM_DATADIR "$LLVM_DATADIR"
22141 _ACEOF
22142
22143
22144 cat >>confdefs.h <<_ACEOF
22145 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22146 _ACEOF
22147
22148
22149 cat >>confdefs.h <<_ACEOF
22150 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22151 _ACEOF
22152
22153
22154 cat >>confdefs.h <<_ACEOF
22155 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22156 _ACEOF
22157
22158
22159 cat >>confdefs.h <<_ACEOF
22160 #define LLVM_INFODIR "$LLVM_INFODIR"
22161 _ACEOF
22162
22163
22164 cat >>confdefs.h <<_ACEOF
22165 #define LLVM_MANDIR "$LLVM_MANDIR"
22166 _ACEOF
22167
22168
22169 cat >>confdefs.h <<_ACEOF
22170 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22171 _ACEOF
22172
22173
22174 cat >>confdefs.h <<_ACEOF
22175 #define LLVM_HOST_TRIPLE "$host"
22176 _ACEOF
22177
22178
22179 cat >>confdefs.h <<_ACEOF
22180 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22181 _ACEOF
22182
22183
22184 if test "$BINDINGS_TO_BUILD" = auto ; then
22185   BINDINGS_TO_BUILD=""
22186   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22187     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22188   fi
22189 fi
22190 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22191
22192
22193 ALL_BINDINGS=ocaml
22194
22195
22196 binding_prereqs_failed=0
22197 for a_binding in $BINDINGS_TO_BUILD ; do
22198   case "$a_binding" in
22199   ocaml)
22200     if test "x$OCAMLC" = x ; then
22201       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22202 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22203       binding_prereqs_failed=1
22204     fi
22205     if test "x$OCAMLDEP" = x ; then
22206       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22207 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22208       binding_prereqs_failed=1
22209     fi
22210     if test "x$OCAMLOPT" = x ; then
22211       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22212 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22213           fi
22214     if test "x$with_ocaml_libdir" != xauto ; then
22215       OCAML_LIBDIR=$with_ocaml_libdir
22216
22217     else
22218       ocaml_stdlib="`"$OCAMLC" -where`"
22219       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22220       then
22221         # ocaml stdlib is beneath our prefix; use stdlib
22222         OCAML_LIBDIR=$ocaml_stdlib
22223
22224       else
22225         # ocaml stdlib is outside our prefix; use libdir/ocaml
22226         OCAML_LIBDIR=${prefix}/lib/ocaml
22227
22228       fi
22229     fi
22230     ;;
22231   esac
22232 done
22233 if test "$binding_prereqs_failed" = 1 ; then
22234   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22235 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22236    { (exit 1); exit 1; }; }
22237 fi
22238
22239 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22240 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22241 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244    ac_ext=cpp
22245 ac_cpp='$CXXCPP $CPPFLAGS'
22246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22249
22250   oldcxxflags="$CXXFLAGS"
22251   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22252   cat >conftest.$ac_ext <<_ACEOF
22253 /* confdefs.h.  */
22254 _ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h.  */
22258 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22259 int
22260 main ()
22261 {
22262 X<int>().f();
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_compile") 2>conftest.er1
22275   ac_status=$?
22276   grep -v '^ *+' conftest.er1 >conftest.err
22277   rm -f conftest.er1
22278   cat conftest.err >&5
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); } &&
22281          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22282   { (case "(($ac_try" in
22283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284   *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287   (eval "$ac_try") 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); }; } &&
22291          { ac_try='test -s conftest.$ac_objext'
22292   { (case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297   (eval "$ac_try") 2>&5
22298   ac_status=$?
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); }; }; then
22301   llvm_cv_cxx_visibility_inlines_hidden=yes
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         llvm_cv_cxx_visibility_inlines_hidden=no
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310   CXXFLAGS="$oldcxxflags"
22311   ac_ext=c
22312 ac_cpp='$CPP $CPPFLAGS'
22313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22316
22317
22318 fi
22319 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22320 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22321 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22322   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22323
22324 else
22325   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22326
22327 fi
22328
22329
22330 if test "$llvm_cv_link_use_r" = "yes" ; then
22331   RPATH="-Wl,-R"
22332 else
22333   RPATH="-Wl,-rpath"
22334 fi
22335
22336
22337 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22338   RDYNAMIC="-rdynamic"
22339 else
22340   RDYNAMIC=""
22341 fi
22342
22343
22344
22345 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22346
22347
22348
22349
22350
22351
22352 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22353
22354 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22355
22356 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22357
22358 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22359
22360 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22361
22362
22363 ac_config_files="$ac_config_files Makefile.config"
22364
22365
22366 ac_config_files="$ac_config_files llvm.spec"
22367
22368
22369 ac_config_files="$ac_config_files docs/doxygen.cfg"
22370
22371
22372 if test "${clang_src_root}" = ""; then
22373   clang_src_root="$srcdir/tools/clang"
22374 fi
22375 if test -f ${clang_src_root}/README.txt; then
22376     configh="include/clang/Config/config.h"
22377   doxy="docs/doxygen.cfg"
22378   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22379
22380   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22381
22382 fi
22383
22384 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22385
22386
22387 test "x$program_prefix" = "xNONE" && program_prefix=""
22388
22389
22390
22391 ac_config_commands="$ac_config_commands setup"
22392
22393 ac_config_commands="$ac_config_commands Makefile"
22394
22395
22396 ac_config_commands="$ac_config_commands Makefile.common"
22397
22398
22399 ac_config_commands="$ac_config_commands examples/Makefile"
22400
22401
22402 ac_config_commands="$ac_config_commands lib/Makefile"
22403
22404
22405 ac_config_commands="$ac_config_commands test/Makefile"
22406
22407
22408 ac_config_commands="$ac_config_commands test/Makefile.tests"
22409
22410
22411 ac_config_commands="$ac_config_commands unittests/Makefile"
22412
22413
22414 ac_config_commands="$ac_config_commands tools/Makefile"
22415
22416
22417 ac_config_commands="$ac_config_commands utils/Makefile"
22418
22419
22420 ac_config_commands="$ac_config_commands projects/Makefile"
22421
22422
22423 ac_config_commands="$ac_config_commands bindings/Makefile"
22424
22425
22426 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22427
22428
22429
22430 cat >confcache <<\_ACEOF
22431 # This file is a shell script that caches the results of configure
22432 # tests run on this system so they can be shared between configure
22433 # scripts and configure runs, see configure's option --config-cache.
22434 # It is not useful on other systems.  If it contains results you don't
22435 # want to keep, you may remove or edit it.
22436 #
22437 # config.status only pays attention to the cache file if you give it
22438 # the --recheck option to rerun configure.
22439 #
22440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22442 # following values.
22443
22444 _ACEOF
22445
22446 # The following way of writing the cache mishandles newlines in values,
22447 # but we know of no workaround that is simple, portable, and efficient.
22448 # So, we kill variables containing newlines.
22449 # Ultrix sh set writes to stderr and can't be redirected directly,
22450 # and sets the high bit in the cache file unless we assign to the vars.
22451 (
22452   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22453     eval ac_val=\$$ac_var
22454     case $ac_val in #(
22455     *${as_nl}*)
22456       case $ac_var in #(
22457       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22459       esac
22460       case $ac_var in #(
22461       _ | IFS | as_nl) ;; #(
22462       *) $as_unset $ac_var ;;
22463       esac ;;
22464     esac
22465   done
22466
22467   (set) 2>&1 |
22468     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22469     *${as_nl}ac_space=\ *)
22470       # `set' does not quote correctly, so add quotes (double-quote
22471       # substitution turns \\\\ into \\, and sed turns \\ into \).
22472       sed -n \
22473         "s/'/'\\\\''/g;
22474           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22475       ;; #(
22476     *)
22477       # `set' quotes correctly as required by POSIX, so do not add quotes.
22478       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22479       ;;
22480     esac |
22481     sort
22482 ) |
22483   sed '
22484      /^ac_cv_env_/b end
22485      t clear
22486      :clear
22487      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22488      t end
22489      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22490      :end' >>confcache
22491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22492   if test -w "$cache_file"; then
22493     test "x$cache_file" != "x/dev/null" &&
22494       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22495 echo "$as_me: updating cache $cache_file" >&6;}
22496     cat confcache >$cache_file
22497   else
22498     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22499 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22500   fi
22501 fi
22502 rm -f confcache
22503
22504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22505 # Let make expand exec_prefix.
22506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22507
22508 DEFS=-DHAVE_CONFIG_H
22509
22510 ac_libobjs=
22511 ac_ltlibobjs=
22512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22513   # 1. Remove the extension, and $U if already installed.
22514   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22515   ac_i=`echo "$ac_i" | sed "$ac_script"`
22516   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22517   #    will be set to the directory where LIBOBJS objects are built.
22518   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22519   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22520 done
22521 LIBOBJS=$ac_libobjs
22522
22523 LTLIBOBJS=$ac_ltlibobjs
22524
22525
22526 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22527   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22528 Usually this means the macro was only invoked conditionally." >&5
22529 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22530 Usually this means the macro was only invoked conditionally." >&2;}
22531    { (exit 1); exit 1; }; }
22532 fi
22533 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22534   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22535 Usually this means the macro was only invoked conditionally." >&5
22536 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&2;}
22538    { (exit 1); exit 1; }; }
22539 fi
22540
22541 : ${CONFIG_STATUS=./config.status}
22542 ac_clean_files_save=$ac_clean_files
22543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22544 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22545 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22546 cat >$CONFIG_STATUS <<_ACEOF
22547 #! $SHELL
22548 # Generated by $as_me.
22549 # Run this file to recreate the current configuration.
22550 # Compiler output produced by configure, useful for debugging
22551 # configure, is in config.log if it exists.
22552
22553 debug=false
22554 ac_cs_recheck=false
22555 ac_cs_silent=false
22556 SHELL=\${CONFIG_SHELL-$SHELL}
22557 _ACEOF
22558
22559 cat >>$CONFIG_STATUS <<\_ACEOF
22560 ## --------------------- ##
22561 ## M4sh Initialization.  ##
22562 ## --------------------- ##
22563
22564 # Be Bourne compatible
22565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22566   emulate sh
22567   NULLCMD=:
22568   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22569   # is contrary to our usage.  Disable this feature.
22570   alias -g '${1+"$@"}'='"$@"'
22571   setopt NO_GLOB_SUBST
22572 else
22573   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22574 fi
22575 BIN_SH=xpg4; export BIN_SH # for Tru64
22576 DUALCASE=1; export DUALCASE # for MKS sh
22577
22578
22579 # PATH needs CR
22580 # Avoid depending upon Character Ranges.
22581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22584 as_cr_digits='0123456789'
22585 as_cr_alnum=$as_cr_Letters$as_cr_digits
22586
22587 # The user is always right.
22588 if test "${PATH_SEPARATOR+set}" != set; then
22589   echo "#! /bin/sh" >conf$$.sh
22590   echo  "exit 0"   >>conf$$.sh
22591   chmod +x conf$$.sh
22592   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22593     PATH_SEPARATOR=';'
22594   else
22595     PATH_SEPARATOR=:
22596   fi
22597   rm -f conf$$.sh
22598 fi
22599
22600 # Support unset when possible.
22601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22602   as_unset=unset
22603 else
22604   as_unset=false
22605 fi
22606
22607
22608 # IFS
22609 # We need space, tab and new line, in precisely that order.  Quoting is
22610 # there to prevent editors from complaining about space-tab.
22611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22612 # splitting by setting IFS to empty value.)
22613 as_nl='
22614 '
22615 IFS=" ""        $as_nl"
22616
22617 # Find who we are.  Look in the path if we contain no directory separator.
22618 case $0 in
22619   *[\\/]* ) as_myself=$0 ;;
22620   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22622 do
22623   IFS=$as_save_IFS
22624   test -z "$as_dir" && as_dir=.
22625   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22626 done
22627 IFS=$as_save_IFS
22628
22629      ;;
22630 esac
22631 # We did not find ourselves, most probably we were run as `sh COMMAND'
22632 # in which case we are not to be found in the path.
22633 if test "x$as_myself" = x; then
22634   as_myself=$0
22635 fi
22636 if test ! -f "$as_myself"; then
22637   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22638   { (exit 1); exit 1; }
22639 fi
22640
22641 # Work around bugs in pre-3.0 UWIN ksh.
22642 for as_var in ENV MAIL MAILPATH
22643 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22644 done
22645 PS1='$ '
22646 PS2='> '
22647 PS4='+ '
22648
22649 # NLS nuisances.
22650 for as_var in \
22651   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22652   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22653   LC_TELEPHONE LC_TIME
22654 do
22655   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22656     eval $as_var=C; export $as_var
22657   else
22658     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22659   fi
22660 done
22661
22662 # Required to use basename.
22663 if expr a : '\(a\)' >/dev/null 2>&1 &&
22664    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22665   as_expr=expr
22666 else
22667   as_expr=false
22668 fi
22669
22670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22671   as_basename=basename
22672 else
22673   as_basename=false
22674 fi
22675
22676
22677 # Name of the executable.
22678 as_me=`$as_basename -- "$0" ||
22679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22680          X"$0" : 'X\(//\)$' \| \
22681          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22682 echo X/"$0" |
22683     sed '/^.*\/\([^/][^/]*\)\/*$/{
22684             s//\1/
22685             q
22686           }
22687           /^X\/\(\/\/\)$/{
22688             s//\1/
22689             q
22690           }
22691           /^X\/\(\/\).*/{
22692             s//\1/
22693             q
22694           }
22695           s/.*/./; q'`
22696
22697 # CDPATH.
22698 $as_unset CDPATH
22699
22700
22701
22702   as_lineno_1=$LINENO
22703   as_lineno_2=$LINENO
22704   test "x$as_lineno_1" != "x$as_lineno_2" &&
22705   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22706
22707   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22708   # uniformly replaced by the line number.  The first 'sed' inserts a
22709   # line-number line after each line using $LINENO; the second 'sed'
22710   # does the real work.  The second script uses 'N' to pair each
22711   # line-number line with the line containing $LINENO, and appends
22712   # trailing '-' during substitution so that $LINENO is not a special
22713   # case at line end.
22714   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22715   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22716   # E. McMahon (1931-1989) for sed's syntax.  :-)
22717   sed -n '
22718     p
22719     /[$]LINENO/=
22720   ' <$as_myself |
22721     sed '
22722       s/[$]LINENO.*/&-/
22723       t lineno
22724       b
22725       :lineno
22726       N
22727       :loop
22728       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22729       t loop
22730       s/-\n.*//
22731     ' >$as_me.lineno &&
22732   chmod +x "$as_me.lineno" ||
22733     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22734    { (exit 1); exit 1; }; }
22735
22736   # Don't try to exec as it changes $[0], causing all sort of problems
22737   # (the dirname of $[0] is not the place where we might find the
22738   # original and so on.  Autoconf is especially sensitive to this).
22739   . "./$as_me.lineno"
22740   # Exit status is that of the last command.
22741   exit
22742 }
22743
22744
22745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22746   as_dirname=dirname
22747 else
22748   as_dirname=false
22749 fi
22750
22751 ECHO_C= ECHO_N= ECHO_T=
22752 case `echo -n x` in
22753 -n*)
22754   case `echo 'x\c'` in
22755   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22756   *)   ECHO_C='\c';;
22757   esac;;
22758 *)
22759   ECHO_N='-n';;
22760 esac
22761
22762 if expr a : '\(a\)' >/dev/null 2>&1 &&
22763    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22764   as_expr=expr
22765 else
22766   as_expr=false
22767 fi
22768
22769 rm -f conf$$ conf$$.exe conf$$.file
22770 if test -d conf$$.dir; then
22771   rm -f conf$$.dir/conf$$.file
22772 else
22773   rm -f conf$$.dir
22774   mkdir conf$$.dir
22775 fi
22776 echo >conf$$.file
22777 if ln -s conf$$.file conf$$ 2>/dev/null; then
22778   as_ln_s='ln -s'
22779   # ... but there are two gotchas:
22780   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22781   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22782   # In both cases, we have to default to `cp -p'.
22783   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22784     as_ln_s='cp -p'
22785 elif ln conf$$.file conf$$ 2>/dev/null; then
22786   as_ln_s=ln
22787 else
22788   as_ln_s='cp -p'
22789 fi
22790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22791 rmdir conf$$.dir 2>/dev/null
22792
22793 if mkdir -p . 2>/dev/null; then
22794   as_mkdir_p=:
22795 else
22796   test -d ./-p && rmdir ./-p
22797   as_mkdir_p=false
22798 fi
22799
22800 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22801 # systems may use methods other than mode bits to determine executability.
22802 cat >conf$$.file <<_ASEOF
22803 #! /bin/sh
22804 exit 0
22805 _ASEOF
22806 chmod +x conf$$.file
22807 if test -x conf$$.file >/dev/null 2>&1; then
22808   as_executable_p="test -x"
22809 else
22810   as_executable_p=:
22811 fi
22812 rm -f conf$$.file
22813
22814 # Sed expression to map a string onto a valid CPP name.
22815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22816
22817 # Sed expression to map a string onto a valid variable name.
22818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22819
22820
22821 exec 6>&1
22822
22823 # Save the log message, to keep $[0] and so on meaningful, and to
22824 # report actual input values of CONFIG_FILES etc. instead of their
22825 # values after options handling.
22826 ac_log="
22827 This file was extended by LLVM $as_me 3.5svn, which was
22828 generated by GNU Autoconf 2.60.  Invocation command line was
22829
22830   CONFIG_FILES    = $CONFIG_FILES
22831   CONFIG_HEADERS  = $CONFIG_HEADERS
22832   CONFIG_LINKS    = $CONFIG_LINKS
22833   CONFIG_COMMANDS = $CONFIG_COMMANDS
22834   $ $0 $@
22835
22836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22837 "
22838
22839 _ACEOF
22840
22841 cat >>$CONFIG_STATUS <<_ACEOF
22842 # Files that config.status was made for.
22843 config_files="$ac_config_files"
22844 config_headers="$ac_config_headers"
22845 config_commands="$ac_config_commands"
22846
22847 _ACEOF
22848
22849 cat >>$CONFIG_STATUS <<\_ACEOF
22850 ac_cs_usage="\
22851 \`$as_me' instantiates files from templates according to the
22852 current configuration.
22853
22854 Usage: $0 [OPTIONS] [FILE]...
22855
22856   -h, --help       print this help, then exit
22857   -V, --version    print version number, then exit
22858   -q, --quiet      do not print progress messages
22859   -d, --debug      don't remove temporary files
22860       --recheck    update $as_me by reconfiguring in the same conditions
22861   --file=FILE[:TEMPLATE]
22862                    instantiate the configuration file FILE
22863   --header=FILE[:TEMPLATE]
22864                    instantiate the configuration header FILE
22865
22866 Configuration files:
22867 $config_files
22868
22869 Configuration headers:
22870 $config_headers
22871
22872 Configuration commands:
22873 $config_commands
22874
22875 Report bugs to <bug-autoconf@gnu.org>."
22876
22877 _ACEOF
22878 cat >>$CONFIG_STATUS <<_ACEOF
22879 ac_cs_version="\\
22880 LLVM config.status 3.5svn
22881 configured by $0, generated by GNU Autoconf 2.60,
22882   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22883
22884 Copyright (C) 2006 Free Software Foundation, Inc.
22885 This config.status script is free software; the Free Software Foundation
22886 gives unlimited permission to copy, distribute and modify it."
22887
22888 ac_pwd='$ac_pwd'
22889 srcdir='$srcdir'
22890 INSTALL='$INSTALL'
22891 _ACEOF
22892
22893 cat >>$CONFIG_STATUS <<\_ACEOF
22894 # If no file are specified by the user, then we need to provide default
22895 # value.  By we need to know if files were specified by the user.
22896 ac_need_defaults=:
22897 while test $# != 0
22898 do
22899   case $1 in
22900   --*=*)
22901     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22902     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22903     ac_shift=:
22904     ;;
22905   *)
22906     ac_option=$1
22907     ac_optarg=$2
22908     ac_shift=shift
22909     ;;
22910   esac
22911
22912   case $ac_option in
22913   # Handling of the options.
22914   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22915     ac_cs_recheck=: ;;
22916   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22917     echo "$ac_cs_version"; exit ;;
22918   --debug | --debu | --deb | --de | --d | -d )
22919     debug=: ;;
22920   --file | --fil | --fi | --f )
22921     $ac_shift
22922     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22923     ac_need_defaults=false;;
22924   --header | --heade | --head | --hea )
22925     $ac_shift
22926     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22927     ac_need_defaults=false;;
22928   --he | --h)
22929     # Conflict between --help and --header
22930     { echo "$as_me: error: ambiguous option: $1
22931 Try \`$0 --help' for more information." >&2
22932    { (exit 1); exit 1; }; };;
22933   --help | --hel | -h )
22934     echo "$ac_cs_usage"; exit ;;
22935   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22936   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22937     ac_cs_silent=: ;;
22938
22939   # This is an error.
22940   -*) { echo "$as_me: error: unrecognized option: $1
22941 Try \`$0 --help' for more information." >&2
22942    { (exit 1); exit 1; }; } ;;
22943
22944   *) ac_config_targets="$ac_config_targets $1"
22945      ac_need_defaults=false ;;
22946
22947   esac
22948   shift
22949 done
22950
22951 ac_configure_extra_args=
22952
22953 if $ac_cs_silent; then
22954   exec 6>/dev/null
22955   ac_configure_extra_args="$ac_configure_extra_args --silent"
22956 fi
22957
22958 _ACEOF
22959 cat >>$CONFIG_STATUS <<_ACEOF
22960 if \$ac_cs_recheck; then
22961   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22962   CONFIG_SHELL=$SHELL
22963   export CONFIG_SHELL
22964   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22965 fi
22966
22967 _ACEOF
22968 cat >>$CONFIG_STATUS <<\_ACEOF
22969 exec 5>>config.log
22970 {
22971   echo
22972   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22973 ## Running $as_me. ##
22974 _ASBOX
22975   echo "$ac_log"
22976 } >&5
22977
22978 _ACEOF
22979 cat >>$CONFIG_STATUS <<_ACEOF
22980 #
22981 # INIT-COMMANDS
22982 #
22983 llvm_src="${srcdir}"
22984
22985 _ACEOF
22986
22987 cat >>$CONFIG_STATUS <<\_ACEOF
22988
22989 # Handling of arguments.
22990 for ac_config_target in $ac_config_targets
22991 do
22992   case $ac_config_target in
22993     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22994     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22995     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22996     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22997     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22998     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22999     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23000     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23001     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23002     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23003     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23004     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23005     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23006     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23007     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23008     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23009     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23010     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23011     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23012     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23013     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23014     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23015     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23016     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23017     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23018     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23019
23020   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23021 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23022    { (exit 1); exit 1; }; };;
23023   esac
23024 done
23025
23026
23027 # If the user did not use the arguments to specify the items to instantiate,
23028 # then the envvar interface is used.  Set only those that are not.
23029 # We use the long form for the default assignment because of an extremely
23030 # bizarre bug on SunOS 4.1.3.
23031 if $ac_need_defaults; then
23032   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23033   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23034   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23035 fi
23036
23037 # Have a temporary directory for convenience.  Make it in the build tree
23038 # simply because there is no reason against having it here, and in addition,
23039 # creating and moving files from /tmp can sometimes cause problems.
23040 # Hook for its removal unless debugging.
23041 # Note that there is a small window in which the directory will not be cleaned:
23042 # after its creation but before its name has been assigned to `$tmp'.
23043 $debug ||
23044 {
23045   tmp=
23046   trap 'exit_status=$?
23047   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23048 ' 0
23049   trap '{ (exit 1); exit 1; }' 1 2 13 15
23050 }
23051 # Create a (secure) tmp directory for tmp files.
23052
23053 {
23054   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23055   test -n "$tmp" && test -d "$tmp"
23056 }  ||
23057 {
23058   tmp=./conf$$-$RANDOM
23059   (umask 077 && mkdir "$tmp")
23060 } ||
23061 {
23062    echo "$me: cannot create a temporary directory in ." >&2
23063    { (exit 1); exit 1; }
23064 }
23065
23066 #
23067 # Set up the sed scripts for CONFIG_FILES section.
23068 #
23069
23070 # No need to generate the scripts if there are no CONFIG_FILES.
23071 # This happens for instance when ./config.status config.h
23072 if test -n "$CONFIG_FILES"; then
23073
23074 _ACEOF
23075
23076
23077
23078 ac_delim='%!_!# '
23079 for ac_last_try in false false false false false :; do
23080   cat >conf$$subs.sed <<_ACEOF
23081 SHELL!$SHELL$ac_delim
23082 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23083 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23084 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23085 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23086 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23087 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23088 exec_prefix!$exec_prefix$ac_delim
23089 prefix!$prefix$ac_delim
23090 program_transform_name!$program_transform_name$ac_delim
23091 bindir!$bindir$ac_delim
23092 sbindir!$sbindir$ac_delim
23093 libexecdir!$libexecdir$ac_delim
23094 datarootdir!$datarootdir$ac_delim
23095 datadir!$datadir$ac_delim
23096 sysconfdir!$sysconfdir$ac_delim
23097 sharedstatedir!$sharedstatedir$ac_delim
23098 localstatedir!$localstatedir$ac_delim
23099 includedir!$includedir$ac_delim
23100 oldincludedir!$oldincludedir$ac_delim
23101 docdir!$docdir$ac_delim
23102 infodir!$infodir$ac_delim
23103 htmldir!$htmldir$ac_delim
23104 dvidir!$dvidir$ac_delim
23105 pdfdir!$pdfdir$ac_delim
23106 psdir!$psdir$ac_delim
23107 libdir!$libdir$ac_delim
23108 localedir!$localedir$ac_delim
23109 mandir!$mandir$ac_delim
23110 DEFS!$DEFS$ac_delim
23111 ECHO_C!$ECHO_C$ac_delim
23112 ECHO_N!$ECHO_N$ac_delim
23113 ECHO_T!$ECHO_T$ac_delim
23114 LIBS!$LIBS$ac_delim
23115 build_alias!$build_alias$ac_delim
23116 host_alias!$host_alias$ac_delim
23117 target_alias!$target_alias$ac_delim
23118 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23119 CC!$CC$ac_delim
23120 CFLAGS!$CFLAGS$ac_delim
23121 LDFLAGS!$LDFLAGS$ac_delim
23122 CPPFLAGS!$CPPFLAGS$ac_delim
23123 ac_ct_CC!$ac_ct_CC$ac_delim
23124 EXEEXT!$EXEEXT$ac_delim
23125 OBJEXT!$OBJEXT$ac_delim
23126 CXX!$CXX$ac_delim
23127 CXXFLAGS!$CXXFLAGS$ac_delim
23128 ac_ct_CXX!$ac_ct_CXX$ac_delim
23129 CPP!$CPP$ac_delim
23130 subdirs!$subdirs$ac_delim
23131 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23132 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23133 build!$build$ac_delim
23134 build_cpu!$build_cpu$ac_delim
23135 build_vendor!$build_vendor$ac_delim
23136 build_os!$build_os$ac_delim
23137 host!$host$ac_delim
23138 host_cpu!$host_cpu$ac_delim
23139 host_vendor!$host_vendor$ac_delim
23140 host_os!$host_os$ac_delim
23141 target!$target$ac_delim
23142 target_cpu!$target_cpu$ac_delim
23143 target_vendor!$target_vendor$ac_delim
23144 target_os!$target_os$ac_delim
23145 OS!$OS$ac_delim
23146 HOST_OS!$HOST_OS$ac_delim
23147 TARGET_OS!$TARGET_OS$ac_delim
23148 LINKALL!$LINKALL$ac_delim
23149 NOLINKALL!$NOLINKALL$ac_delim
23150 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23151 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23152 ARCH!$ARCH$ac_delim
23153 HOST_ARCH!$HOST_ARCH$ac_delim
23154 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23155 BUILD_CC!$BUILD_CC$ac_delim
23156 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23157 BUILD_CXX!$BUILD_CXX$ac_delim
23158 CVSBUILD!$CVSBUILD$ac_delim
23159 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23160 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23161 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23162 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23163 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23164 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23165 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23166 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23167 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23168 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23169 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23170 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23171 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23172 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23173 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23174 JIT!$JIT$ac_delim
23175 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23176 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23177 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23178 _ACEOF
23179
23180   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23181     break
23182   elif $ac_last_try; then
23183     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23185    { (exit 1); exit 1; }; }
23186   else
23187     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23188   fi
23189 done
23190
23191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23192 if test -n "$ac_eof"; then
23193   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23194   ac_eof=`expr $ac_eof + 1`
23195 fi
23196
23197 cat >>$CONFIG_STATUS <<_ACEOF
23198 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23200 _ACEOF
23201 sed '
23202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23203 s/^/s,@/; s/!/@,|#_!!_#|/
23204 :n
23205 t n
23206 s/'"$ac_delim"'$/,g/; t
23207 s/$/\\/; p
23208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23209 ' >>$CONFIG_STATUS <conf$$subs.sed
23210 rm -f conf$$subs.sed
23211 cat >>$CONFIG_STATUS <<_ACEOF
23212 CEOF$ac_eof
23213 _ACEOF
23214
23215
23216 ac_delim='%!_!# '
23217 for ac_last_try in false false false false false :; do
23218   cat >conf$$subs.sed <<_ACEOF
23219 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23220 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23221 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23222 ENABLE_PIC!$ENABLE_PIC$ac_delim
23223 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23224 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23225 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23226 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23227 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23228 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23229 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23230 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23231 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23232 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23233 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23234 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23235 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23236 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23237 NM!$NM$ac_delim
23238 ifGNUmake!$ifGNUmake$ac_delim
23239 LN_S!$LN_S$ac_delim
23240 CMP!$CMP$ac_delim
23241 CP!$CP$ac_delim
23242 DATE!$DATE$ac_delim
23243 FIND!$FIND$ac_delim
23244 GREP!$GREP$ac_delim
23245 MKDIR!$MKDIR$ac_delim
23246 MV!$MV$ac_delim
23247 RANLIB!$RANLIB$ac_delim
23248 AR!$AR$ac_delim
23249 RM!$RM$ac_delim
23250 SED!$SED$ac_delim
23251 TAR!$TAR$ac_delim
23252 BINPWD!$BINPWD$ac_delim
23253 GRAPHVIZ!$GRAPHVIZ$ac_delim
23254 DOT!$DOT$ac_delim
23255 FDP!$FDP$ac_delim
23256 NEATO!$NEATO$ac_delim
23257 TWOPI!$TWOPI$ac_delim
23258 CIRCO!$CIRCO$ac_delim
23259 GV!$GV$ac_delim
23260 DOTTY!$DOTTY$ac_delim
23261 XDOT!$XDOT$ac_delim
23262 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23263 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23264 INSTALL_DATA!$INSTALL_DATA$ac_delim
23265 BZIP2!$BZIP2$ac_delim
23266 CAT!$CAT$ac_delim
23267 DOXYGEN!$DOXYGEN$ac_delim
23268 GROFF!$GROFF$ac_delim
23269 GZIPBIN!$GZIPBIN$ac_delim
23270 PDFROFF!$PDFROFF$ac_delim
23271 ZIP!$ZIP$ac_delim
23272 OCAMLC!$OCAMLC$ac_delim
23273 OCAMLOPT!$OCAMLOPT$ac_delim
23274 OCAMLDEP!$OCAMLDEP$ac_delim
23275 OCAMLDOC!$OCAMLDOC$ac_delim
23276 GAS!$GAS$ac_delim
23277 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23278 EGREP!$EGREP$ac_delim
23279 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23280 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23281 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23282 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23283 LIBADD_DL!$LIBADD_DL$ac_delim
23284 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23285 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23286 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23287 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23288 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23289 PYTHON!$PYTHON$ac_delim
23290 USE_UDIS86!$USE_UDIS86$ac_delim
23291 USE_OPROFILE!$USE_OPROFILE$ac_delim
23292 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23293 XML2CONFIG!$XML2CONFIG$ac_delim
23294 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23295 LIBXML2_INC!$LIBXML2_INC$ac_delim
23296 CXXCPP!$CXXCPP$ac_delim
23297 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23298 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23299 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23300 MMAP_FILE!$MMAP_FILE$ac_delim
23301 SHLIBEXT!$SHLIBEXT$ac_delim
23302 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23303 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23304 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23305 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23306 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23307 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23308 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23309 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23310 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23311 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23312 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23313 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23314 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23315 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23316 _ACEOF
23317
23318   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23319     break
23320   elif $ac_last_try; then
23321     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23323    { (exit 1); exit 1; }; }
23324   else
23325     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23326   fi
23327 done
23328
23329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23330 if test -n "$ac_eof"; then
23331   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23332   ac_eof=`expr $ac_eof + 1`
23333 fi
23334
23335 cat >>$CONFIG_STATUS <<_ACEOF
23336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23338 _ACEOF
23339 sed '
23340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23341 s/^/s,@/; s/!/@,|#_!!_#|/
23342 :n
23343 t n
23344 s/'"$ac_delim"'$/,g/; t
23345 s/$/\\/; p
23346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23347 ' >>$CONFIG_STATUS <conf$$subs.sed
23348 rm -f conf$$subs.sed
23349 cat >>$CONFIG_STATUS <<_ACEOF
23350 CEOF$ac_eof
23351 _ACEOF
23352
23353
23354 ac_delim='%!_!# '
23355 for ac_last_try in false false false false false :; do
23356   cat >conf$$subs.sed <<_ACEOF
23357 RPATH!$RPATH$ac_delim
23358 RDYNAMIC!$RDYNAMIC$ac_delim
23359 program_prefix!$program_prefix$ac_delim
23360 LIBOBJS!$LIBOBJS$ac_delim
23361 LTLIBOBJS!$LTLIBOBJS$ac_delim
23362 _ACEOF
23363
23364   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23365     break
23366   elif $ac_last_try; then
23367     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23368 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23369    { (exit 1); exit 1; }; }
23370   else
23371     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23372   fi
23373 done
23374
23375 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23376 if test -n "$ac_eof"; then
23377   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23378   ac_eof=`expr $ac_eof + 1`
23379 fi
23380
23381 cat >>$CONFIG_STATUS <<_ACEOF
23382 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23384 _ACEOF
23385 sed '
23386 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23387 s/^/s,@/; s/!/@,|#_!!_#|/
23388 :n
23389 t n
23390 s/'"$ac_delim"'$/,g/; t
23391 s/$/\\/; p
23392 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23393 ' >>$CONFIG_STATUS <conf$$subs.sed
23394 rm -f conf$$subs.sed
23395 cat >>$CONFIG_STATUS <<_ACEOF
23396 :end
23397 s/|#_!!_#|//g
23398 CEOF$ac_eof
23399 _ACEOF
23400
23401
23402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23404 # trailing colons and then remove the whole line if VPATH becomes empty
23405 # (actually we leave an empty line to preserve line numbers).
23406 if test "x$srcdir" = x.; then
23407   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23408 s/:*\$(srcdir):*/:/
23409 s/:*\${srcdir}:*/:/
23410 s/:*@srcdir@:*/:/
23411 s/^\([^=]*=[     ]*\):*/\1/
23412 s/:*$//
23413 s/^[^=]*=[       ]*$//
23414 }'
23415 fi
23416
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 fi # test -n "$CONFIG_FILES"
23419
23420
23421 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23422 do
23423   case $ac_tag in
23424   :[FHLC]) ac_mode=$ac_tag; continue;;
23425   esac
23426   case $ac_mode$ac_tag in
23427   :[FHL]*:*);;
23428   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23429 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23430    { (exit 1); exit 1; }; };;
23431   :[FH]-) ac_tag=-:-;;
23432   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23433   esac
23434   ac_save_IFS=$IFS
23435   IFS=:
23436   set x $ac_tag
23437   IFS=$ac_save_IFS
23438   shift
23439   ac_file=$1
23440   shift
23441
23442   case $ac_mode in
23443   :L) ac_source=$1;;
23444   :[FH])
23445     ac_file_inputs=
23446     for ac_f
23447     do
23448       case $ac_f in
23449       -) ac_f="$tmp/stdin";;
23450       *) # Look for the file first in the build tree, then in the source tree
23451          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23452          # because $ac_f cannot contain `:'.
23453          test -f "$ac_f" ||
23454            case $ac_f in
23455            [\\/$]*) false;;
23456            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23457            esac ||
23458            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23459 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23460    { (exit 1); exit 1; }; };;
23461       esac
23462       ac_file_inputs="$ac_file_inputs $ac_f"
23463     done
23464
23465     # Let's still pretend it is `configure' which instantiates (i.e., don't
23466     # use $as_me), people would be surprised to read:
23467     #    /* config.h.  Generated by config.status.  */
23468     configure_input="Generated from "`IFS=:
23469           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23470     if test x"$ac_file" != x-; then
23471       configure_input="$ac_file.  $configure_input"
23472       { echo "$as_me:$LINENO: creating $ac_file" >&5
23473 echo "$as_me: creating $ac_file" >&6;}
23474     fi
23475
23476     case $ac_tag in
23477     *:-:* | *:-) cat >"$tmp/stdin";;
23478     esac
23479     ;;
23480   esac
23481
23482   ac_dir=`$as_dirname -- "$ac_file" ||
23483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484          X"$ac_file" : 'X\(//\)[^/]' \| \
23485          X"$ac_file" : 'X\(//\)$' \| \
23486          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23487 echo X"$ac_file" |
23488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23489             s//\1/
23490             q
23491           }
23492           /^X\(\/\/\)[^/].*/{
23493             s//\1/
23494             q
23495           }
23496           /^X\(\/\/\)$/{
23497             s//\1/
23498             q
23499           }
23500           /^X\(\/\).*/{
23501             s//\1/
23502             q
23503           }
23504           s/.*/./; q'`
23505   { as_dir="$ac_dir"
23506   case $as_dir in #(
23507   -*) as_dir=./$as_dir;;
23508   esac
23509   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23510     as_dirs=
23511     while :; do
23512       case $as_dir in #(
23513       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23514       *) as_qdir=$as_dir;;
23515       esac
23516       as_dirs="'$as_qdir' $as_dirs"
23517       as_dir=`$as_dirname -- "$as_dir" ||
23518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519          X"$as_dir" : 'X\(//\)[^/]' \| \
23520          X"$as_dir" : 'X\(//\)$' \| \
23521          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522 echo X"$as_dir" |
23523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23524             s//\1/
23525             q
23526           }
23527           /^X\(\/\/\)[^/].*/{
23528             s//\1/
23529             q
23530           }
23531           /^X\(\/\/\)$/{
23532             s//\1/
23533             q
23534           }
23535           /^X\(\/\).*/{
23536             s//\1/
23537             q
23538           }
23539           s/.*/./; q'`
23540       test -d "$as_dir" && break
23541     done
23542     test -z "$as_dirs" || eval "mkdir $as_dirs"
23543   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545    { (exit 1); exit 1; }; }; }
23546   ac_builddir=.
23547
23548 case "$ac_dir" in
23549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23550 *)
23551   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23552   # A ".." for each directory in $ac_dir_suffix.
23553   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23554   case $ac_top_builddir_sub in
23555   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23556   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23557   esac ;;
23558 esac
23559 ac_abs_top_builddir=$ac_pwd
23560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23561 # for backward compatibility:
23562 ac_top_builddir=$ac_top_build_prefix
23563
23564 case $srcdir in
23565   .)  # We are building in place.
23566     ac_srcdir=.
23567     ac_top_srcdir=$ac_top_builddir_sub
23568     ac_abs_top_srcdir=$ac_pwd ;;
23569   [\\/]* | ?:[\\/]* )  # Absolute name.
23570     ac_srcdir=$srcdir$ac_dir_suffix;
23571     ac_top_srcdir=$srcdir
23572     ac_abs_top_srcdir=$srcdir ;;
23573   *) # Relative name.
23574     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23575     ac_top_srcdir=$ac_top_build_prefix$srcdir
23576     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23577 esac
23578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23579
23580
23581   case $ac_mode in
23582   :F)
23583   #
23584   # CONFIG_FILE
23585   #
23586
23587   case $INSTALL in
23588   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23589   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23590   esac
23591 _ACEOF
23592
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594 # If the template does not know about datarootdir, expand it.
23595 # FIXME: This hack should be removed a few years after 2.60.
23596 ac_datarootdir_hack=; ac_datarootdir_seen=
23597
23598 case `sed -n '/datarootdir/ {
23599   p
23600   q
23601 }
23602 /@datadir@/p
23603 /@docdir@/p
23604 /@infodir@/p
23605 /@localedir@/p
23606 /@mandir@/p
23607 ' $ac_file_inputs` in
23608 *datarootdir*) ac_datarootdir_seen=yes;;
23609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23610   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23611 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23612 _ACEOF
23613 cat >>$CONFIG_STATUS <<_ACEOF
23614   ac_datarootdir_hack='
23615   s&@datadir@&$datadir&g
23616   s&@docdir@&$docdir&g
23617   s&@infodir@&$infodir&g
23618   s&@localedir@&$localedir&g
23619   s&@mandir@&$mandir&g
23620     s&\\\${datarootdir}&$datarootdir&g' ;;
23621 esac
23622 _ACEOF
23623
23624 # Neutralize VPATH when `$srcdir' = `.'.
23625 # Shell code in configure.ac might set extrasub.
23626 # FIXME: do we really want to maintain this feature?
23627 cat >>$CONFIG_STATUS <<_ACEOF
23628   sed "$ac_vpsub
23629 $extrasub
23630 _ACEOF
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23632 :t
23633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23634 s&@configure_input@&$configure_input&;t t
23635 s&@top_builddir@&$ac_top_builddir_sub&;t t
23636 s&@srcdir@&$ac_srcdir&;t t
23637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23638 s&@top_srcdir@&$ac_top_srcdir&;t t
23639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23640 s&@builddir@&$ac_builddir&;t t
23641 s&@abs_builddir@&$ac_abs_builddir&;t t
23642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23643 s&@INSTALL@&$ac_INSTALL&;t t
23644 $ac_datarootdir_hack
23645 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23646
23647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23648   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23649   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23650   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23651 which seems to be undefined.  Please make sure it is defined." >&5
23652 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23653 which seems to be undefined.  Please make sure it is defined." >&2;}
23654
23655   rm -f "$tmp/stdin"
23656   case $ac_file in
23657   -) cat "$tmp/out"; rm -f "$tmp/out";;
23658   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23659   esac
23660  ;;
23661   :H)
23662   #
23663   # CONFIG_HEADER
23664   #
23665 _ACEOF
23666
23667 # Transform confdefs.h into a sed script `conftest.defines', that
23668 # substitutes the proper values into config.h.in to produce config.h.
23669 rm -f conftest.defines conftest.tail
23670 # First, append a space to every undef/define line, to ease matching.
23671 echo 's/$/ /' >conftest.defines
23672 # Then, protect against being on the right side of a sed subst, or in
23673 # an unquoted here document, in config.status.  If some macros were
23674 # called several times there might be several #defines for the same
23675 # symbol, which is useless.  But do not sort them, since the last
23676 # AC_DEFINE must be honored.
23677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23678 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23679 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23680 # PARAMS is the parameter list in the macro definition--in most cases, it's
23681 # just an empty string.
23682 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23683 ac_dB='\\)[      (].*,\\1define\\2'
23684 ac_dC=' '
23685 ac_dD=' ,'
23686
23687 uniq confdefs.h |
23688   sed -n '
23689         t rset
23690         :rset
23691         s/^[     ]*#[    ]*define[       ][      ]*//
23692         t ok
23693         d
23694         :ok
23695         s/[\\&,]/\\&/g
23696         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23697         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23698   ' >>conftest.defines
23699
23700 # Remove the space that was appended to ease matching.
23701 # Then replace #undef with comments.  This is necessary, for
23702 # example, in the case of _POSIX_SOURCE, which is predefined and required
23703 # on some systems where configure will not decide to define it.
23704 # (The regexp can be short, since the line contains either #define or #undef.)
23705 echo 's/ $//
23706 s,^[     #]*u.*,/* & */,' >>conftest.defines
23707
23708 # Break up conftest.defines:
23709 ac_max_sed_lines=50
23710
23711 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23712 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23713 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23714 # et cetera.
23715 ac_in='$ac_file_inputs'
23716 ac_out='"$tmp/out1"'
23717 ac_nxt='"$tmp/out2"'
23718
23719 while :
23720 do
23721   # Write a here document:
23722     cat >>$CONFIG_STATUS <<_ACEOF
23723     # First, check the format of the line:
23724     cat >"\$tmp/defines.sed" <<\\CEOF
23725 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23726 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23727 b
23728 :def
23729 _ACEOF
23730   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23731   echo 'CEOF
23732     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23733   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23734   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23735   grep . conftest.tail >/dev/null || break
23736   rm -f conftest.defines
23737   mv conftest.tail conftest.defines
23738 done
23739 rm -f conftest.defines conftest.tail
23740
23741 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23742 cat >>$CONFIG_STATUS <<\_ACEOF
23743   if test x"$ac_file" != x-; then
23744     echo "/* $configure_input  */" >"$tmp/config.h"
23745     cat "$ac_result" >>"$tmp/config.h"
23746     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23747       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23748 echo "$as_me: $ac_file is unchanged" >&6;}
23749     else
23750       rm -f $ac_file
23751       mv "$tmp/config.h" $ac_file
23752     fi
23753   else
23754     echo "/* $configure_input  */"
23755     cat "$ac_result"
23756   fi
23757   rm -f "$tmp/out12"
23758  ;;
23759
23760   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23761 echo "$as_me: executing $ac_file commands" >&6;}
23762  ;;
23763   esac
23764
23765
23766   case $ac_file$ac_mode in
23767     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23768    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23769     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23770    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23771     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23772    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23773     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23774    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23775     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23776    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23777     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23778    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23779     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23780    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23781     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23782    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23783     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23784    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23785     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23786    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23787     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23788    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23789     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23790    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23791
23792   esac
23793 done # for ac_tag
23794
23795
23796 { (exit 0); exit 0; }
23797 _ACEOF
23798 chmod +x $CONFIG_STATUS
23799 ac_clean_files=$ac_clean_files_save
23800
23801
23802 # configure is writing to config.log, and then calls config.status.
23803 # config.status does its own redirection, appending to config.log.
23804 # Unfortunately, on DOS this fails, as config.log is still kept open
23805 # by configure, so config.status won't be able to write to it; its
23806 # output is simply discarded.  So we exec the FD to /dev/null,
23807 # effectively closing config.log, so it can be properly (re)opened and
23808 # appended to by config.status.  When coming back to configure, we
23809 # need to make the FD available again.
23810 if test "$no_create" != yes; then
23811   ac_cs_success=:
23812   ac_config_status_args=
23813   test "$silent" = yes &&
23814     ac_config_status_args="$ac_config_status_args --quiet"
23815   exec 5>/dev/null
23816   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23817   exec 5>>config.log
23818   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23819   # would make configure fail if this is the last instruction.
23820   $ac_cs_success || { (exit 1); exit 1; }
23821 fi
23822
23823 #
23824 # CONFIG_SUBDIRS section.
23825 #
23826 if test "$no_recursion" != yes; then
23827
23828   # Remove --cache-file and --srcdir arguments so they do not pile up.
23829   ac_sub_configure_args=
23830   ac_prev=
23831   eval "set x $ac_configure_args"
23832   shift
23833   for ac_arg
23834   do
23835     if test -n "$ac_prev"; then
23836       ac_prev=
23837       continue
23838     fi
23839     case $ac_arg in
23840     -cache-file | --cache-file | --cache-fil | --cache-fi \
23841     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23842       ac_prev=cache_file ;;
23843     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23844     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23845     | --c=*)
23846       ;;
23847     --config-cache | -C)
23848       ;;
23849     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23850       ac_prev=srcdir ;;
23851     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23852       ;;
23853     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23854       ac_prev=prefix ;;
23855     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23856       ;;
23857     *)
23858       case $ac_arg in
23859       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23860       esac
23861       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23862     esac
23863   done
23864
23865   # Always prepend --prefix to ensure using the same prefix
23866   # in subdir configurations.
23867   ac_arg="--prefix=$prefix"
23868   case $ac_arg in
23869   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23870   esac
23871   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23872
23873   ac_popdir=`pwd`
23874   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23875
23876     # Do not complain, so a configure script can configure whichever
23877     # parts of a large source tree are present.
23878     test -d "$srcdir/$ac_dir" || continue
23879
23880     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23881     echo "$as_me:$LINENO: $ac_msg" >&5
23882     echo "$ac_msg" >&6
23883     { as_dir="$ac_dir"
23884   case $as_dir in #(
23885   -*) as_dir=./$as_dir;;
23886   esac
23887   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23888     as_dirs=
23889     while :; do
23890       case $as_dir in #(
23891       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23892       *) as_qdir=$as_dir;;
23893       esac
23894       as_dirs="'$as_qdir' $as_dirs"
23895       as_dir=`$as_dirname -- "$as_dir" ||
23896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23897          X"$as_dir" : 'X\(//\)[^/]' \| \
23898          X"$as_dir" : 'X\(//\)$' \| \
23899          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23900 echo X"$as_dir" |
23901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23902             s//\1/
23903             q
23904           }
23905           /^X\(\/\/\)[^/].*/{
23906             s//\1/
23907             q
23908           }
23909           /^X\(\/\/\)$/{
23910             s//\1/
23911             q
23912           }
23913           /^X\(\/\).*/{
23914             s//\1/
23915             q
23916           }
23917           s/.*/./; q'`
23918       test -d "$as_dir" && break
23919     done
23920     test -z "$as_dirs" || eval "mkdir $as_dirs"
23921   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23922 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23923    { (exit 1); exit 1; }; }; }
23924     ac_builddir=.
23925
23926 case "$ac_dir" in
23927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23928 *)
23929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23930   # A ".." for each directory in $ac_dir_suffix.
23931   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23932   case $ac_top_builddir_sub in
23933   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23934   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23935   esac ;;
23936 esac
23937 ac_abs_top_builddir=$ac_pwd
23938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23939 # for backward compatibility:
23940 ac_top_builddir=$ac_top_build_prefix
23941
23942 case $srcdir in
23943   .)  # We are building in place.
23944     ac_srcdir=.
23945     ac_top_srcdir=$ac_top_builddir_sub
23946     ac_abs_top_srcdir=$ac_pwd ;;
23947   [\\/]* | ?:[\\/]* )  # Absolute name.
23948     ac_srcdir=$srcdir$ac_dir_suffix;
23949     ac_top_srcdir=$srcdir
23950     ac_abs_top_srcdir=$srcdir ;;
23951   *) # Relative name.
23952     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23953     ac_top_srcdir=$ac_top_build_prefix$srcdir
23954     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23955 esac
23956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23957
23958
23959     cd "$ac_dir"
23960
23961     # Check for guested configure; otherwise get Cygnus style configure.
23962     if test -f "$ac_srcdir/configure.gnu"; then
23963       ac_sub_configure=$ac_srcdir/configure.gnu
23964     elif test -f "$ac_srcdir/configure"; then
23965       ac_sub_configure=$ac_srcdir/configure
23966     elif test -f "$ac_srcdir/configure.in"; then
23967       # This should be Cygnus configure.
23968       ac_sub_configure=$ac_aux_dir/configure
23969     else
23970       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23972       ac_sub_configure=
23973     fi
23974
23975     # The recursion is here.
23976     if test -n "$ac_sub_configure"; then
23977       # Make the cache file name correct relative to the subdirectory.
23978       case $cache_file in
23979       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23980       *) # Relative name.
23981         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23982       esac
23983
23984       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23985 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23986       # The eval makes quoting arguments work.
23987       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23988            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23989         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23990 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23991    { (exit 1); exit 1; }; }
23992     fi
23993
23994     cd "$ac_popdir"
23995   done
23996 fi
23997