bf0514cd2f0c0a827d8aea0b5178048f672dffb5
[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/privbracket
823 projects/safecode
824 tools/polly'
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876   # If the previous option needs an argument, assign it.
877   if test -n "$ac_prev"; then
878     eval $ac_prev=\$ac_option
879     ac_prev=
880     continue
881   fi
882
883   case $ac_option in
884   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885   *)    ac_optarg=yes ;;
886   esac
887
888   # Accept the important Cygnus configure options, so we can diagnose typos.
889
890   case $ac_dashdash$ac_option in
891   --)
892     ac_dashdash=yes ;;
893
894   -bindir | --bindir | --bindi | --bind | --bin | --bi)
895     ac_prev=bindir ;;
896   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897     bindir=$ac_optarg ;;
898
899   -build | --build | --buil | --bui | --bu)
900     ac_prev=build_alias ;;
901   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902     build_alias=$ac_optarg ;;
903
904   -cache-file | --cache-file | --cache-fil | --cache-fi \
905   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906     ac_prev=cache_file ;;
907   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909     cache_file=$ac_optarg ;;
910
911   --config-cache | -C)
912     cache_file=config.cache ;;
913
914   -datadir | --datadir | --datadi | --datad)
915     ac_prev=datadir ;;
916   -datadir=* | --datadir=* | --datadi=* | --datad=*)
917     datadir=$ac_optarg ;;
918
919   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920   | --dataroo | --dataro | --datar)
921     ac_prev=datarootdir ;;
922   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924     datarootdir=$ac_optarg ;;
925
926   -disable-* | --disable-*)
927     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928     # Reject names that are not valid shell variable names.
929     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
930       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
931    { (exit 1); exit 1; }; }
932     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
933     eval enable_$ac_feature=no ;;
934
935   -docdir | --docdir | --docdi | --doc | --do)
936     ac_prev=docdir ;;
937   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938     docdir=$ac_optarg ;;
939
940   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941     ac_prev=dvidir ;;
942   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943     dvidir=$ac_optarg ;;
944
945   -enable-* | --enable-*)
946     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
949       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950    { (exit 1); exit 1; }; }
951     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
952     eval enable_$ac_feature=\$ac_optarg ;;
953
954   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956   | --exec | --exe | --ex)
957     ac_prev=exec_prefix ;;
958   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960   | --exec=* | --exe=* | --ex=*)
961     exec_prefix=$ac_optarg ;;
962
963   -gas | --gas | --ga | --g)
964     # Obsolete; use --with-gas.
965     with_gas=yes ;;
966
967   -help | --help | --hel | --he | -h)
968     ac_init_help=long ;;
969   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970     ac_init_help=recursive ;;
971   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972     ac_init_help=short ;;
973
974   -host | --host | --hos | --ho)
975     ac_prev=host_alias ;;
976   -host=* | --host=* | --hos=* | --ho=*)
977     host_alias=$ac_optarg ;;
978
979   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980     ac_prev=htmldir ;;
981   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982   | --ht=*)
983     htmldir=$ac_optarg ;;
984
985   -includedir | --includedir | --includedi | --included | --include \
986   | --includ | --inclu | --incl | --inc)
987     ac_prev=includedir ;;
988   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989   | --includ=* | --inclu=* | --incl=* | --inc=*)
990     includedir=$ac_optarg ;;
991
992   -infodir | --infodir | --infodi | --infod | --info | --inf)
993     ac_prev=infodir ;;
994   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995     infodir=$ac_optarg ;;
996
997   -libdir | --libdir | --libdi | --libd)
998     ac_prev=libdir ;;
999   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000     libdir=$ac_optarg ;;
1001
1002   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003   | --libexe | --libex | --libe)
1004     ac_prev=libexecdir ;;
1005   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006   | --libexe=* | --libex=* | --libe=*)
1007     libexecdir=$ac_optarg ;;
1008
1009   -localedir | --localedir | --localedi | --localed | --locale)
1010     ac_prev=localedir ;;
1011   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012     localedir=$ac_optarg ;;
1013
1014   -localstatedir | --localstatedir | --localstatedi | --localstated \
1015   | --localstate | --localstat | --localsta | --localst | --locals)
1016     ac_prev=localstatedir ;;
1017   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019     localstatedir=$ac_optarg ;;
1020
1021   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022     ac_prev=mandir ;;
1023   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024     mandir=$ac_optarg ;;
1025
1026   -nfp | --nfp | --nf)
1027     # Obsolete; use --without-fp.
1028     with_fp=no ;;
1029
1030   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031   | --no-cr | --no-c | -n)
1032     no_create=yes ;;
1033
1034   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036     no_recursion=yes ;;
1037
1038   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040   | --oldin | --oldi | --old | --ol | --o)
1041     ac_prev=oldincludedir ;;
1042   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045     oldincludedir=$ac_optarg ;;
1046
1047   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048     ac_prev=prefix ;;
1049   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050     prefix=$ac_optarg ;;
1051
1052   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053   | --program-pre | --program-pr | --program-p)
1054     ac_prev=program_prefix ;;
1055   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057     program_prefix=$ac_optarg ;;
1058
1059   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060   | --program-suf | --program-su | --program-s)
1061     ac_prev=program_suffix ;;
1062   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064     program_suffix=$ac_optarg ;;
1065
1066   -program-transform-name | --program-transform-name \
1067   | --program-transform-nam | --program-transform-na \
1068   | --program-transform-n | --program-transform- \
1069   | --program-transform | --program-transfor \
1070   | --program-transfo | --program-transf \
1071   | --program-trans | --program-tran \
1072   | --progr-tra | --program-tr | --program-t)
1073     ac_prev=program_transform_name ;;
1074   -program-transform-name=* | --program-transform-name=* \
1075   | --program-transform-nam=* | --program-transform-na=* \
1076   | --program-transform-n=* | --program-transform-=* \
1077   | --program-transform=* | --program-transfor=* \
1078   | --program-transfo=* | --program-transf=* \
1079   | --program-trans=* | --program-tran=* \
1080   | --progr-tra=* | --program-tr=* | --program-t=*)
1081     program_transform_name=$ac_optarg ;;
1082
1083   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084     ac_prev=pdfdir ;;
1085   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086     pdfdir=$ac_optarg ;;
1087
1088   -psdir | --psdir | --psdi | --psd | --ps)
1089     ac_prev=psdir ;;
1090   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091     psdir=$ac_optarg ;;
1092
1093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094   | -silent | --silent | --silen | --sile | --sil)
1095     silent=yes ;;
1096
1097   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098     ac_prev=sbindir ;;
1099   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100   | --sbi=* | --sb=*)
1101     sbindir=$ac_optarg ;;
1102
1103   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105   | --sharedst | --shareds | --shared | --share | --shar \
1106   | --sha | --sh)
1107     ac_prev=sharedstatedir ;;
1108   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111   | --sha=* | --sh=*)
1112     sharedstatedir=$ac_optarg ;;
1113
1114   -site | --site | --sit)
1115     ac_prev=site ;;
1116   -site=* | --site=* | --sit=*)
1117     site=$ac_optarg ;;
1118
1119   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120     ac_prev=srcdir ;;
1121   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122     srcdir=$ac_optarg ;;
1123
1124   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125   | --syscon | --sysco | --sysc | --sys | --sy)
1126     ac_prev=sysconfdir ;;
1127   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129     sysconfdir=$ac_optarg ;;
1130
1131   -target | --target | --targe | --targ | --tar | --ta | --t)
1132     ac_prev=target_alias ;;
1133   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134     target_alias=$ac_optarg ;;
1135
1136   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137     verbose=yes ;;
1138
1139   -version | --version | --versio | --versi | --vers | -V)
1140     ac_init_version=: ;;
1141
1142   -with-* | --with-*)
1143     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid package name: $ac_package" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_package=`echo $ac_package| sed 's/-/_/g'`
1149     eval with_$ac_package=\$ac_optarg ;;
1150
1151   -without-* | --without-*)
1152     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid package name: $ac_package" >&2
1156    { (exit 1); exit 1; }; }
1157     ac_package=`echo $ac_package | sed 's/-/_/g'`
1158     eval with_$ac_package=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) { echo "$as_me: error: unrecognized option: $ac_option
1179 Try \`$0 --help' for more information." >&2
1180    { (exit 1); exit 1; }; }
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1188    { (exit 1); exit 1; }; }
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   { echo "$as_me: error: missing argument to $ac_option" >&2
1206    { (exit 1); exit 1; }; }
1207 fi
1208
1209 # Be sure to have absolute directory names.
1210 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211                 datadir sysconfdir sharedstatedir localstatedir includedir \
1212                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213                 libdir localedir mandir
1214 do
1215   eval ac_val=\$$ac_var
1216   case $ac_val in
1217     [\\/$]* | ?:[\\/]* )  continue;;
1218     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219   esac
1220   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221    { (exit 1); exit 1; }; }
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236     If a cross compiler is detected then cross compile mode will be used." >&2
1237   elif test "x$build_alias" != "x$host_alias"; then
1238     cross_compiling=yes
1239   fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251   { echo "$as_me: error: Working directory cannot be determined" >&2
1252    { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254   { echo "$as_me: error: pwd does not report name of working directory" >&2
1255    { (exit 1); exit 1; }; }
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260   ac_srcdir_defaulted=yes
1261   # Try the directory containing this script, then the parent directory.
1262   ac_confdir=`$as_dirname -- "$0" ||
1263 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264          X"$0" : 'X\(//\)[^/]' \| \
1265          X"$0" : 'X\(//\)$' \| \
1266          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 echo X"$0" |
1268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)[^/].*/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\).*/{
1281             s//\1/
1282             q
1283           }
1284           s/.*/./; q'`
1285   srcdir=$ac_confdir
1286   if test ! -r "$srcdir/$ac_unique_file"; then
1287     srcdir=..
1288   fi
1289 else
1290   ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295    { (exit 1); exit 1; }; }
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1300    { (exit 1); exit 1; }; }
1301         pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304   srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314   eval ac_env_${ac_var}_value=\$${ac_var}
1315   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323   # Omit some internal or obsolete options to make the list less imposing.
1324   # This message is too long to be a string in the A/UX 3.1 sh.
1325   cat <<_ACEOF
1326 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336   -h, --help              display this help and exit
1337       --help=short        display options specific to this package
1338       --help=recursive    display the short help of all the included packages
1339   -V, --version           display version information and exit
1340   -q, --quiet, --silent   do not print \`checking...' messages
1341       --cache-file=FILE   cache test results in FILE [disabled]
1342   -C, --config-cache      alias for \`--cache-file=config.cache'
1343   -n, --no-create         do not create output files
1344       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347   --prefix=PREFIX         install architecture-independent files in PREFIX
1348                           [$ac_default_prefix]
1349   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                           [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360   --bindir=DIR           user executables [EPREFIX/bin]
1361   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1362   --libexecdir=DIR       program executables [EPREFIX/libexec]
1363   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1364   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1365   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1366   --libdir=DIR           object code libraries [EPREFIX/lib]
1367   --includedir=DIR       C header files [PREFIX/include]
1368   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1369   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1370   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1371   --infodir=DIR          info documentation [DATAROOTDIR/info]
1372   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1373   --mandir=DIR           man documentation [DATAROOTDIR/man]
1374   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1375   --htmldir=DIR          html documentation [DOCDIR]
1376   --dvidir=DIR           dvi documentation [DOCDIR]
1377   --pdfdir=DIR           pdf documentation [DOCDIR]
1378   --psdir=DIR            ps documentation [DOCDIR]
1379 _ACEOF
1380
1381   cat <<\_ACEOF
1382
1383 System types:
1384   --build=BUILD     configure for building on BUILD [guessed]
1385   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386   --target=TARGET   configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391   case $ac_init_help in
1392      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1393    esac
1394   cat <<\_ACEOF
1395
1396 Optional Features:
1397   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1398   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1399   --enable-polly          Use polly if available (default is YES)
1400   --enable-libcpp         Use libc++ if available (default is NO)
1401   --enable-cxx11          Use c++11 if available (default is NO)
1402   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1403   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1404   --enable-clang-static-analyzer
1405                           Enable building of clang Static Analyzer (default is
1406                           YES)
1407   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1408   --enable-optimized      Compile with optimizations enabled (default is NO)
1409   --enable-profiling      Compile with profiling enabled (default is NO)
1410   --enable-assertions     Compile with assertion checks enabled (default is
1411                           YES)
1412   --enable-werror         Compile with -Werror enabled (default is NO)
1413   --enable-expensive-checks
1414                           Compile with expensive debug checks enabled (default
1415                           is NO)
1416   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1417                           NO)
1418   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1419                           optimization is on and YES if it's off)
1420   --enable-keep-symbols   Do not strip installed executables)
1421   --enable-jit            Enable Just In Time Compiling (default is YES)
1422   --enable-docs           Build documents (default is YES)
1423   --enable-doxygen        Build doxygen documentation (default is NO)
1424   --enable-threads        Use threads if available (default is YES)
1425   --enable-pthreads       Use pthreads if available (default is YES)
1426   --enable-zlib           Use zlib for compression/decompression if available
1427                           (default is YES)
1428   --enable-pic            Build LLVM with Position Independent Code (default
1429                           is YES)
1430   --enable-shared         Build a shared library and link tools against it
1431                           (default is NO)
1432   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1433                           Win32 DLL (default is NO)
1434   --enable-timestamps     Enable embedding timestamp information in build
1435                           (default is YES)
1436   --enable-backtraces     Enable embedding backtraces on crash (default is
1437                           YES)
1438   --enable-crash-overrides
1439                           Enable crash handling overrides (default is YES)
1440   --enable-targets        Build specific host targets: all or
1441                           target1,target2,... Valid targets are: host, x86,
1442                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443                           xcore, msp430, nvptx, systemz, r600, and cpp
1444                           (default=all)
1445   --enable-experimental-targets
1446                           Build experimental host targets: disable or
1447                           target1,target2,... (default=disable)
1448   --enable-bindings       Build specific language bindings:
1449                           all,auto,none,{binding-name} (default=auto)
1450   --enable-terminfo       Query the terminfo database if available (default is
1451                           YES)
1452   --enable-libffi         Check for the presence of libffi (default is NO)
1453   --enable-ltdl-install   install libltdl
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-optimize-option  Select the compiler options to use for optimized
1459                           builds
1460   --with-extra-options    Specify additional options to compile LLVM with
1461   --with-extra-ld-options Specify additional options to link LLVM with
1462   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1463                           is stdlib)
1464   --with-clang-srcdir     Directory to the out-of-tree Clang source
1465   --with-clang-resource-dir
1466                           Relative directory from the Clang binary for
1467                           resource files
1468   --with-c-include-dirs   Colon separated list of directories clang will
1469                           search for headers
1470   --with-gcc-toolchain    Directory where gcc is installed.
1471   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1472   --with-binutils-include Specify path to binutils/include/ containing
1473                           plugin-api.h file for gold plugin.
1474   --with-bug-report-url   Specify the URL where bug reports should be
1475                           submitted (default=http://llvm.org/bugs/)
1476   --with-internal-prefix  Installation directory for internal files
1477   --with-python           path to python
1478   --with-udis86=<path>    Use udis86 external x86 disassembler library
1479   --with-oprofile=<prefix>
1480                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1481   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1482
1483
1484 Some influential environment variables:
1485   CC          C compiler command
1486   CFLAGS      C compiler flags
1487   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488               nonstandard directory <lib dir>
1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CXX         C++ compiler command
1492   CXXFLAGS    C++ compiler flags
1493   CPP         C preprocessor
1494   CXXCPP      C++ preprocessor
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 Report bugs to <http://llvm.org/bugs/>.
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505   # If there are subdirs, report their specific --help.
1506   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507     test -d "$ac_dir" || continue
1508     ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514   # A ".." for each directory in $ac_dir_suffix.
1515   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516   case $ac_top_builddir_sub in
1517   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519   esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527   .)  # We are building in place.
1528     ac_srcdir=.
1529     ac_top_srcdir=$ac_top_builddir_sub
1530     ac_abs_top_srcdir=$ac_pwd ;;
1531   [\\/]* | ?:[\\/]* )  # Absolute name.
1532     ac_srcdir=$srcdir$ac_dir_suffix;
1533     ac_top_srcdir=$srcdir
1534     ac_abs_top_srcdir=$srcdir ;;
1535   *) # Relative name.
1536     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537     ac_top_srcdir=$ac_top_build_prefix$srcdir
1538     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542     cd "$ac_dir" || { ac_status=$?; continue; }
1543     # Check for guested configure.
1544     if test -f "$ac_srcdir/configure.gnu"; then
1545       echo &&
1546       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547     elif test -f "$ac_srcdir/configure"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure" --help=recursive
1550     else
1551       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552     fi || ac_status=$?
1553     cd "$ac_pwd" || { ac_status=$?; break; }
1554   done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559   cat <<\_ACEOF
1560 LLVM configure 3.5svn
1561 generated by GNU Autoconf 2.60
1562
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567
1568 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1569 _ACEOF
1570   exit
1571 fi
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1575
1576 It was created by LLVM $as_me 3.5svn, which was
1577 generated by GNU Autoconf 2.60.  Invocation command line was
1578
1579   $ $0 $@
1580
1581 _ACEOF
1582 exec 5>>config.log
1583 {
1584 cat <<_ASUNAME
1585 ## --------- ##
1586 ## Platform. ##
1587 ## --------- ##
1588
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1597
1598 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1599 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1602 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1603 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1604 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1605
1606 _ASUNAME
1607
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   echo "PATH: $as_dir"
1614 done
1615 IFS=$as_save_IFS
1616
1617 } >&5
1618
1619 cat >&5 <<_ACEOF
1620
1621
1622 ## ----------- ##
1623 ## Core tests. ##
1624 ## ----------- ##
1625
1626 _ACEOF
1627
1628
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1634 ac_configure_args=
1635 ac_configure_args0=
1636 ac_configure_args1=
1637 ac_must_keep_next=false
1638 for ac_pass in 1 2
1639 do
1640   for ac_arg
1641   do
1642     case $ac_arg in
1643     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645     | -silent | --silent | --silen | --sile | --sil)
1646       continue ;;
1647     *\'*)
1648       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649     esac
1650     case $ac_pass in
1651     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652     2)
1653       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654       if test $ac_must_keep_next = true; then
1655         ac_must_keep_next=false # Got value, back to normal.
1656       else
1657         case $ac_arg in
1658           *=* | --config-cache | -C | -disable-* | --disable-* \
1659           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661           | -with-* | --with-* | -without-* | --without-* | --x)
1662             case "$ac_configure_args0 " in
1663               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664             esac
1665             ;;
1666           -* ) ac_must_keep_next=true ;;
1667         esac
1668       fi
1669       ac_configure_args="$ac_configure_args '$ac_arg'"
1670       ;;
1671     esac
1672   done
1673 done
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log.  We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683   # Save into config.log some information that might help in debugging.
1684   {
1685     echo
1686
1687     cat <<\_ASBOX
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1691 _ASBOX
1692     echo
1693     # The following way of writing the cache mishandles newlines in values,
1694 (
1695   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696     eval ac_val=\$$ac_var
1697     case $ac_val in #(
1698     *${as_nl}*)
1699       case $ac_var in #(
1700       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702       esac
1703       case $ac_var in #(
1704       _ | IFS | as_nl) ;; #(
1705       *) $as_unset $ac_var ;;
1706       esac ;;
1707     esac
1708   done
1709   (set) 2>&1 |
1710     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711     *${as_nl}ac_space=\ *)
1712       sed -n \
1713         "s/'\''/'\''\\\\'\'''\''/g;
1714           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715       ;; #(
1716     *)
1717       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718       ;;
1719     esac |
1720     sort
1721 )
1722     echo
1723
1724     cat <<\_ASBOX
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1728 _ASBOX
1729     echo
1730     for ac_var in $ac_subst_vars
1731     do
1732       eval ac_val=\$$ac_var
1733       case $ac_val in
1734       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735       esac
1736       echo "$ac_var='\''$ac_val'\''"
1737     done | sort
1738     echo
1739
1740     if test -n "$ac_subst_files"; then
1741       cat <<\_ASBOX
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1745 _ASBOX
1746       echo
1747       for ac_var in $ac_subst_files
1748       do
1749         eval ac_val=\$$ac_var
1750         case $ac_val in
1751         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752         esac
1753         echo "$ac_var='\''$ac_val'\''"
1754       done | sort
1755       echo
1756     fi
1757
1758     if test -s confdefs.h; then
1759       cat <<\_ASBOX
1760 ## ----------- ##
1761 ## confdefs.h. ##
1762 ## ----------- ##
1763 _ASBOX
1764       echo
1765       cat confdefs.h
1766       echo
1767     fi
1768     test "$ac_signal" != 0 &&
1769       echo "$as_me: caught signal $ac_signal"
1770     echo "$as_me: exit $exit_status"
1771   } >&5
1772   rm -f core *.core core.conftest.* &&
1773     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774     exit $exit_status
1775 ' 0
1776 for ac_signal in 1 2 13 15; do
1777   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778 done
1779 ac_signal=0
1780
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1783
1784 # Predefined preprocessor variables.
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808 _ACEOF
1809
1810
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814   set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817 else
1818   set x "$ac_default_prefix/share/config.site" \
1819         "$ac_default_prefix/etc/config.site"
1820 fi
1821 shift
1822 for ac_site_file
1823 do
1824   if test -r "$ac_site_file"; then
1825     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827     sed 's/^/| /' "$ac_site_file" >&5
1828     . "$ac_site_file"
1829   fi
1830 done
1831
1832 if test -r "$cache_file"; then
1833   # Some versions of bash will fail to source /dev/null (special
1834   # files actually), so we avoid doing that.
1835   if test -f "$cache_file"; then
1836     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1838     case $cache_file in
1839       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840       *)                      . "./$cache_file";;
1841     esac
1842   fi
1843 else
1844   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1846   >$cache_file
1847 fi
1848
1849 # Check that the precious variables saved in the cache have kept the same
1850 # value.
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854   eval ac_new_set=\$ac_env_${ac_var}_set
1855   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856   eval ac_new_val=\$ac_env_${ac_var}_value
1857   case $ac_old_set,$ac_new_set in
1858     set,)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,set)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,);;
1867     *)
1868       if test "x$ac_old_val" != "x$ac_new_val"; then
1869         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1872 echo "$as_me:   former value:  $ac_old_val" >&2;}
1873         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1874 echo "$as_me:   current value: $ac_new_val" >&2;}
1875         ac_cache_corrupted=:
1876       fi;;
1877   esac
1878   # Pass precious variables to config.status.
1879   if test "$ac_new_set" = set; then
1880     case $ac_new_val in
1881     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882     *) ac_arg=$ac_var=$ac_new_val ;;
1883     esac
1884     case " $ac_configure_args " in
1885       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1886       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887     esac
1888   fi
1889 done
1890 if $ac_cache_corrupted; then
1891   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895    { (exit 1); exit 1; }; }
1896 fi
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MAJOR 3
1932 _ACEOF
1933
1934
1935 cat >>confdefs.h <<\_ACEOF
1936 #define LLVM_VERSION_MINOR 5
1937 _ACEOF
1938
1939
1940 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1941
1942
1943
1944
1945
1946
1947
1948 ac_aux_dir=
1949 for ac_dir in autoconf "$srcdir"/autoconf; do
1950   if test -f "$ac_dir/install-sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install-sh -c"
1953     break
1954   elif test -f "$ac_dir/install.sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install.sh -c"
1957     break
1958   elif test -f "$ac_dir/shtool"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/shtool install -c"
1961     break
1962   fi
1963 done
1964 if test -z "$ac_aux_dir"; then
1965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1977
1978
1979
1980 if test ${srcdir} != "." ; then
1981   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1982     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1983 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1984    { (exit 1); exit 1; }; }
1985   fi
1986 fi
1987
1988 : ${CFLAGS=}
1989 : ${CXXFLAGS=}
1990
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996 if test -n "$ac_tool_prefix"; then
1997   for ac_prog in clang gcc
1998   do
1999     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$CC"; then
2007   ac_cv_prog_CC="$CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2016     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022 IFS=$as_save_IFS
2023
2024 fi
2025 fi
2026 CC=$ac_cv_prog_CC
2027 if test -n "$CC"; then
2028   { echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6; }
2030 else
2031   { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2033 fi
2034
2035
2036     test -n "$CC" && break
2037   done
2038 fi
2039 if test -z "$CC"; then
2040   ac_ct_CC=$CC
2041   for ac_prog in clang gcc
2042 do
2043   # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$ac_ct_CC"; then
2051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060     ac_cv_prog_ac_ct_CC="$ac_prog"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066 IFS=$as_save_IFS
2067
2068 fi
2069 fi
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6; }
2074 else
2075   { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2077 fi
2078
2079
2080   test -n "$ac_ct_CC" && break
2081 done
2082
2083   if test "x$ac_ct_CC" = x; then
2084     CC=""
2085   else
2086     case $cross_compiling:$ac_tool_warned in
2087 yes:)
2088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2089 whose name does not start with the host triplet.  If you think this
2090 configuration is useful to you, please write to autoconf@gnu.org." >&5
2091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet.  If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2094 ac_tool_warned=yes ;;
2095 esac
2096     CC=$ac_ct_CC
2097   fi
2098 fi
2099
2100
2101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&2;}
2105    { (exit 1); exit 1; }; }
2106
2107 # Provide some information about the compiler.
2108 echo "$as_me:$LINENO: checking for C compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (ac_try="$ac_compiler --version >&5"
2111 case "(($ac_try" in
2112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113   *) ac_try_echo=$ac_try;;
2114 esac
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116   (eval "$ac_compiler --version >&5") 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120 { (ac_try="$ac_compiler -v >&5"
2121 case "(($ac_try" in
2122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123   *) ac_try_echo=$ac_try;;
2124 esac
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126   (eval "$ac_compiler -v >&5") 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); }
2130 { (ac_try="$ac_compiler -V >&5"
2131 case "(($ac_try" in
2132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133   *) ac_try_echo=$ac_try;;
2134 esac
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136   (eval "$ac_compiler -V >&5") 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140
2141 cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h.  */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h.  */
2147
2148 int
2149 main ()
2150 {
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2160 # of exeext.
2161 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2164 #
2165 # List of possible output files, starting from the most likely.
2166 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2167 # only as a last resort.  b.out is created by i960 compilers.
2168 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2169 #
2170 # The IRIX 6 linker writes into existing files which may not be
2171 # executable, retaining their permissions.  Remove them first so a
2172 # subsequent execution test works.
2173 ac_rmfiles=
2174 for ac_file in $ac_files
2175 do
2176   case $ac_file in
2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2178     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2179   esac
2180 done
2181 rm -f $ac_rmfiles
2182
2183 if { (ac_try="$ac_link_default"
2184 case "(($ac_try" in
2185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186   *) ac_try_echo=$ac_try;;
2187 esac
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189   (eval "$ac_link_default") 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }; then
2193   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2195 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2196 # so that the user can short-circuit this test for compilers unknown to
2197 # Autoconf.
2198 for ac_file in $ac_files
2199 do
2200   test -f "$ac_file" || continue
2201   case $ac_file in
2202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2203         ;;
2204     [ab].out )
2205         # We found the default executable, but exeext='' is most
2206         # certainly right.
2207         break;;
2208     *.* )
2209         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2210         then :; else
2211            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212         fi
2213         # We set ac_cv_exeext here because the later test for it is not
2214         # safe: cross compilers may not add the suffix if given an `-o'
2215         # argument, so we may need to know it at that point already.
2216         # Even if this section looks crufty: it has the advantage of
2217         # actually working.
2218         break;;
2219     * )
2220         break;;
2221   esac
2222 done
2223 test "$ac_cv_exeext" = no && ac_cv_exeext=
2224
2225 else
2226   echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233    { (exit 77); exit 77; }; }
2234 fi
2235
2236 ac_exeext=$ac_cv_exeext
2237 { echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6; }
2239
2240 # Check that the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247   if { ac_try='./$ac_file'
2248   { (case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253   (eval "$ac_try") 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }; }; then
2257     cross_compiling=no
2258   else
2259     if test "$cross_compiling" = maybe; then
2260         cross_compiling=yes
2261     else
2262         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&2;}
2268    { (exit 1); exit 1; }; }
2269     fi
2270   fi
2271 fi
2272 { echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6; }
2274
2275 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276 ac_clean_files=$ac_clean_files_save
2277 # Check that the compiler produces executables we can run.  If not, either
2278 # the compiler is broken, or we cross compile.
2279 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2281 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282 echo "${ECHO_T}$cross_compiling" >&6; }
2283
2284 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2286 if { (ac_try="$ac_link"
2287 case "(($ac_try" in
2288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289   *) ac_try_echo=$ac_try;;
2290 esac
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292   (eval "$ac_link") 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; then
2296   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2298 # work properly (i.e., refer to `conftest.exe'), while it won't with
2299 # `rm'.
2300 for ac_file in conftest.exe conftest conftest.*; do
2301   test -f "$ac_file" || continue
2302   case $ac_file in
2303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2304     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305           break;;
2306     * ) break;;
2307   esac
2308 done
2309 else
2310   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316
2317 rm -f conftest$ac_cv_exeext
2318 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2320
2321 rm -f conftest.$ac_ext
2322 EXEEXT=$ac_cv_exeext
2323 ac_exeext=$EXEEXT
2324 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2326 if test "${ac_cv_objext+set}" = set; then
2327   echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329   cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h.  */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h.  */
2335
2336 int
2337 main ()
2338 {
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 rm -f conftest.o conftest.obj
2345 if { (ac_try="$ac_compile"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351   (eval "$ac_compile") 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }; then
2355   for ac_file in conftest.o conftest.obj conftest.*; do
2356   test -f "$ac_file" || continue;
2357   case $ac_file in
2358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2359     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2360        break;;
2361   esac
2362 done
2363 else
2364   echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&2;}
2371    { (exit 1); exit 1; }; }
2372 fi
2373
2374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2375 fi
2376 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377 echo "${ECHO_T}$ac_cv_objext" >&6; }
2378 OBJEXT=$ac_cv_objext
2379 ac_objext=$OBJEXT
2380 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391
2392 int
2393 main ()
2394 {
2395 #ifndef __GNUC__
2396        choke me
2397 #endif
2398
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext
2404 if { (ac_try="$ac_compile"
2405 case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_compile") 2>conftest.er1
2411   ac_status=$?
2412   grep -v '^ *+' conftest.er1 >conftest.err
2413   rm -f conftest.er1
2414   cat conftest.err >&5
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); } &&
2417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2418   { (case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423   (eval "$ac_try") 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; } &&
2427          { ac_try='test -s conftest.$ac_objext'
2428   { (case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433   (eval "$ac_try") 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; }; then
2437   ac_compiler_gnu=yes
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442         ac_compiler_gnu=no
2443 fi
2444
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2447
2448 fi
2449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2451 GCC=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS=${CFLAGS+set}
2453 ac_save_CFLAGS=$CFLAGS
2454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   ac_save_c_werror_flag=$ac_c_werror_flag
2460    ac_c_werror_flag=yes
2461    ac_cv_prog_cc_g=no
2462    CFLAGS="-g"
2463    cat >conftest.$ac_ext <<_ACEOF
2464 /* confdefs.h.  */
2465 _ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h.  */
2469
2470 int
2471 main ()
2472 {
2473
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 rm -f conftest.$ac_objext
2479 if { (ac_try="$ac_compile"
2480 case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_compile") 2>conftest.er1
2486   ac_status=$?
2487   grep -v '^ *+' conftest.er1 >conftest.err
2488   rm -f conftest.er1
2489   cat conftest.err >&5
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); } &&
2492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2493   { (case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498   (eval "$ac_try") 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; } &&
2502          { ac_try='test -s conftest.$ac_objext'
2503   { (case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_try") 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; }; then
2512   ac_cv_prog_cc_g=yes
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517         CFLAGS=""
2518       cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524
2525 int
2526 main ()
2527 {
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (ac_try="$ac_compile"
2535 case "(($ac_try" in
2536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537   *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540   (eval "$ac_compile") 2>conftest.er1
2541   ac_status=$?
2542   grep -v '^ *+' conftest.er1 >conftest.err
2543   rm -f conftest.er1
2544   cat conftest.err >&5
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } &&
2547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2548   { (case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_try") 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; } &&
2557          { ac_try='test -s conftest.$ac_objext'
2558   { (case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563   (eval "$ac_try") 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   :
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572         ac_c_werror_flag=$ac_save_c_werror_flag
2573          CFLAGS="-g"
2574          cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580
2581 int
2582 main ()
2583 {
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_compile") 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2604   { (case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_try") 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; } &&
2613          { ac_try='test -s conftest.$ac_objext'
2614   { (case "(($ac_try" in
2615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616   *) ac_try_echo=$ac_try;;
2617 esac
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619   (eval "$ac_try") 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; }; then
2623   ac_cv_prog_cc_g=yes
2624 else
2625   echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2627
2628
2629 fi
2630
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 fi
2633
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638    ac_c_werror_flag=$ac_save_c_werror_flag
2639 fi
2640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2642 if test "$ac_test_CFLAGS" = set; then
2643   CFLAGS=$ac_save_CFLAGS
2644 elif test $ac_cv_prog_cc_g = yes; then
2645   if test "$GCC" = yes; then
2646     CFLAGS="-g -O2"
2647   else
2648     CFLAGS="-g"
2649   fi
2650 else
2651   if test "$GCC" = yes; then
2652     CFLAGS="-O2"
2653   else
2654     CFLAGS=
2655   fi
2656 fi
2657 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2658 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_cc_c89+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   ac_cv_prog_cc_c89=no
2663 ac_save_CC=$CC
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670 #include <stdarg.h>
2671 #include <stdio.h>
2672 #include <sys/types.h>
2673 #include <sys/stat.h>
2674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2675 struct buf { int x; };
2676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677 static char *e (p, i)
2678      char **p;
2679      int i;
2680 {
2681   return p[i];
2682 }
2683 static char *f (char * (*g) (char **, int), char **p, ...)
2684 {
2685   char *s;
2686   va_list v;
2687   va_start (v,p);
2688   s = g (p, va_arg (v,int));
2689   va_end (v);
2690   return s;
2691 }
2692
2693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2694    function prototypes and stuff, but not '\xHH' hex character constants.
2695    These don't provoke an error unfortunately, instead are silently treated
2696    as 'x'.  The following induces an error, until -std is added to get
2697    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2698    array size at least.  It's necessary to write '\x00'==0 to get something
2699    that's true only with -std.  */
2700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2701
2702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2703    inside strings and character constants.  */
2704 #define FOO(x) 'x'
2705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2706
2707 int test (int i, double x);
2708 struct s1 {int (*f) (int a);};
2709 struct s2 {int (*f) (double a);};
2710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2711 int argc;
2712 char **argv;
2713 int
2714 main ()
2715 {
2716 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2722         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723 do
2724   CC="$ac_save_CC $ac_arg"
2725   rm -f conftest.$ac_objext
2726 if { (ac_try="$ac_compile"
2727 case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732   (eval "$ac_compile") 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2740   { (case "(($ac_try" in
2741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742   *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745   (eval "$ac_try") 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; } &&
2749          { ac_try='test -s conftest.$ac_objext'
2750   { (case "(($ac_try" in
2751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752   *) ac_try_echo=$ac_try;;
2753 esac
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755   (eval "$ac_try") 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   ac_cv_prog_cc_c89=$ac_arg
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764
2765 fi
2766
2767 rm -f core conftest.err conftest.$ac_objext
2768   test "x$ac_cv_prog_cc_c89" != "xno" && break
2769 done
2770 rm -f conftest.$ac_ext
2771 CC=$ac_save_CC
2772
2773 fi
2774 # AC_CACHE_VAL
2775 case "x$ac_cv_prog_cc_c89" in
2776   x)
2777     { echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6; } ;;
2779   xno)
2780     { echo "$as_me:$LINENO: result: unsupported" >&5
2781 echo "${ECHO_T}unsupported" >&6; } ;;
2782   *)
2783     CC="$CC $ac_cv_prog_cc_c89"
2784     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2786 esac
2787
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795 ac_ext=cpp
2796 ac_cpp='$CXXCPP $CPPFLAGS'
2797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2800 if test -z "$CXX"; then
2801   if test -n "$CCC"; then
2802     CXX=$CCC
2803   else
2804     if test -n "$ac_tool_prefix"; then
2805   for ac_prog in clang++ g++
2806   do
2807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811 if test "${ac_cv_prog_CXX+set}" = set; then
2812   echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814   if test -n "$CXX"; then
2815   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822   for ac_exec_ext in '' $ac_executable_extensions; do
2823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2824     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CXX=$ac_cv_prog_CXX
2835 if test -n "$CXX"; then
2836   { echo "$as_me:$LINENO: result: $CXX" >&5
2837 echo "${ECHO_T}$CXX" >&6; }
2838 else
2839   { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2841 fi
2842
2843
2844     test -n "$CXX" && break
2845   done
2846 fi
2847 if test -z "$CXX"; then
2848   ac_ct_CXX=$CXX
2849   for ac_prog in clang++ g++
2850 do
2851   # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2856   echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858   if test -n "$ac_ct_CXX"; then
2859   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866   for ac_exec_ext in '' $ac_executable_extensions; do
2867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868     ac_cv_prog_ac_ct_CXX="$ac_prog"
2869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2879 if test -n "$ac_ct_CXX"; then
2880   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2881 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2882 else
2883   { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2885 fi
2886
2887
2888   test -n "$ac_ct_CXX" && break
2889 done
2890
2891   if test "x$ac_ct_CXX" = x; then
2892     CXX="g++"
2893   else
2894     case $cross_compiling:$ac_tool_warned in
2895 yes:)
2896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet.  If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&5
2899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet.  If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904     CXX=$ac_ct_CXX
2905   fi
2906 fi
2907
2908   fi
2909 fi
2910 # Provide some information about the compiler.
2911 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2912 ac_compiler=`set X $ac_compile; echo $2`
2913 { (ac_try="$ac_compiler --version >&5"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_compiler --version >&5") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }
2923 { (ac_try="$ac_compiler -v >&5"
2924 case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_compiler -v >&5") 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }
2933 { (ac_try="$ac_compiler -V >&5"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_compiler -V >&5") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }
2943
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 int
2957 main ()
2958 {
2959 #ifndef __GNUC__
2960        choke me
2961 #endif
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2982   { (case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_try") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; } &&
2991          { ac_try='test -s conftest.$ac_objext'
2992   { (case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_try") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; }; then
3001   ac_compiler_gnu=yes
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006         ac_compiler_gnu=no
3007 fi
3008
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3011
3012 fi
3013 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3014 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3015 GXX=`test $ac_compiler_gnu = yes && echo yes`
3016 ac_test_CXXFLAGS=${CXXFLAGS+set}
3017 ac_save_CXXFLAGS=$CXXFLAGS
3018 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_cxx_g+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3024    ac_cxx_werror_flag=yes
3025    ac_cv_prog_cxx_g=no
3026    CXXFLAGS="-g"
3027    cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3057   { (case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_try") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; } &&
3066          { ac_try='test -s conftest.$ac_objext'
3067   { (case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_try") 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_prog_cxx_g=yes
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081         CXXFLAGS=""
3082       cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } &&
3111          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3112   { (case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_try") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_try") 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   :
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3137          CXXFLAGS="-g"
3138          cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144
3145 int
3146 main ()
3147 {
3148
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_compile") 2>conftest.er1
3161   ac_status=$?
3162   grep -v '^ *+' conftest.er1 >conftest.err
3163   rm -f conftest.er1
3164   cat conftest.err >&5
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3168   { (case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_try") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; }; then
3187   ac_cv_prog_cxx_g=yes
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3206 if test "$ac_test_CXXFLAGS" = set; then
3207   CXXFLAGS=$ac_save_CXXFLAGS
3208 elif test $ac_cv_prog_cxx_g = yes; then
3209   if test "$GXX" = yes; then
3210     CXXFLAGS="-g -O2"
3211   else
3212     CXXFLAGS="-g"
3213   fi
3214 else
3215   if test "$GXX" = yes; then
3216     CXXFLAGS="-O2"
3217   else
3218     CXXFLAGS=
3219   fi
3220 fi
3221 ac_ext=c
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3233 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3234 # On Suns, sometimes $CPP names a directory.
3235 if test -n "$CPP" && test -d "$CPP"; then
3236   CPP=
3237 fi
3238 if test -z "$CPP"; then
3239   if test "${ac_cv_prog_CPP+set}" = set; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242       # Double quotes because CPP needs to be expanded
3243     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3244     do
3245       ac_preproc_ok=false
3246 for ac_c_preproc_warn_flag in '' yes
3247 do
3248   # Use a header file that comes with gcc, so configuring glibc
3249   # with a fresh cross-compiler works.
3250   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3251   # <limits.h> exists even on freestanding compilers.
3252   # On the NeXT, cc -E runs the code through the compiler's parser,
3253   # not just through cpp. "Syntax error" is here to catch this case.
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #ifdef __STDC__
3261 # include <limits.h>
3262 #else
3263 # include <assert.h>
3264 #endif
3265                      Syntax error
3266 _ACEOF
3267 if { (ac_try="$ac_cpp conftest.$ac_ext"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3274   ac_status=$?
3275   grep -v '^ *+' conftest.er1 >conftest.err
3276   rm -f conftest.er1
3277   cat conftest.err >&5
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } >/dev/null; then
3280   if test -s conftest.err; then
3281     ac_cpp_err=$ac_c_preproc_warn_flag
3282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3283   else
3284     ac_cpp_err=
3285   fi
3286 else
3287   ac_cpp_err=yes
3288 fi
3289 if test -z "$ac_cpp_err"; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298
3299 rm -f conftest.err conftest.$ac_ext
3300
3301   # OK, works on sane cases.  Now check whether nonexistent headers
3302   # can be detected and how.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null; then
3324   if test -s conftest.err; then
3325     ac_cpp_err=$ac_c_preproc_warn_flag
3326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3327   else
3328     ac_cpp_err=
3329   fi
3330 else
3331   ac_cpp_err=yes
3332 fi
3333 if test -z "$ac_cpp_err"; then
3334   # Broken: success on invalid input.
3335 continue
3336 else
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340   # Passes both tests.
3341 ac_preproc_ok=:
3342 break
3343 fi
3344
3345 rm -f conftest.err conftest.$ac_ext
3346
3347 done
3348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349 rm -f conftest.err conftest.$ac_ext
3350 if $ac_preproc_ok; then
3351   break
3352 fi
3353
3354     done
3355     ac_cv_prog_CPP=$CPP
3356
3357 fi
3358   CPP=$ac_cv_prog_CPP
3359 else
3360   ac_cv_prog_CPP=$CPP
3361 fi
3362 { echo "$as_me:$LINENO: result: $CPP" >&5
3363 echo "${ECHO_T}$CPP" >&6; }
3364 ac_preproc_ok=false
3365 for ac_c_preproc_warn_flag in '' yes
3366 do
3367   # Use a header file that comes with gcc, so configuring glibc
3368   # with a fresh cross-compiler works.
3369   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370   # <limits.h> exists even on freestanding compilers.
3371   # On the NeXT, cc -E runs the code through the compiler's parser,
3372   # not just through cpp. "Syntax error" is here to catch this case.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #ifdef __STDC__
3380 # include <limits.h>
3381 #else
3382 # include <assert.h>
3383 #endif
3384                      Syntax error
3385 _ACEOF
3386 if { (ac_try="$ac_cpp conftest.$ac_ext"
3387 case "(($ac_try" in
3388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389   *) ac_try_echo=$ac_try;;
3390 esac
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3393   ac_status=$?
3394   grep -v '^ *+' conftest.er1 >conftest.err
3395   rm -f conftest.er1
3396   cat conftest.err >&5
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); } >/dev/null; then
3399   if test -s conftest.err; then
3400     ac_cpp_err=$ac_c_preproc_warn_flag
3401     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3402   else
3403     ac_cpp_err=
3404   fi
3405 else
3406   ac_cpp_err=yes
3407 fi
3408 if test -z "$ac_cpp_err"; then
3409   :
3410 else
3411   echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414   # Broken: fails on valid input.
3415 continue
3416 fi
3417
3418 rm -f conftest.err conftest.$ac_ext
3419
3420   # OK, works on sane cases.  Now check whether nonexistent headers
3421   # can be detected and how.
3422   cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 #include <ac_nonexistent.h>
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } >/dev/null; then
3443   if test -s conftest.err; then
3444     ac_cpp_err=$ac_c_preproc_warn_flag
3445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3446   else
3447     ac_cpp_err=
3448   fi
3449 else
3450   ac_cpp_err=yes
3451 fi
3452 if test -z "$ac_cpp_err"; then
3453   # Broken: success on invalid input.
3454 continue
3455 else
3456   echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459   # Passes both tests.
3460 ac_preproc_ok=:
3461 break
3462 fi
3463
3464 rm -f conftest.err conftest.$ac_ext
3465
3466 done
3467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468 rm -f conftest.err conftest.$ac_ext
3469 if $ac_preproc_ok; then
3470   :
3471 else
3472   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3473 See \`config.log' for more details." >&5
3474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&2;}
3476    { (exit 1); exit 1; }; }
3477 fi
3478
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485
3486 if test "$CXX" = "clang++" ; then
3487   { echo "$as_me:$LINENO: checking whether clang works" >&5
3488 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3489   ac_ext=cpp
3490 ac_cpp='$CXXCPP $CPPFLAGS'
3491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3494
3495
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502 #include <limits>
3503 #if __has_include (<cxxabi.h>)
3504 #include <cxxabi.h>
3505 #endif
3506 #if __has_include (<unwind.h>)
3507 #include <unwind.h>
3508 #endif
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_compile") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3533   { (case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_try") 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; } &&
3542          { ac_try='test -s conftest.$ac_objext'
3543   { (case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548   (eval "$ac_try") 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552
3553   { echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6; }
3555
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560
3561   { echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6; }
3563   { { 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
3564 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;}
3565    { (exit 1); exit 1; }; }
3566
3567 fi
3568
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570   ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575
3576 fi
3577
3578
3579
3580 if test -d ${srcdir}/projects/test-suite ; then
3581   subdirs="$subdirs projects/test-suite"
3582
3583 fi
3584
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586   subdirs="$subdirs projects/llvm-test"
3587
3588 fi
3589
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591   subdirs="$subdirs projects/poolalloc"
3592
3593 fi
3594
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596   subdirs="$subdirs projects/llvm-poolalloc"
3597
3598 fi
3599
3600 for i in `ls ${srcdir}/projects`
3601 do
3602   if test -d ${srcdir}/projects/${i} ; then
3603     case ${i} in
3604       sample)       subdirs="$subdirs projects/sample"
3605     ;;
3606       privbracket)  subdirs="$subdirs projects/privbracket"
3607  ;;
3608       safecode)     subdirs="$subdirs projects/safecode"
3609  ;;
3610       compiler-rt)       ;;
3611       test-suite)     ;;
3612       llvm-test)      ;;
3613       poolalloc)      ;;
3614       llvm-poolalloc) ;;
3615       *)
3616         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3618         ;;
3619     esac
3620   fi
3621 done
3622
3623 # Check whether --enable-polly was given.
3624 if test "${enable_polly+set}" = set; then
3625   enableval=$enable_polly;
3626 else
3627   enableval=default
3628 fi
3629
3630 case "$enableval" in
3631   yes) ENABLE_POLLY=1
3632  ;;
3633   no)  ENABLE_POLLY=0
3634  ;;
3635   default) ENABLE_POLLY=1
3636  ;;
3637   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3638 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3639    { (exit 1); exit 1; }; } ;;
3640 esac
3641
3642
3643 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3644   LLVM_HAS_POLLY=1
3645
3646   subdirs="$subdirs tools/polly"
3647
3648 fi
3649
3650
3651 # Make sure we can run config.sub.
3652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3653   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3654 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3655    { (exit 1); exit 1; }; }
3656
3657 { echo "$as_me:$LINENO: checking build system type" >&5
3658 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3659 if test "${ac_cv_build+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   ac_build_alias=$build_alias
3663 test "x$ac_build_alias" = x &&
3664   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3665 test "x$ac_build_alias" = x &&
3666   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3667 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3668    { (exit 1); exit 1; }; }
3669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3670   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3671 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3672    { (exit 1); exit 1; }; }
3673
3674 fi
3675 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3676 echo "${ECHO_T}$ac_cv_build" >&6; }
3677 case $ac_cv_build in
3678 *-*-*) ;;
3679 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3680 echo "$as_me: error: invalid value of canonical build" >&2;}
3681    { (exit 1); exit 1; }; };;
3682 esac
3683 build=$ac_cv_build
3684 ac_save_IFS=$IFS; IFS='-'
3685 set x $ac_cv_build
3686 shift
3687 build_cpu=$1
3688 build_vendor=$2
3689 shift; shift
3690 # Remember, the first character of IFS is used to create $*,
3691 # except with old shells:
3692 build_os=$*
3693 IFS=$ac_save_IFS
3694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3695
3696
3697 { echo "$as_me:$LINENO: checking host system type" >&5
3698 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3699 if test "${ac_cv_host+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   if test "x$host_alias" = x; then
3703   ac_cv_host=$ac_cv_build
3704 else
3705   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3706     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3707 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3708    { (exit 1); exit 1; }; }
3709 fi
3710
3711 fi
3712 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3713 echo "${ECHO_T}$ac_cv_host" >&6; }
3714 case $ac_cv_host in
3715 *-*-*) ;;
3716 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3717 echo "$as_me: error: invalid value of canonical host" >&2;}
3718    { (exit 1); exit 1; }; };;
3719 esac
3720 host=$ac_cv_host
3721 ac_save_IFS=$IFS; IFS='-'
3722 set x $ac_cv_host
3723 shift
3724 host_cpu=$1
3725 host_vendor=$2
3726 shift; shift
3727 # Remember, the first character of IFS is used to create $*,
3728 # except with old shells:
3729 host_os=$*
3730 IFS=$ac_save_IFS
3731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3732
3733
3734 { echo "$as_me:$LINENO: checking target system type" >&5
3735 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3736 if test "${ac_cv_target+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   if test "x$target_alias" = x; then
3740   ac_cv_target=$ac_cv_host
3741 else
3742   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3743     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3744 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3745    { (exit 1); exit 1; }; }
3746 fi
3747
3748 fi
3749 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3750 echo "${ECHO_T}$ac_cv_target" >&6; }
3751 case $ac_cv_target in
3752 *-*-*) ;;
3753 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3754 echo "$as_me: error: invalid value of canonical target" >&2;}
3755    { (exit 1); exit 1; }; };;
3756 esac
3757 target=$ac_cv_target
3758 ac_save_IFS=$IFS; IFS='-'
3759 set x $ac_cv_target
3760 shift
3761 target_cpu=$1
3762 target_vendor=$2
3763 shift; shift
3764 # Remember, the first character of IFS is used to create $*,
3765 # except with old shells:
3766 target_os=$*
3767 IFS=$ac_save_IFS
3768 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3769
3770
3771 # The aliases save the names the user supplied, while $host etc.
3772 # will get canonicalized.
3773 test -n "$target_alias" &&
3774   test "$program_prefix$program_suffix$program_transform_name" = \
3775     NONENONEs,x,x, &&
3776   program_prefix=${target_alias}-
3777
3778 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3779 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3780 if test "${llvm_cv_os_type+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   case $host in
3784   *-*-aix*)
3785     llvm_cv_link_all_option="-Wl,--whole-archive"
3786     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3787     llvm_cv_os_type="AIX"
3788     llvm_cv_platform_type="Unix" ;;
3789   *-*-irix*)
3790     llvm_cv_link_all_option="-Wl,--whole-archive"
3791     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3792     llvm_cv_os_type="IRIX"
3793     llvm_cv_platform_type="Unix" ;;
3794   *-*-cygwin*)
3795     llvm_cv_link_all_option="-Wl,--whole-archive"
3796     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3797     llvm_cv_os_type="Cygwin"
3798     llvm_cv_platform_type="Unix" ;;
3799   *-*-darwin*)
3800     llvm_cv_link_all_option="-Wl,-all_load"
3801     llvm_cv_no_link_all_option="-Wl,-noall_load"
3802     llvm_cv_os_type="Darwin"
3803     llvm_cv_platform_type="Unix" ;;
3804   *-*-minix*)
3805     llvm_cv_link_all_option="-Wl,-all_load"
3806     llvm_cv_no_link_all_option="-Wl,-noall_load"
3807     llvm_cv_os_type="Minix"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-freebsd*)
3810     llvm_cv_link_all_option="-Wl,--whole-archive"
3811     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812     llvm_cv_os_type="FreeBSD"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-kfreebsd-gnu)
3815     llvm_cv_link_all_option="-Wl,--whole-archive"
3816     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817     llvm_cv_os_type="GNU/kFreeBSD"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-openbsd*)
3820     llvm_cv_link_all_option="-Wl,--whole-archive"
3821     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3822     llvm_cv_os_type="OpenBSD"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-netbsd*)
3825     llvm_cv_link_all_option="-Wl,--whole-archive"
3826     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827     llvm_cv_os_type="NetBSD"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-dragonfly*)
3830     llvm_cv_link_all_option="-Wl,--whole-archive"
3831     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832     llvm_cv_os_type="DragonFly"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-hpux*)
3835     llvm_cv_link_all_option="-Wl,--whole-archive"
3836     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837     llvm_cv_os_type="HP-UX"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-interix*)
3840     llvm_cv_link_all_option="-Wl,--whole-archive"
3841     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842     llvm_cv_os_type="Interix"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-linux*)
3845     llvm_cv_link_all_option="-Wl,--whole-archive"
3846     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847     llvm_cv_os_type="Linux"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-gnu*)
3850     llvm_cv_link_all_option="-Wl,--whole-archive"
3851     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852     llvm_cv_os_type="GNU"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-solaris*)
3855     llvm_cv_link_all_option="-Wl,-z,allextract"
3856     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3857     llvm_cv_os_type="SunOS"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-auroraux*)
3860     llvm_cv_link_all_option="-Wl,-z,allextract"
3861     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3862     llvm_cv_os_type="AuroraUX"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-win32*)
3865     llvm_cv_link_all_option="-Wl,--whole-archive"
3866     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867     llvm_cv_os_type="Win32"
3868     llvm_cv_platform_type="Win32" ;;
3869   *-*-mingw*)
3870     llvm_cv_link_all_option="-Wl,--whole-archive"
3871     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872     llvm_cv_os_type="MingW"
3873     llvm_cv_platform_type="Win32" ;;
3874   *-*-haiku*)
3875     llvm_cv_link_all_option="-Wl,--whole-archive"
3876     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877     llvm_cv_os_type="Haiku"
3878     llvm_cv_platform_type="Unix" ;;
3879   *-unknown-eabi*)
3880     llvm_cv_link_all_option="-Wl,--whole-archive"
3881     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882     llvm_cv_os_type="Freestanding"
3883     llvm_cv_platform_type="Unix" ;;
3884   *-unknown-elf*)
3885     llvm_cv_link_all_option="-Wl,--whole-archive"
3886     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887     llvm_cv_os_type="Freestanding"
3888     llvm_cv_platform_type="Unix" ;;
3889   *)
3890     llvm_cv_link_all_option=""
3891     llvm_cv_no_link_all_option=""
3892     llvm_cv_os_type="Unknown"
3893     llvm_cv_platform_type="Unknown" ;;
3894 esac
3895 fi
3896 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3897 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3898
3899 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3900 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3901 if test "${llvm_cv_target_os_type+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   case $target in
3905   *-*-aix*)
3906     llvm_cv_target_os_type="AIX" ;;
3907   *-*-irix*)
3908     llvm_cv_target_os_type="IRIX" ;;
3909   *-*-cygwin*)
3910     llvm_cv_target_os_type="Cygwin" ;;
3911   *-*-darwin*)
3912     llvm_cv_target_os_type="Darwin" ;;
3913   *-*-minix*)
3914     llvm_cv_target_os_type="Minix" ;;
3915   *-*-freebsd*)
3916     llvm_cv_target_os_type="FreeBSD" ;;
3917   *-*-kfreebsd-gnu)
3918     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3919   *-*-openbsd*)
3920     llvm_cv_target_os_type="OpenBSD" ;;
3921   *-*-netbsd*)
3922     llvm_cv_target_os_type="NetBSD" ;;
3923   *-*-dragonfly*)
3924     llvm_cv_target_os_type="DragonFly" ;;
3925   *-*-hpux*)
3926     llvm_cv_target_os_type="HP-UX" ;;
3927   *-*-interix*)
3928     llvm_cv_target_os_type="Interix" ;;
3929   *-*-linux*)
3930     llvm_cv_target_os_type="Linux" ;;
3931   *-*-gnu*)
3932     llvm_cv_target_os_type="GNU" ;;
3933   *-*-solaris*)
3934     llvm_cv_target_os_type="SunOS" ;;
3935   *-*-auroraux*)
3936     llvm_cv_target_os_type="AuroraUX" ;;
3937   *-*-win32*)
3938     llvm_cv_target_os_type="Win32" ;;
3939   *-*-mingw*)
3940     llvm_cv_target_os_type="MingW" ;;
3941   *-*-haiku*)
3942     llvm_cv_target_os_type="Haiku" ;;
3943   *-*-rtems*)
3944     llvm_cv_target_os_type="RTEMS" ;;
3945   *-*-nacl*)
3946     llvm_cv_target_os_type="NativeClient" ;;
3947   *-unknown-eabi*)
3948     llvm_cv_target_os_type="Freestanding" ;;
3949   *)
3950     llvm_cv_target_os_type="Unknown" ;;
3951 esac
3952 fi
3953 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3954 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3955
3956 if test "$llvm_cv_os_type" = "Unknown" ; then
3957   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3958 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3959    { (exit 1); exit 1; }; }
3960 fi
3961
3962 OS=$llvm_cv_os_type
3963
3964 HOST_OS=$llvm_cv_os_type
3965
3966 TARGET_OS=$llvm_cv_target_os_type
3967
3968
3969 LINKALL=$llvm_cv_link_all_option
3970
3971 NOLINKALL=$llvm_cv_no_link_all_option
3972
3973
3974 case $llvm_cv_platform_type in
3975   Unix)
3976
3977 cat >>confdefs.h <<\_ACEOF
3978 #define LLVM_ON_UNIX 1
3979 _ACEOF
3980
3981     LLVM_ON_UNIX=1
3982
3983     LLVM_ON_WIN32=0
3984
3985     ;;
3986   Win32)
3987
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_WIN32 1
3990 _ACEOF
3991
3992     LLVM_ON_UNIX=0
3993
3994     LLVM_ON_WIN32=1
3995
3996     ;;
3997 esac
3998
3999 { echo "$as_me:$LINENO: checking target architecture" >&5
4000 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4001 if test "${llvm_cv_target_arch+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   case $target in
4005   i?86-*)                 llvm_cv_target_arch="x86" ;;
4006   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4007   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4008   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4009   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4010   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4011   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4012   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4013   xcore-*)                llvm_cv_target_arch="XCore" ;;
4014   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4015   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4016   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4017   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4018   *)                      llvm_cv_target_arch="Unknown" ;;
4019 esac
4020 fi
4021 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4022 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4023
4024 if test "$llvm_cv_target_arch" = "Unknown" ; then
4025   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4026 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4027 fi
4028
4029 case "$llvm_cv_target_arch" in
4030     x86)     LLVM_NATIVE_ARCH="X86" ;;
4031     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4032     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4033 esac
4034
4035 ARCH=$llvm_cv_target_arch
4036
4037
4038 case $host in
4039   i?86-*)                 host_arch="x86" ;;
4040   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4041   sparc*-*)               host_arch="Sparc" ;;
4042   powerpc*-*)             host_arch="PowerPC" ;;
4043   arm*-*)                 host_arch="ARM" ;;
4044   aarch64*-*)             host_arch="AArch64" ;;
4045   mips-* | mips64-*)      host_arch="Mips" ;;
4046   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4047   xcore-*)                host_arch="XCore" ;;
4048   msp430-*)               host_arch="MSP430" ;;
4049   hexagon-*)              host_arch="Hexagon" ;;
4050   s390x-*)                host_arch="SystemZ" ;;
4051   *)                      host_arch="Unknown" ;;
4052 esac
4053
4054 if test "$host_arch" = "Unknown" ; then
4055   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4056 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4057 fi
4058
4059 HOST_ARCH=$host_arch
4060
4061
4062 if test "$cross_compiling" = yes; then
4063   LLVM_CROSS_COMPILING=1
4064
4065
4066 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4067 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4068 if test "${ac_cv_build_exeext+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4072   ac_cv_build_exeext=.exe
4073 else
4074   ac_build_prefix=${build_alias}-
4075
4076   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4077 set dummy ${ac_build_prefix}gcc; ac_word=$2
4078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4080 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   if test -n "$BUILD_CC"; then
4084   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089   IFS=$as_save_IFS
4090   test -z "$as_dir" && as_dir=.
4091   for ac_exec_ext in '' $ac_executable_extensions; do
4092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4093     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095     break 2
4096   fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 BUILD_CC=$ac_cv_prog_BUILD_CC
4104 if test -n "$BUILD_CC"; then
4105   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4106 echo "${ECHO_T}$BUILD_CC" >&6; }
4107 else
4108   { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4110 fi
4111
4112
4113   if test -z "$BUILD_CC"; then
4114      # Extract the first word of "gcc", so it can be a program name with args.
4115 set dummy gcc; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   if test -n "$BUILD_CC"; then
4122   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129   for ac_exec_ext in '' $ac_executable_extensions; do
4130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4131     ac_cv_prog_BUILD_CC="gcc"
4132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133     break 2
4134   fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 BUILD_CC=$ac_cv_prog_BUILD_CC
4142 if test -n "$BUILD_CC"; then
4143   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4144 echo "${ECHO_T}$BUILD_CC" >&6; }
4145 else
4146   { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4148 fi
4149
4150
4151      if test -z "$BUILD_CC"; then
4152        # Extract the first word of "cc", so it can be a program name with args.
4153 set dummy cc; ac_word=$2
4154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4156 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -n "$BUILD_CC"; then
4160   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4161 else
4162   ac_prog_rejected=no
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168   for ac_exec_ext in '' $ac_executable_extensions; do
4169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4170     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4171        ac_prog_rejected=yes
4172        continue
4173      fi
4174     ac_cv_prog_BUILD_CC="cc"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 if test $ac_prog_rejected = yes; then
4183   # We found a bogon in the path, so make sure we never use it.
4184   set dummy $ac_cv_prog_BUILD_CC
4185   shift
4186   if test $# != 0; then
4187     # We chose a different compiler from the bogus one.
4188     # However, it has the same basename, so the bogon will be chosen
4189     # first if we set BUILD_CC to just the basename; use the full file name.
4190     shift
4191     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4192   fi
4193 fi
4194 fi
4195 fi
4196 BUILD_CC=$ac_cv_prog_BUILD_CC
4197 if test -n "$BUILD_CC"; then
4198   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4199 echo "${ECHO_T}$BUILD_CC" >&6; }
4200 else
4201   { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4203 fi
4204
4205
4206      fi
4207   fi
4208   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4209 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4210    { (exit 1); exit 1; }; }
4211   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4212   rm -f conftest*
4213   echo 'int main () { return 0; }' > conftest.$ac_ext
4214   ac_cv_build_exeext=
4215   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4216   (eval $ac_build_link) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; then
4220     for file in conftest.*; do
4221       case $file in
4222       *.c | *.o | *.obj | *.dSYM) ;;
4223       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4224       esac
4225     done
4226   else
4227     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4228 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4229    { (exit 1); exit 1; }; }
4230   fi
4231   rm -f conftest*
4232   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4233 fi
4234 fi
4235
4236 BUILD_EXEEXT=""
4237 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4238 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4239 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4240 ac_build_exeext=$BUILD_EXEEXT
4241
4242   ac_build_prefix=${build_alias}-
4243   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4244 set dummy ${ac_build_prefix}g++; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   if test -n "$BUILD_CXX"; then
4251   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4260     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4271 if test -n "$BUILD_CXX"; then
4272   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4273 echo "${ECHO_T}$BUILD_CXX" >&6; }
4274 else
4275   { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4277 fi
4278
4279
4280   if test -z "$BUILD_CXX"; then
4281      # Extract the first word of "g++", so it can be a program name with args.
4282 set dummy g++; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   if test -n "$BUILD_CXX"; then
4289   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296   for ac_exec_ext in '' $ac_executable_extensions; do
4297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4298     ac_cv_prog_BUILD_CXX="g++"
4299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4309 if test -n "$BUILD_CXX"; then
4310   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4311 echo "${ECHO_T}$BUILD_CXX" >&6; }
4312 else
4313   { echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6; }
4315 fi
4316
4317
4318      if test -z "$BUILD_CXX"; then
4319        # Extract the first word of "c++", so it can be a program name with args.
4320 set dummy c++; ac_word=$2
4321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4323 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   if test -n "$BUILD_CXX"; then
4327   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4328 else
4329   ac_prog_rejected=no
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_exec_ext in '' $ac_executable_extensions; do
4336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4337     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4338        ac_prog_rejected=yes
4339        continue
4340      fi
4341     ac_cv_prog_BUILD_CXX="c++"
4342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343     break 2
4344   fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349 if test $ac_prog_rejected = yes; then
4350   # We found a bogon in the path, so make sure we never use it.
4351   set dummy $ac_cv_prog_BUILD_CXX
4352   shift
4353   if test $# != 0; then
4354     # We chose a different compiler from the bogus one.
4355     # However, it has the same basename, so the bogon will be chosen
4356     # first if we set BUILD_CXX to just the basename; use the full file name.
4357     shift
4358     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4359   fi
4360 fi
4361 fi
4362 fi
4363 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4364 if test -n "$BUILD_CXX"; then
4365   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4366 echo "${ECHO_T}$BUILD_CXX" >&6; }
4367 else
4368   { echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6; }
4370 fi
4371
4372
4373      fi
4374   fi
4375 else
4376   LLVM_CROSS_COMPILING=0
4377
4378 fi
4379
4380 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4381   cvsbuild="yes"
4382   optimize="no"
4383   CVSBUILD=CVSBUILD=1
4384
4385 else
4386   cvsbuild="no"
4387   optimize="yes"
4388 fi
4389
4390
4391 # Check whether --enable-libcpp was given.
4392 if test "${enable_libcpp+set}" = set; then
4393   enableval=$enable_libcpp;
4394 else
4395   enableval=default
4396 fi
4397
4398 case "$enableval" in
4399   yes) ENABLE_LIBCPP=1
4400  ;;
4401   no)  ENABLE_LIBCPP=0
4402  ;;
4403   default) ENABLE_LIBCPP=0
4404 ;;
4405   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4406 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4407    { (exit 1); exit 1; }; } ;;
4408 esac
4409
4410 # Check whether --enable-cxx11 was given.
4411 if test "${enable_cxx11+set}" = set; then
4412   enableval=$enable_cxx11;
4413 else
4414   enableval=default
4415 fi
4416
4417 case "$enableval" in
4418   yes) ENABLE_CXX11=1
4419  ;;
4420   no)  ENABLE_CXX11=0
4421  ;;
4422   default) ENABLE_CXX11=0
4423 ;;
4424   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4425 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4426    { (exit 1); exit 1; }; } ;;
4427 esac
4428
4429 # Check whether --enable-split-dwarf was given.
4430 if test "${enable_split_dwarf+set}" = set; then
4431   enableval=$enable_split_dwarf;
4432 else
4433   enableval=default
4434 fi
4435
4436 case "$enableval" in
4437   yes) ENABLE_SPLIT_DWARF=1
4438  ;;
4439   no)  ENABLE_SPLIT_DWARF=0
4440  ;;
4441   default) ENABLE_SPLIT_DWARF=0
4442 ;;
4443   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4444 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4445    { (exit 1); exit 1; }; } ;;
4446 esac
4447
4448 clang_arcmt="yes"
4449 # Check whether --enable-clang-arcmt was given.
4450 if test "${enable_clang_arcmt+set}" = set; then
4451   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4452 else
4453   enableval="yes"
4454 fi
4455
4456 case "$enableval" in
4457   yes) ENABLE_CLANG_ARCMT=1
4458  ;;
4459   no)  ENABLE_CLANG_ARCMT=0
4460  ;;
4461   default) ENABLE_CLANG_ARCMT=1
4462 ;;
4463   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4464 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4465    { (exit 1); exit 1; }; } ;;
4466 esac
4467
4468 clang_static_analyzer="yes"
4469 # Check whether --enable-clang-static-analyzer was given.
4470 if test "${enable_clang_static_analyzer+set}" = set; then
4471   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4472 else
4473   enableval="yes"
4474 fi
4475
4476 case "$enableval" in
4477   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4478  ;;
4479   no)
4480     if test ${clang_arcmt} != "no" ; then
4481       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4482 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4483    { (exit 1); exit 1; }; }
4484     fi
4485     ENABLE_CLANG_STATIC_ANALYZER=0
4486
4487     ;;
4488   default) ENABLE_CLANG_STATIC_ANALYZER=1
4489 ;;
4490   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4491 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4492    { (exit 1); exit 1; }; } ;;
4493 esac
4494
4495 # Check whether --enable-clang-rewriter was given.
4496 if test "${enable_clang_rewriter+set}" = set; then
4497   enableval=$enable_clang_rewriter;
4498 else
4499   enableval="yes"
4500 fi
4501
4502 case "$enableval" in
4503   yes) ENABLE_CLANG_REWRITER=1
4504  ;;
4505   no)
4506     if test ${clang_arcmt} != "no" ; then
4507       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4508 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4509    { (exit 1); exit 1; }; }
4510     fi
4511     if test ${clang_static_analyzer} != "no" ; then
4512       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4513 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4514    { (exit 1); exit 1; }; }
4515     fi
4516     ENABLE_CLANG_REWRITER=0
4517
4518     ;;
4519   default) ENABLE_CLANG_REWRITER=1
4520 ;;
4521   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4522 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4523    { (exit 1); exit 1; }; } ;;
4524 esac
4525
4526 # Check whether --enable-optimized was given.
4527 if test "${enable_optimized+set}" = set; then
4528   enableval=$enable_optimized;
4529 else
4530   enableval=$optimize
4531 fi
4532
4533 if test ${enableval} = "no" ; then
4534   ENABLE_OPTIMIZED=
4535
4536 else
4537   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4538
4539 fi
4540
4541 # Check whether --enable-profiling was given.
4542 if test "${enable_profiling+set}" = set; then
4543   enableval=$enable_profiling;
4544 else
4545   enableval="no"
4546 fi
4547
4548 if test ${enableval} = "no" ; then
4549   ENABLE_PROFILING=
4550
4551 else
4552   ENABLE_PROFILING=ENABLE_PROFILING=1
4553
4554 fi
4555
4556 # Check whether --enable-assertions was given.
4557 if test "${enable_assertions+set}" = set; then
4558   enableval=$enable_assertions;
4559 else
4560   enableval="yes"
4561 fi
4562
4563 if test ${enableval} = "yes" ; then
4564   DISABLE_ASSERTIONS=
4565
4566 else
4567   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4568
4569 fi
4570
4571 # Check whether --enable-werror was given.
4572 if test "${enable_werror+set}" = set; then
4573   enableval=$enable_werror;
4574 else
4575   enableval="no"
4576 fi
4577
4578 case "$enableval" in
4579   yes) ENABLE_WERROR=1
4580  ;;
4581   no)  ENABLE_WERROR=0
4582  ;;
4583   default) ENABLE_WERROR=0
4584 ;;
4585   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4586 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4587    { (exit 1); exit 1; }; } ;;
4588 esac
4589
4590 # Check whether --enable-expensive-checks was given.
4591 if test "${enable_expensive_checks+set}" = set; then
4592   enableval=$enable_expensive_checks;
4593 else
4594   enableval="no"
4595 fi
4596
4597 if test ${enableval} = "yes" ; then
4598   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4599
4600   EXPENSIVE_CHECKS=yes
4601
4602 else
4603   ENABLE_EXPENSIVE_CHECKS=
4604
4605   EXPENSIVE_CHECKS=no
4606
4607 fi
4608
4609 # Check whether --enable-debug-runtime was given.
4610 if test "${enable_debug_runtime+set}" = set; then
4611   enableval=$enable_debug_runtime;
4612 else
4613   enableval=no
4614 fi
4615
4616 if test ${enableval} = "no" ; then
4617   DEBUG_RUNTIME=
4618
4619 else
4620   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4621
4622 fi
4623
4624 # Check whether --enable-debug-symbols was given.
4625 if test "${enable_debug_symbols+set}" = set; then
4626   enableval=$enable_debug_symbols;
4627 else
4628   enableval=no
4629 fi
4630
4631 if test ${enableval} = "no" ; then
4632   DEBUG_SYMBOLS=
4633
4634 else
4635   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4636
4637 fi
4638
4639 # Check whether --enable-keep-symbols was given.
4640 if test "${enable_keep_symbols+set}" = set; then
4641   enableval=$enable_keep_symbols;
4642 else
4643   enableval=no
4644 fi
4645
4646 if test ${enableval} = "no" ; then
4647   KEEP_SYMBOLS=
4648
4649 else
4650   KEEP_SYMBOLS=KEEP_SYMBOLS=1
4651
4652 fi
4653
4654 # Check whether --enable-jit was given.
4655 if test "${enable_jit+set}" = set; then
4656   enableval=$enable_jit;
4657 else
4658   enableval=default
4659 fi
4660
4661 if test ${enableval} = "no"
4662 then
4663   JIT=
4664
4665 else
4666   case "$llvm_cv_target_arch" in
4667     x86)         TARGET_HAS_JIT=1
4668  ;;
4669     Sparc)       TARGET_HAS_JIT=0
4670  ;;
4671     PowerPC)     TARGET_HAS_JIT=1
4672  ;;
4673     x86_64)      TARGET_HAS_JIT=1
4674  ;;
4675     ARM)         TARGET_HAS_JIT=1
4676  ;;
4677     AArch64)     TARGET_HAS_JIT=0
4678  ;;
4679     Mips)        TARGET_HAS_JIT=1
4680  ;;
4681     XCore)       TARGET_HAS_JIT=0
4682  ;;
4683     MSP430)      TARGET_HAS_JIT=0
4684  ;;
4685     Hexagon)     TARGET_HAS_JIT=0
4686  ;;
4687     NVPTX)       TARGET_HAS_JIT=0
4688  ;;
4689     SystemZ)     TARGET_HAS_JIT=1
4690  ;;
4691     *)           TARGET_HAS_JIT=0
4692  ;;
4693   esac
4694 fi
4695
4696 # Check whether --enable-docs was given.
4697 if test "${enable_docs+set}" = set; then
4698   enableval=$enable_docs;
4699 else
4700   enableval=default
4701 fi
4702
4703 case "$enableval" in
4704   yes) ENABLE_DOCS=1
4705  ;;
4706   no)  ENABLE_DOCS=0
4707  ;;
4708   default) ENABLE_DOCS=1
4709  ;;
4710   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4711 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4712    { (exit 1); exit 1; }; } ;;
4713 esac
4714
4715 # Check whether --enable-doxygen was given.
4716 if test "${enable_doxygen+set}" = set; then
4717   enableval=$enable_doxygen;
4718 else
4719   enableval=default
4720 fi
4721
4722 case "$enableval" in
4723   yes) ENABLE_DOXYGEN=1
4724  ;;
4725   no)  ENABLE_DOXYGEN=0
4726  ;;
4727   default) ENABLE_DOXYGEN=0
4728  ;;
4729   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4730 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4731    { (exit 1); exit 1; }; } ;;
4732 esac
4733
4734 # Check whether --enable-threads was given.
4735 if test "${enable_threads+set}" = set; then
4736   enableval=$enable_threads;
4737 else
4738   enableval=default
4739 fi
4740
4741 case "$enableval" in
4742   yes) LLVM_ENABLE_THREADS=1
4743  ;;
4744   no)  LLVM_ENABLE_THREADS=0
4745  ;;
4746   default) LLVM_ENABLE_THREADS=1
4747  ;;
4748   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4749 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4750    { (exit 1); exit 1; }; } ;;
4751 esac
4752
4753 cat >>confdefs.h <<_ACEOF
4754 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
4755 _ACEOF
4756
4757
4758 # Check whether --enable-pthreads was given.
4759 if test "${enable_pthreads+set}" = set; then
4760   enableval=$enable_pthreads;
4761 else
4762   enableval=default
4763 fi
4764
4765 case "$enableval" in
4766   yes) ENABLE_PTHREADS=1
4767  ;;
4768   no)  ENABLE_PTHREADS=0
4769  ;;
4770   default) ENABLE_PTHREADS=1
4771  ;;
4772   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4773 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4774    { (exit 1); exit 1; }; } ;;
4775 esac
4776
4777 # Check whether --enable-zlib was given.
4778 if test "${enable_zlib+set}" = set; then
4779   enableval=$enable_zlib;
4780 else
4781   enableval=default
4782 fi
4783
4784 case "$enableval" in
4785   yes) LLVM_ENABLE_ZLIB=1
4786  ;;
4787   no)  LLVM_ENABLE_ZLIB=0
4788  ;;
4789   default) LLVM_ENABLE_ZLIB=1
4790  ;;
4791   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
4793    { (exit 1); exit 1; }; } ;;
4794 esac
4795
4796 cat >>confdefs.h <<_ACEOF
4797 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
4798 _ACEOF
4799
4800
4801 # Check whether --enable-pic was given.
4802 if test "${enable_pic+set}" = set; then
4803   enableval=$enable_pic;
4804 else
4805   enableval=default
4806 fi
4807
4808 case "$enableval" in
4809   yes) ENABLE_PIC=1
4810  ;;
4811   no)  ENABLE_PIC=0
4812  ;;
4813   default) ENABLE_PIC=1
4814  ;;
4815   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4816 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4817    { (exit 1); exit 1; }; } ;;
4818 esac
4819
4820 cat >>confdefs.h <<_ACEOF
4821 #define ENABLE_PIC $ENABLE_PIC
4822 _ACEOF
4823
4824
4825 # Check whether --enable-shared was given.
4826 if test "${enable_shared+set}" = set; then
4827   enableval=$enable_shared;
4828 else
4829   enableval=default
4830 fi
4831
4832 case "$enableval" in
4833   yes) ENABLE_SHARED=1
4834  ;;
4835   no)  ENABLE_SHARED=0
4836  ;;
4837   default) ENABLE_SHARED=0
4838  ;;
4839   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4841    { (exit 1); exit 1; }; } ;;
4842 esac
4843
4844 # Check whether --enable-embed-stdcxx was given.
4845 if test "${enable_embed_stdcxx+set}" = set; then
4846   enableval=$enable_embed_stdcxx;
4847 else
4848   enableval=default
4849 fi
4850
4851 case "$enableval" in
4852   yes) ENABLE_EMBED_STDCXX=1
4853  ;;
4854   no)  ENABLE_EMBED_STDCXX=0
4855  ;;
4856   default) ENABLE_EMBED_STDCXX=0
4857  ;;
4858   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
4859 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
4860    { (exit 1); exit 1; }; } ;;
4861 esac
4862
4863 # Check whether --enable-timestamps was given.
4864 if test "${enable_timestamps+set}" = set; then
4865   enableval=$enable_timestamps;
4866 else
4867   enableval=default
4868 fi
4869
4870 case "$enableval" in
4871   yes) ENABLE_TIMESTAMPS=1
4872  ;;
4873   no)  ENABLE_TIMESTAMPS=0
4874  ;;
4875   default) ENABLE_TIMESTAMPS=1
4876  ;;
4877   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881
4882 cat >>confdefs.h <<_ACEOF
4883 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4884 _ACEOF
4885
4886
4887 # Check whether --enable-backtraces was given.
4888 if test "${enable_backtraces+set}" = set; then
4889   enableval=$enable_backtraces; case "$enableval" in
4890     yes) llvm_cv_enable_backtraces="yes" ;;
4891     no)  llvm_cv_enable_backtraces="no"  ;;
4892     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
4894    { (exit 1); exit 1; }; } ;;
4895   esac
4896 else
4897   llvm_cv_enable_backtraces="yes"
4898 fi
4899
4900 if test "$llvm_cv_enable_backtraces" = "yes" ; then
4901
4902 cat >>confdefs.h <<\_ACEOF
4903 #define ENABLE_BACKTRACES 1
4904 _ACEOF
4905
4906 fi
4907
4908 # Check whether --enable-crash-overrides was given.
4909 if test "${enable_crash_overrides+set}" = set; then
4910   enableval=$enable_crash_overrides; case "$enableval" in
4911     yes) llvm_cv_enable_crash_overrides="yes" ;;
4912     no)  llvm_cv_enable_crash_overrides="no"  ;;
4913     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
4914 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
4915    { (exit 1); exit 1; }; } ;;
4916   esac
4917 else
4918   llvm_cv_enable_crash_overrides="yes"
4919 fi
4920
4921 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
4922
4923 cat >>confdefs.h <<\_ACEOF
4924 #define ENABLE_CRASH_OVERRIDES 1
4925 _ACEOF
4926
4927 fi
4928
4929 TARGETS_TO_BUILD=""
4930 # Check whether --enable-targets was given.
4931 if test "${enable_targets+set}" = set; then
4932   enableval=$enable_targets;
4933 else
4934   enableval=all
4935 fi
4936
4937 if test "$enableval" = host-only ; then
4938   enableval=host
4939 fi
4940 case "$enableval" in
4941   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
4942   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4943       case "$a_target" in
4944         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4945         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4946         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4947         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4948         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4949         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4950         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4951         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4952         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4953         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4954         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4955         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4956         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4957         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4958         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4959         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4960         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
4961         host) case "$llvm_cv_target_arch" in
4962             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4965             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4966             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4967             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4968             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4969             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4971             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4972             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4973             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4974             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4975 echo "$as_me: error: Can not set target to build" >&2;}
4976    { (exit 1); exit 1; }; } ;;
4977           esac ;;
4978         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4979 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4980    { (exit 1); exit 1; }; } ;;
4981       esac
4982   done
4983   ;;
4984 esac
4985
4986 # Check whether --enable-experimental-targets was given.
4987 if test "${enable_experimental_targets+set}" = set; then
4988   enableval=$enable_experimental_targets;
4989 else
4990   enableval=disable
4991 fi
4992
4993
4994 if test ${enableval} != "disable"
4995 then
4996   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
4997 fi
4998
4999 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5000
5001
5002 for a_target in $TARGETS_TO_BUILD; do
5003   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5004
5005 cat >>confdefs.h <<_ACEOF
5006 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5007 _ACEOF
5008
5009     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5010     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5011     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5012     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5013     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5014       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5015     fi
5016     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5017       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5018     fi
5019
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5022 _ACEOF
5023
5024
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5027 _ACEOF
5028
5029
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5032 _ACEOF
5033
5034
5035 cat >>confdefs.h <<_ACEOF
5036 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5037 _ACEOF
5038
5039     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5040
5041 cat >>confdefs.h <<_ACEOF
5042 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5043 _ACEOF
5044
5045     fi
5046     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5047
5048 cat >>confdefs.h <<_ACEOF
5049 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5050 _ACEOF
5051
5052     fi
5053   fi
5054 done
5055
5056 LLVM_ENUM_TARGETS=""
5057 LLVM_ENUM_ASM_PRINTERS=""
5058 LLVM_ENUM_ASM_PARSERS=""
5059 LLVM_ENUM_DISASSEMBLERS=""
5060 for target_to_build in $TARGETS_TO_BUILD; do
5061   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5062   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5063     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5064   fi
5065   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5066     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5067   fi
5068   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5069     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5070   fi
5071 done
5072
5073
5074
5075
5076
5077
5078 # Check whether --with-optimize-option was given.
5079 if test "${with_optimize_option+set}" = set; then
5080   withval=$with_optimize_option;
5081 else
5082   withval=default
5083 fi
5084
5085 { echo "$as_me:$LINENO: checking optimization flags" >&5
5086 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5087 case "$withval" in
5088   default)
5089     case "$llvm_cv_os_type" in
5090     FreeBSD) optimize_option=-O2 ;;
5091     MingW) optimize_option=-O2 ;;
5092     *)     optimize_option=-O3 ;;
5093     esac ;;
5094   *) optimize_option="$withval" ;;
5095 esac
5096 OPTIMIZE_OPTION=$optimize_option
5097
5098 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5099 echo "${ECHO_T}$optimize_option" >&6; }
5100
5101
5102 # Check whether --with-extra-options was given.
5103 if test "${with_extra_options+set}" = set; then
5104   withval=$with_extra_options;
5105 else
5106   withval=default
5107 fi
5108
5109 case "$withval" in
5110   default) EXTRA_OPTIONS= ;;
5111   *) EXTRA_OPTIONS=$withval ;;
5112 esac
5113 EXTRA_OPTIONS=$EXTRA_OPTIONS
5114
5115
5116
5117 # Check whether --with-extra-ld-options was given.
5118 if test "${with_extra_ld_options+set}" = set; then
5119   withval=$with_extra_ld_options;
5120 else
5121   withval=default
5122 fi
5123
5124 case "$withval" in
5125   default) EXTRA_LD_OPTIONS= ;;
5126   *) EXTRA_LD_OPTIONS=$withval ;;
5127 esac
5128 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5129
5130
5131 # Check whether --enable-bindings was given.
5132 if test "${enable_bindings+set}" = set; then
5133   enableval=$enable_bindings;
5134 else
5135   enableval=default
5136 fi
5137
5138 BINDINGS_TO_BUILD=""
5139 case "$enableval" in
5140   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5141   all ) BINDINGS_TO_BUILD="ocaml" ;;
5142   none | no) BINDINGS_TO_BUILD="" ;;
5143   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5144       case "$a_binding" in
5145         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5146         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5147 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5148    { (exit 1); exit 1; }; } ;;
5149       esac
5150   done
5151   ;;
5152 esac
5153
5154
5155 # Check whether --with-ocaml-libdir was given.
5156 if test "${with_ocaml_libdir+set}" = set; then
5157   withval=$with_ocaml_libdir;
5158 else
5159   withval=auto
5160 fi
5161
5162 case "$withval" in
5163   auto) with_ocaml_libdir="$withval" ;;
5164   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5165   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5166 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5167    { (exit 1); exit 1; }; } ;;
5168 esac
5169
5170
5171 # Check whether --with-clang-srcdir was given.
5172 if test "${with_clang_srcdir+set}" = set; then
5173   withval=$with_clang_srcdir;
5174 else
5175   withval="-"
5176 fi
5177
5178 case "$withval" in
5179   -) clang_src_root="" ;;
5180   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5181   *) clang_src_root="$ac_pwd/$withval" ;;
5182 esac
5183 CLANG_SRC_ROOT=$clang_src_root
5184
5185
5186
5187 # Check whether --with-clang-resource-dir was given.
5188 if test "${with_clang_resource_dir+set}" = set; then
5189   withval=$with_clang_resource_dir;
5190 else
5191   withval=""
5192 fi
5193
5194
5195 cat >>confdefs.h <<_ACEOF
5196 #define CLANG_RESOURCE_DIR "$withval"
5197 _ACEOF
5198
5199
5200
5201 # Check whether --with-c-include-dirs was given.
5202 if test "${with_c_include_dirs+set}" = set; then
5203   withval=$with_c_include_dirs;
5204 else
5205   withval=""
5206 fi
5207
5208
5209 cat >>confdefs.h <<_ACEOF
5210 #define C_INCLUDE_DIRS "$withval"
5211 _ACEOF
5212
5213
5214 # Clang normally uses the system c++ headers and libraries. With this option,
5215 # clang will use the ones provided by a gcc installation instead. This option should
5216 # be passed the same value that was used with --prefix when configuring gcc.
5217
5218 # Check whether --with-gcc-toolchain was given.
5219 if test "${with_gcc_toolchain+set}" = set; then
5220   withval=$with_gcc_toolchain;
5221 else
5222   withval=""
5223 fi
5224
5225
5226 cat >>confdefs.h <<_ACEOF
5227 #define GCC_INSTALL_PREFIX "$withval"
5228 _ACEOF
5229
5230
5231
5232 # Check whether --with-default-sysroot was given.
5233 if test "${with_default_sysroot+set}" = set; then
5234   withval=$with_default_sysroot;
5235 else
5236   withval=""
5237 fi
5238
5239
5240 cat >>confdefs.h <<_ACEOF
5241 #define DEFAULT_SYSROOT "$withval"
5242 _ACEOF
5243
5244
5245
5246 # Check whether --with-binutils-include was given.
5247 if test "${with_binutils_include+set}" = set; then
5248   withval=$with_binutils_include;
5249 else
5250   withval=default
5251 fi
5252
5253 case "$withval" in
5254   default) WITH_BINUTILS_INCDIR=default ;;
5255   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5256   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5257 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5258    { (exit 1); exit 1; }; } ;;
5259 esac
5260 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5261   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5262
5263   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5264      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5265      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5266 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5267    { (exit 1); exit 1; }; };
5268   fi
5269 fi
5270
5271
5272 # Check whether --with-bug-report-url was given.
5273 if test "${with_bug_report_url+set}" = set; then
5274   withval=$with_bug_report_url;
5275 else
5276   withval="http://llvm.org/bugs/"
5277 fi
5278
5279
5280 cat >>confdefs.h <<_ACEOF
5281 #define BUG_REPORT_URL "$withval"
5282 _ACEOF
5283
5284
5285 # Check whether --enable-terminfo was given.
5286 if test "${enable_terminfo+set}" = set; then
5287   enableval=$enable_terminfo; case "$enableval" in
5288     yes) llvm_cv_enable_terminfo="yes" ;;
5289     no)  llvm_cv_enable_terminfo="no"  ;;
5290     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5292    { (exit 1); exit 1; }; } ;;
5293   esac
5294 else
5295   llvm_cv_enable_terminfo="yes"
5296 fi
5297
5298
5299 # Check whether --enable-libffi was given.
5300 if test "${enable_libffi+set}" = set; then
5301   enableval=$enable_libffi; case "$enableval" in
5302     yes) llvm_cv_enable_libffi="yes" ;;
5303     no)  llvm_cv_enable_libffi="no"  ;;
5304     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5305 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5306    { (exit 1); exit 1; }; } ;;
5307   esac
5308 else
5309   llvm_cv_enable_libffi=no
5310 fi
5311
5312
5313
5314 # Check whether --with-internal-prefix was given.
5315 if test "${with_internal_prefix+set}" = set; then
5316   withval=$with_internal_prefix;
5317 else
5318   withval=""
5319 fi
5320
5321 INTERNAL_PREFIX=$withval
5322
5323
5324
5325 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5326 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5327 if test "${lt_cv_path_NM+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   if test -n "$NM"; then
5331   # Let the user override the test.
5332   lt_cv_path_NM="$NM"
5333 else
5334   lt_nm_to_check="${ac_tool_prefix}nm"
5335   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5336     lt_nm_to_check="$lt_nm_to_check nm"
5337   fi
5338   for lt_tmp_nm in $lt_nm_to_check; do
5339     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5340     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5341       IFS="$lt_save_ifs"
5342       test -z "$ac_dir" && ac_dir=.
5343       tmp_nm="$ac_dir/$lt_tmp_nm"
5344       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5345         # Check to see if the nm accepts a BSD-compat flag.
5346         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5347         #   nm: unknown option "B" ignored
5348         # Tru64's nm complains that /dev/null is an invalid object file
5349         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5350         */dev/null* | *'Invalid file or object type'*)
5351           lt_cv_path_NM="$tmp_nm -B"
5352           break
5353           ;;
5354         *)
5355           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5356           */dev/null*)
5357             lt_cv_path_NM="$tmp_nm -p"
5358             break
5359             ;;
5360           *)
5361             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5362             continue # so that we can try to find one that supports BSD flags
5363             ;;
5364           esac
5365           ;;
5366         esac
5367       fi
5368     done
5369     IFS="$lt_save_ifs"
5370   done
5371   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5372 fi
5373 fi
5374 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5375 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5376 NM="$lt_cv_path_NM"
5377
5378
5379
5380 { echo "$as_me:$LINENO: checking for GNU make" >&5
5381 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5382 if test "${llvm_cv_gnu_make_command+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   llvm_cv_gnu_make_command=''
5386  for a in "$MAKE" make gmake gnumake ; do
5387   if test -z "$a" ; then continue ; fi ;
5388   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5389   then
5390    llvm_cv_gnu_make_command=$a ;
5391    break;
5392   fi
5393  done
5394 fi
5395 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5396 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5397  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5398    ifGNUmake='' ;
5399  else
5400    ifGNUmake='#' ;
5401    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5402 echo "${ECHO_T}\"Not found\"" >&6; };
5403  fi
5404
5405
5406 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5407 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5408 LN_S=$as_ln_s
5409 if test "$LN_S" = "ln -s"; then
5410   { echo "$as_me:$LINENO: result: yes" >&5
5411 echo "${ECHO_T}yes" >&6; }
5412 else
5413   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5414 echo "${ECHO_T}no, using $LN_S" >&6; }
5415 fi
5416
5417 # Extract the first word of "cmp", so it can be a program name with args.
5418 set dummy cmp; ac_word=$2
5419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5421 if test "${ac_cv_path_CMP+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   case $CMP in
5425   [\\/]* | ?:[\\/]*)
5426   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5427   ;;
5428   *)
5429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434   for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5443
5444   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5445   ;;
5446 esac
5447 fi
5448 CMP=$ac_cv_path_CMP
5449 if test -n "$CMP"; then
5450   { echo "$as_me:$LINENO: result: $CMP" >&5
5451 echo "${ECHO_T}$CMP" >&6; }
5452 else
5453   { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5455 fi
5456
5457
5458 # Extract the first word of "cp", so it can be a program name with args.
5459 set dummy cp; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_CP+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   case $CP in
5466   [\\/]* | ?:[\\/]*)
5467   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5468   ;;
5469   *)
5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5486   ;;
5487 esac
5488 fi
5489 CP=$ac_cv_path_CP
5490 if test -n "$CP"; then
5491   { echo "$as_me:$LINENO: result: $CP" >&5
5492 echo "${ECHO_T}$CP" >&6; }
5493 else
5494   { echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6; }
5496 fi
5497
5498
5499 # Extract the first word of "date", so it can be a program name with args.
5500 set dummy date; ac_word=$2
5501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503 if test "${ac_cv_path_DATE+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   case $DATE in
5507   [\\/]* | ?:[\\/]*)
5508   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5509   ;;
5510   *)
5511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_exec_ext in '' $ac_executable_extensions; do
5517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5518     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523 done
5524 IFS=$as_save_IFS
5525
5526   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5527   ;;
5528 esac
5529 fi
5530 DATE=$ac_cv_path_DATE
5531 if test -n "$DATE"; then
5532   { echo "$as_me:$LINENO: result: $DATE" >&5
5533 echo "${ECHO_T}$DATE" >&6; }
5534 else
5535   { echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6; }
5537 fi
5538
5539
5540 # Extract the first word of "find", so it can be a program name with args.
5541 set dummy find; ac_word=$2
5542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5544 if test "${ac_cv_path_FIND+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   case $FIND in
5548   [\\/]* | ?:[\\/]*)
5549   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5550   ;;
5551   *)
5552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557   for ac_exec_ext in '' $ac_executable_extensions; do
5558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5559     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564 done
5565 IFS=$as_save_IFS
5566
5567   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5568   ;;
5569 esac
5570 fi
5571 FIND=$ac_cv_path_FIND
5572 if test -n "$FIND"; then
5573   { echo "$as_me:$LINENO: result: $FIND" >&5
5574 echo "${ECHO_T}$FIND" >&6; }
5575 else
5576   { echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6; }
5578 fi
5579
5580
5581 # Extract the first word of "grep", so it can be a program name with args.
5582 set dummy grep; ac_word=$2
5583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5585 if test "${ac_cv_path_GREP+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   case $GREP in
5589   [\\/]* | ?:[\\/]*)
5590   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5591   ;;
5592   *)
5593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5600     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5609   ;;
5610 esac
5611 fi
5612 GREP=$ac_cv_path_GREP
5613 if test -n "$GREP"; then
5614   { echo "$as_me:$LINENO: result: $GREP" >&5
5615 echo "${ECHO_T}$GREP" >&6; }
5616 else
5617   { echo "$as_me:$LINENO: result: no" >&5
5618 echo "${ECHO_T}no" >&6; }
5619 fi
5620
5621
5622 # Extract the first word of "mkdir", so it can be a program name with args.
5623 set dummy mkdir; ac_word=$2
5624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_MKDIR+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   case $MKDIR in
5630   [\\/]* | ?:[\\/]*)
5631   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5632   ;;
5633   *)
5634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639   for ac_exec_ext in '' $ac_executable_extensions; do
5640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5641     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643     break 2
5644   fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5650   ;;
5651 esac
5652 fi
5653 MKDIR=$ac_cv_path_MKDIR
5654 if test -n "$MKDIR"; then
5655   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5656 echo "${ECHO_T}$MKDIR" >&6; }
5657 else
5658   { echo "$as_me:$LINENO: result: no" >&5
5659 echo "${ECHO_T}no" >&6; }
5660 fi
5661
5662
5663 # Extract the first word of "mv", so it can be a program name with args.
5664 set dummy mv; ac_word=$2
5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667 if test "${ac_cv_path_MV+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   case $MV in
5671   [\\/]* | ?:[\\/]*)
5672   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5673   ;;
5674   *)
5675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680   for ac_exec_ext in '' $ac_executable_extensions; do
5681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5682     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687 done
5688 IFS=$as_save_IFS
5689
5690   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5691   ;;
5692 esac
5693 fi
5694 MV=$ac_cv_path_MV
5695 if test -n "$MV"; then
5696   { echo "$as_me:$LINENO: result: $MV" >&5
5697 echo "${ECHO_T}$MV" >&6; }
5698 else
5699   { echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6; }
5701 fi
5702
5703
5704 if test -n "$ac_tool_prefix"; then
5705   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709 if test "${ac_cv_prog_RANLIB+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   if test -n "$RANLIB"; then
5713   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720   for ac_exec_ext in '' $ac_executable_extensions; do
5721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5722     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 RANLIB=$ac_cv_prog_RANLIB
5733 if test -n "$RANLIB"; then
5734   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5735 echo "${ECHO_T}$RANLIB" >&6; }
5736 else
5737   { echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6; }
5739 fi
5740
5741
5742 fi
5743 if test -z "$ac_cv_prog_RANLIB"; then
5744   ac_ct_RANLIB=$RANLIB
5745   # Extract the first word of "ranlib", so it can be a program name with args.
5746 set dummy ranlib; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -n "$ac_ct_RANLIB"; then
5753   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760   for ac_exec_ext in '' $ac_executable_extensions; do
5761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5762     ac_cv_prog_ac_ct_RANLIB="ranlib"
5763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5773 if test -n "$ac_ct_RANLIB"; then
5774   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5775 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781   if test "x$ac_ct_RANLIB" = x; then
5782     RANLIB=":"
5783   else
5784     case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5787 whose name does not start with the host triplet.  If you think this
5788 configuration is useful to you, please write to autoconf@gnu.org." >&5
5789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5790 whose name does not start with the host triplet.  If you think this
5791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5792 ac_tool_warned=yes ;;
5793 esac
5794     RANLIB=$ac_ct_RANLIB
5795   fi
5796 else
5797   RANLIB="$ac_cv_prog_RANLIB"
5798 fi
5799
5800 if test -n "$ac_tool_prefix"; then
5801   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}ar; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_prog_AR+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   if test -n "$AR"; then
5809   ac_cv_prog_AR="$AR" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_prog_AR="${ac_tool_prefix}ar"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 AR=$ac_cv_prog_AR
5829 if test -n "$AR"; then
5830   { echo "$as_me:$LINENO: result: $AR" >&5
5831 echo "${ECHO_T}$AR" >&6; }
5832 else
5833   { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5835 fi
5836
5837
5838 fi
5839 if test -z "$ac_cv_prog_AR"; then
5840   ac_ct_AR=$AR
5841   # Extract the first word of "ar", so it can be a program name with args.
5842 set dummy ar; 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_prog_ac_ct_AR+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   if test -n "$ac_ct_AR"; then
5849   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_prog_ac_ct_AR="ar"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5869 if test -n "$ac_ct_AR"; then
5870   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5871 echo "${ECHO_T}$ac_ct_AR" >&6; }
5872 else
5873   { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5875 fi
5876
5877   if test "x$ac_ct_AR" = x; then
5878     AR="false"
5879   else
5880     case $cross_compiling:$ac_tool_warned in
5881 yes:)
5882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5883 whose name does not start with the host triplet.  If you think this
5884 configuration is useful to you, please write to autoconf@gnu.org." >&5
5885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the host triplet.  If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890     AR=$ac_ct_AR
5891   fi
5892 else
5893   AR="$ac_cv_prog_AR"
5894 fi
5895
5896 # Extract the first word of "rm", so it can be a program name with args.
5897 set dummy rm; ac_word=$2
5898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900 if test "${ac_cv_path_RM+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   case $RM in
5904   [\\/]* | ?:[\\/]*)
5905   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5906   ;;
5907   *)
5908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913   for ac_exec_ext in '' $ac_executable_extensions; do
5914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5924   ;;
5925 esac
5926 fi
5927 RM=$ac_cv_path_RM
5928 if test -n "$RM"; then
5929   { echo "$as_me:$LINENO: result: $RM" >&5
5930 echo "${ECHO_T}$RM" >&6; }
5931 else
5932   { echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6; }
5934 fi
5935
5936
5937 # Extract the first word of "sed", so it can be a program name with args.
5938 set dummy sed; ac_word=$2
5939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5941 if test "${ac_cv_path_SED+set}" = set; then
5942   echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944   case $SED in
5945   [\\/]* | ?:[\\/]*)
5946   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5947   ;;
5948   *)
5949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5956     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5965   ;;
5966 esac
5967 fi
5968 SED=$ac_cv_path_SED
5969 if test -n "$SED"; then
5970   { echo "$as_me:$LINENO: result: $SED" >&5
5971 echo "${ECHO_T}$SED" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975 fi
5976
5977
5978 # Extract the first word of "tar", so it can be a program name with args.
5979 set dummy tar; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_path_TAR+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   case $TAR in
5986   [\\/]* | ?:[\\/]*)
5987   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5988   ;;
5989   *)
5990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5997     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6006   ;;
6007 esac
6008 fi
6009 TAR=$ac_cv_path_TAR
6010 if test -n "$TAR"; then
6011   { echo "$as_me:$LINENO: result: $TAR" >&5
6012 echo "${ECHO_T}$TAR" >&6; }
6013 else
6014   { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6016 fi
6017
6018
6019 # Extract the first word of "pwd", so it can be a program name with args.
6020 set dummy pwd; ac_word=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_path_BINPWD+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   case $BINPWD in
6027   [\\/]* | ?:[\\/]*)
6028   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6029   ;;
6030   *)
6031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034   IFS=$as_save_IFS
6035   test -z "$as_dir" && as_dir=.
6036   for ac_exec_ext in '' $ac_executable_extensions; do
6037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6038     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040     break 2
6041   fi
6042 done
6043 done
6044 IFS=$as_save_IFS
6045
6046   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6047   ;;
6048 esac
6049 fi
6050 BINPWD=$ac_cv_path_BINPWD
6051 if test -n "$BINPWD"; then
6052   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6053 echo "${ECHO_T}$BINPWD" >&6; }
6054 else
6055   { echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6; }
6057 fi
6058
6059
6060
6061 # Extract the first word of "Graphviz", so it can be a program name with args.
6062 set dummy Graphviz; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068   case $GRAPHVIZ in
6069   [\\/]* | ?:[\\/]*)
6070   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6071   ;;
6072   *)
6073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076   IFS=$as_save_IFS
6077   test -z "$as_dir" && as_dir=.
6078   for ac_exec_ext in '' $ac_executable_extensions; do
6079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6080     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082     break 2
6083   fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6089   ;;
6090 esac
6091 fi
6092 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6093 if test -n "$GRAPHVIZ"; then
6094   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6095 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6096 else
6097   { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6099 fi
6100
6101
6102 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6103
6104 cat >>confdefs.h <<\_ACEOF
6105 #define HAVE_GRAPHVIZ 1
6106 _ACEOF
6107
6108     if test "$llvm_cv_os_type" = "MingW" ; then
6109     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6110   fi
6111
6112 cat >>confdefs.h <<_ACEOF
6113 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6114 _ACEOF
6115
6116 fi
6117 # Extract the first word of "dot", so it can be a program name with args.
6118 set dummy dot; ac_word=$2
6119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6121 if test "${ac_cv_path_DOT+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   case $DOT in
6125   [\\/]* | ?:[\\/]*)
6126   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6127   ;;
6128   *)
6129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134   for ac_exec_ext in '' $ac_executable_extensions; do
6135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6136     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141 done
6142 IFS=$as_save_IFS
6143
6144   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6145   ;;
6146 esac
6147 fi
6148 DOT=$ac_cv_path_DOT
6149 if test -n "$DOT"; then
6150   { echo "$as_me:$LINENO: result: $DOT" >&5
6151 echo "${ECHO_T}$DOT" >&6; }
6152 else
6153   { echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6; }
6155 fi
6156
6157
6158 if test "$DOT" != "echo dot" ; then
6159
6160 cat >>confdefs.h <<\_ACEOF
6161 #define HAVE_DOT 1
6162 _ACEOF
6163
6164     if test "$llvm_cv_os_type" = "MingW" ; then
6165     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6166   fi
6167
6168 cat >>confdefs.h <<_ACEOF
6169 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6170 _ACEOF
6171
6172 fi
6173 # Extract the first word of "fdp", so it can be a program name with args.
6174 set dummy fdp; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_path_FDP+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   case $FDP in
6181   [\\/]* | ?:[\\/]*)
6182   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6183   ;;
6184   *)
6185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6201   ;;
6202 esac
6203 fi
6204 FDP=$ac_cv_path_FDP
6205 if test -n "$FDP"; then
6206   { echo "$as_me:$LINENO: result: $FDP" >&5
6207 echo "${ECHO_T}$FDP" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213
6214 if test "$FDP" != "echo fdp" ; then
6215
6216 cat >>confdefs.h <<\_ACEOF
6217 #define HAVE_FDP 1
6218 _ACEOF
6219
6220     if test "$llvm_cv_os_type" = "MingW" ; then
6221     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6222   fi
6223
6224 cat >>confdefs.h <<_ACEOF
6225 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6226 _ACEOF
6227
6228 fi
6229 # Extract the first word of "neato", so it can be a program name with args.
6230 set dummy neato; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_NEATO+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   case $NEATO in
6237   [\\/]* | ?:[\\/]*)
6238   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6239   ;;
6240   *)
6241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6257   ;;
6258 esac
6259 fi
6260 NEATO=$ac_cv_path_NEATO
6261 if test -n "$NEATO"; then
6262   { echo "$as_me:$LINENO: result: $NEATO" >&5
6263 echo "${ECHO_T}$NEATO" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269
6270 if test "$NEATO" != "echo neato" ; then
6271
6272 cat >>confdefs.h <<\_ACEOF
6273 #define HAVE_NEATO 1
6274 _ACEOF
6275
6276     if test "$llvm_cv_os_type" = "MingW" ; then
6277     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6278   fi
6279
6280 cat >>confdefs.h <<_ACEOF
6281 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6282 _ACEOF
6283
6284 fi
6285 # Extract the first word of "twopi", so it can be a program name with args.
6286 set dummy twopi; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_path_TWOPI+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   case $TWOPI in
6293   [\\/]* | ?:[\\/]*)
6294   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6295   ;;
6296   *)
6297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302   for ac_exec_ext in '' $ac_executable_extensions; do
6303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6304     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6313   ;;
6314 esac
6315 fi
6316 TWOPI=$ac_cv_path_TWOPI
6317 if test -n "$TWOPI"; then
6318   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6319 echo "${ECHO_T}$TWOPI" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325
6326 if test "$TWOPI" != "echo twopi" ; then
6327
6328 cat >>confdefs.h <<\_ACEOF
6329 #define HAVE_TWOPI 1
6330 _ACEOF
6331
6332     if test "$llvm_cv_os_type" = "MingW" ; then
6333     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6334   fi
6335
6336 cat >>confdefs.h <<_ACEOF
6337 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6338 _ACEOF
6339
6340 fi
6341 # Extract the first word of "circo", so it can be a program name with args.
6342 set dummy circo; ac_word=$2
6343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6345 if test "${ac_cv_path_CIRCO+set}" = set; then
6346   echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348   case $CIRCO in
6349   [\\/]* | ?:[\\/]*)
6350   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6351   ;;
6352   *)
6353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6360     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6369   ;;
6370 esac
6371 fi
6372 CIRCO=$ac_cv_path_CIRCO
6373 if test -n "$CIRCO"; then
6374   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6375 echo "${ECHO_T}$CIRCO" >&6; }
6376 else
6377   { echo "$as_me:$LINENO: result: no" >&5
6378 echo "${ECHO_T}no" >&6; }
6379 fi
6380
6381
6382 if test "$CIRCO" != "echo circo" ; then
6383
6384 cat >>confdefs.h <<\_ACEOF
6385 #define HAVE_CIRCO 1
6386 _ACEOF
6387
6388     if test "$llvm_cv_os_type" = "MingW" ; then
6389     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6390   fi
6391
6392 cat >>confdefs.h <<_ACEOF
6393 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6394 _ACEOF
6395
6396 fi
6397 for ac_prog in gv gsview32
6398 do
6399   # Extract the first word of "$ac_prog", so it can be a program name with args.
6400 set dummy $ac_prog; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_GV+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   case $GV in
6407   [\\/]* | ?:[\\/]*)
6408   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6409   ;;
6410   *)
6411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416   for ac_exec_ext in '' $ac_executable_extensions; do
6417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426   ;;
6427 esac
6428 fi
6429 GV=$ac_cv_path_GV
6430 if test -n "$GV"; then
6431   { echo "$as_me:$LINENO: result: $GV" >&5
6432 echo "${ECHO_T}$GV" >&6; }
6433 else
6434   { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6436 fi
6437
6438
6439   test -n "$GV" && break
6440 done
6441 test -n "$GV" || GV="echo gv"
6442
6443 if test "$GV" != "echo gv" ; then
6444
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_GV 1
6447 _ACEOF
6448
6449     if test "$llvm_cv_os_type" = "MingW" ; then
6450     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6451   fi
6452
6453 cat >>confdefs.h <<_ACEOF
6454 #define LLVM_PATH_GV "$GV${EXEEXT}"
6455 _ACEOF
6456
6457 fi
6458 # Extract the first word of "dotty", so it can be a program name with args.
6459 set dummy dotty; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_DOTTY+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   case $DOTTY in
6466   [\\/]* | ?:[\\/]*)
6467   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6468   ;;
6469   *)
6470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6486   ;;
6487 esac
6488 fi
6489 DOTTY=$ac_cv_path_DOTTY
6490 if test -n "$DOTTY"; then
6491   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6492 echo "${ECHO_T}$DOTTY" >&6; }
6493 else
6494   { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498
6499 if test "$DOTTY" != "echo dotty" ; then
6500
6501 cat >>confdefs.h <<\_ACEOF
6502 #define HAVE_DOTTY 1
6503 _ACEOF
6504
6505     if test "$llvm_cv_os_type" = "MingW" ; then
6506     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6507   fi
6508
6509 cat >>confdefs.h <<_ACEOF
6510 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6511 _ACEOF
6512
6513 fi
6514 for ac_prog in xdot xdot.py
6515 do
6516   # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_path_XDOT+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   case $XDOT in
6524   [\\/]* | ?:[\\/]*)
6525   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6526   ;;
6527   *)
6528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543   ;;
6544 esac
6545 fi
6546 XDOT=$ac_cv_path_XDOT
6547 if test -n "$XDOT"; then
6548   { echo "$as_me:$LINENO: result: $XDOT" >&5
6549 echo "${ECHO_T}$XDOT" >&6; }
6550 else
6551   { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6553 fi
6554
6555
6556   test -n "$XDOT" && break
6557 done
6558 test -n "$XDOT" || XDOT="echo xdot"
6559
6560 if test "$XDOT" != "echo xdot" ; then
6561
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_XDOT 1
6564 _ACEOF
6565
6566     if test "$llvm_cv_os_type" = "MingW" ; then
6567     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568   fi
6569
6570 cat >>confdefs.h <<_ACEOF
6571 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6572 _ACEOF
6573
6574 fi
6575
6576 # Find a good install program.  We prefer a C program (faster),
6577 # so one script is as good as another.  But avoid the broken or
6578 # incompatible versions:
6579 # SysV /etc/install, /usr/sbin/install
6580 # SunOS /usr/etc/install
6581 # IRIX /sbin/install
6582 # AIX /bin/install
6583 # AmigaOS /C/install, which installs bootblocks on floppy discs
6584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6587 # OS/2's system install, which has a completely different semantic
6588 # ./install, which can be erroneously created by make from ./install.sh.
6589 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6590 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6591 if test -z "$INSTALL"; then
6592 if test "${ac_cv_path_install+set}" = set; then
6593   echo $ECHO_N "(cached) $ECHO_C" >&6
6594 else
6595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   # Account for people who put trailing slashes in PATH elements.
6601 case $as_dir/ in
6602   ./ | .// | /cC/* | \
6603   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6604   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6605   /usr/ucb/* ) ;;
6606   *)
6607     # OSF1 and SCO ODT 3.0 have their own names for install.
6608     # Don't use installbsd from OSF since it installs stuff as root
6609     # by default.
6610     for ac_prog in ginstall scoinst install; do
6611       for ac_exec_ext in '' $ac_executable_extensions; do
6612         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6613           if test $ac_prog = install &&
6614             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6615             # AIX install.  It has an incompatible calling convention.
6616             :
6617           elif test $ac_prog = install &&
6618             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6619             # program-specific install script used by HP pwplus--don't use.
6620             :
6621           else
6622             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6623             break 3
6624           fi
6625         fi
6626       done
6627     done
6628     ;;
6629 esac
6630 done
6631 IFS=$as_save_IFS
6632
6633
6634 fi
6635   if test "${ac_cv_path_install+set}" = set; then
6636     INSTALL=$ac_cv_path_install
6637   else
6638     # As a last resort, use the slow shell script.  Don't cache a
6639     # value for INSTALL within a source directory, because that will
6640     # break other packages using the cache if that directory is
6641     # removed, or if the value is a relative name.
6642     INSTALL=$ac_install_sh
6643   fi
6644 fi
6645 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6646 echo "${ECHO_T}$INSTALL" >&6; }
6647
6648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6649 # It thinks the first close brace ends the variable substitution.
6650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6651
6652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6653
6654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6655
6656 case "$INSTALL" in
6657  [\\/$]* | ?:[\\/]* ) ;;
6658  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6659 esac
6660
6661 # Extract the first word of "bzip2", so it can be a program name with args.
6662 set dummy bzip2; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_BZIP2+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   case $BZIP2 in
6669   [\\/]* | ?:[\\/]*)
6670   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6671   ;;
6672   *)
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688   ;;
6689 esac
6690 fi
6691 BZIP2=$ac_cv_path_BZIP2
6692 if test -n "$BZIP2"; then
6693   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6694 echo "${ECHO_T}$BZIP2" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6698 fi
6699
6700
6701 # Extract the first word of "cat", so it can be a program name with args.
6702 set dummy cat; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_CAT+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   case $CAT in
6709   [\\/]* | ?:[\\/]*)
6710   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6711   ;;
6712   *)
6713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718   for ac_exec_ext in '' $ac_executable_extensions; do
6719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728   ;;
6729 esac
6730 fi
6731 CAT=$ac_cv_path_CAT
6732 if test -n "$CAT"; then
6733   { echo "$as_me:$LINENO: result: $CAT" >&5
6734 echo "${ECHO_T}$CAT" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740
6741 # Extract the first word of "doxygen", so it can be a program name with args.
6742 set dummy doxygen; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $DOXYGEN in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758   for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768   ;;
6769 esac
6770 fi
6771 DOXYGEN=$ac_cv_path_DOXYGEN
6772 if test -n "$DOXYGEN"; then
6773   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6774 echo "${ECHO_T}$DOXYGEN" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 # Extract the first word of "groff", so it can be a program name with args.
6782 set dummy groff; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_GROFF+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $GROFF in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   ;;
6809 esac
6810 fi
6811 GROFF=$ac_cv_path_GROFF
6812 if test -n "$GROFF"; then
6813   { echo "$as_me:$LINENO: result: $GROFF" >&5
6814 echo "${ECHO_T}$GROFF" >&6; }
6815 else
6816   { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6818 fi
6819
6820
6821 # Extract the first word of "gzip", so it can be a program name with args.
6822 set dummy gzip; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   case $GZIPBIN in
6829   [\\/]* | ?:[\\/]*)
6830   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6831   ;;
6832   *)
6833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838   for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848   ;;
6849 esac
6850 fi
6851 GZIPBIN=$ac_cv_path_GZIPBIN
6852 if test -n "$GZIPBIN"; then
6853   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6854 echo "${ECHO_T}$GZIPBIN" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6859
6860
6861 # Extract the first word of "pdfroff", so it can be a program name with args.
6862 set dummy pdfroff; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_PDFROFF+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   case $PDFROFF in
6869   [\\/]* | ?:[\\/]*)
6870   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6871   ;;
6872   *)
6873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878   for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888   ;;
6889 esac
6890 fi
6891 PDFROFF=$ac_cv_path_PDFROFF
6892 if test -n "$PDFROFF"; then
6893   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6894 echo "${ECHO_T}$PDFROFF" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901 # Extract the first word of "zip", so it can be a program name with args.
6902 set dummy zip; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_ZIP+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   case $ZIP in
6909   [\\/]* | ?:[\\/]*)
6910   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6911   ;;
6912   *)
6913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916   IFS=$as_save_IFS
6917   test -z "$as_dir" && as_dir=.
6918   for ac_exec_ext in '' $ac_executable_extensions; do
6919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922     break 2
6923   fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928   ;;
6929 esac
6930 fi
6931 ZIP=$ac_cv_path_ZIP
6932 if test -n "$ZIP"; then
6933   { echo "$as_me:$LINENO: result: $ZIP" >&5
6934 echo "${ECHO_T}$ZIP" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940
6941 for ac_prog in ocamlc
6942 do
6943   # Extract the first word of "$ac_prog", so it can be a program name with args.
6944 set dummy $ac_prog; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_OCAMLC+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $OCAMLC in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970   ;;
6971 esac
6972 fi
6973 OCAMLC=$ac_cv_path_OCAMLC
6974 if test -n "$OCAMLC"; then
6975   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6976 echo "${ECHO_T}$OCAMLC" >&6; }
6977 else
6978   { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6980 fi
6981
6982
6983   test -n "$OCAMLC" && break
6984 done
6985
6986 for ac_prog in ocamlopt
6987 do
6988   # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   case $OCAMLOPT in
6996   [\\/]* | ?:[\\/]*)
6997   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6998   ;;
6999   *)
7000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005   for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015   ;;
7016 esac
7017 fi
7018 OCAMLOPT=$ac_cv_path_OCAMLOPT
7019 if test -n "$OCAMLOPT"; then
7020   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7021 echo "${ECHO_T}$OCAMLOPT" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027
7028   test -n "$OCAMLOPT" && break
7029 done
7030
7031 for ac_prog in ocamldep
7032 do
7033   # Extract the first word of "$ac_prog", so it can be a program name with args.
7034 set dummy $ac_prog; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   case $OCAMLDEP in
7041   [\\/]* | ?:[\\/]*)
7042   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7043   ;;
7044   *)
7045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050   for ac_exec_ext in '' $ac_executable_extensions; do
7051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054     break 2
7055   fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060   ;;
7061 esac
7062 fi
7063 OCAMLDEP=$ac_cv_path_OCAMLDEP
7064 if test -n "$OCAMLDEP"; then
7065   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7066 echo "${ECHO_T}$OCAMLDEP" >&6; }
7067 else
7068   { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7070 fi
7071
7072
7073   test -n "$OCAMLDEP" && break
7074 done
7075
7076 for ac_prog in ocamldoc
7077 do
7078   # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $OCAMLDOC in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   ;;
7106 esac
7107 fi
7108 OCAMLDOC=$ac_cv_path_OCAMLDOC
7109 if test -n "$OCAMLDOC"; then
7110   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7111 echo "${ECHO_T}$OCAMLDOC" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118   test -n "$OCAMLDOC" && break
7119 done
7120
7121 for ac_prog in gas as
7122 do
7123   # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_GAS+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $GAS in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 GAS=$ac_cv_path_GAS
7154 if test -n "$GAS"; then
7155   { echo "$as_me:$LINENO: result: $GAS" >&5
7156 echo "${ECHO_T}$GAS" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163   test -n "$GAS" && break
7164 done
7165
7166
7167 { echo "$as_me:$LINENO: checking for linker version" >&5
7168 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7169 if test "${llvm_cv_link_version+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172
7173    version_string="$(ld -v 2>&1 | head -1)"
7174
7175    # Check for ld64.
7176    if (echo "$version_string" | grep -q "ld64"); then
7177      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7178    else
7179      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7180    fi
7181
7182 fi
7183 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7184 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7185
7186 cat >>confdefs.h <<_ACEOF
7187 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7188 _ACEOF
7189
7190
7191
7192
7193 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7194 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7195 if test "${llvm_cv_link_use_r+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198    ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203
7204   oldcflags="$CFLAGS"
7205   CFLAGS="$CFLAGS -Wl,-R."
7206   cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h.  */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h.  */
7212
7213 int
7214 main ()
7215 {
7216
7217   ;
7218   return 0;
7219 }
7220 _ACEOF
7221 rm -f conftest.$ac_objext conftest$ac_exeext
7222 if { (ac_try="$ac_link"
7223 case "(($ac_try" in
7224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225   *) ac_try_echo=$ac_try;;
7226 esac
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228   (eval "$ac_link") 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } &&
7235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236   { (case "(($ac_try" in
7237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238   *) ac_try_echo=$ac_try;;
7239 esac
7240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241   (eval "$ac_try") 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; } &&
7245          { ac_try='test -s conftest$ac_exeext'
7246   { (case "(($ac_try" in
7247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248   *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251   (eval "$ac_try") 2>&5
7252   ac_status=$?
7253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); }; }; then
7255   llvm_cv_link_use_r=yes
7256 else
7257   echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7259
7260         llvm_cv_link_use_r=no
7261 fi
7262
7263 rm -f core conftest.err conftest.$ac_objext \
7264       conftest$ac_exeext conftest.$ac_ext
7265   CFLAGS="$oldcflags"
7266   ac_ext=c
7267 ac_cpp='$CPP $CPPFLAGS'
7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271
7272
7273 fi
7274 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7275 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7276 if test "$llvm_cv_link_use_r" = yes ; then
7277
7278 cat >>confdefs.h <<\_ACEOF
7279 #define HAVE_LINK_R 1
7280 _ACEOF
7281
7282   fi
7283
7284
7285 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7286 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7287 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290    ac_ext=c
7291 ac_cpp='$CPP $CPPFLAGS'
7292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295
7296   oldcflags="$CFLAGS"
7297   CFLAGS="$CFLAGS -rdynamic"
7298   cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304
7305 int
7306 main ()
7307 {
7308
7309   ;
7310   return 0;
7311 }
7312 _ACEOF
7313 rm -f conftest.$ac_objext conftest$ac_exeext
7314 if { (ac_try="$ac_link"
7315 case "(($ac_try" in
7316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317   *) ac_try_echo=$ac_try;;
7318 esac
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320   (eval "$ac_link") 2>conftest.er1
7321   ac_status=$?
7322   grep -v '^ *+' conftest.er1 >conftest.err
7323   rm -f conftest.er1
7324   cat conftest.err >&5
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } &&
7327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7328   { (case "(($ac_try" in
7329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330   *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333   (eval "$ac_try") 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (case "(($ac_try" in
7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340   *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343   (eval "$ac_try") 2>&5
7344   ac_status=$?
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; }; then
7347   llvm_cv_link_use_export_dynamic=yes
7348 else
7349   echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352         llvm_cv_link_use_export_dynamic=no
7353 fi
7354
7355 rm -f core conftest.err conftest.$ac_objext \
7356       conftest$ac_exeext conftest.$ac_ext
7357   CFLAGS="$oldcflags"
7358   ac_ext=c
7359 ac_cpp='$CPP $CPPFLAGS'
7360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364
7365 fi
7366 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7367 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7368 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_LINK_EXPORT_DYNAMIC 1
7372 _ACEOF
7373
7374   fi
7375
7376
7377 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7378 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7379 if test "${llvm_cv_link_use_version_script+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382    ac_ext=c
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387
7388   oldcflags="$CFLAGS"
7389
7390   # The following code is from the autoconf manual,
7391   # "11.13: Limitations of Usual Tools".
7392   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7393   # Use mktemp if possible; otherwise fall back on mkdir,
7394   # with $RANDOM to make collisions less likely.
7395   : ${TMPDIR=/tmp}
7396   {
7397     tmp=`
7398       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7399     ` &&
7400     test -n "$tmp" && test -d "$tmp"
7401   } || {
7402     tmp=$TMPDIR/foo$$-$RANDOM
7403     (umask 077 && mkdir "$tmp")
7404   } || exit $?
7405
7406   echo "{" > "$tmp/export.map"
7407   echo "  global: main;" >> "$tmp/export.map"
7408   echo "  local: *;" >> "$tmp/export.map"
7409   echo "};" >> "$tmp/export.map"
7410
7411   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7412   cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h.  */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h.  */
7418
7419 int
7420 main ()
7421 {
7422
7423   ;
7424   return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest.$ac_objext conftest$ac_exeext
7428 if { (ac_try="$ac_link"
7429 case "(($ac_try" in
7430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431   *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434   (eval "$ac_link") 2>conftest.er1
7435   ac_status=$?
7436   grep -v '^ *+' conftest.er1 >conftest.err
7437   rm -f conftest.er1
7438   cat conftest.err >&5
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } &&
7441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7442   { (case "(($ac_try" in
7443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444   *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447   (eval "$ac_try") 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; } &&
7451          { ac_try='test -s conftest$ac_exeext'
7452   { (case "(($ac_try" in
7453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454   *) ac_try_echo=$ac_try;;
7455 esac
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457   (eval "$ac_try") 2>&5
7458   ac_status=$?
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; }; then
7461   llvm_cv_link_use_version_script=yes
7462 else
7463   echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466         llvm_cv_link_use_version_script=no
7467 fi
7468
7469 rm -f core conftest.err conftest.$ac_objext \
7470       conftest$ac_exeext conftest.$ac_ext
7471   rm "$tmp/export.map"
7472   rmdir "$tmp"
7473   CFLAGS="$oldcflags"
7474   ac_ext=c
7475 ac_cpp='$CPP $CPPFLAGS'
7476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479
7480
7481 fi
7482 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7483 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7484 if test "$llvm_cv_link_use_version_script" = yes ; then
7485   HAVE_LINK_VERSION_SCRIPT=1
7486
7487   fi
7488
7489
7490
7491
7492 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7493 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7494 if test "${ac_cv_c_const+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503
7504 int
7505 main ()
7506 {
7507 /* FIXME: Include the comments suggested by Paul. */
7508 #ifndef __cplusplus
7509   /* Ultrix mips cc rejects this.  */
7510   typedef int charset[2];
7511   const charset x;
7512   /* SunOS 4.1.1 cc rejects this.  */
7513   char const *const *ccp;
7514   char **p;
7515   /* NEC SVR4.0.2 mips cc rejects this.  */
7516   struct point {int x, y;};
7517   static struct point const zero = {0,0};
7518   /* AIX XL C 1.02.0.0 rejects this.
7519      It does not let you subtract one const X* pointer from another in
7520      an arm of an if-expression whose if-part is not a constant
7521      expression */
7522   const char *g = "string";
7523   ccp = &g + (g ? g-g : 0);
7524   /* HPUX 7.0 cc rejects these. */
7525   ++ccp;
7526   p = (char**) ccp;
7527   ccp = (char const *const *) p;
7528   { /* SCO 3.2v4 cc rejects this.  */
7529     char *t;
7530     char const *s = 0 ? (char *) 0 : (char const *) 0;
7531
7532     *t++ = 0;
7533     if (s) return 0;
7534   }
7535   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7536     int x[] = {25, 17};
7537     const int *foo = &x[0];
7538     ++foo;
7539   }
7540   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7541     typedef const int *iptr;
7542     iptr p = 0;
7543     ++p;
7544   }
7545   { /* AIX XL C 1.02.0.0 rejects this saying
7546        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7547     struct s { int j; const int *ap[3]; };
7548     struct s *b; b->j = 5;
7549   }
7550   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7551     const int foo = 10;
7552     if (!foo) return 0;
7553   }
7554   return !x[0] && !zero.x;
7555 #endif
7556
7557   ;
7558   return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568   (eval "$ac_compile") 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } &&
7575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7576   { (case "(($ac_try" in
7577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578   *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581   (eval "$ac_try") 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; } &&
7585          { ac_try='test -s conftest.$ac_objext'
7586   { (case "(($ac_try" in
7587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588   *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591   (eval "$ac_try") 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }; }; then
7595   ac_cv_c_const=yes
7596 else
7597   echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600         ac_cv_c_const=no
7601 fi
7602
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 fi
7605 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7606 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7607 if test $ac_cv_c_const = no; then
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define const
7611 _ACEOF
7612
7613 fi
7614
7615
7616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_GREP+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   # Extract the first word of "grep ggrep" to use in msg output
7622 if test -z "$GREP"; then
7623 set dummy grep ggrep; ac_prog_name=$2
7624 if test "${ac_cv_path_GREP+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   ac_path_GREP_found=false
7628 # Loop through the user's path and test for each of PROGNAME-LIST
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7631 do
7632   IFS=$as_save_IFS
7633   test -z "$as_dir" && as_dir=.
7634   for ac_prog in grep ggrep; do
7635   for ac_exec_ext in '' $ac_executable_extensions; do
7636     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7637     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7638     # Check for GNU ac_path_GREP and select it if it is found.
7639   # Check for GNU $ac_path_GREP
7640 case `"$ac_path_GREP" --version 2>&1` in
7641 *GNU*)
7642   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7643 *)
7644   ac_count=0
7645   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7646   while :
7647   do
7648     cat "conftest.in" "conftest.in" >"conftest.tmp"
7649     mv "conftest.tmp" "conftest.in"
7650     cp "conftest.in" "conftest.nl"
7651     echo 'GREP' >> "conftest.nl"
7652     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7654     ac_count=`expr $ac_count + 1`
7655     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7656       # Best one so far, save it but keep looking for a better one
7657       ac_cv_path_GREP="$ac_path_GREP"
7658       ac_path_GREP_max=$ac_count
7659     fi
7660     # 10*(2^10) chars as input seems more than enough
7661     test $ac_count -gt 10 && break
7662   done
7663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7664 esac
7665
7666
7667     $ac_path_GREP_found && break 3
7668   done
7669 done
7670
7671 done
7672 IFS=$as_save_IFS
7673
7674
7675 fi
7676
7677 GREP="$ac_cv_path_GREP"
7678 if test -z "$GREP"; then
7679   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7681    { (exit 1); exit 1; }; }
7682 fi
7683
7684 else
7685   ac_cv_path_GREP=$GREP
7686 fi
7687
7688
7689 fi
7690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7692  GREP="$ac_cv_path_GREP"
7693
7694
7695 { echo "$as_me:$LINENO: checking for egrep" >&5
7696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7697 if test "${ac_cv_path_EGREP+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7701    then ac_cv_path_EGREP="$GREP -E"
7702    else
7703      # Extract the first word of "egrep" to use in msg output
7704 if test -z "$EGREP"; then
7705 set dummy egrep; ac_prog_name=$2
7706 if test "${ac_cv_path_EGREP+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   ac_path_EGREP_found=false
7710 # Loop through the user's path and test for each of PROGNAME-LIST
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716   for ac_prog in egrep; do
7717   for ac_exec_ext in '' $ac_executable_extensions; do
7718     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7719     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7720     # Check for GNU ac_path_EGREP and select it if it is found.
7721   # Check for GNU $ac_path_EGREP
7722 case `"$ac_path_EGREP" --version 2>&1` in
7723 *GNU*)
7724   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7725 *)
7726   ac_count=0
7727   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7728   while :
7729   do
7730     cat "conftest.in" "conftest.in" >"conftest.tmp"
7731     mv "conftest.tmp" "conftest.in"
7732     cp "conftest.in" "conftest.nl"
7733     echo 'EGREP' >> "conftest.nl"
7734     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7736     ac_count=`expr $ac_count + 1`
7737     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7738       # Best one so far, save it but keep looking for a better one
7739       ac_cv_path_EGREP="$ac_path_EGREP"
7740       ac_path_EGREP_max=$ac_count
7741     fi
7742     # 10*(2^10) chars as input seems more than enough
7743     test $ac_count -gt 10 && break
7744   done
7745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7746 esac
7747
7748
7749     $ac_path_EGREP_found && break 3
7750   done
7751 done
7752
7753 done
7754 IFS=$as_save_IFS
7755
7756
7757 fi
7758
7759 EGREP="$ac_cv_path_EGREP"
7760 if test -z "$EGREP"; then
7761   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7763    { (exit 1); exit 1; }; }
7764 fi
7765
7766 else
7767   ac_cv_path_EGREP=$EGREP
7768 fi
7769
7770
7771    fi
7772 fi
7773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7775  EGREP="$ac_cv_path_EGREP"
7776
7777
7778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7780 if test "${ac_cv_header_stdc+set}" = set; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783   cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789 #include <stdlib.h>
7790 #include <stdarg.h>
7791 #include <string.h>
7792 #include <float.h>
7793
7794 int
7795 main ()
7796 {
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7804 case "(($ac_try" in
7805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806   *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809   (eval "$ac_compile") 2>conftest.er1
7810   ac_status=$?
7811   grep -v '^ *+' conftest.er1 >conftest.err
7812   rm -f conftest.er1
7813   cat conftest.err >&5
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); } &&
7816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7817   { (case "(($ac_try" in
7818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819   *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822   (eval "$ac_try") 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; } &&
7826          { ac_try='test -s conftest.$ac_objext'
7827   { (case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_try") 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_cv_header_stdc=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841         ac_cv_header_stdc=no
7842 fi
7843
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845
7846 if test $ac_cv_header_stdc = yes; then
7847   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7848   cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854 #include <string.h>
7855
7856 _ACEOF
7857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7858   $EGREP "memchr" >/dev/null 2>&1; then
7859   :
7860 else
7861   ac_cv_header_stdc=no
7862 fi
7863 rm -f conftest*
7864
7865 fi
7866
7867 if test $ac_cv_header_stdc = yes; then
7868   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7869   cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875 #include <stdlib.h>
7876
7877 _ACEOF
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879   $EGREP "free" >/dev/null 2>&1; then
7880   :
7881 else
7882   ac_cv_header_stdc=no
7883 fi
7884 rm -f conftest*
7885
7886 fi
7887
7888 if test $ac_cv_header_stdc = yes; then
7889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7890   if test "$cross_compiling" = yes; then
7891   :
7892 else
7893   cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h.  */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h.  */
7899 #include <ctype.h>
7900 #include <stdlib.h>
7901 #if ((' ' & 0x0FF) == 0x020)
7902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7904 #else
7905 # define ISLOWER(c) \
7906                    (('a' <= (c) && (c) <= 'i') \
7907                      || ('j' <= (c) && (c) <= 'r') \
7908                      || ('s' <= (c) && (c) <= 'z'))
7909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7910 #endif
7911
7912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7913 int
7914 main ()
7915 {
7916   int i;
7917   for (i = 0; i < 256; i++)
7918     if (XOR (islower (i), ISLOWER (i))
7919         || toupper (i) != TOUPPER (i))
7920       return 2;
7921   return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7926 case "(($ac_try" in
7927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928   *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931   (eval "$ac_link") 2>&5
7932   ac_status=$?
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7935   { (case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940   (eval "$ac_try") 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; }; then
7944   :
7945 else
7946   echo "$as_me: program exited with status $ac_status" >&5
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ( exit $ac_status )
7951 ac_cv_header_stdc=no
7952 fi
7953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7954 fi
7955
7956
7957 fi
7958 fi
7959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7961 if test $ac_cv_header_stdc = yes; then
7962
7963 cat >>confdefs.h <<\_ACEOF
7964 #define STDC_HEADERS 1
7965 _ACEOF
7966
7967 fi
7968
7969
7970
7971
7972
7973
7974 ac_header_dirent=no
7975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7976   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7977 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988 #include <sys/types.h>
7989 #include <$ac_hdr>
7990
7991 int
7992 main ()
7993 {
7994 if ((DIR *) 0)
7995 return 0;
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_compile") 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8015   { (case "(($ac_try" in
8016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017   *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020   (eval "$ac_try") 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; } &&
8024          { ac_try='test -s conftest.$ac_objext'
8025   { (case "(($ac_try" in
8026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027   *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030   (eval "$ac_try") 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); }; }; then
8034   eval "$as_ac_Header=yes"
8035 else
8036   echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039         eval "$as_ac_Header=no"
8040 fi
8041
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 ac_res=`eval echo '${'$as_ac_Header'}'`
8045                { echo "$as_me:$LINENO: result: $ac_res" >&5
8046 echo "${ECHO_T}$ac_res" >&6; }
8047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8048   cat >>confdefs.h <<_ACEOF
8049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8050 _ACEOF
8051
8052 ac_header_dirent=$ac_hdr; break
8053 fi
8054
8055 done
8056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8057 if test $ac_header_dirent = dirent.h; then
8058   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8060 if test "${ac_cv_search_opendir+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   ac_func_search_save_LIBS=$LIBS
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070
8071 /* Override any GCC internal prototype to avoid an error.
8072    Use char because int might match the return type of a GCC
8073    builtin and then its argument prototype would still apply.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 char opendir ();
8078 int
8079 main ()
8080 {
8081 return opendir ();
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 for ac_lib in '' dir; do
8087   if test -z "$ac_lib"; then
8088     ac_res="none required"
8089   else
8090     ac_res=-l$ac_lib
8091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8092   fi
8093   rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (ac_try="$ac_link"
8095 case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_link") 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108   { (case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_try") 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; } &&
8117          { ac_try='test -s conftest$ac_exeext'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_cv_search_opendir=$ac_res
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132
8133 fi
8134
8135 rm -f core conftest.err conftest.$ac_objext \
8136       conftest$ac_exeext
8137   if test "${ac_cv_search_opendir+set}" = set; then
8138   break
8139 fi
8140 done
8141 if test "${ac_cv_search_opendir+set}" = set; then
8142   :
8143 else
8144   ac_cv_search_opendir=no
8145 fi
8146 rm conftest.$ac_ext
8147 LIBS=$ac_func_search_save_LIBS
8148 fi
8149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8151 ac_res=$ac_cv_search_opendir
8152 if test "$ac_res" != no; then
8153   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8154
8155 fi
8156
8157 else
8158   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160 if test "${ac_cv_search_opendir+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   ac_func_search_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 /* Override any GCC internal prototype to avoid an error.
8172    Use char because int might match the return type of a GCC
8173    builtin and then its argument prototype would still apply.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 char opendir ();
8178 int
8179 main ()
8180 {
8181 return opendir ();
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 for ac_lib in '' x; do
8187   if test -z "$ac_lib"; then
8188     ac_res="none required"
8189   else
8190     ac_res=-l$ac_lib
8191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8192   fi
8193   rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8195 case "(($ac_try" in
8196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197   *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200   (eval "$ac_link") 2>conftest.er1
8201   ac_status=$?
8202   grep -v '^ *+' conftest.er1 >conftest.err
8203   rm -f conftest.er1
8204   cat conftest.err >&5
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); } &&
8207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208   { (case "(($ac_try" in
8209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210   *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213   (eval "$ac_try") 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_try") 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; }; then
8227   ac_cv_search_opendir=$ac_res
8228 else
8229   echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232
8233 fi
8234
8235 rm -f core conftest.err conftest.$ac_objext \
8236       conftest$ac_exeext
8237   if test "${ac_cv_search_opendir+set}" = set; then
8238   break
8239 fi
8240 done
8241 if test "${ac_cv_search_opendir+set}" = set; then
8242   :
8243 else
8244   ac_cv_search_opendir=no
8245 fi
8246 rm conftest.$ac_ext
8247 LIBS=$ac_func_search_save_LIBS
8248 fi
8249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then
8253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255 fi
8256
8257 fi
8258
8259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8270                   inttypes.h stdint.h unistd.h
8271 do
8272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278   cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284 $ac_includes_default
8285
8286 #include <$ac_header>
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_compile") 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; } &&
8312          { ac_try='test -s conftest.$ac_objext'
8313   { (case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_try") 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   eval "$as_ac_Header=yes"
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327         eval "$as_ac_Header=no"
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333                { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336   cat >>confdefs.h <<_ACEOF
8337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338 _ACEOF
8339
8340 fi
8341
8342 done
8343
8344
8345
8346 for ac_header in dlfcn.h
8347 do
8348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 fi
8355 ac_res=`eval echo '${'$as_ac_Header'}'`
8356                { echo "$as_me:$LINENO: result: $ac_res" >&5
8357 echo "${ECHO_T}$ac_res" >&6; }
8358 else
8359   # Is the header compilable?
8360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368 $ac_includes_default
8369 #include <$ac_header>
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375   *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378   (eval "$ac_compile") 2>conftest.er1
8379   ac_status=$?
8380   grep -v '^ *+' conftest.er1 >conftest.err
8381   rm -f conftest.er1
8382   cat conftest.err >&5
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } &&
8385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8386   { (case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_try") 2>&5
8392   ac_status=$?
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); }; } &&
8395          { ac_try='test -s conftest.$ac_objext'
8396   { (case "(($ac_try" in
8397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398   *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401   (eval "$ac_try") 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   ac_header_compiler=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410         ac_header_compiler=no
8411 fi
8412
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8415 echo "${ECHO_T}$ac_header_compiler" >&6; }
8416
8417 # Is the header present?
8418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426 #include <$ac_header>
8427 _ACEOF
8428 if { (ac_try="$ac_cpp conftest.$ac_ext"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } >/dev/null; then
8441   if test -s conftest.err; then
8442     ac_cpp_err=$ac_c_preproc_warn_flag
8443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8444   else
8445     ac_cpp_err=
8446   fi
8447 else
8448   ac_cpp_err=yes
8449 fi
8450 if test -z "$ac_cpp_err"; then
8451   ac_header_preproc=yes
8452 else
8453   echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456   ac_header_preproc=no
8457 fi
8458
8459 rm -f conftest.err conftest.$ac_ext
8460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8461 echo "${ECHO_T}$ac_header_preproc" >&6; }
8462
8463 # So?  What about this header?
8464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8465   yes:no: )
8466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8470     ac_header_preproc=yes
8471     ;;
8472   no:yes:* )
8473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8485     ( cat <<\_ASBOX
8486 ## ------------------------------------ ##
8487 ## Report this to http://llvm.org/bugs/ ##
8488 ## ------------------------------------ ##
8489 _ASBOX
8490      ) | sed "s/^/$as_me: WARNING:     /" >&2
8491     ;;
8492 esac
8493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8496   echo $ECHO_N "(cached) $ECHO_C" >&6
8497 else
8498   eval "$as_ac_Header=\$ac_header_preproc"
8499 fi
8500 ac_res=`eval echo '${'$as_ac_Header'}'`
8501                { echo "$as_me:$LINENO: result: $ac_res" >&5
8502 echo "${ECHO_T}$ac_res" >&6; }
8503
8504 fi
8505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8506   cat >>confdefs.h <<_ACEOF
8507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8508 _ACEOF
8509
8510 fi
8511
8512 done
8513
8514 # Check whether --enable-ltdl-install was given.
8515 if test "${enable_ltdl_install+set}" = set; then
8516   enableval=$enable_ltdl_install;
8517 fi
8518
8519
8520
8521
8522 if test x"${enable_ltdl_install-no}" != xno; then
8523   INSTALL_LTDL_TRUE=
8524   INSTALL_LTDL_FALSE='#'
8525 else
8526   INSTALL_LTDL_TRUE='#'
8527   INSTALL_LTDL_FALSE=
8528 fi
8529
8530
8531
8532 if test x"${enable_ltdl_convenience-no}" != xno; then
8533   CONVENIENCE_LTDL_TRUE=
8534   CONVENIENCE_LTDL_FALSE='#'
8535 else
8536   CONVENIENCE_LTDL_TRUE='#'
8537   CONVENIENCE_LTDL_FALSE=
8538 fi
8539
8540
8541 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8543 library_names_spec=
8544 libname_spec='lib$name'
8545 soname_spec=
8546 shrext_cmds=".so"
8547 postinstall_cmds=
8548 postuninstall_cmds=
8549 finish_cmds=
8550 finish_eval=
8551 shlibpath_var=
8552 shlibpath_overrides_runpath=unknown
8553 version_type=none
8554 dynamic_linker="$host_os ld.so"
8555 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8556 if test "$GCC" = yes; then
8557   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8558   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8559     # if the path contains ";" then we assume it to be the separator
8560     # otherwise default to the standard path separator (i.e. ":") - it is
8561     # assumed that no part of a normal pathname contains ";" but that should
8562     # okay in the real world where ";" in dirpaths is itself problematic.
8563     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8564   else
8565     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8566   fi
8567 else
8568   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8569 fi
8570 need_lib_prefix=unknown
8571 hardcode_into_libs=no
8572
8573 # when you set need_version to no, make sure it does not cause -set_version
8574 # flags to be left without arguments
8575 need_version=unknown
8576
8577 case $host_os in
8578 aix3*)
8579   version_type=linux
8580   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8581   shlibpath_var=LIBPATH
8582
8583   # AIX 3 has no versioning support, so we append a major version to the name.
8584   soname_spec='${libname}${release}${shared_ext}$major'
8585   ;;
8586
8587 aix4* | aix5*)
8588   version_type=linux
8589   need_lib_prefix=no
8590   need_version=no
8591   hardcode_into_libs=yes
8592   if test "$host_cpu" = ia64; then
8593     # AIX 5 supports IA64
8594     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8595     shlibpath_var=LD_LIBRARY_PATH
8596   else
8597     # With GCC up to 2.95.x, collect2 would create an import file
8598     # for dependence libraries.  The import file would start with
8599     # the line `#! .'.  This would cause the generated library to
8600     # depend on `.', always an invalid library.  This was fixed in
8601     # development snapshots of GCC prior to 3.0.
8602     case $host_os in
8603       aix4 | aix4.[01] | aix4.[01].*)
8604       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8605            echo ' yes '
8606            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8607         :
8608       else
8609         can_build_shared=no
8610       fi
8611       ;;
8612     esac
8613     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8614     # soname into executable. Probably we can add versioning support to
8615     # collect2, so additional links can be useful in future.
8616     if test "$aix_use_runtimelinking" = yes; then
8617       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8618       # instead of lib<name>.a to let people know that these are not
8619       # typical AIX shared libraries.
8620       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621     else
8622       # We preserve .a as extension for shared libraries through AIX4.2
8623       # and later when we are not doing run time linking.
8624       library_names_spec='${libname}${release}.a $libname.a'
8625       soname_spec='${libname}${release}${shared_ext}$major'
8626     fi
8627     shlibpath_var=LIBPATH
8628   fi
8629   ;;
8630
8631 amigaos*)
8632   library_names_spec='$libname.ixlibrary $libname.a'
8633   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8634   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'
8635   ;;
8636
8637 beos*)
8638   library_names_spec='${libname}${shared_ext}'
8639   dynamic_linker="$host_os ld.so"
8640   shlibpath_var=LIBRARY_PATH
8641   ;;
8642
8643 bsdi[45]*)
8644   version_type=linux
8645   need_version=no
8646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647   soname_spec='${libname}${release}${shared_ext}$major'
8648   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8649   shlibpath_var=LD_LIBRARY_PATH
8650   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8651   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8652   # the default ld.so.conf also contains /usr/contrib/lib and
8653   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8654   # libtool to hard-code these into programs
8655   ;;
8656
8657 cygwin* | mingw* | pw32*)
8658   version_type=windows
8659   shrext_cmds=".dll"
8660   need_version=no
8661   need_lib_prefix=no
8662
8663   case $GCC,$host_os in
8664   yes,cygwin* | yes,mingw* | yes,pw32*)
8665     library_names_spec='$libname.dll.a'
8666     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8667     postinstall_cmds='base_file=`basename \${file}`~
8668       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8669       dldir=$destdir/`dirname \$dlpath`~
8670       test -d \$dldir || mkdir -p \$dldir~
8671       $install_prog $dir/$dlname \$dldir/$dlname~
8672       chmod a+x \$dldir/$dlname'
8673     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8674       dlpath=$dir/\$dldll~
8675        $rm \$dlpath'
8676     shlibpath_overrides_runpath=yes
8677
8678     case $host_os in
8679     cygwin*)
8680       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8681       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8682       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8683       ;;
8684     mingw*)
8685       # MinGW DLLs use traditional 'lib' prefix
8686       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8687       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8688       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8689         # It is most probably a Windows format PATH printed by
8690         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8691         # path with ; separators, and with drive letters. We can handle the
8692         # drive letters (cygwin fileutils understands them), so leave them,
8693         # especially as we might pass files found there to a mingw objdump,
8694         # which wouldn't understand a cygwinified path. Ahh.
8695         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8696       else
8697         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8698       fi
8699       ;;
8700     pw32*)
8701       # pw32 DLLs use 'pw' prefix rather than 'lib'
8702       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703       ;;
8704     esac
8705     ;;
8706
8707   *)
8708     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8709     ;;
8710   esac
8711   dynamic_linker='Win32 ld.exe'
8712   # FIXME: first we should search . and the directory the executable is in
8713   shlibpath_var=PATH
8714   ;;
8715
8716 darwin* | rhapsody*)
8717   dynamic_linker="$host_os dyld"
8718   version_type=darwin
8719   need_lib_prefix=no
8720   need_version=no
8721   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8722   soname_spec='${libname}${release}${major}$shared_ext'
8723   shlibpath_overrides_runpath=yes
8724   shlibpath_var=DYLD_LIBRARY_PATH
8725   shrext_cmds='.dylib'
8726   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8727   if test "$GCC" = yes; then
8728     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"`
8729   else
8730     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8731   fi
8732   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8733   ;;
8734
8735 dgux*)
8736   version_type=linux
8737   need_lib_prefix=no
8738   need_version=no
8739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8740   soname_spec='${libname}${release}${shared_ext}$major'
8741   shlibpath_var=LD_LIBRARY_PATH
8742   ;;
8743
8744 freebsd1.*)
8745   dynamic_linker=no
8746   ;;
8747
8748 kfreebsd*-gnu)
8749   version_type=linux
8750   need_lib_prefix=no
8751   need_version=no
8752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753   soname_spec='${libname}${release}${shared_ext}$major'
8754   shlibpath_var=LD_LIBRARY_PATH
8755   shlibpath_overrides_runpath=no
8756   hardcode_into_libs=yes
8757   dynamic_linker='GNU ld.so'
8758   ;;
8759
8760 freebsd* | dragonfly*)
8761   # DragonFly does not have aout.  When/if they implement a new
8762   # versioning mechanism, adjust this.
8763   if test -x /usr/bin/objformat; then
8764     objformat=`/usr/bin/objformat`
8765   else
8766     case $host_os in
8767     freebsd[123].*) objformat=aout ;;
8768     *) objformat=elf ;;
8769     esac
8770   fi
8771   version_type=freebsd-$objformat
8772   case $version_type in
8773     freebsd-elf*)
8774       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8775       need_version=no
8776       need_lib_prefix=no
8777       ;;
8778     freebsd-*)
8779       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8780       need_version=yes
8781       ;;
8782   esac
8783   shlibpath_var=LD_LIBRARY_PATH
8784   case $host_os in
8785   freebsd2.*)
8786     shlibpath_overrides_runpath=yes
8787     ;;
8788   freebsd3.[01]* | freebsdelf3.[01]*)
8789     shlibpath_overrides_runpath=yes
8790     hardcode_into_libs=yes
8791     ;;
8792   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8793   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8794     shlibpath_overrides_runpath=no
8795     hardcode_into_libs=yes
8796     ;;
8797   freebsd*) # from 4.6 on
8798     shlibpath_overrides_runpath=yes
8799     hardcode_into_libs=yes
8800     ;;
8801   esac
8802   ;;
8803
8804 gnu*)
8805   version_type=linux
8806   need_lib_prefix=no
8807   need_version=no
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8809   soname_spec='${libname}${release}${shared_ext}$major'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   hardcode_into_libs=yes
8812   ;;
8813
8814 hpux9* | hpux10* | hpux11*)
8815   # Give a soname corresponding to the major version so that dld.sl refuses to
8816   # link against other versions.
8817   version_type=sunos
8818   need_lib_prefix=no
8819   need_version=no
8820   case $host_cpu in
8821   ia64*)
8822     shrext_cmds='.so'
8823     hardcode_into_libs=yes
8824     dynamic_linker="$host_os dld.so"
8825     shlibpath_var=LD_LIBRARY_PATH
8826     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828     soname_spec='${libname}${release}${shared_ext}$major'
8829     if test "X$HPUX_IA64_MODE" = X32; then
8830       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8831     else
8832       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8833     fi
8834     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8835     ;;
8836    hppa*64*)
8837      shrext_cmds='.sl'
8838      hardcode_into_libs=yes
8839      dynamic_linker="$host_os dld.sl"
8840      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8841      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8842      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843      soname_spec='${libname}${release}${shared_ext}$major'
8844      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8845      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8846      ;;
8847    *)
8848     shrext_cmds='.sl'
8849     dynamic_linker="$host_os dld.sl"
8850     shlibpath_var=SHLIB_PATH
8851     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853     soname_spec='${libname}${release}${shared_ext}$major'
8854     ;;
8855   esac
8856   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8857   postinstall_cmds='chmod 555 $lib'
8858   ;;
8859
8860 interix3*)
8861   version_type=linux
8862   need_lib_prefix=no
8863   need_version=no
8864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8865   soname_spec='${libname}${release}${shared_ext}$major'
8866   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8867   shlibpath_var=LD_LIBRARY_PATH
8868   shlibpath_overrides_runpath=no
8869   hardcode_into_libs=yes
8870   ;;
8871
8872 irix5* | irix6* | nonstopux*)
8873   case $host_os in
8874     nonstopux*) version_type=nonstopux ;;
8875     *)
8876         if test "$lt_cv_prog_gnu_ld" = yes; then
8877                 version_type=linux
8878         else
8879                 version_type=irix
8880         fi ;;
8881   esac
8882   need_lib_prefix=no
8883   need_version=no
8884   soname_spec='${libname}${release}${shared_ext}$major'
8885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8886   case $host_os in
8887   irix5* | nonstopux*)
8888     libsuff= shlibsuff=
8889     ;;
8890   *)
8891     case $LD in # libtool.m4 will add one of these switches to LD
8892     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8893       libsuff= shlibsuff= libmagic=32-bit;;
8894     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8895       libsuff=32 shlibsuff=N32 libmagic=N32;;
8896     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8897       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8898     *) libsuff= shlibsuff= libmagic=never-match;;
8899     esac
8900     ;;
8901   esac
8902   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8903   shlibpath_overrides_runpath=no
8904   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8905   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8906   hardcode_into_libs=yes
8907   ;;
8908
8909 # No shared lib support for Linux oldld, aout, or coff.
8910 linux*oldld* | linux*aout* | linux*coff*)
8911   dynamic_linker=no
8912   ;;
8913
8914 # This must be Linux ELF.
8915 linux*)
8916   version_type=linux
8917   need_lib_prefix=no
8918   need_version=no
8919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920   soname_spec='${libname}${release}${shared_ext}$major'
8921   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8922   shlibpath_var=LD_LIBRARY_PATH
8923   shlibpath_overrides_runpath=no
8924   # This implies no fast_install, which is unacceptable.
8925   # Some rework will be needed to allow for fast_install
8926   # before this can be enabled.
8927   hardcode_into_libs=yes
8928
8929   # Append ld.so.conf contents to the search path
8930   if test -f /etc/ld.so.conf; then
8931     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' ' '`
8932     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8933   fi
8934
8935   # We used to test for /lib/ld.so.1 and disable shared libraries on
8936   # powerpc, because MkLinux only supported shared libraries with the
8937   # GNU dynamic linker.  Since this was broken with cross compilers,
8938   # most powerpc-linux boxes support dynamic linking these days and
8939   # people can always --disable-shared, the test was removed, and we
8940   # assume the GNU/Linux dynamic linker is in use.
8941   dynamic_linker='GNU/Linux ld.so'
8942   ;;
8943
8944 knetbsd*-gnu)
8945   version_type=linux
8946   need_lib_prefix=no
8947   need_version=no
8948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8949   soname_spec='${libname}${release}${shared_ext}$major'
8950   shlibpath_var=LD_LIBRARY_PATH
8951   shlibpath_overrides_runpath=no
8952   hardcode_into_libs=yes
8953   dynamic_linker='GNU ld.so'
8954   ;;
8955
8956 netbsd*)
8957   version_type=sunos
8958   need_lib_prefix=no
8959   need_version=no
8960   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963     dynamic_linker='NetBSD (a.out) ld.so'
8964   else
8965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966     soname_spec='${libname}${release}${shared_ext}$major'
8967     dynamic_linker='NetBSD ld.elf_so'
8968   fi
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=yes
8971   hardcode_into_libs=yes
8972   ;;
8973
8974 newsos6)
8975   version_type=linux
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977   shlibpath_var=LD_LIBRARY_PATH
8978   shlibpath_overrides_runpath=yes
8979   ;;
8980
8981 nto-qnx*)
8982   version_type=linux
8983   need_lib_prefix=no
8984   need_version=no
8985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986   soname_spec='${libname}${release}${shared_ext}$major'
8987   shlibpath_var=LD_LIBRARY_PATH
8988   shlibpath_overrides_runpath=yes
8989   ;;
8990
8991 openbsd* | bitrig*)
8992   version_type=sunos
8993   sys_lib_dlsearch_path_spec="/usr/lib"
8994   need_lib_prefix=no
8995   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8996   case $host_os in
8997     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8998     *)                         need_version=no  ;;
8999   esac
9000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9001   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9002   shlibpath_var=LD_LIBRARY_PATH
9003   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9004     case $host_os in
9005       openbsd2.[89] | openbsd2.[89].*)
9006         shlibpath_overrides_runpath=no
9007         ;;
9008       *)
9009         shlibpath_overrides_runpath=yes
9010         ;;
9011       esac
9012   else
9013     shlibpath_overrides_runpath=yes
9014   fi
9015   ;;
9016
9017 os2*)
9018   libname_spec='$name'
9019   shrext_cmds=".dll"
9020   need_lib_prefix=no
9021   library_names_spec='$libname${shared_ext} $libname.a'
9022   dynamic_linker='OS/2 ld.exe'
9023   shlibpath_var=LIBPATH
9024   ;;
9025
9026 osf3* | osf4* | osf5*)
9027   version_type=osf
9028   need_lib_prefix=no
9029   need_version=no
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032   shlibpath_var=LD_LIBRARY_PATH
9033   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9034   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9035   ;;
9036
9037 solaris*)
9038   version_type=linux
9039   need_lib_prefix=no
9040   need_version=no
9041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042   soname_spec='${libname}${release}${shared_ext}$major'
9043   shlibpath_var=LD_LIBRARY_PATH
9044   shlibpath_overrides_runpath=yes
9045   hardcode_into_libs=yes
9046   # ldd complains unless libraries are executable
9047   postinstall_cmds='chmod +x $lib'
9048   ;;
9049
9050 sunos4*)
9051   version_type=sunos
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   shlibpath_overrides_runpath=yes
9056   if test "$with_gnu_ld" = yes; then
9057     need_lib_prefix=no
9058   fi
9059   need_version=yes
9060   ;;
9061
9062 sysv4 | sysv4.3*)
9063   version_type=linux
9064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065   soname_spec='${libname}${release}${shared_ext}$major'
9066   shlibpath_var=LD_LIBRARY_PATH
9067   case $host_vendor in
9068     sni)
9069       shlibpath_overrides_runpath=no
9070       need_lib_prefix=no
9071       export_dynamic_flag_spec='${wl}-Blargedynsym'
9072       runpath_var=LD_RUN_PATH
9073       ;;
9074     siemens)
9075       need_lib_prefix=no
9076       ;;
9077     motorola)
9078       need_lib_prefix=no
9079       need_version=no
9080       shlibpath_overrides_runpath=no
9081       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9082       ;;
9083   esac
9084   ;;
9085
9086 sysv4*MP*)
9087   if test -d /usr/nec ;then
9088     version_type=linux
9089     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9090     soname_spec='$libname${shared_ext}.$major'
9091     shlibpath_var=LD_LIBRARY_PATH
9092   fi
9093   ;;
9094
9095 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9096   version_type=freebsd-elf
9097   need_lib_prefix=no
9098   need_version=no
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9100   soname_spec='${libname}${release}${shared_ext}$major'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   hardcode_into_libs=yes
9103   if test "$with_gnu_ld" = yes; then
9104     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9105     shlibpath_overrides_runpath=no
9106   else
9107     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9108     shlibpath_overrides_runpath=yes
9109     case $host_os in
9110       sco3.2v5*)
9111         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9112         ;;
9113     esac
9114   fi
9115   sys_lib_dlsearch_path_spec='/usr/lib'
9116   ;;
9117
9118 uts4*)
9119   version_type=linux
9120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121   soname_spec='${libname}${release}${shared_ext}$major'
9122   shlibpath_var=LD_LIBRARY_PATH
9123   ;;
9124
9125 *)
9126   dynamic_linker=no
9127   ;;
9128 esac
9129 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9130 echo "${ECHO_T}$dynamic_linker" >&6; }
9131 test "$dynamic_linker" = no && can_build_shared=no
9132
9133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9134 if test "$GCC" = yes; then
9135   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9136 fi
9137
9138
9139 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9140 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9141 if test "${libltdl_cv_shlibext+set}" = set; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144
9145 module=yes
9146 eval libltdl_cv_shlibext=$shrext_cmds
9147
9148 fi
9149 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9150 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9151 if test -n "$libltdl_cv_shlibext"; then
9152
9153 cat >>confdefs.h <<_ACEOF
9154 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9155 _ACEOF
9156
9157 fi
9158
9159
9160 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9161 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9162 if test "${libltdl_cv_sys_search_path+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9166 fi
9167 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9168 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9169 if test -n "$libltdl_cv_sys_search_path"; then
9170   sys_search_path=
9171   for dir in $libltdl_cv_sys_search_path; do
9172     if test -z "$sys_search_path"; then
9173       sys_search_path="$dir"
9174     else
9175       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9176     fi
9177   done
9178
9179 cat >>confdefs.h <<_ACEOF
9180 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9181 _ACEOF
9182
9183 fi
9184
9185 { echo "$as_me:$LINENO: checking for objdir" >&5
9186 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9187 if test "${libltdl_cv_objdir+set}" = set; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190   libltdl_cv_objdir="$objdir"
9191   if test -n "$objdir"; then
9192     :
9193   else
9194     rm -f .libs 2>/dev/null
9195     mkdir .libs 2>/dev/null
9196     if test -d .libs; then
9197       libltdl_cv_objdir=.libs
9198     else
9199       # MS-DOS does not allow filenames that begin with a dot.
9200       libltdl_cv_objdir=_libs
9201     fi
9202   rmdir .libs 2>/dev/null
9203   fi
9204
9205 fi
9206 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9207 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9208
9209 cat >>confdefs.h <<_ACEOF
9210 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9211 _ACEOF
9212
9213
9214
9215
9216
9217
9218 # Check for command to grab the raw symbol name followed by C symbol from nm.
9219 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9220 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9221 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224
9225 # These are sane defaults that work on at least a few old systems.
9226 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9227
9228 # Character class describing NM global symbol codes.
9229 symcode='[BCDEGRST]'
9230
9231 # Regexp to match symbols that can be accessed directly from C.
9232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9233
9234 # Transform an extracted symbol line into a proper C declaration
9235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9236
9237 # Transform an extracted symbol line into symbol name and symbol address
9238 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'"
9239
9240 # Define system-specific variables.
9241 case $host_os in
9242 aix*)
9243   symcode='[BCDT]'
9244   ;;
9245 cygwin* | mingw* | pw32*)
9246   symcode='[ABCDGISTW]'
9247   ;;
9248 hpux*) # Its linker distinguishes data from code symbols
9249   if test "$host_cpu" = ia64; then
9250     symcode='[ABCDEGRST]'
9251   fi
9252   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9253   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'"
9254   ;;
9255 linux*)
9256   if test "$host_cpu" = ia64; then
9257     symcode='[ABCDGIRSTW]'
9258     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9259     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'"
9260   fi
9261   ;;
9262 irix* | nonstopux*)
9263   symcode='[BCDEGRST]'
9264   ;;
9265 osf*)
9266   symcode='[BCDEGQRST]'
9267   ;;
9268 solaris*)
9269   symcode='[BDRT]'
9270   ;;
9271 sco3.2v5*)
9272   symcode='[DT]'
9273   ;;
9274 sysv4.2uw2*)
9275   symcode='[DT]'
9276   ;;
9277 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9278   symcode='[ABDT]'
9279   ;;
9280 sysv4)
9281   symcode='[DFNSTU]'
9282   ;;
9283 esac
9284
9285 # Handle CRLF in mingw tool chain
9286 opt_cr=
9287 case $build_os in
9288 mingw*)
9289   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9290   ;;
9291 esac
9292
9293 # If we're using GNU nm, then use its standard symbol codes.
9294 case `$NM -V 2>&1` in
9295 *GNU* | *'with BFD'*)
9296   symcode='[ABCDGIRSTW]' ;;
9297 esac
9298
9299 # Try without a prefix undercore, then with it.
9300 for ac_symprfx in "" "_"; do
9301
9302   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9303   symxfrm="\\1 $ac_symprfx\\2 \\2"
9304
9305   # Write the raw and C identifiers.
9306   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9307
9308   # Check to see that the pipe works correctly.
9309   pipe_works=no
9310
9311   rm -f conftest*
9312   cat > conftest.$ac_ext <<EOF
9313 #ifdef __cplusplus
9314 extern "C" {
9315 #endif
9316 char nm_test_var;
9317 void nm_test_func(){}
9318 #ifdef __cplusplus
9319 }
9320 #endif
9321 int main(){nm_test_var='a';nm_test_func();return(0);}
9322 EOF
9323
9324   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325   (eval $ac_compile) 2>&5
9326   ac_status=$?
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); }; then
9329     # Now try to grab the symbols.
9330     nlist=conftest.nm
9331     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9332   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } && test -s "$nlist"; then
9336       # Try sorting and uniquifying the output.
9337       if sort "$nlist" | uniq > "$nlist"T; then
9338         mv -f "$nlist"T "$nlist"
9339       else
9340         rm -f "$nlist"T
9341       fi
9342
9343       # Make sure that we snagged all the symbols we need.
9344       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9345         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9346           cat <<EOF > conftest.$ac_ext
9347 #ifdef __cplusplus
9348 extern "C" {
9349 #endif
9350
9351 EOF
9352           # Now generate the symbol file.
9353           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9354
9355           cat <<EOF >> conftest.$ac_ext
9356 #if defined (__STDC__) && __STDC__
9357 # define lt_ptr_t void *
9358 #else
9359 # define lt_ptr_t char *
9360 # define const
9361 #endif
9362
9363 /* The mapping between symbol names and symbols. */
9364 const struct {
9365   const char *name;
9366   lt_ptr_t address;
9367 }
9368 lt_preloaded_symbols[] =
9369 {
9370 EOF
9371           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9372           cat <<\EOF >> conftest.$ac_ext
9373   {0, (lt_ptr_t) 0}
9374 };
9375
9376 #ifdef __cplusplus
9377 }
9378 #endif
9379 EOF
9380           # Now try linking the two files.
9381           mv conftest.$ac_objext conftstm.$ac_objext
9382           lt_save_LIBS="$LIBS"
9383           lt_save_CFLAGS="$CFLAGS"
9384           LIBS="conftstm.$ac_objext"
9385           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9386           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387   (eval $ac_link) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9391             pipe_works=yes
9392           fi
9393           LIBS="$lt_save_LIBS"
9394           CFLAGS="$lt_save_CFLAGS"
9395         else
9396           echo "cannot find nm_test_func in $nlist" >&5
9397         fi
9398       else
9399         echo "cannot find nm_test_var in $nlist" >&5
9400       fi
9401     else
9402       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9403     fi
9404   else
9405     echo "$progname: failed program was:" >&5
9406     cat conftest.$ac_ext >&5
9407   fi
9408   rm -f conftest* conftst*
9409
9410   # Do not use the global_symbol_pipe unless it works.
9411   if test "$pipe_works" = yes; then
9412     break
9413   else
9414     lt_cv_sys_global_symbol_pipe=
9415   fi
9416 done
9417
9418 fi
9419
9420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9421   lt_cv_sys_global_symbol_to_cdecl=
9422 fi
9423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9424   { echo "$as_me:$LINENO: result: failed" >&5
9425 echo "${ECHO_T}failed" >&6; }
9426 else
9427   { echo "$as_me:$LINENO: result: ok" >&5
9428 echo "${ECHO_T}ok" >&6; }
9429 fi
9430
9431
9432 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9433 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9434 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9438     libltdl_cv_preloaded_symbols=yes
9439   else
9440     libltdl_cv_preloaded_symbols=no
9441   fi
9442
9443 fi
9444 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9445 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9446 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9447
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_PRELOADED_SYMBOLS 1
9450 _ACEOF
9451
9452 fi
9453
9454 LIBADD_DL=
9455
9456 ac_ext=c
9457 ac_cpp='$CPP $CPPFLAGS'
9458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461
9462
9463 { echo "$as_me:$LINENO: checking for shl_load" >&5
9464 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9465 if test "${ac_cv_func_shl_load+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9476 #define shl_load innocuous_shl_load
9477
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char shl_load (); below.
9480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481     <limits.h> exists even on freestanding compilers.  */
9482
9483 #ifdef __STDC__
9484 # include <limits.h>
9485 #else
9486 # include <assert.h>
9487 #endif
9488
9489 #undef shl_load
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492    Use char because int might match the return type of a GCC
9493    builtin and then its argument prototype would still apply.  */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char shl_load ();
9498 /* The GNU C library defines this for functions which it implements
9499     to always fail with ENOSYS.  Some functions are actually named
9500     something starting with __ and the normal name is an alias.  */
9501 #if defined __stub_shl_load || defined __stub___shl_load
9502 choke me
9503 #endif
9504
9505 int
9506 main ()
9507 {
9508 return shl_load ();
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (ac_try="$ac_link"
9515 case "(($ac_try" in
9516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517   *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520   (eval "$ac_link") 2>conftest.er1
9521   ac_status=$?
9522   grep -v '^ *+' conftest.er1 >conftest.err
9523   rm -f conftest.er1
9524   cat conftest.err >&5
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); } &&
9527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9528   { (case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_try") 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; } &&
9537          { ac_try='test -s conftest$ac_exeext'
9538   { (case "(($ac_try" in
9539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540   *) ac_try_echo=$ac_try;;
9541 esac
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543   (eval "$ac_try") 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   ac_cv_func_shl_load=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552         ac_cv_func_shl_load=no
9553 fi
9554
9555 rm -f core conftest.err conftest.$ac_objext \
9556       conftest$ac_exeext conftest.$ac_ext
9557 fi
9558 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9560 if test $ac_cv_func_shl_load = yes; then
9561
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_SHL_LOAD 1
9564 _ACEOF
9565
9566 else
9567   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldld  $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580
9581 /* Override any GCC internal prototype to avoid an error.
9582    Use char because int might match the return type of a GCC
9583    builtin and then its argument prototype would still apply.  */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char shl_load ();
9588 int
9589 main ()
9590 {
9591 return shl_load ();
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600   *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603   (eval "$ac_link") 2>conftest.er1
9604   ac_status=$?
9605   grep -v '^ *+' conftest.er1 >conftest.err
9606   rm -f conftest.er1
9607   cat conftest.err >&5
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } &&
9610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9611   { (case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616   (eval "$ac_try") 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; } &&
9620          { ac_try='test -s conftest$ac_exeext'
9621   { (case "(($ac_try" in
9622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623   *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626   (eval "$ac_try") 2>&5
9627   ac_status=$?
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); }; }; then
9630   ac_cv_lib_dld_shl_load=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635         ac_cv_lib_dld_shl_load=no
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext \
9639       conftest$ac_exeext conftest.$ac_ext
9640 LIBS=$ac_check_lib_save_LIBS
9641 fi
9642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9643 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9644 if test $ac_cv_lib_dld_shl_load = yes; then
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_SHL_LOAD 1
9648 _ACEOF
9649
9650         LIBADD_DL="$LIBADD_DL -ldld"
9651 else
9652   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   ac_check_lib_save_LIBS=$LIBS
9658 LIBS="-ldl  $LIBS"
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665
9666 /* Override any GCC internal prototype to avoid an error.
9667    Use char because int might match the return type of a GCC
9668    builtin and then its argument prototype would still apply.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 char dlopen ();
9673 int
9674 main ()
9675 {
9676 return dlopen ();
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_link") 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } &&
9695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9696   { (case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_try") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; } &&
9705          { ac_try='test -s conftest$ac_exeext'
9706   { (case "(($ac_try" in
9707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708   *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711   (eval "$ac_try") 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   ac_cv_lib_dl_dlopen=yes
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720         ac_cv_lib_dl_dlopen=no
9721 fi
9722
9723 rm -f core conftest.err conftest.$ac_objext \
9724       conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9726 fi
9727 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9729 if test $ac_cv_lib_dl_dlopen = yes; then
9730
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_LIBDL 1
9733 _ACEOF
9734
9735                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 #if HAVE_DLFCN_H
9744 #  include <dlfcn.h>
9745 #endif
9746
9747 int
9748 main ()
9749 {
9750 dlopen(0, 0);
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9757 case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_link") 2>conftest.er1
9763   ac_status=$?
9764   grep -v '^ *+' conftest.er1 >conftest.err
9765   rm -f conftest.er1
9766   cat conftest.err >&5
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); } &&
9769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9770   { (case "(($ac_try" in
9771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772   *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775   (eval "$ac_try") 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; } &&
9779          { ac_try='test -s conftest$ac_exeext'
9780   { (case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_try") 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; }; then
9789
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_LIBDL 1
9792 _ACEOF
9793  libltdl_cv_func_dlopen="yes"
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9799 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9800 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   ac_check_lib_save_LIBS=$LIBS
9804 LIBS="-lsvld  $LIBS"
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h.  */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h.  */
9811
9812 /* Override any GCC internal prototype to avoid an error.
9813    Use char because int might match the return type of a GCC
9814    builtin and then its argument prototype would still apply.  */
9815 #ifdef __cplusplus
9816 extern "C"
9817 #endif
9818 char dlopen ();
9819 int
9820 main ()
9821 {
9822 return dlopen ();
9823   ;
9824   return 0;
9825 }
9826 _ACEOF
9827 rm -f conftest.$ac_objext conftest$ac_exeext
9828 if { (ac_try="$ac_link"
9829 case "(($ac_try" in
9830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831   *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834   (eval "$ac_link") 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9842   { (case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_try") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; } &&
9851          { ac_try='test -s conftest$ac_exeext'
9852   { (case "(($ac_try" in
9853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854   *) ac_try_echo=$ac_try;;
9855 esac
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857   (eval "$ac_try") 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_cv_lib_svld_dlopen=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866         ac_cv_lib_svld_dlopen=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext \
9870       conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9872 fi
9873 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9874 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9875 if test $ac_cv_lib_svld_dlopen = yes; then
9876
9877 cat >>confdefs.h <<\_ACEOF
9878 #define HAVE_LIBDL 1
9879 _ACEOF
9880
9881                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9882 else
9883   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9884 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9885 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   ac_check_lib_save_LIBS=$LIBS
9889 LIBS="-ldld  $LIBS"
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896
9897 /* Override any GCC internal prototype to avoid an error.
9898    Use char because int might match the return type of a GCC
9899    builtin and then its argument prototype would still apply.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char dld_link ();
9904 int
9905 main ()
9906 {
9907 return dld_link ();
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9914 case "(($ac_try" in
9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916   *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919   (eval "$ac_link") 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927   { (case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_try") 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; } &&
9936          { ac_try='test -s conftest$ac_exeext'
9937   { (case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_try") 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_lib_dld_dld_link=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951         ac_cv_lib_dld_dld_link=no
9952 fi
9953
9954 rm -f core conftest.err conftest.$ac_objext \
9955       conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9957 fi
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9960 if test $ac_cv_lib_dld_dld_link = yes; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_DLD 1
9964 _ACEOF
9965
9966                 LIBADD_DL="$LIBADD_DL -ldld"
9967 else
9968   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9969 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9970 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9981 #define _dyld_func_lookup innocuous__dyld_func_lookup
9982
9983 /* System header to define __stub macros and hopefully few prototypes,
9984     which can conflict with char _dyld_func_lookup (); below.
9985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986     <limits.h> exists even on freestanding compilers.  */
9987
9988 #ifdef __STDC__
9989 # include <limits.h>
9990 #else
9991 # include <assert.h>
9992 #endif
9993
9994 #undef _dyld_func_lookup
9995
9996 /* Override any GCC internal prototype to avoid an error.
9997    Use char because int might match the return type of a GCC
9998    builtin and then its argument prototype would still apply.  */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 char _dyld_func_lookup ();
10003 /* The GNU C library defines this for functions which it implements
10004     to always fail with ENOSYS.  Some functions are actually named
10005     something starting with __ and the normal name is an alias.  */
10006 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10007 choke me
10008 #endif
10009
10010 int
10011 main ()
10012 {
10013 return _dyld_func_lookup ();
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_link") 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10033   { (case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_try") 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; } &&
10042          { ac_try='test -s conftest$ac_exeext'
10043   { (case "(($ac_try" in
10044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045   *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048   (eval "$ac_try") 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; }; then
10052   ac_cv_func__dyld_func_lookup=yes
10053 else
10054   echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057         ac_cv_func__dyld_func_lookup=no
10058 fi
10059
10060 rm -f core conftest.err conftest.$ac_objext \
10061       conftest$ac_exeext conftest.$ac_ext
10062 fi
10063 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10064 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10065 if test $ac_cv_func__dyld_func_lookup = yes; then
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_DYLD 1
10069 _ACEOF
10070
10071 fi
10072
10073
10074 fi
10075
10076
10077 fi
10078
10079
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084
10085 fi
10086
10087
10088 fi
10089
10090
10091 fi
10092
10093
10094 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10095 then
10096   lt_save_LIBS="$LIBS"
10097   LIBS="$LIBS $LIBADD_DL"
10098
10099 for ac_func in dlerror
10100 do
10101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10115 #define $ac_func innocuous_$ac_func
10116
10117 /* System header to define __stub macros and hopefully few prototypes,
10118     which can conflict with char $ac_func (); below.
10119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120     <limits.h> exists even on freestanding compilers.  */
10121
10122 #ifdef __STDC__
10123 # include <limits.h>
10124 #else
10125 # include <assert.h>
10126 #endif
10127
10128 #undef $ac_func
10129
10130 /* Override any GCC internal prototype to avoid an error.
10131    Use char because int might match the return type of a GCC
10132    builtin and then its argument prototype would still apply.  */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 char $ac_func ();
10137 /* The GNU C library defines this for functions which it implements
10138     to always fail with ENOSYS.  Some functions are actually named
10139     something starting with __ and the normal name is an alias.  */
10140 #if defined __stub_$ac_func || defined __stub___$ac_func
10141 choke me
10142 #endif
10143
10144 int
10145 main ()
10146 {
10147 return $ac_func ();
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_link") 2>conftest.er1
10160   ac_status=$?
10161   grep -v '^ *+' conftest.er1 >conftest.err
10162   rm -f conftest.er1
10163   cat conftest.err >&5
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); } &&
10166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10167   { (case "(($ac_try" in
10168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169   *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172   (eval "$ac_try") 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); }; } &&
10176          { ac_try='test -s conftest$ac_exeext'
10177   { (case "(($ac_try" in
10178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179   *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182   (eval "$ac_try") 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; }; then
10186   eval "$as_ac_var=yes"
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191         eval "$as_ac_var=no"
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext \
10195       conftest$ac_exeext conftest.$ac_ext
10196 fi
10197 ac_res=`eval echo '${'$as_ac_var'}'`
10198                { echo "$as_me:$LINENO: result: $ac_res" >&5
10199 echo "${ECHO_T}$ac_res" >&6; }
10200 if test `eval echo '${'$as_ac_var'}'` = yes; then
10201   cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10203 _ACEOF
10204
10205 fi
10206 done
10207
10208   LIBS="$lt_save_LIBS"
10209 fi
10210 ac_ext=c
10211 ac_cpp='$CPP $CPPFLAGS'
10212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10215
10216
10217
10218 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10219 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10220 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   ac_cv_sys_symbol_underscore=no
10224   cat > conftest.$ac_ext <<EOF
10225 void nm_test_func(){}
10226 int main(){nm_test_func;return 0;}
10227 EOF
10228   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229   (eval $ac_compile) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; then
10233     # Now try to grab the symbols.
10234     ac_nlist=conftest.nm
10235     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10236   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); } && test -s "$ac_nlist"; then
10240       # See whether the symbols have a leading underscore.
10241       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10242         ac_cv_sys_symbol_underscore=yes
10243       else
10244         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10245           :
10246         else
10247           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10248         fi
10249       fi
10250     else
10251       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10252     fi
10253   else
10254     echo "configure: failed program was:" >&5
10255     cat conftest.c >&5
10256   fi
10257   rm -rf conftest*
10258
10259 fi
10260 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10261 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10262
10263
10264 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10265   if test x"$libltdl_cv_func_dlopen" = xyes ||
10266      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10267         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10268 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10269 if test "${libltdl_cv_need_uscore+set}" = set; then
10270   echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272   libltdl_cv_need_uscore=unknown
10273           save_LIBS="$LIBS"
10274           LIBS="$LIBS $LIBADD_DL"
10275           if test "$cross_compiling" = yes; then :
10276   libltdl_cv_need_uscore=cross
10277 else
10278   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10279   lt_status=$lt_dlunknown
10280   cat > conftest.$ac_ext <<EOF
10281 #line 10281 "configure"
10282 #include "confdefs.h"
10283
10284 #if HAVE_DLFCN_H
10285 #include <dlfcn.h>
10286 #endif
10287
10288 #include <stdio.h>
10289
10290 #ifdef RTLD_GLOBAL
10291 #  define LT_DLGLOBAL           RTLD_GLOBAL
10292 #else
10293 #  ifdef DL_GLOBAL
10294 #    define LT_DLGLOBAL         DL_GLOBAL
10295 #  else
10296 #    define LT_DLGLOBAL         0
10297 #  endif
10298 #endif
10299
10300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10301    find out it does not work in some platform. */
10302 #ifndef LT_DLLAZY_OR_NOW
10303 #  ifdef RTLD_LAZY
10304 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10305 #  else
10306 #    ifdef DL_LAZY
10307 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10308 #    else
10309 #      ifdef RTLD_NOW
10310 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10311 #      else
10312 #        ifdef DL_NOW
10313 #          define LT_DLLAZY_OR_NOW      DL_NOW
10314 #        else
10315 #          define LT_DLLAZY_OR_NOW      0
10316 #        endif
10317 #      endif
10318 #    endif
10319 #  endif
10320 #endif
10321
10322 #ifdef __cplusplus
10323 extern "C" void exit (int);
10324 #endif
10325
10326 void fnord() { int i=42;}
10327 int main ()
10328 {
10329   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10330   int status = $lt_dlunknown;
10331
10332   if (self)
10333     {
10334       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10335       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10336       /* dlclose (self); */
10337     }
10338   else
10339     puts (dlerror ());
10340
10341     exit (status);
10342 }
10343 EOF
10344   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345   (eval $ac_link) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10349     (./conftest; exit; ) >&5 2>/dev/null
10350     lt_status=$?
10351     case x$lt_status in
10352       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10353       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10354       x$lt_dlunknown|x*)  ;;
10355     esac
10356   else :
10357     # compilation failed
10358
10359   fi
10360 fi
10361 rm -fr conftest*
10362
10363           LIBS="$save_LIBS"
10364
10365 fi
10366 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10367 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10368   fi
10369 fi
10370
10371 if test x"$libltdl_cv_need_uscore" = xyes; then
10372
10373 cat >>confdefs.h <<\_ACEOF
10374 #define NEED_USCORE 1
10375 _ACEOF
10376
10377 fi
10378
10379
10380 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10381 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10382 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   # PORTME does your system automatically load deplibs for dlopen?
10386   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10387   # For now, we just catch OSes we know something about -- in the
10388   # future, we'll try test this programmatically.
10389   libltdl_cv_sys_dlopen_deplibs=unknown
10390   case "$host_os" in
10391   aix3*|aix4.1.*|aix4.2.*)
10392     # Unknown whether this is true for these versions of AIX, but
10393     # we want this `case' here to explicitly catch those versions.
10394     libltdl_cv_sys_dlopen_deplibs=unknown
10395     ;;
10396   aix[45]*)
10397     libltdl_cv_sys_dlopen_deplibs=yes
10398     ;;
10399   darwin*)
10400     # Assuming the user has installed a libdl from somewhere, this is true
10401     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10402     libltdl_cv_sys_dlopen_deplibs=yes
10403     ;;
10404   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10405     # GNU and its variants, using gnu ld.so (Glibc)
10406     libltdl_cv_sys_dlopen_deplibs=yes
10407     ;;
10408   hpux10*|hpux11*)
10409     libltdl_cv_sys_dlopen_deplibs=yes
10410     ;;
10411   interix*)
10412     libltdl_cv_sys_dlopen_deplibs=yes
10413     ;;
10414   irix[12345]*|irix6.[01]*)
10415     # Catch all versions of IRIX before 6.2, and indicate that we don't
10416     # know how it worked for any of those versions.
10417     libltdl_cv_sys_dlopen_deplibs=unknown
10418     ;;
10419   irix*)
10420     # The case above catches anything before 6.2, and it's known that
10421     # at 6.2 and later dlopen does load deplibs.
10422     libltdl_cv_sys_dlopen_deplibs=yes
10423     ;;
10424   netbsd*)
10425     libltdl_cv_sys_dlopen_deplibs=yes
10426     ;;
10427   openbsd*)
10428     libltdl_cv_sys_dlopen_deplibs=yes
10429     ;;
10430   osf[1234]*)
10431     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10432     # it did *not* use an RPATH in a shared library to find objects the
10433     # library depends on, so we explicitly say `no'.
10434     libltdl_cv_sys_dlopen_deplibs=no
10435     ;;
10436   osf5.0|osf5.0a|osf5.1)
10437     # dlopen *does* load deplibs and with the right loader patch applied
10438     # it even uses RPATH in a shared library to search for shared objects
10439     # that the library depends on, but there's no easy way to know if that
10440     # patch is installed.  Since this is the case, all we can really
10441     # say is unknown -- it depends on the patch being installed.  If
10442     # it is, this changes to `yes'.  Without it, it would be `no'.
10443     libltdl_cv_sys_dlopen_deplibs=unknown
10444     ;;
10445   osf*)
10446     # the two cases above should catch all versions of osf <= 5.1.  Read
10447     # the comments above for what we know about them.
10448     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10449     # is used to find them so we can finally say `yes'.
10450     libltdl_cv_sys_dlopen_deplibs=yes
10451     ;;
10452   solaris*)
10453     libltdl_cv_sys_dlopen_deplibs=yes
10454     ;;
10455   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10456     libltdl_cv_sys_dlopen_deplibs=yes
10457     ;;
10458   esac
10459
10460 fi
10461 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10462 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10463 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10464
10465 cat >>confdefs.h <<\_ACEOF
10466 #define LTDL_DLOPEN_DEPLIBS 1
10467 _ACEOF
10468
10469 fi
10470
10471
10472 for ac_header in argz.h
10473 do
10474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 fi
10481 ac_res=`eval echo '${'$as_ac_Header'}'`
10482                { echo "$as_me:$LINENO: result: $ac_res" >&5
10483 echo "${ECHO_T}$ac_res" >&6; }
10484 else
10485   # Is the header compilable?
10486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 $ac_includes_default
10495 #include <$ac_header>
10496 _ACEOF
10497 rm -f conftest.$ac_objext
10498 if { (ac_try="$ac_compile"
10499 case "(($ac_try" in
10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501   *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504   (eval "$ac_compile") 2>conftest.er1
10505   ac_status=$?
10506   grep -v '^ *+' conftest.er1 >conftest.err
10507   rm -f conftest.er1
10508   cat conftest.err >&5
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); } &&
10511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512   { (case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_try") 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; } &&
10521          { ac_try='test -s conftest.$ac_objext'
10522   { (case "(($ac_try" in
10523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524   *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527   (eval "$ac_try") 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; }; then
10531   ac_header_compiler=yes
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536         ac_header_compiler=no
10537 fi
10538
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10541 echo "${ECHO_T}$ac_header_compiler" >&6; }
10542
10543 # Is the header present?
10544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h.  */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h.  */
10552 #include <$ac_header>
10553 _ACEOF
10554 if { (ac_try="$ac_cpp conftest.$ac_ext"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } >/dev/null; then
10567   if test -s conftest.err; then
10568     ac_cpp_err=$ac_c_preproc_warn_flag
10569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10570   else
10571     ac_cpp_err=
10572   fi
10573 else
10574   ac_cpp_err=yes
10575 fi
10576 if test -z "$ac_cpp_err"; then
10577   ac_header_preproc=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582   ac_header_preproc=no
10583 fi
10584
10585 rm -f conftest.err conftest.$ac_ext
10586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10587 echo "${ECHO_T}$ac_header_preproc" >&6; }
10588
10589 # So?  What about this header?
10590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10591   yes:no: )
10592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10596     ac_header_preproc=yes
10597     ;;
10598   no:yes:* )
10599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10611     ( cat <<\_ASBOX
10612 ## ------------------------------------ ##
10613 ## Report this to http://llvm.org/bugs/ ##
10614 ## ------------------------------------ ##
10615 _ASBOX
10616      ) | sed "s/^/$as_me: WARNING:     /" >&2
10617     ;;
10618 esac
10619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10622   echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624   eval "$as_ac_Header=\$ac_header_preproc"
10625 fi
10626 ac_res=`eval echo '${'$as_ac_Header'}'`
10627                { echo "$as_me:$LINENO: result: $ac_res" >&5
10628 echo "${ECHO_T}$ac_res" >&6; }
10629
10630 fi
10631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10632   cat >>confdefs.h <<_ACEOF
10633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10634 _ACEOF
10635
10636 fi
10637
10638 done
10639
10640
10641 { echo "$as_me:$LINENO: checking for error_t" >&5
10642 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10643 if test "${ac_cv_type_error_t+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 #if HAVE_ARGZ_H
10653 #  include <argz.h>
10654 #endif
10655
10656 typedef error_t ac__type_new_;
10657 int
10658 main ()
10659 {
10660 if ((ac__type_new_ *) 0)
10661   return 0;
10662 if (sizeof (ac__type_new_))
10663   return 0;
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext
10669 if { (ac_try="$ac_compile"
10670 case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675   (eval "$ac_compile") 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } &&
10682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683   { (case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_try") 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; } &&
10692          { ac_try='test -s conftest.$ac_objext'
10693   { (case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698   (eval "$ac_try") 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); }; }; then
10702   ac_cv_type_error_t=yes
10703 else
10704   echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707         ac_cv_type_error_t=no
10708 fi
10709
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711 fi
10712 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10713 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10714 if test $ac_cv_type_error_t = yes; then
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_ERROR_T 1
10718 _ACEOF
10719
10720
10721 else
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define error_t int
10725 _ACEOF
10726
10727 fi
10728
10729
10730
10731
10732
10733
10734
10735 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10736 do
10737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h.  */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h.  */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10751 #define $ac_func innocuous_$ac_func
10752
10753 /* System header to define __stub macros and hopefully few prototypes,
10754     which can conflict with char $ac_func (); below.
10755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756     <limits.h> exists even on freestanding compilers.  */
10757
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10763
10764 #undef $ac_func
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767    Use char because int might match the return type of a GCC
10768    builtin and then its argument prototype would still apply.  */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char $ac_func ();
10773 /* The GNU C library defines this for functions which it implements
10774     to always fail with ENOSYS.  Some functions are actually named
10775     something starting with __ and the normal name is an alias.  */
10776 #if defined __stub_$ac_func || defined __stub___$ac_func
10777 choke me
10778 #endif
10779
10780 int
10781 main ()
10782 {
10783 return $ac_func ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792   *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795   (eval "$ac_link") 2>conftest.er1
10796   ac_status=$?
10797   grep -v '^ *+' conftest.er1 >conftest.err
10798   rm -f conftest.er1
10799   cat conftest.err >&5
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } &&
10802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803   { (case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_try") 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; } &&
10812          { ac_try='test -s conftest$ac_exeext'
10813   { (case "(($ac_try" in
10814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815   *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818   (eval "$ac_try") 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; }; then
10822   eval "$as_ac_var=yes"
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827         eval "$as_ac_var=no"
10828 fi
10829
10830 rm -f core conftest.err conftest.$ac_objext \
10831       conftest$ac_exeext conftest.$ac_ext
10832 fi
10833 ac_res=`eval echo '${'$as_ac_var'}'`
10834                { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10836 if test `eval echo '${'$as_ac_var'}'` = yes; then
10837   cat >>confdefs.h <<_ACEOF
10838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10839 _ACEOF
10840
10841 fi
10842 done
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866 for ac_header in errno.h malloc.h memory.h unistd.h
10867 do
10868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 fi
10875 ac_res=`eval echo '${'$as_ac_Header'}'`
10876                { echo "$as_me:$LINENO: result: $ac_res" >&5
10877 echo "${ECHO_T}$ac_res" >&6; }
10878 else
10879   # Is the header compilable?
10880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 $ac_includes_default
10889 #include <$ac_header>
10890 _ACEOF
10891 rm -f conftest.$ac_objext
10892 if { (ac_try="$ac_compile"
10893 case "(($ac_try" in
10894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895   *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898   (eval "$ac_compile") 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906   { (case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_try") 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; } &&
10915          { ac_try='test -s conftest.$ac_objext'
10916   { (case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_try") 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; }; then
10925   ac_header_compiler=yes
10926 else
10927   echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930         ac_header_compiler=no
10931 fi
10932
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10935 echo "${ECHO_T}$ac_header_compiler" >&6; }
10936
10937 # Is the header present?
10938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10940 cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946 #include <$ac_header>
10947 _ACEOF
10948 if { (ac_try="$ac_cpp conftest.$ac_ext"
10949 case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10955   ac_status=$?
10956   grep -v '^ *+' conftest.er1 >conftest.err
10957   rm -f conftest.er1
10958   cat conftest.err >&5
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); } >/dev/null; then
10961   if test -s conftest.err; then
10962     ac_cpp_err=$ac_c_preproc_warn_flag
10963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10964   else
10965     ac_cpp_err=
10966   fi
10967 else
10968   ac_cpp_err=yes
10969 fi
10970 if test -z "$ac_cpp_err"; then
10971   ac_header_preproc=yes
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976   ac_header_preproc=no
10977 fi
10978
10979 rm -f conftest.err conftest.$ac_ext
10980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10981 echo "${ECHO_T}$ac_header_preproc" >&6; }
10982
10983 # So?  What about this header?
10984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10985   yes:no: )
10986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10990     ac_header_preproc=yes
10991     ;;
10992   no:yes:* )
10993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11005     ( cat <<\_ASBOX
11006 ## ------------------------------------ ##
11007 ## Report this to http://llvm.org/bugs/ ##
11008 ## ------------------------------------ ##
11009 _ASBOX
11010      ) | sed "s/^/$as_me: WARNING:     /" >&2
11011     ;;
11012 esac
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   eval "$as_ac_Header=\$ac_header_preproc"
11019 fi
11020 ac_res=`eval echo '${'$as_ac_Header'}'`
11021                { echo "$as_me:$LINENO: result: $ac_res" >&5
11022 echo "${ECHO_T}$ac_res" >&6; }
11023
11024 fi
11025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11026   cat >>confdefs.h <<_ACEOF
11027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11028 _ACEOF
11029
11030 fi
11031
11032 done
11033
11034
11035 for ac_header in mach-o/dyld.h
11036 do
11037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   echo $ECHO_N "(cached) $ECHO_C" >&6
11043 fi
11044 ac_res=`eval echo '${'$as_ac_Header'}'`
11045                { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 else
11048   # Is the header compilable?
11049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 $ac_includes_default
11058 #include <$ac_header>
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_compile") 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } &&
11074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075   { (case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_try") 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; } &&
11084          { ac_try='test -s conftest.$ac_objext'
11085   { (case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_try") 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_header_compiler=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099         ac_header_compiler=no
11100 fi
11101
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6; }
11105
11106 # Is the header present?
11107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 #include <$ac_header>
11116 _ACEOF
11117 if { (ac_try="$ac_cpp conftest.$ac_ext"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } >/dev/null; then
11130   if test -s conftest.err; then
11131     ac_cpp_err=$ac_c_preproc_warn_flag
11132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11133   else
11134     ac_cpp_err=
11135   fi
11136 else
11137   ac_cpp_err=yes
11138 fi
11139 if test -z "$ac_cpp_err"; then
11140   ac_header_preproc=yes
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145   ac_header_preproc=no
11146 fi
11147
11148 rm -f conftest.err conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6; }
11151
11152 # So?  What about this header?
11153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11154   yes:no: )
11155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159     ac_header_preproc=yes
11160     ;;
11161   no:yes:* )
11162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11174     ( cat <<\_ASBOX
11175 ## ------------------------------------ ##
11176 ## Report this to http://llvm.org/bugs/ ##
11177 ## ------------------------------------ ##
11178 _ASBOX
11179      ) | sed "s/^/$as_me: WARNING:     /" >&2
11180     ;;
11181 esac
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185   echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187   eval "$as_ac_Header=\$ac_header_preproc"
11188 fi
11189 ac_res=`eval echo '${'$as_ac_Header'}'`
11190                { echo "$as_me:$LINENO: result: $ac_res" >&5
11191 echo "${ECHO_T}$ac_res" >&6; }
11192
11193 fi
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195   cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 _ACEOF
11198
11199 fi
11200
11201 done
11202
11203
11204
11205
11206
11207 for ac_func in closedir opendir readdir
11208 do
11209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213   echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215   cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h.  */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h.  */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11223 #define $ac_func innocuous_$ac_func
11224
11225 /* System header to define __stub macros and hopefully few prototypes,
11226     which can conflict with char $ac_func (); below.
11227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228     <limits.h> exists even on freestanding compilers.  */
11229
11230 #ifdef __STDC__
11231 # include <limits.h>
11232 #else
11233 # include <assert.h>
11234 #endif
11235
11236 #undef $ac_func
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239    Use char because int might match the return type of a GCC
11240    builtin and then its argument prototype would still apply.  */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char $ac_func ();
11245 /* The GNU C library defines this for functions which it implements
11246     to always fail with ENOSYS.  Some functions are actually named
11247     something starting with __ and the normal name is an alias.  */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11249 choke me
11250 #endif
11251
11252 int
11253 main ()
11254 {
11255 return $ac_func ();
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_link") 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest$ac_exeext'
11285   { (case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290   (eval "$ac_try") 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   eval "$as_ac_var=yes"
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299         eval "$as_ac_var=no"
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext \
11303       conftest$ac_exeext conftest.$ac_ext
11304 fi
11305 ac_res=`eval echo '${'$as_ac_var'}'`
11306                { echo "$as_me:$LINENO: result: $ac_res" >&5
11307 echo "${ECHO_T}$ac_res" >&6; }
11308 if test `eval echo '${'$as_ac_var'}'` = yes; then
11309   cat >>confdefs.h <<_ACEOF
11310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 _ACEOF
11312
11313 fi
11314 done
11315
11316
11317
11318 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11319 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11320
11321 ICC=no
11322 IXX=no
11323 case $CC in
11324   icc*|icpc*)
11325     ICC=yes
11326     IXX=yes
11327     ;;
11328    *)
11329     ;;
11330 esac
11331
11332 if test "$GCC" != "yes" && test "$ICC" != "yes"
11333 then
11334   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11335 echo "$as_me: error: gcc|icc required but not found" >&2;}
11336    { (exit 1); exit 1; }; }
11337 fi
11338
11339 if test "$GXX" != "yes" && test "$IXX" != "yes"
11340 then
11341   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11342 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11343    { (exit 1); exit 1; }; }
11344 fi
11345
11346 if test "$GCC" = "yes"
11347 then
11348   cat >conftest.$ac_ext <<_ACEOF
11349
11350   /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355
11356     #if !defined(__GNUC__) || __GNUC__ < 3
11357     #error Unsupported GCC version
11358     #endif
11359
11360
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366   *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369   (eval "$ac_compile") 2>conftest.er1
11370   ac_status=$?
11371   grep -v '^ *+' conftest.er1 >conftest.err
11372   rm -f conftest.er1
11373   cat conftest.err >&5
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } &&
11376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11377   { (case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_try") 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; } &&
11386          { ac_try='test -s conftest.$ac_objext'
11387   { (case "(($ac_try" in
11388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389   *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392   (eval "$ac_try") 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }; then
11396   :
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11402 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11403    { (exit 1); exit 1; }; }
11404 fi
11405
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 fi
11408
11409 if test -z "$llvm_cv_gnu_make_command"
11410 then
11411   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11412 echo "$as_me: error: GNU Make required but not found" >&2;}
11413    { (exit 1); exit 1; }; }
11414 fi
11415
11416 { echo "$as_me:$LINENO: result: ok" >&5
11417 echo "${ECHO_T}ok" >&6; }
11418
11419 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11420 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11421 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11422
11423 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11424
11425 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11426
11427
11428 NO_UNINITIALIZED=
11429 NO_MAYBE_UNINITIALIZED=
11430 if test "$GXX" = "yes"
11431 then
11432   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11433
11434         if test -z "$NO_MAYBE_UNINITIALIZED"
11435   then
11436     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11437
11438   fi
11439 fi
11440 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11441 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11442
11443
11444 # Check whether --with-python was given.
11445 if test "${with_python+set}" = set; then
11446   withval=$with_python; PYTHON="$withval"
11447 fi
11448
11449
11450 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11451   { echo "$as_me:$LINENO: checking for python" >&5
11452 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11453   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11454 echo "${ECHO_T}user defined: $with_python" >&6; }
11455 else
11456   if test -n "$PYTHON" ; then
11457     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11458 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11459   fi
11460
11461   # Extract the first word of "python python2 python26", so it can be a program name with args.
11462 set dummy python python2 python26; ac_word=$2
11463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11465 if test "${ac_cv_path_PYTHON+set}" = set; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   case $PYTHON in
11469   [\\/]* | ?:[\\/]*)
11470   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11471   ;;
11472   *)
11473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11475 do
11476   IFS=$as_save_IFS
11477   test -z "$as_dir" && as_dir=.
11478   for ac_exec_ext in '' $ac_executable_extensions; do
11479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11480     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482     break 2
11483   fi
11484 done
11485 done
11486 IFS=$as_save_IFS
11487
11488   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11489 echo "${ECHO_T}not found" >&6; }
11490                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11491 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11492    { (exit 1); exit 1; }; }"
11493   ;;
11494 esac
11495 fi
11496 PYTHON=$ac_cv_path_PYTHON
11497 if test -n "$PYTHON"; then
11498   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11499 echo "${ECHO_T}$PYTHON" >&6; }
11500 else
11501   { echo "$as_me:$LINENO: result: no" >&5
11502 echo "${ECHO_T}no" >&6; }
11503 fi
11504
11505
11506 fi
11507
11508 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11509 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11510 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11511 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11512 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11513 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11514 if test "$ac_python_version_major" -gt "2" || \
11515    (test "$ac_python_version_major" -eq "2" && \
11516     test "$ac_python_version_minor" -ge "5") ; then
11517   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11518 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11519 else
11520   { echo "$as_me:$LINENO: result: not found" >&5
11521 echo "${ECHO_T}not found" >&6; }
11522   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11523 See \`config.log' for more details." >&5
11524 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11525 See \`config.log' for more details." >&2;}
11526    { (exit 1); exit 1; }; }
11527 fi
11528
11529
11530
11531 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11532 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_m_sin+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lm  $LIBS"
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546    Use char because int might match the return type of a GCC
11547    builtin and then its argument prototype would still apply.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char sin ();
11552 int
11553 main ()
11554 {
11555 return sin ();
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564   *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567   (eval "$ac_link") 2>conftest.er1
11568   ac_status=$?
11569   grep -v '^ *+' conftest.er1 >conftest.err
11570   rm -f conftest.er1
11571   cat conftest.err >&5
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575   { (case "(($ac_try" in
11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577   *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_try") 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; } &&
11584          { ac_try='test -s conftest$ac_exeext'
11585   { (case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_try") 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; }; then
11594   ac_cv_lib_m_sin=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599         ac_cv_lib_m_sin=no
11600 fi
11601
11602 rm -f core conftest.err conftest.$ac_objext \
11603       conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11607 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11608 if test $ac_cv_lib_m_sin = yes; then
11609   cat >>confdefs.h <<_ACEOF
11610 #define HAVE_LIBM 1
11611 _ACEOF
11612
11613   LIBS="-lm $LIBS"
11614
11615 fi
11616
11617 if test "$llvm_cv_os_type" = "MingW" ; then
11618
11619 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11620 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-limagehlp  $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632
11633
11634 int
11635 main ()
11636 {
11637 return main ();
11638   ;
11639   return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649   (eval "$ac_link") 2>conftest.er1
11650   ac_status=$?
11651   grep -v '^ *+' conftest.er1 >conftest.err
11652   rm -f conftest.er1
11653   cat conftest.err >&5
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657   { (case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_try") 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; } &&
11666          { ac_try='test -s conftest$ac_exeext'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; }; then
11676   ac_cv_lib_imagehlp_main=yes
11677 else
11678   echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11680
11681         ac_cv_lib_imagehlp_main=no
11682 fi
11683
11684 rm -f core conftest.err conftest.$ac_objext \
11685       conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11687 fi
11688 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11689 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11690 if test $ac_cv_lib_imagehlp_main = yes; then
11691   cat >>confdefs.h <<_ACEOF
11692 #define HAVE_LIBIMAGEHLP 1
11693 _ACEOF
11694
11695   LIBS="-limagehlp $LIBS"
11696
11697 fi
11698
11699
11700 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11701 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11702 if test "${ac_cv_lib_psapi_main+set}" = set; then
11703   echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705   ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-lpsapi  $LIBS"
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h.  */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h.  */
11713
11714
11715 int
11716 main ()
11717 {
11718 return main ();
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727   *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730   (eval "$ac_link") 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11738   { (case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743   (eval "$ac_try") 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; } &&
11747          { ac_try='test -s conftest$ac_exeext'
11748   { (case "(($ac_try" in
11749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750   *) ac_try_echo=$ac_try;;
11751 esac
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753   (eval "$ac_try") 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; }; then
11757   ac_cv_lib_psapi_main=yes
11758 else
11759   echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762         ac_cv_lib_psapi_main=no
11763 fi
11764
11765 rm -f core conftest.err conftest.$ac_objext \
11766       conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11768 fi
11769 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
11770 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
11771 if test $ac_cv_lib_psapi_main = yes; then
11772   cat >>confdefs.h <<_ACEOF
11773 #define HAVE_LIBPSAPI 1
11774 _ACEOF
11775
11776   LIBS="-lpsapi $LIBS"
11777
11778 fi
11779
11780
11781 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
11782 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
11783 if test "${ac_cv_lib_shell32_main+set}" = set; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786   ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-lshell32  $LIBS"
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794
11795
11796 int
11797 main ()
11798 {
11799 return main ();
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (ac_try="$ac_link"
11806 case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_link") 2>conftest.er1
11812   ac_status=$?
11813   grep -v '^ *+' conftest.er1 >conftest.err
11814   rm -f conftest.er1
11815   cat conftest.err >&5
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } &&
11818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11819   { (case "(($ac_try" in
11820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821   *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824   (eval "$ac_try") 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }; } &&
11828          { ac_try='test -s conftest$ac_exeext'
11829   { (case "(($ac_try" in
11830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831   *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834   (eval "$ac_try") 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; }; then
11838   ac_cv_lib_shell32_main=yes
11839 else
11840   echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843         ac_cv_lib_shell32_main=no
11844 fi
11845
11846 rm -f core conftest.err conftest.$ac_objext \
11847       conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11849 fi
11850 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
11851 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
11852 if test $ac_cv_lib_shell32_main = yes; then
11853   cat >>confdefs.h <<_ACEOF
11854 #define HAVE_LIBSHELL32 1
11855 _ACEOF
11856
11857   LIBS="-lshell32 $LIBS"
11858
11859 fi
11860
11861 fi
11862
11863 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11864 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11865 if test "${ac_cv_search_dlopen+set}" = set; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   ac_func_search_save_LIBS=$LIBS
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877    Use char because int might match the return type of a GCC
11878    builtin and then its argument prototype would still apply.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char dlopen ();
11883 int
11884 main ()
11885 {
11886 return dlopen ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 for ac_lib in '' dl; do
11892   if test -z "$ac_lib"; then
11893     ac_res="none required"
11894   else
11895     ac_res=-l$ac_lib
11896     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11897   fi
11898   rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (ac_try="$ac_link"
11900 case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905   (eval "$ac_link") 2>conftest.er1
11906   ac_status=$?
11907   grep -v '^ *+' conftest.er1 >conftest.err
11908   rm -f conftest.er1
11909   cat conftest.err >&5
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11913   { (case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918   (eval "$ac_try") 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; } &&
11922          { ac_try='test -s conftest$ac_exeext'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932   ac_cv_search_dlopen=$ac_res
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937
11938 fi
11939
11940 rm -f core conftest.err conftest.$ac_objext \
11941       conftest$ac_exeext
11942   if test "${ac_cv_search_dlopen+set}" = set; then
11943   break
11944 fi
11945 done
11946 if test "${ac_cv_search_dlopen+set}" = set; then
11947   :
11948 else
11949   ac_cv_search_dlopen=no
11950 fi
11951 rm conftest.$ac_ext
11952 LIBS=$ac_func_search_save_LIBS
11953 fi
11954 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11955 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11956 ac_res=$ac_cv_search_dlopen
11957 if test "$ac_res" != no; then
11958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11959
11960 cat >>confdefs.h <<\_ACEOF
11961 #define HAVE_DLOPEN 1
11962 _ACEOF
11963
11964 else
11965   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
11966 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
11967 fi
11968
11969
11970 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
11971 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
11972 if test "${ac_cv_search_clock_gettime+set}" = set; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   ac_func_search_save_LIBS=$LIBS
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984    Use char because int might match the return type of a GCC
11985    builtin and then its argument prototype would still apply.  */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char clock_gettime ();
11990 int
11991 main ()
11992 {
11993 return clock_gettime ();
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 for ac_lib in '' rt; do
11999   if test -z "$ac_lib"; then
12000     ac_res="none required"
12001   else
12002     ac_res=-l$ac_lib
12003     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12004   fi
12005   rm -f conftest.$ac_objext conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_link") 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } &&
12019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12020   { (case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_try") 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; } &&
12029          { ac_try='test -s conftest$ac_exeext'
12030   { (case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_try") 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   ac_cv_search_clock_gettime=$ac_res
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044
12045 fi
12046
12047 rm -f core conftest.err conftest.$ac_objext \
12048       conftest$ac_exeext
12049   if test "${ac_cv_search_clock_gettime+set}" = set; then
12050   break
12051 fi
12052 done
12053 if test "${ac_cv_search_clock_gettime+set}" = set; then
12054   :
12055 else
12056   ac_cv_search_clock_gettime=no
12057 fi
12058 rm conftest.$ac_ext
12059 LIBS=$ac_func_search_save_LIBS
12060 fi
12061 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12062 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12063 ac_res=$ac_cv_search_clock_gettime
12064 if test "$ac_res" != no; then
12065   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12066
12067 fi
12068
12069
12070 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12071     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12072 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12073 if test "${ac_cv_search_setupterm+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   ac_func_search_save_LIBS=$LIBS
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083
12084 /* Override any GCC internal prototype to avoid an error.
12085    Use char because int might match the return type of a GCC
12086    builtin and then its argument prototype would still apply.  */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char setupterm ();
12091 int
12092 main ()
12093 {
12094 return setupterm ();
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12100   if test -z "$ac_lib"; then
12101     ac_res="none required"
12102   else
12103     ac_res=-l$ac_lib
12104     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12105   fi
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_search_setupterm=$ac_res
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext \
12149       conftest$ac_exeext
12150   if test "${ac_cv_search_setupterm+set}" = set; then
12151   break
12152 fi
12153 done
12154 if test "${ac_cv_search_setupterm+set}" = set; then
12155   :
12156 else
12157   ac_cv_search_setupterm=no
12158 fi
12159 rm conftest.$ac_ext
12160 LIBS=$ac_func_search_save_LIBS
12161 fi
12162 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12163 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12164 ac_res=$ac_cv_search_setupterm
12165 if test "$ac_res" != no; then
12166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12167
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_TERMINFO 1
12170 _ACEOF
12171
12172 fi
12173
12174 fi
12175
12176 if test "$llvm_cv_enable_libffi" = "yes" ; then
12177   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12178 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12179 if test "${ac_cv_search_ffi_call+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   ac_func_search_save_LIBS=$LIBS
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char ffi_call ();
12197 int
12198 main ()
12199 {
12200 return ffi_call ();
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 for ac_lib in '' ffi; do
12206   if test -z "$ac_lib"; then
12207     ac_res="none required"
12208   else
12209     ac_res=-l$ac_lib
12210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12211   fi
12212   rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_link") 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227   { (case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232   (eval "$ac_try") 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest$ac_exeext'
12237   { (case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_try") 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; }; then
12246   ac_cv_search_ffi_call=$ac_res
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251
12252 fi
12253
12254 rm -f core conftest.err conftest.$ac_objext \
12255       conftest$ac_exeext
12256   if test "${ac_cv_search_ffi_call+set}" = set; then
12257   break
12258 fi
12259 done
12260 if test "${ac_cv_search_ffi_call+set}" = set; then
12261   :
12262 else
12263   ac_cv_search_ffi_call=no
12264 fi
12265 rm conftest.$ac_ext
12266 LIBS=$ac_func_search_save_LIBS
12267 fi
12268 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12269 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12270 ac_res=$ac_cv_search_ffi_call
12271 if test "$ac_res" != no; then
12272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12273
12274 cat >>confdefs.h <<\_ACEOF
12275 #define HAVE_FFI_CALL 1
12276 _ACEOF
12277
12278 else
12279   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12280 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12281    { (exit 1); exit 1; }; }
12282 fi
12283
12284 fi
12285
12286 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12287 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12288 if test "${ac_cv_search_mallinfo+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   ac_func_search_save_LIBS=$LIBS
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298
12299 /* Override any GCC internal prototype to avoid an error.
12300    Use char because int might match the return type of a GCC
12301    builtin and then its argument prototype would still apply.  */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 char mallinfo ();
12306 int
12307 main ()
12308 {
12309 return mallinfo ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 for ac_lib in '' malloc; do
12315   if test -z "$ac_lib"; then
12316     ac_res="none required"
12317   else
12318     ac_res=-l$ac_lib
12319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12320   fi
12321   rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (ac_try="$ac_link"
12323 case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_link") 2>conftest.er1
12329   ac_status=$?
12330   grep -v '^ *+' conftest.er1 >conftest.err
12331   rm -f conftest.er1
12332   cat conftest.err >&5
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } &&
12335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12336   { (case "(($ac_try" in
12337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338   *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341   (eval "$ac_try") 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest$ac_exeext'
12346   { (case "(($ac_try" in
12347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348   *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351   (eval "$ac_try") 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; }; then
12355   ac_cv_search_mallinfo=$ac_res
12356 else
12357   echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12359
12360
12361 fi
12362
12363 rm -f core conftest.err conftest.$ac_objext \
12364       conftest$ac_exeext
12365   if test "${ac_cv_search_mallinfo+set}" = set; then
12366   break
12367 fi
12368 done
12369 if test "${ac_cv_search_mallinfo+set}" = set; then
12370   :
12371 else
12372   ac_cv_search_mallinfo=no
12373 fi
12374 rm conftest.$ac_ext
12375 LIBS=$ac_func_search_save_LIBS
12376 fi
12377 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12378 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12379 ac_res=$ac_cv_search_mallinfo
12380 if test "$ac_res" != no; then
12381   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12382
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_MALLINFO 1
12385 _ACEOF
12386
12387 fi
12388
12389
12390 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12391
12392 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12393 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-lpthread  $LIBS"
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 /* Override any GCC internal prototype to avoid an error.
12407    Use char because int might match the return type of a GCC
12408    builtin and then its argument prototype would still apply.  */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char pthread_mutex_init ();
12413 int
12414 main ()
12415 {
12416 return pthread_mutex_init ();
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } &&
12435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; } &&
12445          { ac_try='test -s conftest$ac_exeext'
12446   { (case "(($ac_try" in
12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448   *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451   (eval "$ac_try") 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_lib_pthread_pthread_mutex_init=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460         ac_cv_lib_pthread_pthread_mutex_init=no
12461 fi
12462
12463 rm -f core conftest.err conftest.$ac_objext \
12464       conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12466 fi
12467 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12468 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12469 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12470   cat >>confdefs.h <<_ACEOF
12471 #define HAVE_LIBPTHREAD 1
12472 _ACEOF
12473
12474   LIBS="-lpthread $LIBS"
12475
12476 fi
12477
12478   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12479 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12480 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12481   echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483   ac_func_search_save_LIBS=$LIBS
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490
12491 /* Override any GCC internal prototype to avoid an error.
12492    Use char because int might match the return type of a GCC
12493    builtin and then its argument prototype would still apply.  */
12494 #ifdef __cplusplus
12495 extern "C"
12496 #endif
12497 char pthread_mutex_lock ();
12498 int
12499 main ()
12500 {
12501 return pthread_mutex_lock ();
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 for ac_lib in '' pthread; do
12507   if test -z "$ac_lib"; then
12508     ac_res="none required"
12509   else
12510     ac_res=-l$ac_lib
12511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12512   fi
12513   rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (ac_try="$ac_link"
12515 case "(($ac_try" in
12516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517   *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520   (eval "$ac_link") 2>conftest.er1
12521   ac_status=$?
12522   grep -v '^ *+' conftest.er1 >conftest.err
12523   rm -f conftest.er1
12524   cat conftest.err >&5
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); } &&
12527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12528   { (case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533   (eval "$ac_try") 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (case "(($ac_try" in
12539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540   *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543   (eval "$ac_try") 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   ac_cv_search_pthread_mutex_lock=$ac_res
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552
12553 fi
12554
12555 rm -f core conftest.err conftest.$ac_objext \
12556       conftest$ac_exeext
12557   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12558   break
12559 fi
12560 done
12561 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12562   :
12563 else
12564   ac_cv_search_pthread_mutex_lock=no
12565 fi
12566 rm conftest.$ac_ext
12567 LIBS=$ac_func_search_save_LIBS
12568 fi
12569 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12570 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12571 ac_res=$ac_cv_search_pthread_mutex_lock
12572 if test "$ac_res" != no; then
12573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12574
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_PTHREAD_MUTEX_LOCK 1
12577 _ACEOF
12578
12579 fi
12580
12581   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12582 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12583 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   ac_func_search_save_LIBS=$LIBS
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595    Use char because int might match the return type of a GCC
12596    builtin and then its argument prototype would still apply.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char pthread_rwlock_init ();
12601 int
12602 main ()
12603 {
12604 return pthread_rwlock_init ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 for ac_lib in '' pthread; do
12610   if test -z "$ac_lib"; then
12611     ac_res="none required"
12612   else
12613     ac_res=-l$ac_lib
12614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12615   fi
12616   rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_link") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest$ac_exeext'
12641   { (case "(($ac_try" in
12642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643   *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646   (eval "$ac_try") 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   ac_cv_search_pthread_rwlock_init=$ac_res
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext \
12659       conftest$ac_exeext
12660   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12661   break
12662 fi
12663 done
12664 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12665   :
12666 else
12667   ac_cv_search_pthread_rwlock_init=no
12668 fi
12669 rm conftest.$ac_ext
12670 LIBS=$ac_func_search_save_LIBS
12671 fi
12672 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12673 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12674 ac_res=$ac_cv_search_pthread_rwlock_init
12675 if test "$ac_res" != no; then
12676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12677
12678 cat >>confdefs.h <<\_ACEOF
12679 #define HAVE_PTHREAD_RWLOCK_INIT 1
12680 _ACEOF
12681
12682 fi
12683
12684   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12685 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12686 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   ac_func_search_save_LIBS=$LIBS
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 /* Override any GCC internal prototype to avoid an error.
12698    Use char because int might match the return type of a GCC
12699    builtin and then its argument prototype would still apply.  */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 char pthread_getspecific ();
12704 int
12705 main ()
12706 {
12707 return pthread_getspecific ();
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 for ac_lib in '' pthread; do
12713   if test -z "$ac_lib"; then
12714     ac_res="none required"
12715   else
12716     ac_res=-l$ac_lib
12717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12718   fi
12719   rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (ac_try="$ac_link"
12721 case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_link") 2>conftest.er1
12727   ac_status=$?
12728   grep -v '^ *+' conftest.er1 >conftest.err
12729   rm -f conftest.er1
12730   cat conftest.err >&5
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } &&
12733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734   { (case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_try") 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; } &&
12743          { ac_try='test -s conftest$ac_exeext'
12744   { (case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_try") 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753   ac_cv_search_pthread_getspecific=$ac_res
12754 else
12755   echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758
12759 fi
12760
12761 rm -f core conftest.err conftest.$ac_objext \
12762       conftest$ac_exeext
12763   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12764   break
12765 fi
12766 done
12767 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12768   :
12769 else
12770   ac_cv_search_pthread_getspecific=no
12771 fi
12772 rm conftest.$ac_ext
12773 LIBS=$ac_func_search_save_LIBS
12774 fi
12775 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12776 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12777 ac_res=$ac_cv_search_pthread_getspecific
12778 if test "$ac_res" != no; then
12779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12780
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_PTHREAD_GETSPECIFIC 1
12783 _ACEOF
12784
12785 fi
12786
12787 fi
12788
12789 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12790
12791 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12792 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12793 if test "${ac_cv_lib_z_compress2+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-lz  $LIBS"
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806    Use char because int might match the return type of a GCC
12807    builtin and then its argument prototype would still apply.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char compress2 ();
12812 int
12813 main ()
12814 {
12815 return compress2 ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824   *) ac_try_echo=$ac_try;;
12825 esac
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827   (eval "$ac_link") 2>conftest.er1
12828   ac_status=$?
12829   grep -v '^ *+' conftest.er1 >conftest.err
12830   rm -f conftest.er1
12831   cat conftest.err >&5
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } &&
12834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835   { (case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_try") 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); }; } &&
12844          { ac_try='test -s conftest$ac_exeext'
12845   { (case "(($ac_try" in
12846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847   *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850   (eval "$ac_try") 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; }; then
12854   ac_cv_lib_z_compress2=yes
12855 else
12856   echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12858
12859         ac_cv_lib_z_compress2=no
12860 fi
12861
12862 rm -f core conftest.err conftest.$ac_objext \
12863       conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12865 fi
12866 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
12867 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
12868 if test $ac_cv_lib_z_compress2 = yes; then
12869   cat >>confdefs.h <<_ACEOF
12870 #define HAVE_LIBZ 1
12871 _ACEOF
12872
12873   LIBS="-lz $LIBS"
12874
12875 fi
12876
12877 fi
12878
12879
12880 # Check whether --with-udis86 was given.
12881 if test "${with_udis86+set}" = set; then
12882   withval=$with_udis86;
12883       USE_UDIS86=1
12884
12885       case "$withval" in
12886         /usr/lib|yes) ;;
12887         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12888       esac
12889
12890 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12891 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12892 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-ludis86  $LIBS"
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905    Use char because int might match the return type of a GCC
12906    builtin and then its argument prototype would still apply.  */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char ud_init ();
12911 int
12912 main ()
12913 {
12914 return ud_init ();
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12927   ac_status=$?
12928   grep -v '^ *+' conftest.er1 >conftest.err
12929   rm -f conftest.er1
12930   cat conftest.err >&5
12931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932   (exit $ac_status); } &&
12933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12934   { (case "(($ac_try" in
12935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936   *) ac_try_echo=$ac_try;;
12937 esac
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939   (eval "$ac_try") 2>&5
12940   ac_status=$?
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); }; } &&
12943          { ac_try='test -s conftest$ac_exeext'
12944   { (case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_try") 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_cv_lib_udis86_ud_init=yes
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958         ac_cv_lib_udis86_ud_init=no
12959 fi
12960
12961 rm -f core conftest.err conftest.$ac_objext \
12962       conftest$ac_exeext conftest.$ac_ext
12963 LIBS=$ac_check_lib_save_LIBS
12964 fi
12965 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12966 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12967 if test $ac_cv_lib_udis86_ud_init = yes; then
12968   cat >>confdefs.h <<_ACEOF
12969 #define HAVE_LIBUDIS86 1
12970 _ACEOF
12971
12972   LIBS="-ludis86 $LIBS"
12973
12974 else
12975
12976         echo "Error! You need to have libudis86 around."
12977         exit -1
12978
12979 fi
12980
12981
12982 else
12983   USE_UDIS86=0
12984
12985 fi
12986
12987
12988 cat >>confdefs.h <<_ACEOF
12989 #define USE_UDIS86 $USE_UDIS86
12990 _ACEOF
12991
12992
12993
12994 # Check whether --with-oprofile was given.
12995 if test "${with_oprofile+set}" = set; then
12996   withval=$with_oprofile;
12997       USE_OPROFILE=1
12998
12999       case "$withval" in
13000         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13001         no) llvm_cv_oppath=
13002             USE_OPROFILE=0
13003  ;;
13004         *) llvm_cv_oppath="${withval}/lib/oprofile"
13005            CPPFLAGS="-I${withval}/include";;
13006       esac
13007       case $llvm_cv_os_type in
13008         Linux)
13009           if test -n "$llvm_cv_oppath" ; then
13010             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13011                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13012 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13013 if test "${ac_cv_search_bfd_init+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   ac_func_search_save_LIBS=$LIBS
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h.  */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h.  */
13023
13024 /* Override any GCC internal prototype to avoid an error.
13025    Use char because int might match the return type of a GCC
13026    builtin and then its argument prototype would still apply.  */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 char bfd_init ();
13031 int
13032 main ()
13033 {
13034 return bfd_init ();
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 for ac_lib in '' bfd; do
13040   if test -z "$ac_lib"; then
13041     ac_res="none required"
13042   else
13043     ac_res=-l$ac_lib
13044     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13045   fi
13046   rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (ac_try="$ac_link"
13048 case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_link") 2>conftest.er1
13054   ac_status=$?
13055   grep -v '^ *+' conftest.er1 >conftest.err
13056   rm -f conftest.er1
13057   cat conftest.err >&5
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061   { (case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_try") 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; } &&
13070          { ac_try='test -s conftest$ac_exeext'
13071   { (case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_try") 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; }; then
13080   ac_cv_search_bfd_init=$ac_res
13081 else
13082   echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085
13086 fi
13087
13088 rm -f core conftest.err conftest.$ac_objext \
13089       conftest$ac_exeext
13090   if test "${ac_cv_search_bfd_init+set}" = set; then
13091   break
13092 fi
13093 done
13094 if test "${ac_cv_search_bfd_init+set}" = set; then
13095   :
13096 else
13097   ac_cv_search_bfd_init=no
13098 fi
13099 rm conftest.$ac_ext
13100 LIBS=$ac_func_search_save_LIBS
13101 fi
13102 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13103 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13104 ac_res=$ac_cv_search_bfd_init
13105 if test "$ac_res" != no; then
13106   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13107
13108 fi
13109
13110             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13111 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13112 if test "${ac_cv_search_op_open_agent+set}" = set; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115   ac_func_search_save_LIBS=$LIBS
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h.  */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h.  */
13122
13123 /* Override any GCC internal prototype to avoid an error.
13124    Use char because int might match the return type of a GCC
13125    builtin and then its argument prototype would still apply.  */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char op_open_agent ();
13130 int
13131 main ()
13132 {
13133 return op_open_agent ();
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 for ac_lib in '' opagent; do
13139   if test -z "$ac_lib"; then
13140     ac_res="none required"
13141   else
13142     ac_res=-l$ac_lib
13143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13144   fi
13145   rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_link") 2>conftest.er1
13153   ac_status=$?
13154   grep -v '^ *+' conftest.er1 >conftest.err
13155   rm -f conftest.er1
13156   cat conftest.err >&5
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } &&
13159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13160   { (case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165   (eval "$ac_try") 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); }; } &&
13169          { ac_try='test -s conftest$ac_exeext'
13170   { (case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_try") 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   ac_cv_search_op_open_agent=$ac_res
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184
13185 fi
13186
13187 rm -f core conftest.err conftest.$ac_objext \
13188       conftest$ac_exeext
13189   if test "${ac_cv_search_op_open_agent+set}" = set; then
13190   break
13191 fi
13192 done
13193 if test "${ac_cv_search_op_open_agent+set}" = set; then
13194   :
13195 else
13196   ac_cv_search_op_open_agent=no
13197 fi
13198 rm conftest.$ac_ext
13199 LIBS=$ac_func_search_save_LIBS
13200 fi
13201 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13202 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13203 ac_res=$ac_cv_search_op_open_agent
13204 if test "$ac_res" != no; then
13205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13206
13207 else
13208
13209               echo "Error! You need to have libopagent around."
13210               exit -1
13211
13212 fi
13213
13214             if test "${ac_cv_header_opagent_h+set}" = set; then
13215   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13216 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13217 if test "${ac_cv_header_opagent_h+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 fi
13220 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13221 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13222 else
13223   # Is the header compilable?
13224 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13225 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232 $ac_includes_default
13233 #include <opagent.h>
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_compile") 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250   { (case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_try") 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; } &&
13259          { ac_try='test -s conftest.$ac_objext'
13260   { (case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_try") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   ac_header_compiler=yes
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274         ac_header_compiler=no
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6; }
13280
13281 # Is the header present?
13282 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13283 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 #include <opagent.h>
13291 _ACEOF
13292 if { (ac_try="$ac_cpp conftest.$ac_ext"
13293 case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } >/dev/null; then
13305   if test -s conftest.err; then
13306     ac_cpp_err=$ac_c_preproc_warn_flag
13307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13308   else
13309     ac_cpp_err=
13310   fi
13311 else
13312   ac_cpp_err=yes
13313 fi
13314 if test -z "$ac_cpp_err"; then
13315   ac_header_preproc=yes
13316 else
13317   echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320   ac_header_preproc=no
13321 fi
13322
13323 rm -f conftest.err conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325 echo "${ECHO_T}$ac_header_preproc" >&6; }
13326
13327 # So?  What about this header?
13328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329   yes:no: )
13330     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13331 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13332     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13333 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13334     ac_header_preproc=yes
13335     ;;
13336   no:yes:* )
13337     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13338 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13339     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13340 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13341     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13342 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13343     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13344 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13345     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13347     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13348 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13349     ( cat <<\_ASBOX
13350 ## ------------------------------------ ##
13351 ## Report this to http://llvm.org/bugs/ ##
13352 ## ------------------------------------ ##
13353 _ASBOX
13354      ) | sed "s/^/$as_me: WARNING:     /" >&2
13355     ;;
13356 esac
13357 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13358 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13359 if test "${ac_cv_header_opagent_h+set}" = set; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   ac_cv_header_opagent_h=$ac_header_preproc
13363 fi
13364 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13366
13367 fi
13368 if test $ac_cv_header_opagent_h = yes; then
13369   :
13370 else
13371
13372               echo "Error! You need to have opagent.h around."
13373               exit -1
13374
13375 fi
13376
13377
13378           fi ;;
13379         *)
13380           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13381 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13382    { (exit 1); exit 1; }; } ;;
13383       esac
13384
13385 else
13386
13387       USE_OPROFILE=0
13388
13389
13390 fi
13391
13392
13393 cat >>confdefs.h <<_ACEOF
13394 #define LLVM_USE_OPROFILE $USE_OPROFILE
13395 _ACEOF
13396
13397
13398
13399 # Check whether --with-intel-jitevents was given.
13400 if test "${with_intel_jitevents+set}" = set; then
13401   withval=$with_intel_jitevents;
13402        case "$withval" in
13403           yes) USE_INTEL_JITEVENTS=1
13404 ;;
13405           no)  USE_INTEL_JITEVENTS=0
13406 ;;
13407           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13408 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13409    { (exit 1); exit 1; }; };;
13410        esac
13411
13412       case $llvm_cv_os_type in
13413         Linux|Win32|Cygwin|MingW) ;;
13414         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13415 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13416    { (exit 1); exit 1; }; };;
13417       esac
13418
13419       case "$llvm_cv_target_arch" in
13420         x86|x86_64) ;;
13421         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13422 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13423    { (exit 1); exit 1; }; };;
13424       esac
13425
13426 else
13427
13428       USE_INTEL_JITEVENTS=0
13429
13430
13431 fi
13432
13433
13434 cat >>confdefs.h <<_ACEOF
13435 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13436 _ACEOF
13437
13438
13439 for ac_prog in xml2-config
13440 do
13441   # Extract the first word of "$ac_prog", so it can be a program name with args.
13442 set dummy $ac_prog; ac_word=$2
13443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13445 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13446   echo $ECHO_N "(cached) $ECHO_C" >&6
13447 else
13448   if test -n "$XML2CONFIG"; then
13449   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13450 else
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13453 do
13454   IFS=$as_save_IFS
13455   test -z "$as_dir" && as_dir=.
13456   for ac_exec_ext in '' $ac_executable_extensions; do
13457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13458     ac_cv_prog_XML2CONFIG="$ac_prog"
13459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13460     break 2
13461   fi
13462 done
13463 done
13464 IFS=$as_save_IFS
13465
13466 fi
13467 fi
13468 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13469 if test -n "$XML2CONFIG"; then
13470   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13471 echo "${ECHO_T}$XML2CONFIG" >&6; }
13472 else
13473   { echo "$as_me:$LINENO: result: no" >&5
13474 echo "${ECHO_T}no" >&6; }
13475 fi
13476
13477
13478   test -n "$XML2CONFIG" && break
13479 done
13480
13481
13482 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13483 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13484 if test "x$XML2CONFIG" = "x"; then
13485  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13486 echo "${ECHO_T}xml2-config not found" >&6; }
13487 else
13488  LIBXML2_INC=`$XML2CONFIG --cflags`
13489  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13490 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13491  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13492 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13493 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496   ac_check_lib_save_LIBS=$LIBS
13497 LIBS="-lxml2  $LIBS"
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504
13505 /* Override any GCC internal prototype to avoid an error.
13506    Use char because int might match the return type of a GCC
13507    builtin and then its argument prototype would still apply.  */
13508 #ifdef __cplusplus
13509 extern "C"
13510 #endif
13511 char xmlReadFile ();
13512 int
13513 main ()
13514 {
13515 return xmlReadFile ();
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (ac_try="$ac_link"
13522 case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527   (eval "$ac_link") 2>conftest.er1
13528   ac_status=$?
13529   grep -v '^ *+' conftest.er1 >conftest.err
13530   rm -f conftest.er1
13531   cat conftest.err >&5
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); } &&
13534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13535   { (case "(($ac_try" in
13536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537   *) ac_try_echo=$ac_try;;
13538 esac
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540   (eval "$ac_try") 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; } &&
13544          { ac_try='test -s conftest$ac_exeext'
13545   { (case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_try") 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; }; then
13554   ac_cv_lib_xml2_xmlReadFile=yes
13555 else
13556   echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559         ac_cv_lib_xml2_xmlReadFile=no
13560 fi
13561
13562 rm -f core conftest.err conftest.$ac_objext \
13563       conftest$ac_exeext conftest.$ac_ext
13564 LIBS=$ac_check_lib_save_LIBS
13565 fi
13566 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13567 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13568 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define CLANG_HAVE_LIBXML 1
13572 _ACEOF
13573
13574                                 LIBXML2_LIBS="-lxml2"
13575 fi
13576
13577 fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587 ac_header_dirent=no
13588 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13589   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13590 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13591 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593   echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595   cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 #include <sys/types.h>
13602 #include <$ac_hdr>
13603
13604 int
13605 main ()
13606 {
13607 if ((DIR *) 0)
13608 return 0;
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext
13614 if { (ac_try="$ac_compile"
13615 case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620   (eval "$ac_compile") 2>conftest.er1
13621   ac_status=$?
13622   grep -v '^ *+' conftest.er1 >conftest.err
13623   rm -f conftest.er1
13624   cat conftest.err >&5
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628   { (case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_try") 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; } &&
13637          { ac_try='test -s conftest.$ac_objext'
13638   { (case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_try") 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647   eval "$as_ac_Header=yes"
13648 else
13649   echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652         eval "$as_ac_Header=no"
13653 fi
13654
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 fi
13657 ac_res=`eval echo '${'$as_ac_Header'}'`
13658                { echo "$as_me:$LINENO: result: $ac_res" >&5
13659 echo "${ECHO_T}$ac_res" >&6; }
13660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13661   cat >>confdefs.h <<_ACEOF
13662 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13663 _ACEOF
13664
13665 ac_header_dirent=$ac_hdr; break
13666 fi
13667
13668 done
13669 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13670 if test $ac_header_dirent = dirent.h; then
13671   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13672 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13673 if test "${ac_cv_search_opendir+set}" = set; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676   ac_func_search_save_LIBS=$LIBS
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683
13684 /* Override any GCC internal prototype to avoid an error.
13685    Use char because int might match the return type of a GCC
13686    builtin and then its argument prototype would still apply.  */
13687 #ifdef __cplusplus
13688 extern "C"
13689 #endif
13690 char opendir ();
13691 int
13692 main ()
13693 {
13694 return opendir ();
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 for ac_lib in '' dir; do
13700   if test -z "$ac_lib"; then
13701     ac_res="none required"
13702   else
13703     ac_res=-l$ac_lib
13704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13705   fi
13706   rm -f conftest.$ac_objext conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710   *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713   (eval "$ac_link") 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13721   { (case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_try") 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; } &&
13730          { ac_try='test -s conftest$ac_exeext'
13731   { (case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_try") 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }; }; then
13740   ac_cv_search_opendir=$ac_res
13741 else
13742   echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13744
13745
13746 fi
13747
13748 rm -f core conftest.err conftest.$ac_objext \
13749       conftest$ac_exeext
13750   if test "${ac_cv_search_opendir+set}" = set; then
13751   break
13752 fi
13753 done
13754 if test "${ac_cv_search_opendir+set}" = set; then
13755   :
13756 else
13757   ac_cv_search_opendir=no
13758 fi
13759 rm conftest.$ac_ext
13760 LIBS=$ac_func_search_save_LIBS
13761 fi
13762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13764 ac_res=$ac_cv_search_opendir
13765 if test "$ac_res" != no; then
13766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13767
13768 fi
13769
13770 else
13771   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13772 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13773 if test "${ac_cv_search_opendir+set}" = set; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776   ac_func_search_save_LIBS=$LIBS
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h.  */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h.  */
13783
13784 /* Override any GCC internal prototype to avoid an error.
13785    Use char because int might match the return type of a GCC
13786    builtin and then its argument prototype would still apply.  */
13787 #ifdef __cplusplus
13788 extern "C"
13789 #endif
13790 char opendir ();
13791 int
13792 main ()
13793 {
13794 return opendir ();
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 for ac_lib in '' x; do
13800   if test -z "$ac_lib"; then
13801     ac_res="none required"
13802   else
13803     ac_res=-l$ac_lib
13804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13805   fi
13806   rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (ac_try="$ac_link"
13808 case "(($ac_try" in
13809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810   *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813   (eval "$ac_link") 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } &&
13820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13821   { (case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_try") 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest$ac_exeext'
13831   { (case "(($ac_try" in
13832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833   *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836   (eval "$ac_try") 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_cv_search_opendir=$ac_res
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845
13846 fi
13847
13848 rm -f core conftest.err conftest.$ac_objext \
13849       conftest$ac_exeext
13850   if test "${ac_cv_search_opendir+set}" = set; then
13851   break
13852 fi
13853 done
13854 if test "${ac_cv_search_opendir+set}" = set; then
13855   :
13856 else
13857   ac_cv_search_opendir=no
13858 fi
13859 rm conftest.$ac_ext
13860 LIBS=$ac_func_search_save_LIBS
13861 fi
13862 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13863 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13864 ac_res=$ac_cv_search_opendir
13865 if test "$ac_res" != no; then
13866   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13867
13868 fi
13869
13870 fi
13871
13872 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13873 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13874 if test "${ac_cv_header_mmap_anon+set}" = set; then
13875   echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877    ac_ext=c
13878 ac_cpp='$CPP $CPPFLAGS'
13879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13882
13883   cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889 #include <sys/mman.h>
13890 #include <unistd.h>
13891 #include <fcntl.h>
13892 int
13893 main ()
13894 {
13895 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 rm -f conftest.$ac_objext
13901 if { (ac_try="$ac_compile"
13902 case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_compile") 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } &&
13914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13915   { (case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920   (eval "$ac_try") 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (case "(($ac_try" in
13926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927   *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930   (eval "$ac_try") 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934   ac_cv_header_mmap_anon=yes
13935 else
13936   echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939         ac_cv_header_mmap_anon=no
13940 fi
13941
13942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13943   ac_ext=c
13944 ac_cpp='$CPP $CPPFLAGS'
13945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13948
13949
13950 fi
13951 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13952 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13953 if test "$ac_cv_header_mmap_anon" = yes; then
13954
13955 cat >>confdefs.h <<\_ACEOF
13956 #define HAVE_MMAP_ANONYMOUS 1
13957 _ACEOF
13958
13959 fi
13960
13961 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13962 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13963 if test "${ac_cv_header_stat_broken+set}" = set; then
13964   echo $ECHO_N "(cached) $ECHO_C" >&6
13965 else
13966   cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h.  */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h.  */
13972 #include <sys/types.h>
13973 #include <sys/stat.h>
13974
13975 #if defined S_ISBLK && defined S_IFDIR
13976 # if S_ISBLK (S_IFDIR)
13977 You lose.
13978 # endif
13979 #endif
13980
13981 #if defined S_ISBLK && defined S_IFCHR
13982 # if S_ISBLK (S_IFCHR)
13983 You lose.
13984 # endif
13985 #endif
13986
13987 #if defined S_ISLNK && defined S_IFREG
13988 # if S_ISLNK (S_IFREG)
13989 You lose.
13990 # endif
13991 #endif
13992
13993 #if defined S_ISSOCK && defined S_IFREG
13994 # if S_ISSOCK (S_IFREG)
13995 You lose.
13996 # endif
13997 #endif
13998
13999 _ACEOF
14000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14001   $EGREP "You lose" >/dev/null 2>&1; then
14002   ac_cv_header_stat_broken=yes
14003 else
14004   ac_cv_header_stat_broken=no
14005 fi
14006 rm -f conftest*
14007
14008 fi
14009 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14011 if test $ac_cv_header_stat_broken = yes; then
14012
14013 cat >>confdefs.h <<\_ACEOF
14014 #define STAT_MACROS_BROKEN 1
14015 _ACEOF
14016
14017 fi
14018
14019 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14020 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14021 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h.  */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h.  */
14030 #include <sys/types.h>
14031 #include <sys/wait.h>
14032 #ifndef WEXITSTATUS
14033 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14034 #endif
14035 #ifndef WIFEXITED
14036 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14037 #endif
14038
14039 int
14040 main ()
14041 {
14042   int s;
14043   wait (&s);
14044   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053   *) ac_try_echo=$ac_try;;
14054 esac
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056   (eval "$ac_compile") 2>conftest.er1
14057   ac_status=$?
14058   grep -v '^ *+' conftest.er1 >conftest.err
14059   rm -f conftest.er1
14060   cat conftest.err >&5
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); } &&
14063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14064   { (case "(($ac_try" in
14065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066   *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069   (eval "$ac_try") 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; } &&
14073          { ac_try='test -s conftest.$ac_objext'
14074   { (case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079   (eval "$ac_try") 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; }; then
14083   ac_cv_header_sys_wait_h=yes
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088         ac_cv_header_sys_wait_h=no
14089 fi
14090
14091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092 fi
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14094 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14095 if test $ac_cv_header_sys_wait_h = yes; then
14096
14097 cat >>confdefs.h <<\_ACEOF
14098 #define HAVE_SYS_WAIT_H 1
14099 _ACEOF
14100
14101 fi
14102
14103 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14104 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14105 if test "${ac_cv_header_time+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 #include <sys/types.h>
14115 #include <sys/time.h>
14116 #include <time.h>
14117
14118 int
14119 main ()
14120 {
14121 if ((struct tm *) 0)
14122 return 0;
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134   (eval "$ac_compile") 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142   { (case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147   (eval "$ac_try") 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; } &&
14151          { ac_try='test -s conftest.$ac_objext'
14152   { (case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_try") 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_cv_header_time=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166         ac_cv_header_time=no
14167 fi
14168
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 fi
14171 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14172 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14173 if test $ac_cv_header_time = yes; then
14174
14175 cat >>confdefs.h <<\_ACEOF
14176 #define TIME_WITH_SYS_TIME 1
14177 _ACEOF
14178
14179 fi
14180
14181
14182 ac_ext=cpp
14183 ac_cpp='$CXXCPP $CPPFLAGS'
14184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14187
14188 ac_ext=cpp
14189 ac_cpp='$CXXCPP $CPPFLAGS'
14190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14193 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14194 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14195 if test -z "$CXXCPP"; then
14196   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14197   echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199       # Double quotes because CXXCPP needs to be expanded
14200     for CXXCPP in "$CXX -E" "/lib/cpp"
14201     do
14202       ac_preproc_ok=false
14203 for ac_cxx_preproc_warn_flag in '' yes
14204 do
14205   # Use a header file that comes with gcc, so configuring glibc
14206   # with a fresh cross-compiler works.
14207   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14208   # <limits.h> exists even on freestanding compilers.
14209   # On the NeXT, cc -E runs the code through the compiler's parser,
14210   # not just through cpp. "Syntax error" is here to catch this case.
14211   cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h.  */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h.  */
14217 #ifdef __STDC__
14218 # include <limits.h>
14219 #else
14220 # include <assert.h>
14221 #endif
14222                      Syntax error
14223 _ACEOF
14224 if { (ac_try="$ac_cpp conftest.$ac_ext"
14225 case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14231   ac_status=$?
14232   grep -v '^ *+' conftest.er1 >conftest.err
14233   rm -f conftest.er1
14234   cat conftest.err >&5
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } >/dev/null; then
14237   if test -s conftest.err; then
14238     ac_cpp_err=$ac_cxx_preproc_warn_flag
14239     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14240   else
14241     ac_cpp_err=
14242   fi
14243 else
14244   ac_cpp_err=yes
14245 fi
14246 if test -z "$ac_cpp_err"; then
14247   :
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252   # Broken: fails on valid input.
14253 continue
14254 fi
14255
14256 rm -f conftest.err conftest.$ac_ext
14257
14258   # OK, works on sane cases.  Now check whether nonexistent headers
14259   # can be detected and how.
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 #include <ac_nonexistent.h>
14267 _ACEOF
14268 if { (ac_try="$ac_cpp conftest.$ac_ext"
14269 case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14275   ac_status=$?
14276   grep -v '^ *+' conftest.er1 >conftest.err
14277   rm -f conftest.er1
14278   cat conftest.err >&5
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } >/dev/null; then
14281   if test -s conftest.err; then
14282     ac_cpp_err=$ac_cxx_preproc_warn_flag
14283     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14284   else
14285     ac_cpp_err=
14286   fi
14287 else
14288   ac_cpp_err=yes
14289 fi
14290 if test -z "$ac_cpp_err"; then
14291   # Broken: success on invalid input.
14292 continue
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297   # Passes both tests.
14298 ac_preproc_ok=:
14299 break
14300 fi
14301
14302 rm -f conftest.err conftest.$ac_ext
14303
14304 done
14305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14306 rm -f conftest.err conftest.$ac_ext
14307 if $ac_preproc_ok; then
14308   break
14309 fi
14310
14311     done
14312     ac_cv_prog_CXXCPP=$CXXCPP
14313
14314 fi
14315   CXXCPP=$ac_cv_prog_CXXCPP
14316 else
14317   ac_cv_prog_CXXCPP=$CXXCPP
14318 fi
14319 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14320 echo "${ECHO_T}$CXXCPP" >&6; }
14321 ac_preproc_ok=false
14322 for ac_cxx_preproc_warn_flag in '' yes
14323 do
14324   # Use a header file that comes with gcc, so configuring glibc
14325   # with a fresh cross-compiler works.
14326   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327   # <limits.h> exists even on freestanding compilers.
14328   # On the NeXT, cc -E runs the code through the compiler's parser,
14329   # not just through cpp. "Syntax error" is here to catch this case.
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 #ifdef __STDC__
14337 # include <limits.h>
14338 #else
14339 # include <assert.h>
14340 #endif
14341                      Syntax error
14342 _ACEOF
14343 if { (ac_try="$ac_cpp conftest.$ac_ext"
14344 case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14350   ac_status=$?
14351   grep -v '^ *+' conftest.er1 >conftest.err
14352   rm -f conftest.er1
14353   cat conftest.err >&5
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } >/dev/null; then
14356   if test -s conftest.err; then
14357     ac_cpp_err=$ac_cxx_preproc_warn_flag
14358     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14359   else
14360     ac_cpp_err=
14361   fi
14362 else
14363   ac_cpp_err=yes
14364 fi
14365 if test -z "$ac_cpp_err"; then
14366   :
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371   # Broken: fails on valid input.
14372 continue
14373 fi
14374
14375 rm -f conftest.err conftest.$ac_ext
14376
14377   # OK, works on sane cases.  Now check whether nonexistent headers
14378   # can be detected and how.
14379   cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 #include <ac_nonexistent.h>
14386 _ACEOF
14387 if { (ac_try="$ac_cpp conftest.$ac_ext"
14388 case "(($ac_try" in
14389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390   *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14394   ac_status=$?
14395   grep -v '^ *+' conftest.er1 >conftest.err
14396   rm -f conftest.er1
14397   cat conftest.err >&5
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); } >/dev/null; then
14400   if test -s conftest.err; then
14401     ac_cpp_err=$ac_cxx_preproc_warn_flag
14402     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14403   else
14404     ac_cpp_err=
14405   fi
14406 else
14407   ac_cpp_err=yes
14408 fi
14409 if test -z "$ac_cpp_err"; then
14410   # Broken: success on invalid input.
14411 continue
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416   # Passes both tests.
14417 ac_preproc_ok=:
14418 break
14419 fi
14420
14421 rm -f conftest.err conftest.$ac_ext
14422
14423 done
14424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14425 rm -f conftest.err conftest.$ac_ext
14426 if $ac_preproc_ok; then
14427   :
14428 else
14429   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14430 See \`config.log' for more details." >&5
14431 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14432 See \`config.log' for more details." >&2;}
14433    { (exit 1); exit 1; }; }
14434 fi
14435
14436 ac_ext=cpp
14437 ac_cpp='$CXXCPP $CPPFLAGS'
14438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14441
14442
14443
14444 for ac_header in cxxabi.h
14445 do
14446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14451   echo $ECHO_N "(cached) $ECHO_C" >&6
14452 fi
14453 ac_res=`eval echo '${'$as_ac_Header'}'`
14454                { echo "$as_me:$LINENO: result: $ac_res" >&5
14455 echo "${ECHO_T}$ac_res" >&6; }
14456 else
14457   # Is the header compilable?
14458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 $ac_includes_default
14467 #include <$ac_header>
14468 _ACEOF
14469 rm -f conftest.$ac_objext
14470 if { (ac_try="$ac_compile"
14471 case "(($ac_try" in
14472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473   *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476   (eval "$ac_compile") 2>conftest.er1
14477   ac_status=$?
14478   grep -v '^ *+' conftest.er1 >conftest.err
14479   rm -f conftest.er1
14480   cat conftest.err >&5
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); } &&
14483          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14484   { (case "(($ac_try" in
14485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486   *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489   (eval "$ac_try") 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); }; } &&
14493          { ac_try='test -s conftest.$ac_objext'
14494   { (case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499   (eval "$ac_try") 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; }; then
14503   ac_header_compiler=yes
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508         ac_header_compiler=no
14509 fi
14510
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 echo "${ECHO_T}$ac_header_compiler" >&6; }
14514
14515 # Is the header present?
14516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h.  */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h.  */
14524 #include <$ac_header>
14525 _ACEOF
14526 if { (ac_try="$ac_cpp conftest.$ac_ext"
14527 case "(($ac_try" in
14528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529   *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } >/dev/null; then
14539   if test -s conftest.err; then
14540     ac_cpp_err=$ac_cxx_preproc_warn_flag
14541     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14542   else
14543     ac_cpp_err=
14544   fi
14545 else
14546   ac_cpp_err=yes
14547 fi
14548 if test -z "$ac_cpp_err"; then
14549   ac_header_preproc=yes
14550 else
14551   echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554   ac_header_preproc=no
14555 fi
14556
14557 rm -f conftest.err conftest.$ac_ext
14558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14559 echo "${ECHO_T}$ac_header_preproc" >&6; }
14560
14561 # So?  What about this header?
14562 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14563   yes:no: )
14564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14568     ac_header_preproc=yes
14569     ;;
14570   no:yes:* )
14571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14583     ( cat <<\_ASBOX
14584 ## ------------------------------------ ##
14585 ## Report this to http://llvm.org/bugs/ ##
14586 ## ------------------------------------ ##
14587 _ASBOX
14588      ) | sed "s/^/$as_me: WARNING:     /" >&2
14589     ;;
14590 esac
14591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14594   echo $ECHO_N "(cached) $ECHO_C" >&6
14595 else
14596   eval "$as_ac_Header=\$ac_header_preproc"
14597 fi
14598 ac_res=`eval echo '${'$as_ac_Header'}'`
14599                { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601
14602 fi
14603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14604   cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14606 _ACEOF
14607
14608 fi
14609
14610 done
14611
14612 ac_ext=c
14613 ac_cpp='$CPP $CPPFLAGS'
14614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14617
14618
14619
14620
14621
14622
14623 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14624 do
14625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14627   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14630   echo $ECHO_N "(cached) $ECHO_C" >&6
14631 fi
14632 ac_res=`eval echo '${'$as_ac_Header'}'`
14633                { echo "$as_me:$LINENO: result: $ac_res" >&5
14634 echo "${ECHO_T}$ac_res" >&6; }
14635 else
14636   # Is the header compilable?
14637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h.  */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h.  */
14645 $ac_includes_default
14646 #include <$ac_header>
14647 _ACEOF
14648 rm -f conftest.$ac_objext
14649 if { (ac_try="$ac_compile"
14650 case "(($ac_try" in
14651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652   *) ac_try_echo=$ac_try;;
14653 esac
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655   (eval "$ac_compile") 2>conftest.er1
14656   ac_status=$?
14657   grep -v '^ *+' conftest.er1 >conftest.err
14658   rm -f conftest.er1
14659   cat conftest.err >&5
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14663   { (case "(($ac_try" in
14664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665   *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668   (eval "$ac_try") 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; } &&
14672          { ac_try='test -s conftest.$ac_objext'
14673   { (case "(($ac_try" in
14674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675   *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678   (eval "$ac_try") 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   ac_header_compiler=yes
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687         ac_header_compiler=no
14688 fi
14689
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14692 echo "${ECHO_T}$ac_header_compiler" >&6; }
14693
14694 # Is the header present?
14695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14697 cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703 #include <$ac_header>
14704 _ACEOF
14705 if { (ac_try="$ac_cpp conftest.$ac_ext"
14706 case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } >/dev/null; then
14718   if test -s conftest.err; then
14719     ac_cpp_err=$ac_c_preproc_warn_flag
14720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14721   else
14722     ac_cpp_err=
14723   fi
14724 else
14725   ac_cpp_err=yes
14726 fi
14727 if test -z "$ac_cpp_err"; then
14728   ac_header_preproc=yes
14729 else
14730   echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733   ac_header_preproc=no
14734 fi
14735
14736 rm -f conftest.err conftest.$ac_ext
14737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14738 echo "${ECHO_T}$ac_header_preproc" >&6; }
14739
14740 # So?  What about this header?
14741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14742   yes:no: )
14743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14747     ac_header_preproc=yes
14748     ;;
14749   no:yes:* )
14750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14762     ( cat <<\_ASBOX
14763 ## ------------------------------------ ##
14764 ## Report this to http://llvm.org/bugs/ ##
14765 ## ------------------------------------ ##
14766 _ASBOX
14767      ) | sed "s/^/$as_me: WARNING:     /" >&2
14768     ;;
14769 esac
14770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775   eval "$as_ac_Header=\$ac_header_preproc"
14776 fi
14777 ac_res=`eval echo '${'$as_ac_Header'}'`
14778                { echo "$as_me:$LINENO: result: $ac_res" >&5
14779 echo "${ECHO_T}$ac_res" >&6; }
14780
14781 fi
14782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14783   cat >>confdefs.h <<_ACEOF
14784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14785 _ACEOF
14786
14787 fi
14788
14789 done
14790
14791
14792
14793
14794
14795
14796
14797 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14798 do
14799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14804   echo $ECHO_N "(cached) $ECHO_C" >&6
14805 fi
14806 ac_res=`eval echo '${'$as_ac_Header'}'`
14807                { echo "$as_me:$LINENO: result: $ac_res" >&5
14808 echo "${ECHO_T}$ac_res" >&6; }
14809 else
14810   # Is the header compilable?
14811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 $ac_includes_default
14820 #include <$ac_header>
14821 _ACEOF
14822 rm -f conftest.$ac_objext
14823 if { (ac_try="$ac_compile"
14824 case "(($ac_try" in
14825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826   *) ac_try_echo=$ac_try;;
14827 esac
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829   (eval "$ac_compile") 2>conftest.er1
14830   ac_status=$?
14831   grep -v '^ *+' conftest.er1 >conftest.err
14832   rm -f conftest.er1
14833   cat conftest.err >&5
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); } &&
14836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14837   { (case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842   (eval "$ac_try") 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; } &&
14846          { ac_try='test -s conftest.$ac_objext'
14847   { (case "(($ac_try" in
14848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849   *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852   (eval "$ac_try") 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; }; then
14856   ac_header_compiler=yes
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861         ac_header_compiler=no
14862 fi
14863
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14866 echo "${ECHO_T}$ac_header_compiler" >&6; }
14867
14868 # Is the header present?
14869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14871 cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h.  */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h.  */
14877 #include <$ac_header>
14878 _ACEOF
14879 if { (ac_try="$ac_cpp conftest.$ac_ext"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } >/dev/null; then
14892   if test -s conftest.err; then
14893     ac_cpp_err=$ac_c_preproc_warn_flag
14894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14895   else
14896     ac_cpp_err=
14897   fi
14898 else
14899   ac_cpp_err=yes
14900 fi
14901 if test -z "$ac_cpp_err"; then
14902   ac_header_preproc=yes
14903 else
14904   echo "$as_me: failed program was:" >&5
14905 sed 's/^/| /' conftest.$ac_ext >&5
14906
14907   ac_header_preproc=no
14908 fi
14909
14910 rm -f conftest.err conftest.$ac_ext
14911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14912 echo "${ECHO_T}$ac_header_preproc" >&6; }
14913
14914 # So?  What about this header?
14915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14916   yes:no: )
14917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14921     ac_header_preproc=yes
14922     ;;
14923   no:yes:* )
14924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14936     ( cat <<\_ASBOX
14937 ## ------------------------------------ ##
14938 ## Report this to http://llvm.org/bugs/ ##
14939 ## ------------------------------------ ##
14940 _ASBOX
14941      ) | sed "s/^/$as_me: WARNING:     /" >&2
14942     ;;
14943 esac
14944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949   eval "$as_ac_Header=\$ac_header_preproc"
14950 fi
14951 ac_res=`eval echo '${'$as_ac_Header'}'`
14952                { echo "$as_me:$LINENO: result: $ac_res" >&5
14953 echo "${ECHO_T}$ac_res" >&6; }
14954
14955 fi
14956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14957   cat >>confdefs.h <<_ACEOF
14958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14959 _ACEOF
14960
14961 fi
14962
14963 done
14964
14965
14966 for ac_header in utime.h
14967 do
14968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 fi
14975 ac_res=`eval echo '${'$as_ac_Header'}'`
14976                { echo "$as_me:$LINENO: result: $ac_res" >&5
14977 echo "${ECHO_T}$ac_res" >&6; }
14978 else
14979   # Is the header compilable?
14980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988 $ac_includes_default
14989 #include <$ac_header>
14990 _ACEOF
14991 rm -f conftest.$ac_objext
14992 if { (ac_try="$ac_compile"
14993 case "(($ac_try" in
14994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995   *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998   (eval "$ac_compile") 2>conftest.er1
14999   ac_status=$?
15000   grep -v '^ *+' conftest.er1 >conftest.err
15001   rm -f conftest.er1
15002   cat conftest.err >&5
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); } &&
15005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006   { (case "(($ac_try" in
15007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008   *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011   (eval "$ac_try") 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; } &&
15015          { ac_try='test -s conftest.$ac_objext'
15016   { (case "(($ac_try" in
15017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018   *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021   (eval "$ac_try") 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); }; }; then
15025   ac_header_compiler=yes
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030         ac_header_compiler=no
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15035 echo "${ECHO_T}$ac_header_compiler" >&6; }
15036
15037 # Is the header present?
15038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046 #include <$ac_header>
15047 _ACEOF
15048 if { (ac_try="$ac_cpp conftest.$ac_ext"
15049 case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } >/dev/null; then
15061   if test -s conftest.err; then
15062     ac_cpp_err=$ac_c_preproc_warn_flag
15063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15064   else
15065     ac_cpp_err=
15066   fi
15067 else
15068   ac_cpp_err=yes
15069 fi
15070 if test -z "$ac_cpp_err"; then
15071   ac_header_preproc=yes
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076   ac_header_preproc=no
15077 fi
15078
15079 rm -f conftest.err conftest.$ac_ext
15080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15081 echo "${ECHO_T}$ac_header_preproc" >&6; }
15082
15083 # So?  What about this header?
15084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15085   yes:no: )
15086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15090     ac_header_preproc=yes
15091     ;;
15092   no:yes:* )
15093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15105     ( cat <<\_ASBOX
15106 ## ------------------------------------ ##
15107 ## Report this to http://llvm.org/bugs/ ##
15108 ## ------------------------------------ ##
15109 _ASBOX
15110      ) | sed "s/^/$as_me: WARNING:     /" >&2
15111     ;;
15112 esac
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   eval "$as_ac_Header=\$ac_header_preproc"
15119 fi
15120 ac_res=`eval echo '${'$as_ac_Header'}'`
15121                { echo "$as_me:$LINENO: result: $ac_res" >&5
15122 echo "${ECHO_T}$ac_res" >&6; }
15123
15124 fi
15125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15126   cat >>confdefs.h <<_ACEOF
15127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15128 _ACEOF
15129
15130 fi
15131
15132 done
15133
15134
15135
15136
15137
15138
15139 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15140 do
15141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15143   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 fi
15148 ac_res=`eval echo '${'$as_ac_Header'}'`
15149                { echo "$as_me:$LINENO: result: $ac_res" >&5
15150 echo "${ECHO_T}$ac_res" >&6; }
15151 else
15152   # Is the header compilable?
15153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15155 cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 $ac_includes_default
15162 #include <$ac_header>
15163 _ACEOF
15164 rm -f conftest.$ac_objext
15165 if { (ac_try="$ac_compile"
15166 case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_compile") 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } &&
15178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; } &&
15188          { ac_try='test -s conftest.$ac_objext'
15189   { (case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194   (eval "$ac_try") 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_header_compiler=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203         ac_header_compiler=no
15204 fi
15205
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208 echo "${ECHO_T}$ac_header_compiler" >&6; }
15209
15210 # Is the header present?
15211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h.  */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h.  */
15219 #include <$ac_header>
15220 _ACEOF
15221 if { (ac_try="$ac_cpp conftest.$ac_ext"
15222 case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } >/dev/null; then
15234   if test -s conftest.err; then
15235     ac_cpp_err=$ac_c_preproc_warn_flag
15236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15237   else
15238     ac_cpp_err=
15239   fi
15240 else
15241   ac_cpp_err=yes
15242 fi
15243 if test -z "$ac_cpp_err"; then
15244   ac_header_preproc=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249   ac_header_preproc=no
15250 fi
15251
15252 rm -f conftest.err conftest.$ac_ext
15253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 echo "${ECHO_T}$ac_header_preproc" >&6; }
15255
15256 # So?  What about this header?
15257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15258   yes:no: )
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15263     ac_header_preproc=yes
15264     ;;
15265   no:yes:* )
15266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15278     ( cat <<\_ASBOX
15279 ## ------------------------------------ ##
15280 ## Report this to http://llvm.org/bugs/ ##
15281 ## ------------------------------------ ##
15282 _ASBOX
15283      ) | sed "s/^/$as_me: WARNING:     /" >&2
15284     ;;
15285 esac
15286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   eval "$as_ac_Header=\$ac_header_preproc"
15292 fi
15293 ac_res=`eval echo '${'$as_ac_Header'}'`
15294                { echo "$as_me:$LINENO: result: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15296
15297 fi
15298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299   cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301 _ACEOF
15302
15303 fi
15304
15305 done
15306
15307
15308
15309
15310 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15311 do
15312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317   echo $ECHO_N "(cached) $ECHO_C" >&6
15318 fi
15319 ac_res=`eval echo '${'$as_ac_Header'}'`
15320                { echo "$as_me:$LINENO: result: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15322 else
15323   # Is the header compilable?
15324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332 $ac_includes_default
15333 #include <$ac_header>
15334 _ACEOF
15335 rm -f conftest.$ac_objext
15336 if { (ac_try="$ac_compile"
15337 case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_compile") 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350   { (case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_try") 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); }; } &&
15359          { ac_try='test -s conftest.$ac_objext'
15360   { (case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_try") 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369   ac_header_compiler=yes
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374         ac_header_compiler=no
15375 fi
15376
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15379 echo "${ECHO_T}$ac_header_compiler" >&6; }
15380
15381 # Is the header present?
15382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15384 cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390 #include <$ac_header>
15391 _ACEOF
15392 if { (ac_try="$ac_cpp conftest.$ac_ext"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15399   ac_status=$?
15400   grep -v '^ *+' conftest.er1 >conftest.err
15401   rm -f conftest.er1
15402   cat conftest.err >&5
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } >/dev/null; then
15405   if test -s conftest.err; then
15406     ac_cpp_err=$ac_c_preproc_warn_flag
15407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15408   else
15409     ac_cpp_err=
15410   fi
15411 else
15412   ac_cpp_err=yes
15413 fi
15414 if test -z "$ac_cpp_err"; then
15415   ac_header_preproc=yes
15416 else
15417   echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420   ac_header_preproc=no
15421 fi
15422
15423 rm -f conftest.err conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 echo "${ECHO_T}$ac_header_preproc" >&6; }
15426
15427 # So?  What about this header?
15428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15429   yes:no: )
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434     ac_header_preproc=yes
15435     ;;
15436   no:yes:* )
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15449     ( cat <<\_ASBOX
15450 ## ------------------------------------ ##
15451 ## Report this to http://llvm.org/bugs/ ##
15452 ## ------------------------------------ ##
15453 _ASBOX
15454      ) | sed "s/^/$as_me: WARNING:     /" >&2
15455     ;;
15456 esac
15457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   eval "$as_ac_Header=\$ac_header_preproc"
15463 fi
15464 ac_res=`eval echo '${'$as_ac_Header'}'`
15465                { echo "$as_me:$LINENO: result: $ac_res" >&5
15466 echo "${ECHO_T}$ac_res" >&6; }
15467
15468 fi
15469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15470   cat >>confdefs.h <<_ACEOF
15471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 _ACEOF
15473
15474 fi
15475
15476 done
15477
15478
15479 for ac_header in valgrind/valgrind.h
15480 do
15481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486   echo $ECHO_N "(cached) $ECHO_C" >&6
15487 fi
15488 ac_res=`eval echo '${'$as_ac_Header'}'`
15489                { echo "$as_me:$LINENO: result: $ac_res" >&5
15490 echo "${ECHO_T}$ac_res" >&6; }
15491 else
15492   # Is the header compilable?
15493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 $ac_includes_default
15502 #include <$ac_header>
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508   *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511   (eval "$ac_compile") 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } &&
15518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15519   { (case "(($ac_try" in
15520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521   *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524   (eval "$ac_try") 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_try") 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; }; then
15538   ac_header_compiler=yes
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543         ac_header_compiler=no
15544 fi
15545
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15548 echo "${ECHO_T}$ac_header_compiler" >&6; }
15549
15550 # Is the header present?
15551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 #include <$ac_header>
15560 _ACEOF
15561 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } >/dev/null; then
15574   if test -s conftest.err; then
15575     ac_cpp_err=$ac_c_preproc_warn_flag
15576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15577   else
15578     ac_cpp_err=
15579   fi
15580 else
15581   ac_cpp_err=yes
15582 fi
15583 if test -z "$ac_cpp_err"; then
15584   ac_header_preproc=yes
15585 else
15586   echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589   ac_header_preproc=no
15590 fi
15591
15592 rm -f conftest.err conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15594 echo "${ECHO_T}$ac_header_preproc" >&6; }
15595
15596 # So?  What about this header?
15597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15598   yes:no: )
15599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15603     ac_header_preproc=yes
15604     ;;
15605   no:yes:* )
15606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15618     ( cat <<\_ASBOX
15619 ## ------------------------------------ ##
15620 ## Report this to http://llvm.org/bugs/ ##
15621 ## ------------------------------------ ##
15622 _ASBOX
15623      ) | sed "s/^/$as_me: WARNING:     /" >&2
15624     ;;
15625 esac
15626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 else
15631   eval "$as_ac_Header=\$ac_header_preproc"
15632 fi
15633 ac_res=`eval echo '${'$as_ac_Header'}'`
15634                { echo "$as_me:$LINENO: result: $ac_res" >&5
15635 echo "${ECHO_T}$ac_res" >&6; }
15636
15637 fi
15638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15639   cat >>confdefs.h <<_ACEOF
15640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15641 _ACEOF
15642
15643 fi
15644
15645 done
15646
15647
15648 for ac_header in fenv.h
15649 do
15650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 fi
15657 ac_res=`eval echo '${'$as_ac_Header'}'`
15658                { echo "$as_me:$LINENO: result: $ac_res" >&5
15659 echo "${ECHO_T}$ac_res" >&6; }
15660 else
15661   # Is the header compilable?
15662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670 $ac_includes_default
15671 #include <$ac_header>
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (ac_try="$ac_compile"
15675 case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_compile") 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } &&
15687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15688   { (case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_try") 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; } &&
15697          { ac_try='test -s conftest.$ac_objext'
15698   { (case "(($ac_try" in
15699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700   *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703   (eval "$ac_try") 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_header_compiler=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712         ac_header_compiler=no
15713 fi
15714
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15717 echo "${ECHO_T}$ac_header_compiler" >&6; }
15718
15719 # Is the header present?
15720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 #include <$ac_header>
15729 _ACEOF
15730 if { (ac_try="$ac_cpp conftest.$ac_ext"
15731 case "(($ac_try" in
15732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733   *) ac_try_echo=$ac_try;;
15734 esac
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15737   ac_status=$?
15738   grep -v '^ *+' conftest.er1 >conftest.err
15739   rm -f conftest.er1
15740   cat conftest.err >&5
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } >/dev/null; then
15743   if test -s conftest.err; then
15744     ac_cpp_err=$ac_c_preproc_warn_flag
15745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15746   else
15747     ac_cpp_err=
15748   fi
15749 else
15750   ac_cpp_err=yes
15751 fi
15752 if test -z "$ac_cpp_err"; then
15753   ac_header_preproc=yes
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758   ac_header_preproc=no
15759 fi
15760
15761 rm -f conftest.err conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6; }
15764
15765 # So?  What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15767   yes:no: )
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15772     ac_header_preproc=yes
15773     ;;
15774   no:yes:* )
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15787     ( cat <<\_ASBOX
15788 ## ------------------------------------ ##
15789 ## Report this to http://llvm.org/bugs/ ##
15790 ## ------------------------------------ ##
15791 _ASBOX
15792      ) | sed "s/^/$as_me: WARNING:     /" >&2
15793     ;;
15794 esac
15795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800   eval "$as_ac_Header=\$ac_header_preproc"
15801 fi
15802 ac_res=`eval echo '${'$as_ac_Header'}'`
15803                { echo "$as_me:$LINENO: result: $ac_res" >&5
15804 echo "${ECHO_T}$ac_res" >&6; }
15805
15806 fi
15807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15808   cat >>confdefs.h <<_ACEOF
15809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15810 _ACEOF
15811
15812 fi
15813
15814 done
15815
15816 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15817 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15818 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821   cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h.  */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h.  */
15827 #include <fenv.h>
15828
15829 int
15830 main ()
15831 {
15832 #ifndef FE_ALL_EXCEPT
15833   char *p = (char *) FE_ALL_EXCEPT;
15834   return !p;
15835 #endif
15836
15837   ;
15838   return 0;
15839 }
15840 _ACEOF
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_compile") 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; } &&
15865          { ac_try='test -s conftest.$ac_objext'
15866   { (case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_try") 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_cv_have_decl_FE_ALL_EXCEPT=yes
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880         ac_cv_have_decl_FE_ALL_EXCEPT=no
15881 fi
15882
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 fi
15885 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
15886 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
15887 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
15888
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_DECL_FE_ALL_EXCEPT 1
15891 _ACEOF
15892
15893
15894 else
15895   cat >>confdefs.h <<_ACEOF
15896 #define HAVE_DECL_FE_ALL_EXCEPT 0
15897 _ACEOF
15898
15899
15900 fi
15901 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
15902 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
15903 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
15904   echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906   cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h.  */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h.  */
15912 #include <fenv.h>
15913
15914 int
15915 main ()
15916 {
15917 #ifndef FE_INEXACT
15918   char *p = (char *) FE_INEXACT;
15919   return !p;
15920 #endif
15921
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_compile") 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } &&
15940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15941   { (case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946   (eval "$ac_try") 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; } &&
15950          { ac_try='test -s conftest.$ac_objext'
15951   { (case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_try") 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; }; then
15960   ac_cv_have_decl_FE_INEXACT=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965         ac_cv_have_decl_FE_INEXACT=no
15966 fi
15967
15968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
15971 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
15972 if test $ac_cv_have_decl_FE_INEXACT = yes; then
15973
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_DECL_FE_INEXACT 1
15976 _ACEOF
15977
15978
15979 else
15980   cat >>confdefs.h <<_ACEOF
15981 #define HAVE_DECL_FE_INEXACT 0
15982 _ACEOF
15983
15984
15985 fi
15986
15987
15988 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15989
15990 for ac_header in pthread.h
15991 do
15992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15994   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997   echo $ECHO_N "(cached) $ECHO_C" >&6
15998 fi
15999 ac_res=`eval echo '${'$as_ac_Header'}'`
16000                { echo "$as_me:$LINENO: result: $ac_res" >&5
16001 echo "${ECHO_T}$ac_res" >&6; }
16002 else
16003   # Is the header compilable?
16004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16006 cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h.  */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h.  */
16012 $ac_includes_default
16013 #include <$ac_header>
16014 _ACEOF
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022   (eval "$ac_compile") 2>conftest.er1
16023   ac_status=$?
16024   grep -v '^ *+' conftest.er1 >conftest.err
16025   rm -f conftest.er1
16026   cat conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; } &&
16039          { ac_try='test -s conftest.$ac_objext'
16040   { (case "(($ac_try" in
16041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042   *) ac_try_echo=$ac_try;;
16043 esac
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045   (eval "$ac_try") 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; }; then
16049   ac_header_compiler=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054         ac_header_compiler=no
16055 fi
16056
16057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16059 echo "${ECHO_T}$ac_header_compiler" >&6; }
16060
16061 # Is the header present?
16062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 #include <$ac_header>
16071 _ACEOF
16072 if { (ac_try="$ac_cpp conftest.$ac_ext"
16073 case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16079   ac_status=$?
16080   grep -v '^ *+' conftest.er1 >conftest.err
16081   rm -f conftest.er1
16082   cat conftest.err >&5
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); } >/dev/null; then
16085   if test -s conftest.err; then
16086     ac_cpp_err=$ac_c_preproc_warn_flag
16087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16088   else
16089     ac_cpp_err=
16090   fi
16091 else
16092   ac_cpp_err=yes
16093 fi
16094 if test -z "$ac_cpp_err"; then
16095   ac_header_preproc=yes
16096 else
16097   echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100   ac_header_preproc=no
16101 fi
16102
16103 rm -f conftest.err conftest.$ac_ext
16104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16105 echo "${ECHO_T}$ac_header_preproc" >&6; }
16106
16107 # So?  What about this header?
16108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16109   yes:no: )
16110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16114     ac_header_preproc=yes
16115     ;;
16116   no:yes:* )
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16129     ( cat <<\_ASBOX
16130 ## ------------------------------------ ##
16131 ## Report this to http://llvm.org/bugs/ ##
16132 ## ------------------------------------ ##
16133 _ASBOX
16134      ) | sed "s/^/$as_me: WARNING:     /" >&2
16135     ;;
16136 esac
16137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   eval "$as_ac_Header=\$ac_header_preproc"
16143 fi
16144 ac_res=`eval echo '${'$as_ac_Header'}'`
16145                { echo "$as_me:$LINENO: result: $ac_res" >&5
16146 echo "${ECHO_T}$ac_res" >&6; }
16147
16148 fi
16149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16150   cat >>confdefs.h <<_ACEOF
16151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16152 _ACEOF
16153  HAVE_PTHREAD=1
16154
16155 else
16156   HAVE_PTHREAD=0
16157
16158 fi
16159
16160 done
16161
16162 else
16163   HAVE_PTHREAD=0
16164
16165 fi
16166 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16167
16168 for ac_header in zlib.h
16169 do
16170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175   echo $ECHO_N "(cached) $ECHO_C" >&6
16176 fi
16177 ac_res=`eval echo '${'$as_ac_Header'}'`
16178                { echo "$as_me:$LINENO: result: $ac_res" >&5
16179 echo "${ECHO_T}$ac_res" >&6; }
16180 else
16181   # Is the header compilable?
16182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h.  */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h.  */
16190 $ac_includes_default
16191 #include <$ac_header>
16192 _ACEOF
16193 rm -f conftest.$ac_objext
16194 if { (ac_try="$ac_compile"
16195 case "(($ac_try" in
16196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197   *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200   (eval "$ac_compile") 2>conftest.er1
16201   ac_status=$?
16202   grep -v '^ *+' conftest.er1 >conftest.err
16203   rm -f conftest.er1
16204   cat conftest.err >&5
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16208   { (case "(($ac_try" in
16209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210   *) ac_try_echo=$ac_try;;
16211 esac
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213   (eval "$ac_try") 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); }; } &&
16217          { ac_try='test -s conftest.$ac_objext'
16218   { (case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_try") 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; }; then
16227   ac_header_compiler=yes
16228 else
16229   echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232         ac_header_compiler=no
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 echo "${ECHO_T}$ac_header_compiler" >&6; }
16238
16239 # Is the header present?
16240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h.  */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h.  */
16248 #include <$ac_header>
16249 _ACEOF
16250 if { (ac_try="$ac_cpp conftest.$ac_ext"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16257   ac_status=$?
16258   grep -v '^ *+' conftest.er1 >conftest.err
16259   rm -f conftest.er1
16260   cat conftest.err >&5
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); } >/dev/null; then
16263   if test -s conftest.err; then
16264     ac_cpp_err=$ac_c_preproc_warn_flag
16265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16266   else
16267     ac_cpp_err=
16268   fi
16269 else
16270   ac_cpp_err=yes
16271 fi
16272 if test -z "$ac_cpp_err"; then
16273   ac_header_preproc=yes
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278   ac_header_preproc=no
16279 fi
16280
16281 rm -f conftest.err conftest.$ac_ext
16282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283 echo "${ECHO_T}$ac_header_preproc" >&6; }
16284
16285 # So?  What about this header?
16286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16287   yes:no: )
16288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16292     ac_header_preproc=yes
16293     ;;
16294   no:yes:* )
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16307     ( cat <<\_ASBOX
16308 ## ------------------------------------ ##
16309 ## Report this to http://llvm.org/bugs/ ##
16310 ## ------------------------------------ ##
16311 _ASBOX
16312      ) | sed "s/^/$as_me: WARNING:     /" >&2
16313     ;;
16314 esac
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320   eval "$as_ac_Header=\$ac_header_preproc"
16321 fi
16322 ac_res=`eval echo '${'$as_ac_Header'}'`
16323                { echo "$as_me:$LINENO: result: $ac_res" >&5
16324 echo "${ECHO_T}$ac_res" >&6; }
16325
16326 fi
16327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16328   cat >>confdefs.h <<_ACEOF
16329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16330 _ACEOF
16331  HAVE_LIBZ=1
16332
16333 else
16334   HAVE_LIBZ=0
16335
16336 fi
16337
16338 done
16339
16340 else
16341   HAVE_LIBZ=0
16342
16343 fi
16344
16345 if test "$llvm_cv_enable_libffi" = "yes" ; then
16346
16347
16348 for ac_header in ffi.h ffi/ffi.h
16349 do
16350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 fi
16357 ac_res=`eval echo '${'$as_ac_Header'}'`
16358                { echo "$as_me:$LINENO: result: $ac_res" >&5
16359 echo "${ECHO_T}$ac_res" >&6; }
16360 else
16361   # Is the header compilable?
16362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h.  */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h.  */
16370 $ac_includes_default
16371 #include <$ac_header>
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } &&
16387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388   { (case "(($ac_try" in
16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390   *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393   (eval "$ac_try") 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (case "(($ac_try" in
16399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400   *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403   (eval "$ac_try") 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; }; then
16407   ac_header_compiler=yes
16408 else
16409   echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16411
16412         ac_header_compiler=no
16413 fi
16414
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16417 echo "${ECHO_T}$ac_header_compiler" >&6; }
16418
16419 # Is the header present?
16420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428 #include <$ac_header>
16429 _ACEOF
16430 if { (ac_try="$ac_cpp conftest.$ac_ext"
16431 case "(($ac_try" in
16432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433   *) ac_try_echo=$ac_try;;
16434 esac
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16437   ac_status=$?
16438   grep -v '^ *+' conftest.er1 >conftest.err
16439   rm -f conftest.er1
16440   cat conftest.err >&5
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } >/dev/null; then
16443   if test -s conftest.err; then
16444     ac_cpp_err=$ac_c_preproc_warn_flag
16445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16446   else
16447     ac_cpp_err=
16448   fi
16449 else
16450   ac_cpp_err=yes
16451 fi
16452 if test -z "$ac_cpp_err"; then
16453   ac_header_preproc=yes
16454 else
16455   echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458   ac_header_preproc=no
16459 fi
16460
16461 rm -f conftest.err conftest.$ac_ext
16462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463 echo "${ECHO_T}$ac_header_preproc" >&6; }
16464
16465 # So?  What about this header?
16466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16467   yes:no: )
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16472     ac_header_preproc=yes
16473     ;;
16474   no:yes:* )
16475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16487     ( cat <<\_ASBOX
16488 ## ------------------------------------ ##
16489 ## Report this to http://llvm.org/bugs/ ##
16490 ## ------------------------------------ ##
16491 _ASBOX
16492      ) | sed "s/^/$as_me: WARNING:     /" >&2
16493     ;;
16494 esac
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   eval "$as_ac_Header=\$ac_header_preproc"
16501 fi
16502 ac_res=`eval echo '${'$as_ac_Header'}'`
16503                { echo "$as_me:$LINENO: result: $ac_res" >&5
16504 echo "${ECHO_T}$ac_res" >&6; }
16505
16506 fi
16507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16508   cat >>confdefs.h <<_ACEOF
16509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16510 _ACEOF
16511
16512 fi
16513
16514 done
16515
16516 fi
16517
16518
16519 for ac_header in CrashReporterClient.h
16520 do
16521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16523   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 fi
16528 ac_res=`eval echo '${'$as_ac_Header'}'`
16529                { echo "$as_me:$LINENO: result: $ac_res" >&5
16530 echo "${ECHO_T}$ac_res" >&6; }
16531 else
16532   # Is the header compilable?
16533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16535 cat >conftest.$ac_ext <<_ACEOF
16536 /* confdefs.h.  */
16537 _ACEOF
16538 cat confdefs.h >>conftest.$ac_ext
16539 cat >>conftest.$ac_ext <<_ACEOF
16540 /* end confdefs.h.  */
16541 $ac_includes_default
16542 #include <$ac_header>
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_compile") 2>conftest.er1
16552   ac_status=$?
16553   grep -v '^ *+' conftest.er1 >conftest.err
16554   rm -f conftest.er1
16555   cat conftest.err >&5
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } &&
16558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16559   { (case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_try") 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); }; } &&
16568          { ac_try='test -s conftest.$ac_objext'
16569   { (case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_try") 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; }; then
16578   ac_header_compiler=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583         ac_header_compiler=no
16584 fi
16585
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16588 echo "${ECHO_T}$ac_header_compiler" >&6; }
16589
16590 # Is the header present?
16591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16593 cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h.  */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h.  */
16599 #include <$ac_header>
16600 _ACEOF
16601 if { (ac_try="$ac_cpp conftest.$ac_ext"
16602 case "(($ac_try" in
16603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604   *) ac_try_echo=$ac_try;;
16605 esac
16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16608   ac_status=$?
16609   grep -v '^ *+' conftest.er1 >conftest.err
16610   rm -f conftest.er1
16611   cat conftest.err >&5
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); } >/dev/null; then
16614   if test -s conftest.err; then
16615     ac_cpp_err=$ac_c_preproc_warn_flag
16616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16617   else
16618     ac_cpp_err=
16619   fi
16620 else
16621   ac_cpp_err=yes
16622 fi
16623 if test -z "$ac_cpp_err"; then
16624   ac_header_preproc=yes
16625 else
16626   echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629   ac_header_preproc=no
16630 fi
16631
16632 rm -f conftest.err conftest.$ac_ext
16633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6; }
16635
16636 # So?  What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16638   yes:no: )
16639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16643     ac_header_preproc=yes
16644     ;;
16645   no:yes:* )
16646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16658     ( cat <<\_ASBOX
16659 ## ------------------------------------ ##
16660 ## Report this to http://llvm.org/bugs/ ##
16661 ## ------------------------------------ ##
16662 _ASBOX
16663      ) | sed "s/^/$as_me: WARNING:     /" >&2
16664     ;;
16665 esac
16666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671   eval "$as_ac_Header=\$ac_header_preproc"
16672 fi
16673 ac_res=`eval echo '${'$as_ac_Header'}'`
16674                { echo "$as_me:$LINENO: result: $ac_res" >&5
16675 echo "${ECHO_T}$ac_res" >&6; }
16676
16677 fi
16678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16679   cat >>confdefs.h <<_ACEOF
16680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16681 _ACEOF
16682
16683 fi
16684
16685 done
16686
16687
16688 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16689 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16690 cat >conftest.$ac_ext <<_ACEOF
16691
16692   /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697
16698     extern const char *__crashreporter_info__;
16699     int main() {
16700       __crashreporter_info__ = "test";
16701       return 0;
16702     }
16703
16704
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_link") 2>conftest.er1
16714   ac_status=$?
16715   grep -v '^ *+' conftest.er1 >conftest.err
16716   rm -f conftest.er1
16717   cat conftest.err >&5
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721   { (case "(($ac_try" in
16722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723   *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726   (eval "$ac_try") 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; } &&
16730          { ac_try='test -s conftest$ac_exeext'
16731   { (case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_try") 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740
16741   { echo "$as_me:$LINENO: result: yes" >&5
16742 echo "${ECHO_T}yes" >&6; }
16743
16744 cat >>confdefs.h <<\_ACEOF
16745 #define HAVE_CRASHREPORTER_INFO 1
16746 _ACEOF
16747
16748
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753
16754   { echo "$as_me:$LINENO: result: no" >&5
16755 echo "${ECHO_T}no" >&6; }
16756
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_CRASHREPORTER_INFO 0
16759 _ACEOF
16760
16761
16762 fi
16763
16764 rm -f core conftest.err conftest.$ac_objext \
16765       conftest$ac_exeext conftest.$ac_ext
16766
16767
16768
16769   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16770 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16771 if test "${ac_cv_huge_val_sanity+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774
16775     ac_ext=cpp
16776 ac_cpp='$CXXCPP $CPPFLAGS'
16777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16780
16781     ac_save_CXXFLAGS=$CXXFLAGS
16782     CXXFLAGS="$CXXFLAGS -pedantic"
16783     if test "$cross_compiling" = yes; then
16784   ac_cv_huge_val_sanity=yes
16785 else
16786   cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 #include <math.h>
16793 int
16794 main ()
16795 {
16796 double x = HUGE_VAL; return x != x;
16797   ;
16798   return 0;
16799 }
16800 _ACEOF
16801 rm -f conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_link") 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16812   { (case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_try") 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; }; then
16821   ac_cv_huge_val_sanity=yes
16822 else
16823   echo "$as_me: program exited with status $ac_status" >&5
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 ( exit $ac_status )
16828 ac_cv_huge_val_sanity=no
16829 fi
16830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16831 fi
16832
16833
16834     CXXFLAGS=$ac_save_CXXFLAGS
16835     ac_ext=c
16836 ac_cpp='$CPP $CPPFLAGS'
16837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16840
16841
16842 fi
16843 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16844 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16845   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16846
16847
16848 { echo "$as_me:$LINENO: checking for pid_t" >&5
16849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16850 if test "${ac_cv_type_pid_t+set}" = set; then
16851   echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853   cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 $ac_includes_default
16860 typedef pid_t ac__type_new_;
16861 int
16862 main ()
16863 {
16864 if ((ac__type_new_ *) 0)
16865   return 0;
16866 if (sizeof (ac__type_new_))
16867   return 0;
16868   ;
16869   return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext
16873 if { (ac_try="$ac_compile"
16874 case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_compile") 2>conftest.er1
16880   ac_status=$?
16881   grep -v '^ *+' conftest.er1 >conftest.err
16882   rm -f conftest.er1
16883   cat conftest.err >&5
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } &&
16886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887   { (case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_try") 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest.$ac_objext'
16897   { (case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_try") 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; }; then
16906   ac_cv_type_pid_t=yes
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911         ac_cv_type_pid_t=no
16912 fi
16913
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915 fi
16916 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16917 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16918 if test $ac_cv_type_pid_t = yes; then
16919   :
16920 else
16921
16922 cat >>confdefs.h <<_ACEOF
16923 #define pid_t int
16924 _ACEOF
16925
16926 fi
16927
16928 { echo "$as_me:$LINENO: checking for size_t" >&5
16929 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16930 if test "${ac_cv_type_size_t+set}" = set; then
16931   echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933   cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h.  */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h.  */
16939 $ac_includes_default
16940 typedef size_t ac__type_new_;
16941 int
16942 main ()
16943 {
16944 if ((ac__type_new_ *) 0)
16945   return 0;
16946 if (sizeof (ac__type_new_))
16947   return 0;
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext
16953 if { (ac_try="$ac_compile"
16954 case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_compile") 2>conftest.er1
16960   ac_status=$?
16961   grep -v '^ *+' conftest.er1 >conftest.err
16962   rm -f conftest.er1
16963   cat conftest.err >&5
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } &&
16966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967   { (case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_try") 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; } &&
16976          { ac_try='test -s conftest.$ac_objext'
16977   { (case "(($ac_try" in
16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979   *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982   (eval "$ac_try") 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_type_size_t=yes
16987 else
16988   echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991         ac_cv_type_size_t=no
16992 fi
16993
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 fi
16996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16998 if test $ac_cv_type_size_t = yes; then
16999   :
17000 else
17001
17002 cat >>confdefs.h <<_ACEOF
17003 #define size_t unsigned int
17004 _ACEOF
17005
17006 fi
17007
17008
17009 cat >>confdefs.h <<_ACEOF
17010 #define RETSIGTYPE void
17011 _ACEOF
17012
17013 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17014 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17015 if test "${ac_cv_struct_tm+set}" = set; then
17016   echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018   cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024 #include <sys/types.h>
17025 #include <time.h>
17026
17027 int
17028 main ()
17029 {
17030 struct tm *tp; tp->tm_sec;
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042   (eval "$ac_compile") 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050   { (case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055   (eval "$ac_try") 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; } &&
17059          { ac_try='test -s conftest.$ac_objext'
17060   { (case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_try") 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); }; }; then
17069   ac_cv_struct_tm=time.h
17070 else
17071   echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074         ac_cv_struct_tm=sys/time.h
17075 fi
17076
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 fi
17079 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17080 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17081 if test $ac_cv_struct_tm = sys/time.h; then
17082
17083 cat >>confdefs.h <<\_ACEOF
17084 #define TM_IN_SYS_TIME 1
17085 _ACEOF
17086
17087 fi
17088
17089 { echo "$as_me:$LINENO: checking for int64_t" >&5
17090 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17091 if test "${ac_cv_type_int64_t+set}" = set; then
17092   echo $ECHO_N "(cached) $ECHO_C" >&6
17093 else
17094   cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100 $ac_includes_default
17101 typedef int64_t ac__type_new_;
17102 int
17103 main ()
17104 {
17105 if ((ac__type_new_ *) 0)
17106   return 0;
17107 if (sizeof (ac__type_new_))
17108   return 0;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_compile") 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128   { (case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_try") 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } &&
17137          { ac_try='test -s conftest.$ac_objext'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_cv_type_int64_t=yes
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152         ac_cv_type_int64_t=no
17153 fi
17154
17155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156 fi
17157 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17158 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17159 if test $ac_cv_type_int64_t = yes; then
17160
17161 cat >>confdefs.h <<_ACEOF
17162 #define HAVE_INT64_T 1
17163 _ACEOF
17164
17165
17166 else
17167   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17168 echo "$as_me: error: Type int64_t required but not found" >&2;}
17169    { (exit 1); exit 1; }; }
17170 fi
17171
17172 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17173 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17174 if test "${ac_cv_type_uint64_t+set}" = set; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h.  */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h.  */
17183 $ac_includes_default
17184 typedef uint64_t ac__type_new_;
17185 int
17186 main ()
17187 {
17188 if ((ac__type_new_ *) 0)
17189   return 0;
17190 if (sizeof (ac__type_new_))
17191   return 0;
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (ac_try="$ac_compile"
17198 case "(($ac_try" in
17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200   *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203   (eval "$ac_compile") 2>conftest.er1
17204   ac_status=$?
17205   grep -v '^ *+' conftest.er1 >conftest.err
17206   rm -f conftest.er1
17207   cat conftest.err >&5
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } &&
17210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211   { (case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_try") 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; } &&
17220          { ac_try='test -s conftest.$ac_objext'
17221   { (case "(($ac_try" in
17222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223   *) ac_try_echo=$ac_try;;
17224 esac
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226   (eval "$ac_try") 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   ac_cv_type_uint64_t=yes
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235         ac_cv_type_uint64_t=no
17236 fi
17237
17238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17239 fi
17240 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17241 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17242 if test $ac_cv_type_uint64_t = yes; then
17243
17244 cat >>confdefs.h <<_ACEOF
17245 #define HAVE_UINT64_T 1
17246 _ACEOF
17247
17248
17249 else
17250   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17251 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17252 if test "${ac_cv_type_u_int64_t+set}" = set; then
17253   echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255   cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h.  */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h.  */
17261 $ac_includes_default
17262 typedef u_int64_t ac__type_new_;
17263 int
17264 main ()
17265 {
17266 if ((ac__type_new_ *) 0)
17267   return 0;
17268 if (sizeof (ac__type_new_))
17269   return 0;
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_compile") 2>conftest.er1
17282   ac_status=$?
17283   grep -v '^ *+' conftest.er1 >conftest.err
17284   rm -f conftest.er1
17285   cat conftest.err >&5
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); } &&
17288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17289   { (case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_try") 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; } &&
17298          { ac_try='test -s conftest.$ac_objext'
17299   { (case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_try") 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; }; then
17308   ac_cv_type_u_int64_t=yes
17309 else
17310   echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313         ac_cv_type_u_int64_t=no
17314 fi
17315
17316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 fi
17318 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17319 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17320 if test $ac_cv_type_u_int64_t = yes; then
17321
17322 cat >>confdefs.h <<_ACEOF
17323 #define HAVE_U_INT64_T 1
17324 _ACEOF
17325
17326
17327 else
17328   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17329 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17330    { (exit 1); exit 1; }; }
17331 fi
17332
17333 fi
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17345 do
17346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17360 #define $ac_func innocuous_$ac_func
17361
17362 /* System header to define __stub macros and hopefully few prototypes,
17363     which can conflict with char $ac_func (); below.
17364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17365     <limits.h> exists even on freestanding compilers.  */
17366
17367 #ifdef __STDC__
17368 # include <limits.h>
17369 #else
17370 # include <assert.h>
17371 #endif
17372
17373 #undef $ac_func
17374
17375 /* Override any GCC internal prototype to avoid an error.
17376    Use char because int might match the return type of a GCC
17377    builtin and then its argument prototype would still apply.  */
17378 #ifdef __cplusplus
17379 extern "C"
17380 #endif
17381 char $ac_func ();
17382 /* The GNU C library defines this for functions which it implements
17383     to always fail with ENOSYS.  Some functions are actually named
17384     something starting with __ and the normal name is an alias.  */
17385 #if defined __stub_$ac_func || defined __stub___$ac_func
17386 choke me
17387 #endif
17388
17389 int
17390 main ()
17391 {
17392 return $ac_func ();
17393   ;
17394   return 0;
17395 }
17396 _ACEOF
17397 rm -f conftest.$ac_objext conftest$ac_exeext
17398 if { (ac_try="$ac_link"
17399 case "(($ac_try" in
17400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401   *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404   (eval "$ac_link") 2>conftest.er1
17405   ac_status=$?
17406   grep -v '^ *+' conftest.er1 >conftest.err
17407   rm -f conftest.er1
17408   cat conftest.err >&5
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); } &&
17411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412   { (case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_try") 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; } &&
17421          { ac_try='test -s conftest$ac_exeext'
17422   { (case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_try") 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; }; then
17431   eval "$as_ac_var=yes"
17432 else
17433   echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17435
17436         eval "$as_ac_var=no"
17437 fi
17438
17439 rm -f core conftest.err conftest.$ac_objext \
17440       conftest$ac_exeext conftest.$ac_ext
17441 fi
17442 ac_res=`eval echo '${'$as_ac_var'}'`
17443                { echo "$as_me:$LINENO: result: $ac_res" >&5
17444 echo "${ECHO_T}$ac_res" >&6; }
17445 if test `eval echo '${'$as_ac_var'}'` = yes; then
17446   cat >>confdefs.h <<_ACEOF
17447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17448 _ACEOF
17449
17450 fi
17451 done
17452
17453
17454
17455
17456
17457 for ac_func in powf fmodf strtof round
17458 do
17459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17463   echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465   cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h.  */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h.  */
17471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17473 #define $ac_func innocuous_$ac_func
17474
17475 /* System header to define __stub macros and hopefully few prototypes,
17476     which can conflict with char $ac_func (); below.
17477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17478     <limits.h> exists even on freestanding compilers.  */
17479
17480 #ifdef __STDC__
17481 # include <limits.h>
17482 #else
17483 # include <assert.h>
17484 #endif
17485
17486 #undef $ac_func
17487
17488 /* Override any GCC internal prototype to avoid an error.
17489    Use char because int might match the return type of a GCC
17490    builtin and then its argument prototype would still apply.  */
17491 #ifdef __cplusplus
17492 extern "C"
17493 #endif
17494 char $ac_func ();
17495 /* The GNU C library defines this for functions which it implements
17496     to always fail with ENOSYS.  Some functions are actually named
17497     something starting with __ and the normal name is an alias.  */
17498 #if defined __stub_$ac_func || defined __stub___$ac_func
17499 choke me
17500 #endif
17501
17502 int
17503 main ()
17504 {
17505 return $ac_func ();
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_link") 2>conftest.er1
17518   ac_status=$?
17519   grep -v '^ *+' conftest.er1 >conftest.err
17520   rm -f conftest.er1
17521   cat conftest.err >&5
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); } &&
17524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17525   { (case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530   (eval "$ac_try") 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; } &&
17534          { ac_try='test -s conftest$ac_exeext'
17535   { (case "(($ac_try" in
17536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537   *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540   (eval "$ac_try") 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); }; }; then
17544   eval "$as_ac_var=yes"
17545 else
17546   echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549         eval "$as_ac_var=no"
17550 fi
17551
17552 rm -f core conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 ac_res=`eval echo '${'$as_ac_var'}'`
17556                { echo "$as_me:$LINENO: result: $ac_res" >&5
17557 echo "${ECHO_T}$ac_res" >&6; }
17558 if test `eval echo '${'$as_ac_var'}'` = yes; then
17559   cat >>confdefs.h <<_ACEOF
17560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17561 _ACEOF
17562
17563 fi
17564 done
17565
17566
17567
17568
17569
17570
17571 for ac_func in log log2 log10 exp exp2
17572 do
17573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579   cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h.  */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h.  */
17585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17587 #define $ac_func innocuous_$ac_func
17588
17589 /* System header to define __stub macros and hopefully few prototypes,
17590     which can conflict with char $ac_func (); below.
17591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17592     <limits.h> exists even on freestanding compilers.  */
17593
17594 #ifdef __STDC__
17595 # include <limits.h>
17596 #else
17597 # include <assert.h>
17598 #endif
17599
17600 #undef $ac_func
17601
17602 /* Override any GCC internal prototype to avoid an error.
17603    Use char because int might match the return type of a GCC
17604    builtin and then its argument prototype would still apply.  */
17605 #ifdef __cplusplus
17606 extern "C"
17607 #endif
17608 char $ac_func ();
17609 /* The GNU C library defines this for functions which it implements
17610     to always fail with ENOSYS.  Some functions are actually named
17611     something starting with __ and the normal name is an alias.  */
17612 #if defined __stub_$ac_func || defined __stub___$ac_func
17613 choke me
17614 #endif
17615
17616 int
17617 main ()
17618 {
17619 return $ac_func ();
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_link") 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } &&
17638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17639   { (case "(($ac_try" in
17640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641   *) ac_try_echo=$ac_try;;
17642 esac
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644   (eval "$ac_try") 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; } &&
17648          { ac_try='test -s conftest$ac_exeext'
17649   { (case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654   (eval "$ac_try") 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; }; then
17658   eval "$as_ac_var=yes"
17659 else
17660   echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663         eval "$as_ac_var=no"
17664 fi
17665
17666 rm -f core conftest.err conftest.$ac_objext \
17667       conftest$ac_exeext conftest.$ac_ext
17668 fi
17669 ac_res=`eval echo '${'$as_ac_var'}'`
17670                { echo "$as_me:$LINENO: result: $ac_res" >&5
17671 echo "${ECHO_T}$ac_res" >&6; }
17672 if test `eval echo '${'$as_ac_var'}'` = yes; then
17673   cat >>confdefs.h <<_ACEOF
17674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17675 _ACEOF
17676
17677 fi
17678 done
17679
17680
17681
17682
17683
17684
17685 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17686 do
17687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17701 #define $ac_func innocuous_$ac_func
17702
17703 /* System header to define __stub macros and hopefully few prototypes,
17704     which can conflict with char $ac_func (); below.
17705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706     <limits.h> exists even on freestanding compilers.  */
17707
17708 #ifdef __STDC__
17709 # include <limits.h>
17710 #else
17711 # include <assert.h>
17712 #endif
17713
17714 #undef $ac_func
17715
17716 /* Override any GCC internal prototype to avoid an error.
17717    Use char because int might match the return type of a GCC
17718    builtin and then its argument prototype would still apply.  */
17719 #ifdef __cplusplus
17720 extern "C"
17721 #endif
17722 char $ac_func ();
17723 /* The GNU C library defines this for functions which it implements
17724     to always fail with ENOSYS.  Some functions are actually named
17725     something starting with __ and the normal name is an alias.  */
17726 #if defined __stub_$ac_func || defined __stub___$ac_func
17727 choke me
17728 #endif
17729
17730 int
17731 main ()
17732 {
17733 return $ac_func ();
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745   (eval "$ac_link") 2>conftest.er1
17746   ac_status=$?
17747   grep -v '^ *+' conftest.er1 >conftest.err
17748   rm -f conftest.er1
17749   cat conftest.err >&5
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); } &&
17752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753   { (case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758   (eval "$ac_try") 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest$ac_exeext'
17763   { (case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_try") 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; }; then
17772   eval "$as_ac_var=yes"
17773 else
17774   echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777         eval "$as_ac_var=no"
17778 fi
17779
17780 rm -f core conftest.err conftest.$ac_objext \
17781       conftest$ac_exeext conftest.$ac_ext
17782 fi
17783 ac_res=`eval echo '${'$as_ac_var'}'`
17784                { echo "$as_me:$LINENO: result: $ac_res" >&5
17785 echo "${ECHO_T}$ac_res" >&6; }
17786 if test `eval echo '${'$as_ac_var'}'` = yes; then
17787   cat >>confdefs.h <<_ACEOF
17788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17789 _ACEOF
17790
17791 fi
17792 done
17793
17794
17795
17796
17797 for ac_func in isatty mkdtemp mkstemp
17798 do
17799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17803   echo $ECHO_N "(cached) $ECHO_C" >&6
17804 else
17805   cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h.  */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h.  */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17813 #define $ac_func innocuous_$ac_func
17814
17815 /* System header to define __stub macros and hopefully few prototypes,
17816     which can conflict with char $ac_func (); below.
17817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818     <limits.h> exists even on freestanding compilers.  */
17819
17820 #ifdef __STDC__
17821 # include <limits.h>
17822 #else
17823 # include <assert.h>
17824 #endif
17825
17826 #undef $ac_func
17827
17828 /* Override any GCC internal prototype to avoid an error.
17829    Use char because int might match the return type of a GCC
17830    builtin and then its argument prototype would still apply.  */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 char $ac_func ();
17835 /* The GNU C library defines this for functions which it implements
17836     to always fail with ENOSYS.  Some functions are actually named
17837     something starting with __ and the normal name is an alias.  */
17838 #if defined __stub_$ac_func || defined __stub___$ac_func
17839 choke me
17840 #endif
17841
17842 int
17843 main ()
17844 {
17845 return $ac_func ();
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (ac_try="$ac_link"
17852 case "(($ac_try" in
17853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854   *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857   (eval "$ac_link") 2>conftest.er1
17858   ac_status=$?
17859   grep -v '^ *+' conftest.er1 >conftest.err
17860   rm -f conftest.er1
17861   cat conftest.err >&5
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); } &&
17864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17865   { (case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_try") 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; } &&
17874          { ac_try='test -s conftest$ac_exeext'
17875   { (case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_try") 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; }; then
17884   eval "$as_ac_var=yes"
17885 else
17886   echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889         eval "$as_ac_var=no"
17890 fi
17891
17892 rm -f core conftest.err conftest.$ac_objext \
17893       conftest$ac_exeext conftest.$ac_ext
17894 fi
17895 ac_res=`eval echo '${'$as_ac_var'}'`
17896                { echo "$as_me:$LINENO: result: $ac_res" >&5
17897 echo "${ECHO_T}$ac_res" >&6; }
17898 if test `eval echo '${'$as_ac_var'}'` = yes; then
17899   cat >>confdefs.h <<_ACEOF
17900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17901 _ACEOF
17902
17903 fi
17904 done
17905
17906
17907
17908
17909
17910
17911
17912 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
17913 do
17914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17918   echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920   cat >conftest.$ac_ext <<_ACEOF
17921 /* confdefs.h.  */
17922 _ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h.  */
17926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17928 #define $ac_func innocuous_$ac_func
17929
17930 /* System header to define __stub macros and hopefully few prototypes,
17931     which can conflict with char $ac_func (); below.
17932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17933     <limits.h> exists even on freestanding compilers.  */
17934
17935 #ifdef __STDC__
17936 # include <limits.h>
17937 #else
17938 # include <assert.h>
17939 #endif
17940
17941 #undef $ac_func
17942
17943 /* Override any GCC internal prototype to avoid an error.
17944    Use char because int might match the return type of a GCC
17945    builtin and then its argument prototype would still apply.  */
17946 #ifdef __cplusplus
17947 extern "C"
17948 #endif
17949 char $ac_func ();
17950 /* The GNU C library defines this for functions which it implements
17951     to always fail with ENOSYS.  Some functions are actually named
17952     something starting with __ and the normal name is an alias.  */
17953 #if defined __stub_$ac_func || defined __stub___$ac_func
17954 choke me
17955 #endif
17956
17957 int
17958 main ()
17959 {
17960 return $ac_func ();
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext conftest$ac_exeext
17966 if { (ac_try="$ac_link"
17967 case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_link") 2>conftest.er1
17973   ac_status=$?
17974   grep -v '^ *+' conftest.er1 >conftest.err
17975   rm -f conftest.er1
17976   cat conftest.err >&5
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); } &&
17979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17980   { (case "(($ac_try" in
17981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982   *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985   (eval "$ac_try") 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); }; } &&
17989          { ac_try='test -s conftest$ac_exeext'
17990   { (case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_try") 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; }; then
17999   eval "$as_ac_var=yes"
18000 else
18001   echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18003
18004         eval "$as_ac_var=no"
18005 fi
18006
18007 rm -f core conftest.err conftest.$ac_objext \
18008       conftest$ac_exeext conftest.$ac_ext
18009 fi
18010 ac_res=`eval echo '${'$as_ac_var'}'`
18011                { echo "$as_me:$LINENO: result: $ac_res" >&5
18012 echo "${ECHO_T}$ac_res" >&6; }
18013 if test `eval echo '${'$as_ac_var'}'` = yes; then
18014   cat >>confdefs.h <<_ACEOF
18015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18016 _ACEOF
18017
18018 fi
18019 done
18020
18021
18022
18023
18024
18025 for ac_func in strerror strerror_r setenv arc4random
18026 do
18027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18031   echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033   cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18041 #define $ac_func innocuous_$ac_func
18042
18043 /* System header to define __stub macros and hopefully few prototypes,
18044     which can conflict with char $ac_func (); below.
18045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18046     <limits.h> exists even on freestanding compilers.  */
18047
18048 #ifdef __STDC__
18049 # include <limits.h>
18050 #else
18051 # include <assert.h>
18052 #endif
18053
18054 #undef $ac_func
18055
18056 /* Override any GCC internal prototype to avoid an error.
18057    Use char because int might match the return type of a GCC
18058    builtin and then its argument prototype would still apply.  */
18059 #ifdef __cplusplus
18060 extern "C"
18061 #endif
18062 char $ac_func ();
18063 /* The GNU C library defines this for functions which it implements
18064     to always fail with ENOSYS.  Some functions are actually named
18065     something starting with __ and the normal name is an alias.  */
18066 #if defined __stub_$ac_func || defined __stub___$ac_func
18067 choke me
18068 #endif
18069
18070 int
18071 main ()
18072 {
18073 return $ac_func ();
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (ac_try="$ac_link"
18080 case "(($ac_try" in
18081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082   *) ac_try_echo=$ac_try;;
18083 esac
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085   (eval "$ac_link") 2>conftest.er1
18086   ac_status=$?
18087   grep -v '^ *+' conftest.er1 >conftest.err
18088   rm -f conftest.er1
18089   cat conftest.err >&5
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); } &&
18092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18093   { (case "(($ac_try" in
18094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095   *) ac_try_echo=$ac_try;;
18096 esac
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098   (eval "$ac_try") 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; } &&
18102          { ac_try='test -s conftest$ac_exeext'
18103   { (case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108   (eval "$ac_try") 2>&5
18109   ac_status=$?
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); }; }; then
18112   eval "$as_ac_var=yes"
18113 else
18114   echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18116
18117         eval "$as_ac_var=no"
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext \
18121       conftest$ac_exeext conftest.$ac_ext
18122 fi
18123 ac_res=`eval echo '${'$as_ac_var'}'`
18124                { echo "$as_me:$LINENO: result: $ac_res" >&5
18125 echo "${ECHO_T}$ac_res" >&6; }
18126 if test `eval echo '${'$as_ac_var'}'` = yes; then
18127   cat >>confdefs.h <<_ACEOF
18128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18129 _ACEOF
18130
18131 fi
18132 done
18133
18134
18135
18136
18137
18138 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18139 do
18140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146   cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18154 #define $ac_func innocuous_$ac_func
18155
18156 /* System header to define __stub macros and hopefully few prototypes,
18157     which can conflict with char $ac_func (); below.
18158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159     <limits.h> exists even on freestanding compilers.  */
18160
18161 #ifdef __STDC__
18162 # include <limits.h>
18163 #else
18164 # include <assert.h>
18165 #endif
18166
18167 #undef $ac_func
18168
18169 /* Override any GCC internal prototype to avoid an error.
18170    Use char because int might match the return type of a GCC
18171    builtin and then its argument prototype would still apply.  */
18172 #ifdef __cplusplus
18173 extern "C"
18174 #endif
18175 char $ac_func ();
18176 /* The GNU C library defines this for functions which it implements
18177     to always fail with ENOSYS.  Some functions are actually named
18178     something starting with __ and the normal name is an alias.  */
18179 #if defined __stub_$ac_func || defined __stub___$ac_func
18180 choke me
18181 #endif
18182
18183 int
18184 main ()
18185 {
18186 return $ac_func ();
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195   *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198   (eval "$ac_link") 2>conftest.er1
18199   ac_status=$?
18200   grep -v '^ *+' conftest.er1 >conftest.err
18201   rm -f conftest.er1
18202   cat conftest.err >&5
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); } &&
18205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18206   { (case "(($ac_try" in
18207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208   *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211   (eval "$ac_try") 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); }; } &&
18215          { ac_try='test -s conftest$ac_exeext'
18216   { (case "(($ac_try" in
18217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218   *) ac_try_echo=$ac_try;;
18219 esac
18220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221   (eval "$ac_try") 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; }; then
18225   eval "$as_ac_var=yes"
18226 else
18227   echo "$as_me: failed program was:" >&5
18228 sed 's/^/| /' conftest.$ac_ext >&5
18229
18230         eval "$as_ac_var=no"
18231 fi
18232
18233 rm -f core conftest.err conftest.$ac_objext \
18234       conftest$ac_exeext conftest.$ac_ext
18235 fi
18236 ac_res=`eval echo '${'$as_ac_var'}'`
18237                { echo "$as_me:$LINENO: result: $ac_res" >&5
18238 echo "${ECHO_T}$ac_res" >&6; }
18239 if test `eval echo '${'$as_ac_var'}'` = yes; then
18240   cat >>confdefs.h <<_ACEOF
18241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18242 _ACEOF
18243
18244 fi
18245 done
18246
18247
18248
18249
18250
18251
18252 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18253 do
18254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18268 #define $ac_func innocuous_$ac_func
18269
18270 /* System header to define __stub macros and hopefully few prototypes,
18271     which can conflict with char $ac_func (); below.
18272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273     <limits.h> exists even on freestanding compilers.  */
18274
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18280
18281 #undef $ac_func
18282
18283 /* Override any GCC internal prototype to avoid an error.
18284    Use char because int might match the return type of a GCC
18285    builtin and then its argument prototype would still apply.  */
18286 #ifdef __cplusplus
18287 extern "C"
18288 #endif
18289 char $ac_func ();
18290 /* The GNU C library defines this for functions which it implements
18291     to always fail with ENOSYS.  Some functions are actually named
18292     something starting with __ and the normal name is an alias.  */
18293 #if defined __stub_$ac_func || defined __stub___$ac_func
18294 choke me
18295 #endif
18296
18297 int
18298 main ()
18299 {
18300 return $ac_func ();
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309   *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312   (eval "$ac_link") 2>conftest.er1
18313   ac_status=$?
18314   grep -v '^ *+' conftest.er1 >conftest.err
18315   rm -f conftest.er1
18316   cat conftest.err >&5
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); } &&
18319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18320   { (case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325   (eval "$ac_try") 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; } &&
18329          { ac_try='test -s conftest$ac_exeext'
18330   { (case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_try") 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   eval "$as_ac_var=yes"
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         eval "$as_ac_var=no"
18345 fi
18346
18347 rm -f core conftest.err conftest.$ac_objext \
18348       conftest$ac_exeext conftest.$ac_ext
18349 fi
18350 ac_res=`eval echo '${'$as_ac_var'}'`
18351                { echo "$as_me:$LINENO: result: $ac_res" >&5
18352 echo "${ECHO_T}$ac_res" >&6; }
18353 if test `eval echo '${'$as_ac_var'}'` = yes; then
18354   cat >>confdefs.h <<_ACEOF
18355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18356 _ACEOF
18357
18358 fi
18359 done
18360
18361
18362
18363 for ac_func in futimes futimens
18364 do
18365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18369   echo $ECHO_N "(cached) $ECHO_C" >&6
18370 else
18371   cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18379 #define $ac_func innocuous_$ac_func
18380
18381 /* System header to define __stub macros and hopefully few prototypes,
18382     which can conflict with char $ac_func (); below.
18383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18384     <limits.h> exists even on freestanding compilers.  */
18385
18386 #ifdef __STDC__
18387 # include <limits.h>
18388 #else
18389 # include <assert.h>
18390 #endif
18391
18392 #undef $ac_func
18393
18394 /* Override any GCC internal prototype to avoid an error.
18395    Use char because int might match the return type of a GCC
18396    builtin and then its argument prototype would still apply.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 char $ac_func ();
18401 /* The GNU C library defines this for functions which it implements
18402     to always fail with ENOSYS.  Some functions are actually named
18403     something starting with __ and the normal name is an alias.  */
18404 #if defined __stub_$ac_func || defined __stub___$ac_func
18405 choke me
18406 #endif
18407
18408 int
18409 main ()
18410 {
18411 return $ac_func ();
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420   *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423   (eval "$ac_link") 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18431   { (case "(($ac_try" in
18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433   *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436   (eval "$ac_try") 2>&5
18437   ac_status=$?
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); }; } &&
18440          { ac_try='test -s conftest$ac_exeext'
18441   { (case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_try") 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; }; then
18450   eval "$as_ac_var=yes"
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455         eval "$as_ac_var=no"
18456 fi
18457
18458 rm -f core conftest.err conftest.$ac_objext \
18459       conftest$ac_exeext conftest.$ac_ext
18460 fi
18461 ac_res=`eval echo '${'$as_ac_var'}'`
18462                { echo "$as_me:$LINENO: result: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18464 if test `eval echo '${'$as_ac_var'}'` = yes; then
18465   cat >>confdefs.h <<_ACEOF
18466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18467 _ACEOF
18468
18469 fi
18470 done
18471
18472 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18473 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18474 if test "${llvm_cv_c_printf_a+set}" = set; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477   ac_ext=c
18478 ac_cpp='$CPP $CPPFLAGS'
18479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18482
18483  if test "$cross_compiling" = yes; then
18484   llvmac_cv_c_printf_a=no
18485 else
18486   cat >conftest.$ac_ext <<_ACEOF
18487
18488   /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493
18494 #include <stdio.h>
18495 #include <stdlib.h>
18496
18497 int
18498 main ()
18499 {
18500
18501 volatile double A, B;
18502 char Buffer[100];
18503 A = 1;
18504 A /= 10.0;
18505 sprintf(Buffer, "%a", A);
18506 B = atof(Buffer);
18507 if (A != B)
18508   return (1);
18509 if (A != 0x1.999999999999ap-4)
18510   return (1);
18511 return (0);
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 rm -f conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520   *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523   (eval "$ac_link") 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18527   { (case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_try") 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; }; then
18536   llvm_cv_c_printf_a=yes
18537 else
18538   echo "$as_me: program exited with status $ac_status" >&5
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18541
18542 ( exit $ac_status )
18543 llvmac_cv_c_printf_a=no
18544 fi
18545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18546 fi
18547
18548
18549  ac_ext=c
18550 ac_cpp='$CPP $CPPFLAGS'
18551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18554
18555 fi
18556 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18557 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18558  if test "$llvm_cv_c_printf_a" = "yes"; then
18559
18560 cat >>confdefs.h <<\_ACEOF
18561 #define HAVE_PRINTF_A 1
18562 _ACEOF
18563
18564  fi
18565
18566
18567
18568   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18569 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18570 if test "${ac_cv_func_rand48+set}" = set; then
18571   echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573
18574     ac_ext=cpp
18575 ac_cpp='$CXXCPP $CPPFLAGS'
18576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18579
18580     cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h.  */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h.  */
18586 #include <stdlib.h>
18587 int
18588 main ()
18589 {
18590 srand48(0);lrand48();drand48();
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext
18596 if { (ac_try="$ac_compile"
18597 case "(($ac_try" in
18598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599   *) ac_try_echo=$ac_try;;
18600 esac
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602   (eval "$ac_compile") 2>conftest.er1
18603   ac_status=$?
18604   grep -v '^ *+' conftest.er1 >conftest.err
18605   rm -f conftest.er1
18606   cat conftest.err >&5
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } &&
18609          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18610   { (case "(($ac_try" in
18611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612   *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615   (eval "$ac_try") 2>&5
18616   ac_status=$?
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); }; } &&
18619          { ac_try='test -s conftest.$ac_objext'
18620   { (case "(($ac_try" in
18621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622   *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625   (eval "$ac_try") 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   ac_cv_func_rand48=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634         ac_cv_func_rand48=no
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638     ac_ext=c
18639 ac_cpp='$CPP $CPPFLAGS'
18640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18643
18644
18645 fi
18646 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18647 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18648
18649 if test "$ac_cv_func_rand48" = "yes" ; then
18650
18651 cat >>confdefs.h <<\_ACEOF
18652 #define HAVE_RAND48 1
18653 _ACEOF
18654
18655 fi
18656
18657
18658 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18659 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18660 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669 $ac_includes_default
18670 int
18671 main ()
18672 {
18673 #ifndef strerror_s
18674   char *p = (char *) strerror_s;
18675   return !p;
18676 #endif
18677
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_compile") 2>conftest.er1
18690   ac_status=$?
18691   grep -v '^ *+' conftest.er1 >conftest.err
18692   rm -f conftest.er1
18693   cat conftest.err >&5
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); } &&
18696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_try") 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; } &&
18706          { ac_try='test -s conftest.$ac_objext'
18707   { (case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_try") 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; }; then
18716   ac_cv_have_decl_strerror_s=yes
18717 else
18718   echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721         ac_cv_have_decl_strerror_s=no
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 fi
18726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18727 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18728 if test $ac_cv_have_decl_strerror_s = yes; then
18729
18730 cat >>confdefs.h <<_ACEOF
18731 #define HAVE_DECL_STRERROR_S 1
18732 _ACEOF
18733
18734
18735 else
18736   cat >>confdefs.h <<_ACEOF
18737 #define HAVE_DECL_STRERROR_S 0
18738 _ACEOF
18739
18740
18741 fi
18742
18743
18744
18745 if test "$llvm_cv_os_type" = "MingW" ; then
18746   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18747 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18748 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18749   echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751   ac_check_lib_save_LIBS=$LIBS
18752 LIBS="-lgcc  $LIBS"
18753 cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759
18760 /* Override any GCC internal prototype to avoid an error.
18761    Use char because int might match the return type of a GCC
18762    builtin and then its argument prototype would still apply.  */
18763 #ifdef __cplusplus
18764 extern "C"
18765 #endif
18766 char _alloca ();
18767 int
18768 main ()
18769 {
18770 return _alloca ();
18771   ;
18772   return 0;
18773 }
18774 _ACEOF
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_link") 2>conftest.er1
18783   ac_status=$?
18784   grep -v '^ *+' conftest.er1 >conftest.err
18785   rm -f conftest.er1
18786   cat conftest.err >&5
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } &&
18789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790   { (case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_try") 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; } &&
18799          { ac_try='test -s conftest$ac_exeext'
18800   { (case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_try") 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   ac_cv_lib_gcc__alloca=yes
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814         ac_cv_lib_gcc__alloca=no
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18820 fi
18821 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18822 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18823 if test $ac_cv_lib_gcc__alloca = yes; then
18824
18825 cat >>confdefs.h <<\_ACEOF
18826 #define HAVE__ALLOCA 1
18827 _ACEOF
18828
18829 fi
18830
18831   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18832 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18833 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18834   echo $ECHO_N "(cached) $ECHO_C" >&6
18835 else
18836   ac_check_lib_save_LIBS=$LIBS
18837 LIBS="-lgcc  $LIBS"
18838 cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846    Use char because int might match the return type of a GCC
18847    builtin and then its argument prototype would still apply.  */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char __alloca ();
18852 int
18853 main ()
18854 {
18855 return __alloca ();
18856   ;
18857   return 0;
18858 }
18859 _ACEOF
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (ac_try="$ac_link"
18862 case "(($ac_try" in
18863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864   *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867   (eval "$ac_link") 2>conftest.er1
18868   ac_status=$?
18869   grep -v '^ *+' conftest.er1 >conftest.err
18870   rm -f conftest.er1
18871   cat conftest.err >&5
18872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873   (exit $ac_status); } &&
18874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875   { (case "(($ac_try" in
18876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877   *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880   (eval "$ac_try") 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); }; } &&
18884          { ac_try='test -s conftest$ac_exeext'
18885   { (case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_try") 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_lib_gcc___alloca=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899         ac_cv_lib_gcc___alloca=no
18900 fi
18901
18902 rm -f core conftest.err conftest.$ac_objext \
18903       conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18905 fi
18906 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18907 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18908 if test $ac_cv_lib_gcc___alloca = yes; then
18909
18910 cat >>confdefs.h <<\_ACEOF
18911 #define HAVE___ALLOCA 1
18912 _ACEOF
18913
18914 fi
18915
18916   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18917 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18918 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lgcc  $LIBS"
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h.  */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h.  */
18929
18930 /* Override any GCC internal prototype to avoid an error.
18931    Use char because int might match the return type of a GCC
18932    builtin and then its argument prototype would still apply.  */
18933 #ifdef __cplusplus
18934 extern "C"
18935 #endif
18936 char __chkstk ();
18937 int
18938 main ()
18939 {
18940 return __chkstk ();
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_link") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } &&
18959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960   { (case "(($ac_try" in
18961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962   *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965   (eval "$ac_try") 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; } &&
18969          { ac_try='test -s conftest$ac_exeext'
18970   { (case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_try") 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; }; then
18979   ac_cv_lib_gcc___chkstk=yes
18980 else
18981   echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984         ac_cv_lib_gcc___chkstk=no
18985 fi
18986
18987 rm -f core conftest.err conftest.$ac_objext \
18988       conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18990 fi
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18992 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18993 if test $ac_cv_lib_gcc___chkstk = yes; then
18994
18995 cat >>confdefs.h <<\_ACEOF
18996 #define HAVE___CHKSTK 1
18997 _ACEOF
18998
18999 fi
19000
19001   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19002 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19003 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19004   echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006   ac_check_lib_save_LIBS=$LIBS
19007 LIBS="-lgcc  $LIBS"
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014
19015 /* Override any GCC internal prototype to avoid an error.
19016    Use char because int might match the return type of a GCC
19017    builtin and then its argument prototype would still apply.  */
19018 #ifdef __cplusplus
19019 extern "C"
19020 #endif
19021 char ___chkstk ();
19022 int
19023 main ()
19024 {
19025 return ___chkstk ();
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_link") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } &&
19044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19045   { (case "(($ac_try" in
19046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047   *) ac_try_echo=$ac_try;;
19048 esac
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050   (eval "$ac_try") 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); }; } &&
19054          { ac_try='test -s conftest$ac_exeext'
19055   { (case "(($ac_try" in
19056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057   *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060   (eval "$ac_try") 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; }; then
19064   ac_cv_lib_gcc____chkstk=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_cv_lib_gcc____chkstk=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext \
19073       conftest$ac_exeext conftest.$ac_ext
19074 LIBS=$ac_check_lib_save_LIBS
19075 fi
19076 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19077 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19078 if test $ac_cv_lib_gcc____chkstk = yes; then
19079
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE____CHKSTK 1
19082 _ACEOF
19083
19084 fi
19085
19086
19087   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19088 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19089 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lgcc  $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101 /* Override any GCC internal prototype to avoid an error.
19102    Use char because int might match the return type of a GCC
19103    builtin and then its argument prototype would still apply.  */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 char __ashldi3 ();
19108 int
19109 main ()
19110 {
19111 return __ashldi3 ();
19112   ;
19113   return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_link") 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; } &&
19140          { ac_try='test -s conftest$ac_exeext'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150   ac_cv_lib_gcc___ashldi3=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         ac_cv_lib_gcc___ashldi3=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext \
19159       conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19161 fi
19162 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19163 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19164 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19165
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE___ASHLDI3 1
19168 _ACEOF
19169
19170 fi
19171
19172   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19173 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19174 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   ac_check_lib_save_LIBS=$LIBS
19178 LIBS="-lgcc  $LIBS"
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185
19186 /* Override any GCC internal prototype to avoid an error.
19187    Use char because int might match the return type of a GCC
19188    builtin and then its argument prototype would still apply.  */
19189 #ifdef __cplusplus
19190 extern "C"
19191 #endif
19192 char __ashrdi3 ();
19193 int
19194 main ()
19195 {
19196 return __ashrdi3 ();
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_link") 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216   { (case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_try") 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; } &&
19225          { ac_try='test -s conftest$ac_exeext'
19226   { (case "(($ac_try" in
19227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228   *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231   (eval "$ac_try") 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; }; then
19235   ac_cv_lib_gcc___ashrdi3=yes
19236 else
19237   echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240         ac_cv_lib_gcc___ashrdi3=no
19241 fi
19242
19243 rm -f core conftest.err conftest.$ac_objext \
19244       conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19246 fi
19247 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19248 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19249 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19250
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE___ASHRDI3 1
19253 _ACEOF
19254
19255 fi
19256
19257   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19258 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19259 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19260   echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262   ac_check_lib_save_LIBS=$LIBS
19263 LIBS="-lgcc  $LIBS"
19264 cat >conftest.$ac_ext <<_ACEOF
19265 /* confdefs.h.  */
19266 _ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h.  */
19270
19271 /* Override any GCC internal prototype to avoid an error.
19272    Use char because int might match the return type of a GCC
19273    builtin and then its argument prototype would still apply.  */
19274 #ifdef __cplusplus
19275 extern "C"
19276 #endif
19277 char __divdi3 ();
19278 int
19279 main ()
19280 {
19281 return __divdi3 ();
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_link") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } &&
19300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19301   { (case "(($ac_try" in
19302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303   *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306   (eval "$ac_try") 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; } &&
19310          { ac_try='test -s conftest$ac_exeext'
19311   { (case "(($ac_try" in
19312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313   *) ac_try_echo=$ac_try;;
19314 esac
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316   (eval "$ac_try") 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; }; then
19320   ac_cv_lib_gcc___divdi3=yes
19321 else
19322   echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325         ac_cv_lib_gcc___divdi3=no
19326 fi
19327
19328 rm -f core conftest.err conftest.$ac_objext \
19329       conftest$ac_exeext conftest.$ac_ext
19330 LIBS=$ac_check_lib_save_LIBS
19331 fi
19332 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19333 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19334 if test $ac_cv_lib_gcc___divdi3 = yes; then
19335
19336 cat >>confdefs.h <<\_ACEOF
19337 #define HAVE___DIVDI3 1
19338 _ACEOF
19339
19340 fi
19341
19342   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19343 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19344 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19345   echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347   ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-lgcc  $LIBS"
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355
19356 /* Override any GCC internal prototype to avoid an error.
19357    Use char because int might match the return type of a GCC
19358    builtin and then its argument prototype would still apply.  */
19359 #ifdef __cplusplus
19360 extern "C"
19361 #endif
19362 char __fixdfdi ();
19363 int
19364 main ()
19365 {
19366 return __fixdfdi ();
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378   (eval "$ac_link") 2>conftest.er1
19379   ac_status=$?
19380   grep -v '^ *+' conftest.er1 >conftest.err
19381   rm -f conftest.er1
19382   cat conftest.err >&5
19383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384   (exit $ac_status); } &&
19385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19386   { (case "(($ac_try" in
19387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388   *) ac_try_echo=$ac_try;;
19389 esac
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391   (eval "$ac_try") 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; } &&
19395          { ac_try='test -s conftest$ac_exeext'
19396   { (case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_try") 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   ac_cv_lib_gcc___fixdfdi=yes
19406 else
19407   echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410         ac_cv_lib_gcc___fixdfdi=no
19411 fi
19412
19413 rm -f core conftest.err conftest.$ac_objext \
19414       conftest$ac_exeext conftest.$ac_ext
19415 LIBS=$ac_check_lib_save_LIBS
19416 fi
19417 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19418 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19419 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19420
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE___FIXDFDI 1
19423 _ACEOF
19424
19425 fi
19426
19427   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19428 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19429 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19430   echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432   ac_check_lib_save_LIBS=$LIBS
19433 LIBS="-lgcc  $LIBS"
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440
19441 /* Override any GCC internal prototype to avoid an error.
19442    Use char because int might match the return type of a GCC
19443    builtin and then its argument prototype would still apply.  */
19444 #ifdef __cplusplus
19445 extern "C"
19446 #endif
19447 char __fixsfdi ();
19448 int
19449 main ()
19450 {
19451 return __fixsfdi ();
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_link") 2>conftest.er1
19464   ac_status=$?
19465   grep -v '^ *+' conftest.er1 >conftest.err
19466   rm -f conftest.er1
19467   cat conftest.err >&5
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); } &&
19470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471   { (case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_try") 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); }; } &&
19480          { ac_try='test -s conftest$ac_exeext'
19481   { (case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_try") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; }; then
19490   ac_cv_lib_gcc___fixsfdi=yes
19491 else
19492   echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19494
19495         ac_cv_lib_gcc___fixsfdi=no
19496 fi
19497
19498 rm -f core conftest.err conftest.$ac_objext \
19499       conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19501 fi
19502 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19503 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19504 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19505
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE___FIXSFDI 1
19508 _ACEOF
19509
19510 fi
19511
19512   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19513 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19514 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19515   echo $ECHO_N "(cached) $ECHO_C" >&6
19516 else
19517   ac_check_lib_save_LIBS=$LIBS
19518 LIBS="-lgcc  $LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525
19526 /* Override any GCC internal prototype to avoid an error.
19527    Use char because int might match the return type of a GCC
19528    builtin and then its argument prototype would still apply.  */
19529 #ifdef __cplusplus
19530 extern "C"
19531 #endif
19532 char __floatdidf ();
19533 int
19534 main ()
19535 {
19536 return __floatdidf ();
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (ac_try="$ac_link"
19543 case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_link") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } &&
19555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19556   { (case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_try") 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; } &&
19565          { ac_try='test -s conftest$ac_exeext'
19566   { (case "(($ac_try" in
19567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568   *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571   (eval "$ac_try") 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; }; then
19575   ac_cv_lib_gcc___floatdidf=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580         ac_cv_lib_gcc___floatdidf=no
19581 fi
19582
19583 rm -f core conftest.err conftest.$ac_objext \
19584       conftest$ac_exeext conftest.$ac_ext
19585 LIBS=$ac_check_lib_save_LIBS
19586 fi
19587 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19588 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19589 if test $ac_cv_lib_gcc___floatdidf = yes; then
19590
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE___FLOATDIDF 1
19593 _ACEOF
19594
19595 fi
19596
19597   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19598 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19599 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602   ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lgcc  $LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610
19611 /* Override any GCC internal prototype to avoid an error.
19612    Use char because int might match the return type of a GCC
19613    builtin and then its argument prototype would still apply.  */
19614 #ifdef __cplusplus
19615 extern "C"
19616 #endif
19617 char __lshrdi3 ();
19618 int
19619 main ()
19620 {
19621 return __lshrdi3 ();
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_link") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } &&
19640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; } &&
19650          { ac_try='test -s conftest$ac_exeext'
19651   { (case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656   (eval "$ac_try") 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660   ac_cv_lib_gcc___lshrdi3=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_lib_gcc___lshrdi3=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext \
19669       conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19671 fi
19672 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19673 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19674 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE___LSHRDI3 1
19678 _ACEOF
19679
19680 fi
19681
19682   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19683 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19684 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19685   echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687   ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-lgcc  $LIBS"
19689 cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695
19696 /* Override any GCC internal prototype to avoid an error.
19697    Use char because int might match the return type of a GCC
19698    builtin and then its argument prototype would still apply.  */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 char __moddi3 ();
19703 int
19704 main ()
19705 {
19706 return __moddi3 ();
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715   *) ac_try_echo=$ac_try;;
19716 esac
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718   (eval "$ac_link") 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } &&
19725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19726   { (case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_try") 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; } &&
19735          { ac_try='test -s conftest$ac_exeext'
19736   { (case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_try") 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; }; then
19745   ac_cv_lib_gcc___moddi3=yes
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         ac_cv_lib_gcc___moddi3=no
19751 fi
19752
19753 rm -f core conftest.err conftest.$ac_objext \
19754       conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19756 fi
19757 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19758 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19759 if test $ac_cv_lib_gcc___moddi3 = yes; then
19760
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE___MODDI3 1
19763 _ACEOF
19764
19765 fi
19766
19767   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19768 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19769 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   ac_check_lib_save_LIBS=$LIBS
19773 LIBS="-lgcc  $LIBS"
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780
19781 /* Override any GCC internal prototype to avoid an error.
19782    Use char because int might match the return type of a GCC
19783    builtin and then its argument prototype would still apply.  */
19784 #ifdef __cplusplus
19785 extern "C"
19786 #endif
19787 char __udivdi3 ();
19788 int
19789 main ()
19790 {
19791 return __udivdi3 ();
19792   ;
19793   return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800   *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803   (eval "$ac_link") 2>conftest.er1
19804   ac_status=$?
19805   grep -v '^ *+' conftest.er1 >conftest.err
19806   rm -f conftest.er1
19807   cat conftest.err >&5
19808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); } &&
19810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19811   { (case "(($ac_try" in
19812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813   *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816   (eval "$ac_try") 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; } &&
19820          { ac_try='test -s conftest$ac_exeext'
19821   { (case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826   (eval "$ac_try") 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; }; then
19830   ac_cv_lib_gcc___udivdi3=yes
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835         ac_cv_lib_gcc___udivdi3=no
19836 fi
19837
19838 rm -f core conftest.err conftest.$ac_objext \
19839       conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_check_lib_save_LIBS
19841 fi
19842 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19843 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19844 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19845
19846 cat >>confdefs.h <<\_ACEOF
19847 #define HAVE___UDIVDI3 1
19848 _ACEOF
19849
19850 fi
19851
19852   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19853 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19854 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19855   echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857   ac_check_lib_save_LIBS=$LIBS
19858 LIBS="-lgcc  $LIBS"
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865
19866 /* Override any GCC internal prototype to avoid an error.
19867    Use char because int might match the return type of a GCC
19868    builtin and then its argument prototype would still apply.  */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 char __umoddi3 ();
19873 int
19874 main ()
19875 {
19876 return __umoddi3 ();
19877   ;
19878   return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_link") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19896   { (case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_try") 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; } &&
19905          { ac_try='test -s conftest$ac_exeext'
19906   { (case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_try") 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; }; then
19915   ac_cv_lib_gcc___umoddi3=yes
19916 else
19917   echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920         ac_cv_lib_gcc___umoddi3=no
19921 fi
19922
19923 rm -f core conftest.err conftest.$ac_objext \
19924       conftest$ac_exeext conftest.$ac_ext
19925 LIBS=$ac_check_lib_save_LIBS
19926 fi
19927 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19928 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19929 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19930
19931 cat >>confdefs.h <<\_ACEOF
19932 #define HAVE___UMODDI3 1
19933 _ACEOF
19934
19935 fi
19936
19937
19938   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19939 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19940 if test "${ac_cv_lib_gcc___main+set}" = set; then
19941   echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943   ac_check_lib_save_LIBS=$LIBS
19944 LIBS="-lgcc  $LIBS"
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951
19952 /* Override any GCC internal prototype to avoid an error.
19953    Use char because int might match the return type of a GCC
19954    builtin and then its argument prototype would still apply.  */
19955 #ifdef __cplusplus
19956 extern "C"
19957 #endif
19958 char __main ();
19959 int
19960 main ()
19961 {
19962 return __main ();
19963   ;
19964   return 0;
19965 }
19966 _ACEOF
19967 rm -f conftest.$ac_objext conftest$ac_exeext
19968 if { (ac_try="$ac_link"
19969 case "(($ac_try" in
19970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971   *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974   (eval "$ac_link") 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19982   { (case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987   (eval "$ac_try") 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; } &&
19991          { ac_try='test -s conftest$ac_exeext'
19992   { (case "(($ac_try" in
19993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994   *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997   (eval "$ac_try") 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; }; then
20001   ac_cv_lib_gcc___main=yes
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         ac_cv_lib_gcc___main=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext \
20010       conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20012 fi
20013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20014 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20015 if test $ac_cv_lib_gcc___main = yes; then
20016
20017 cat >>confdefs.h <<\_ACEOF
20018 #define HAVE___MAIN 1
20019 _ACEOF
20020
20021 fi
20022
20023   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20024 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20025 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   ac_check_lib_save_LIBS=$LIBS
20029 LIBS="-lgcc  $LIBS"
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036
20037 /* Override any GCC internal prototype to avoid an error.
20038    Use char because int might match the return type of a GCC
20039    builtin and then its argument prototype would still apply.  */
20040 #ifdef __cplusplus
20041 extern "C"
20042 #endif
20043 char __cmpdi2 ();
20044 int
20045 main ()
20046 {
20047 return __cmpdi2 ();
20048   ;
20049   return 0;
20050 }
20051 _ACEOF
20052 rm -f conftest.$ac_objext conftest$ac_exeext
20053 if { (ac_try="$ac_link"
20054 case "(($ac_try" in
20055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056   *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059   (eval "$ac_link") 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } &&
20066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20067   { (case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_try") 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; } &&
20076          { ac_try='test -s conftest$ac_exeext'
20077   { (case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082   (eval "$ac_try") 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_lib_gcc___cmpdi2=yes
20087 else
20088   echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091         ac_cv_lib_gcc___cmpdi2=no
20092 fi
20093
20094 rm -f core conftest.err conftest.$ac_objext \
20095       conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20097 fi
20098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20100 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20101
20102 cat >>confdefs.h <<\_ACEOF
20103 #define HAVE___CMPDI2 1
20104 _ACEOF
20105
20106 fi
20107
20108 fi
20109
20110 if test "$llvm_cv_os_type" = "MingW" ; then
20111   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20112 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20113   cat >conftest.$ac_ext <<_ACEOF
20114
20115   /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120
20121     #include <windows.h>
20122     #include <imagehlp.h>
20123     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20124     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20125
20126
20127 _ACEOF
20128 rm -f conftest.$ac_objext
20129 if { (ac_try="$ac_compile"
20130 case "(($ac_try" in
20131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132   *) ac_try_echo=$ac_try;;
20133 esac
20134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20135   (eval "$ac_compile") 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143   { (case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_try") 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; } &&
20152          { ac_try='test -s conftest.$ac_objext'
20153   { (case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_try") 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162
20163   { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20165   llvm_cv_win32_elmcb_pcstr="PCSTR"
20166
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171
20172   { echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6; }
20174   llvm_cv_win32_elmcb_pcstr="PSTR"
20175
20176 fi
20177
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179
20180 cat >>confdefs.h <<_ACEOF
20181 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20182 _ACEOF
20183
20184 fi
20185
20186
20187
20188   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20189 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20190 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20191   echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193
20194     ac_ext=cpp
20195 ac_cpp='$CXXCPP $CPPFLAGS'
20196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20199
20200     cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206 #include <math.h>
20207 int
20208 main ()
20209 {
20210 float f; isnan(f);
20211   ;
20212   return 0;
20213 }
20214 _ACEOF
20215 rm -f conftest.$ac_objext
20216 if { (ac_try="$ac_compile"
20217 case "(($ac_try" in
20218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219   *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222   (eval "$ac_compile") 2>conftest.er1
20223   ac_status=$?
20224   grep -v '^ *+' conftest.er1 >conftest.err
20225   rm -f conftest.er1
20226   cat conftest.err >&5
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20230   { (case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_try") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; } &&
20239          { ac_try='test -s conftest.$ac_objext'
20240   { (case "(($ac_try" in
20241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242   *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245   (eval "$ac_try") 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_func_isnan_in_math_h=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254         ac_cv_func_isnan_in_math_h=no
20255 fi
20256
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258     ac_ext=c
20259 ac_cpp='$CPP $CPPFLAGS'
20260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20263
20264
20265 fi
20266 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20267 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20268
20269
20270 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20271
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_ISNAN_IN_MATH_H 1
20274 _ACEOF
20275
20276 fi
20277
20278
20279   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20280 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20281 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284
20285     ac_ext=cpp
20286 ac_cpp='$CXXCPP $CPPFLAGS'
20287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20290
20291     cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297 #include <cmath>
20298 int
20299 main ()
20300 {
20301 float f; isnan(f);
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_compile") 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } &&
20320          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest.$ac_objext'
20331   { (case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_try") 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   ac_cv_func_isnan_in_cmath=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         ac_cv_func_isnan_in_cmath=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349     ac_ext=c
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20354
20355
20356 fi
20357 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20358 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20359
20360 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20361
20362 cat >>confdefs.h <<\_ACEOF
20363 #define HAVE_ISNAN_IN_CMATH 1
20364 _ACEOF
20365
20366 fi
20367
20368
20369   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20370 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20371 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374
20375     ac_ext=cpp
20376 ac_cpp='$CXXCPP $CPPFLAGS'
20377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20380
20381     cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387 #include <cmath>
20388 int
20389 main ()
20390 {
20391 float f; std::isnan(f);
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_compile") 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } &&
20410          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20411   { (case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_try") 2>&5
20417   ac_status=$?
20418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419   (exit $ac_status); }; } &&
20420          { ac_try='test -s conftest.$ac_objext'
20421   { (case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_try") 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_func_std_isnan_in_cmath=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435         ac_cv_func_std_isnan_in_cmath=no
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439     ac_ext=c
20440 ac_cpp='$CPP $CPPFLAGS'
20441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20444
20445
20446 fi
20447 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20448 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20449
20450 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20451
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_STD_ISNAN_IN_CMATH 1
20454 _ACEOF
20455
20456 fi
20457
20458
20459
20460
20461   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20462 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20463 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20464   echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466
20467     ac_ext=cpp
20468 ac_cpp='$CXXCPP $CPPFLAGS'
20469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20472
20473     cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 #include <math.h>
20480 int
20481 main ()
20482 {
20483 float f; isinf(f);
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_compile") 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } &&
20502          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20503   { (case "(($ac_try" in
20504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505   *) ac_try_echo=$ac_try;;
20506 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508   (eval "$ac_try") 2>&5
20509   ac_status=$?
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); }; } &&
20512          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); }; }; then
20522   ac_cv_func_isinf_in_math_h=yes
20523 else
20524   echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527         ac_cv_func_isinf_in_math_h=no
20528 fi
20529
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531     ac_ext=c
20532 ac_cpp='$CPP $CPPFLAGS'
20533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20536
20537
20538 fi
20539 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20540 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20541
20542 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20543
20544 cat >>confdefs.h <<\_ACEOF
20545 #define HAVE_ISINF_IN_MATH_H 1
20546 _ACEOF
20547
20548 fi
20549
20550
20551   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20552 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20553 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20554   echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556
20557     ac_ext=cpp
20558 ac_cpp='$CXXCPP $CPPFLAGS'
20559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20562
20563     cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569 #include <cmath>
20570 int
20571 main ()
20572 {
20573 float f; isinf(f);
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext
20579 if { (ac_try="$ac_compile"
20580 case "(($ac_try" in
20581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582   *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585   (eval "$ac_compile") 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } &&
20592          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20593   { (case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_try") 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; } &&
20602          { ac_try='test -s conftest.$ac_objext'
20603   { (case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_try") 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; }; then
20612   ac_cv_func_isinf_in_cmath=yes
20613 else
20614   echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617         ac_cv_func_isinf_in_cmath=no
20618 fi
20619
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621     ac_ext=c
20622 ac_cpp='$CPP $CPPFLAGS'
20623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626
20627
20628 fi
20629 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20630 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20631
20632 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20633
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_ISINF_IN_CMATH 1
20636 _ACEOF
20637
20638 fi
20639
20640
20641   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20642 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20643 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646
20647     ac_ext=cpp
20648 ac_cpp='$CXXCPP $CPPFLAGS'
20649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20652
20653     cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 #include <cmath>
20660 int
20661 main ()
20662 {
20663 float f; std::isinf(f);
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext
20669 if { (ac_try="$ac_compile"
20670 case "(($ac_try" in
20671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672   *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675   (eval "$ac_compile") 2>conftest.er1
20676   ac_status=$?
20677   grep -v '^ *+' conftest.er1 >conftest.err
20678   rm -f conftest.er1
20679   cat conftest.err >&5
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); } &&
20682          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20683   { (case "(($ac_try" in
20684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685   *) ac_try_echo=$ac_try;;
20686 esac
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688   (eval "$ac_try") 2>&5
20689   ac_status=$?
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); }; } &&
20692          { ac_try='test -s conftest.$ac_objext'
20693   { (case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_try") 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; }; then
20702   ac_cv_func_std_isinf_in_cmath=yes
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707         ac_cv_func_std_isinf_in_cmath=no
20708 fi
20709
20710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711     ac_ext=c
20712 ac_cpp='$CPP $CPPFLAGS'
20713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20716
20717
20718 fi
20719 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20720 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20721
20722 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20723
20724 cat >>confdefs.h <<\_ACEOF
20725 #define HAVE_STD_ISINF_IN_CMATH 1
20726 _ACEOF
20727
20728 fi
20729
20730
20731   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20732 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20733 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736
20737     ac_ext=cpp
20738 ac_cpp='$CXXCPP $CPPFLAGS'
20739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20742
20743     cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 #include <ieeefp.h>
20750 int
20751 main ()
20752 {
20753 float f; finite(f);
20754   ;
20755   return 0;
20756 }
20757 _ACEOF
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_compile") 2>conftest.er1
20766   ac_status=$?
20767   grep -v '^ *+' conftest.er1 >conftest.err
20768   rm -f conftest.er1
20769   cat conftest.err >&5
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); } &&
20772          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20773   { (case "(($ac_try" in
20774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775   *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778   (eval "$ac_try") 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; } &&
20782          { ac_try='test -s conftest.$ac_objext'
20783   { (case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_try") 2>&5
20789   ac_status=$?
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); }; }; then
20792   ac_cv_func_finite_in_ieeefp_h=yes
20793 else
20794   echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797         ac_cv_func_finite_in_ieeefp_h=no
20798 fi
20799
20800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801     ac_ext=c
20802 ac_cpp='$CPP $CPPFLAGS'
20803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807
20808 fi
20809 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20810 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20811
20812 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20813
20814 cat >>confdefs.h <<\_ACEOF
20815 #define HAVE_FINITE_IN_IEEEFP_H 1
20816 _ACEOF
20817
20818 fi
20819
20820
20821
20822 if test "$llvm_cv_platform_type" = "Unix" ; then
20823
20824
20825 for ac_header in stdlib.h unistd.h
20826 do
20827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20829   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 fi
20834 ac_res=`eval echo '${'$as_ac_Header'}'`
20835                { echo "$as_me:$LINENO: result: $ac_res" >&5
20836 echo "${ECHO_T}$ac_res" >&6; }
20837 else
20838   # Is the header compilable?
20839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 $ac_includes_default
20848 #include <$ac_header>
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20865   { (case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_try") 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; } &&
20874          { ac_try='test -s conftest.$ac_objext'
20875   { (case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_try") 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); }; }; then
20884   ac_header_compiler=yes
20885 else
20886   echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889         ac_header_compiler=no
20890 fi
20891
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20894 echo "${ECHO_T}$ac_header_compiler" >&6; }
20895
20896 # Is the header present?
20897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20899 cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905 #include <$ac_header>
20906 _ACEOF
20907 if { (ac_try="$ac_cpp conftest.$ac_ext"
20908 case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } >/dev/null; then
20920   if test -s conftest.err; then
20921     ac_cpp_err=$ac_c_preproc_warn_flag
20922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20923   else
20924     ac_cpp_err=
20925   fi
20926 else
20927   ac_cpp_err=yes
20928 fi
20929 if test -z "$ac_cpp_err"; then
20930   ac_header_preproc=yes
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935   ac_header_preproc=no
20936 fi
20937
20938 rm -f conftest.err conftest.$ac_ext
20939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20940 echo "${ECHO_T}$ac_header_preproc" >&6; }
20941
20942 # So?  What about this header?
20943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20944   yes:no: )
20945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20949     ac_header_preproc=yes
20950     ;;
20951   no:yes:* )
20952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20964     ( cat <<\_ASBOX
20965 ## ------------------------------------ ##
20966 ## Report this to http://llvm.org/bugs/ ##
20967 ## ------------------------------------ ##
20968 _ASBOX
20969      ) | sed "s/^/$as_me: WARNING:     /" >&2
20970     ;;
20971 esac
20972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   eval "$as_ac_Header=\$ac_header_preproc"
20978 fi
20979 ac_res=`eval echo '${'$as_ac_Header'}'`
20980                { echo "$as_me:$LINENO: result: $ac_res" >&5
20981 echo "${ECHO_T}$ac_res" >&6; }
20982
20983 fi
20984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20985   cat >>confdefs.h <<_ACEOF
20986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20987 _ACEOF
20988
20989 fi
20990
20991 done
20992
20993
20994 for ac_func in getpagesize
20995 do
20996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21010 #define $ac_func innocuous_$ac_func
21011
21012 /* System header to define __stub macros and hopefully few prototypes,
21013     which can conflict with char $ac_func (); below.
21014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21015     <limits.h> exists even on freestanding compilers.  */
21016
21017 #ifdef __STDC__
21018 # include <limits.h>
21019 #else
21020 # include <assert.h>
21021 #endif
21022
21023 #undef $ac_func
21024
21025 /* Override any GCC internal prototype to avoid an error.
21026    Use char because int might match the return type of a GCC
21027    builtin and then its argument prototype would still apply.  */
21028 #ifdef __cplusplus
21029 extern "C"
21030 #endif
21031 char $ac_func ();
21032 /* The GNU C library defines this for functions which it implements
21033     to always fail with ENOSYS.  Some functions are actually named
21034     something starting with __ and the normal name is an alias.  */
21035 #if defined __stub_$ac_func || defined __stub___$ac_func
21036 choke me
21037 #endif
21038
21039 int
21040 main ()
21041 {
21042 return $ac_func ();
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_link") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } &&
21061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21062   { (case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_try") 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest$ac_exeext'
21072   { (case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_try") 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; }; then
21081   eval "$as_ac_var=yes"
21082 else
21083   echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21085
21086         eval "$as_ac_var=no"
21087 fi
21088
21089 rm -f core conftest.err conftest.$ac_objext \
21090       conftest$ac_exeext conftest.$ac_ext
21091 fi
21092 ac_res=`eval echo '${'$as_ac_var'}'`
21093                { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 if test `eval echo '${'$as_ac_var'}'` = yes; then
21096   cat >>confdefs.h <<_ACEOF
21097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21098 _ACEOF
21099
21100 fi
21101 done
21102
21103 { echo "$as_me:$LINENO: checking for working mmap" >&5
21104 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21105 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21106   echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108   if test "$cross_compiling" = yes; then
21109   ac_cv_func_mmap_fixed_mapped=no
21110 else
21111   cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117 $ac_includes_default
21118 /* malloc might have been renamed as rpl_malloc. */
21119 #undef malloc
21120
21121 /* Thanks to Mike Haertel and Jim Avera for this test.
21122    Here is a matrix of mmap possibilities:
21123         mmap private not fixed
21124         mmap private fixed at somewhere currently unmapped
21125         mmap private fixed at somewhere already mapped
21126         mmap shared not fixed
21127         mmap shared fixed at somewhere currently unmapped
21128         mmap shared fixed at somewhere already mapped
21129    For private mappings, we should verify that changes cannot be read()
21130    back from the file, nor mmap's back from the file at a different
21131    address.  (There have been systems where private was not correctly
21132    implemented like the infamous i386 svr4.0, and systems where the
21133    VM page cache was not coherent with the file system buffer cache
21134    like early versions of FreeBSD and possibly contemporary NetBSD.)
21135    For shared mappings, we should conversely verify that changes get
21136    propagated back to all the places they're supposed to be.
21137
21138    Grep wants private fixed already mapped.
21139    The main things grep needs to know about mmap are:
21140    * does it exist and is it safe to write into the mmap'd area
21141    * how to use it (BSD variants)  */
21142
21143 #include <fcntl.h>
21144 #include <sys/mman.h>
21145
21146 #if !STDC_HEADERS && !HAVE_STDLIB_H
21147 char *malloc ();
21148 #endif
21149
21150 /* This mess was copied from the GNU getpagesize.h.  */
21151 #if !HAVE_GETPAGESIZE
21152 /* Assume that all systems that can run configure have sys/param.h.  */
21153 # if !HAVE_SYS_PARAM_H
21154 #  define HAVE_SYS_PARAM_H 1
21155 # endif
21156
21157 # ifdef _SC_PAGESIZE
21158 #  define getpagesize() sysconf(_SC_PAGESIZE)
21159 # else /* no _SC_PAGESIZE */
21160 #  if HAVE_SYS_PARAM_H
21161 #   include <sys/param.h>
21162 #   ifdef EXEC_PAGESIZE
21163 #    define getpagesize() EXEC_PAGESIZE
21164 #   else /* no EXEC_PAGESIZE */
21165 #    ifdef NBPG
21166 #     define getpagesize() NBPG * CLSIZE
21167 #     ifndef CLSIZE
21168 #      define CLSIZE 1
21169 #     endif /* no CLSIZE */
21170 #    else /* no NBPG */
21171 #     ifdef NBPC
21172 #      define getpagesize() NBPC
21173 #     else /* no NBPC */
21174 #      ifdef PAGESIZE
21175 #       define getpagesize() PAGESIZE
21176 #      endif /* PAGESIZE */
21177 #     endif /* no NBPC */
21178 #    endif /* no NBPG */
21179 #   endif /* no EXEC_PAGESIZE */
21180 #  else /* no HAVE_SYS_PARAM_H */
21181 #   define getpagesize() 8192   /* punt totally */
21182 #  endif /* no HAVE_SYS_PARAM_H */
21183 # endif /* no _SC_PAGESIZE */
21184
21185 #endif /* no HAVE_GETPAGESIZE */
21186
21187 int
21188 main ()
21189 {
21190   char *data, *data2, *data3;
21191   int i, pagesize;
21192   int fd;
21193
21194   pagesize = getpagesize ();
21195
21196   /* First, make a file with some known garbage in it. */
21197   data = (char *) malloc (pagesize);
21198   if (!data)
21199     return 1;
21200   for (i = 0; i < pagesize; ++i)
21201     *(data + i) = rand ();
21202   umask (0);
21203   fd = creat ("conftest.mmap", 0600);
21204   if (fd < 0)
21205     return 1;
21206   if (write (fd, data, pagesize) != pagesize)
21207     return 1;
21208   close (fd);
21209
21210   /* Next, try to mmap the file at a fixed address which already has
21211      something else allocated at it.  If we can, also make sure that
21212      we see the same garbage.  */
21213   fd = open ("conftest.mmap", O_RDWR);
21214   if (fd < 0)
21215     return 1;
21216   data2 = (char *) malloc (2 * pagesize);
21217   if (!data2)
21218     return 1;
21219   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21220   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21221                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21222     return 1;
21223   for (i = 0; i < pagesize; ++i)
21224     if (*(data + i) != *(data2 + i))
21225       return 1;
21226
21227   /* Finally, make sure that changes to the mapped area do not
21228      percolate back to the file as seen by read().  (This is a bug on
21229      some variants of i386 svr4.0.)  */
21230   for (i = 0; i < pagesize; ++i)
21231     *(data2 + i) = *(data2 + i) + 1;
21232   data3 = (char *) malloc (pagesize);
21233   if (!data3)
21234     return 1;
21235   if (read (fd, data3, pagesize) != pagesize)
21236     return 1;
21237   for (i = 0; i < pagesize; ++i)
21238     if (*(data + i) != *(data3 + i))
21239       return 1;
21240   close (fd);
21241   return 0;
21242 }
21243 _ACEOF
21244 rm -f conftest$ac_exeext
21245 if { (ac_try="$ac_link"
21246 case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_link") 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21255   { (case "(($ac_try" in
21256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257   *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260   (eval "$ac_try") 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; }; then
21264   ac_cv_func_mmap_fixed_mapped=yes
21265 else
21266   echo "$as_me: program exited with status $ac_status" >&5
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 ( exit $ac_status )
21271 ac_cv_func_mmap_fixed_mapped=no
21272 fi
21273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21274 fi
21275
21276
21277 fi
21278 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21279 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21280 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21281
21282 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_MMAP 1
21284 _ACEOF
21285
21286 fi
21287 rm -f conftest.mmap
21288
21289   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21290 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21291 if test "${ac_cv_func_mmap_file+set}" = set; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294    ac_ext=c
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21299
21300   if test "$cross_compiling" = yes; then
21301   ac_cv_func_mmap_file=no
21302 else
21303   cat >conftest.$ac_ext <<_ACEOF
21304
21305     /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310
21311 #include <sys/types.h>
21312 #include <sys/mman.h>
21313 #include <fcntl.h>
21314
21315 int
21316 main ()
21317 {
21318
21319   int fd;
21320   fd = creat ("foo",0777);
21321   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21322   unlink ("foo");
21323   return (fd != (int) MAP_FAILED);
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_link") 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339   { (case "(($ac_try" in
21340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341   *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344   (eval "$ac_try") 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   ac_cv_func_mmap_file=yes
21349 else
21350   echo "$as_me: program exited with status $ac_status" >&5
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ( exit $ac_status )
21355 ac_cv_func_mmap_file=no
21356 fi
21357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21358 fi
21359
21360
21361   ac_ext=c
21362 ac_cpp='$CPP $CPPFLAGS'
21363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366
21367
21368 fi
21369 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21370 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21371 if test "$ac_cv_func_mmap_file" = yes; then
21372
21373 cat >>confdefs.h <<\_ACEOF
21374 #define HAVE_MMAP_FILE
21375 _ACEOF
21376
21377    MMAP_FILE=yes
21378
21379 fi
21380
21381   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21382 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21383 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21384   echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386   if test "$llvm_cv_os_type" = "Interix" ; then
21387    ac_cv_need_dev_zero_for_mmap=yes
21388  else
21389    ac_cv_need_dev_zero_for_mmap=no
21390  fi
21391
21392 fi
21393 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21394 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21395 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21396
21397 cat >>confdefs.h <<\_ACEOF
21398 #define NEED_DEV_ZERO_FOR_MMAP 1
21399 _ACEOF
21400
21401 fi
21402
21403   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21404   then
21405     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21406 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21407   fi
21408   if test "$ac_cv_func_mmap_file" = "no"
21409   then
21410     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21411 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21412   fi
21413 fi
21414
21415 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21416 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21417 ac_ext=cpp
21418 ac_cpp='$CXXCPP $CPPFLAGS'
21419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21422
21423 cat >conftest.$ac_ext <<_ACEOF
21424
21425   /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430
21431     int main() {
21432       volatile unsigned long val = 1;
21433       __sync_synchronize();
21434       __sync_val_compare_and_swap(&val, 1, 0);
21435       __sync_add_and_fetch(&val, 1);
21436       __sync_sub_and_fetch(&val, 1);
21437       return 0;
21438     }
21439
21440
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_link") 2>conftest.er1
21450   ac_status=$?
21451   grep -v '^ *+' conftest.er1 >conftest.err
21452   rm -f conftest.er1
21453   cat conftest.err >&5
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } &&
21456          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21457   { (case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_try") 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; } &&
21466          { ac_try='test -s conftest$ac_exeext'
21467   { (case "(($ac_try" in
21468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469   *) ac_try_echo=$ac_try;;
21470 esac
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472   (eval "$ac_try") 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; }; then
21476
21477   { echo "$as_me:$LINENO: result: yes" >&5
21478 echo "${ECHO_T}yes" >&6; }
21479
21480 cat >>confdefs.h <<\_ACEOF
21481 #define LLVM_HAS_ATOMICS 1
21482 _ACEOF
21483
21484
21485 else
21486   echo "$as_me: failed program was:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21488
21489
21490   { echo "$as_me:$LINENO: result: no" >&5
21491 echo "${ECHO_T}no" >&6; }
21492
21493 cat >>confdefs.h <<\_ACEOF
21494 #define LLVM_HAS_ATOMICS 0
21495 _ACEOF
21496
21497   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21498 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21499
21500 fi
21501
21502 rm -f core conftest.err conftest.$ac_objext \
21503       conftest$ac_exeext conftest.$ac_ext
21504 ac_ext=c
21505 ac_cpp='$CPP $CPPFLAGS'
21506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21509
21510
21511
21512 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21513   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21514 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21515 if test "${llvm_cv_linux_mixed+set}" = set; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518    ac_ext=c
21519 ac_cpp='$CPP $CPPFLAGS'
21520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21523
21524   cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h.  */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h.  */
21530 #ifndef __x86_64__
21531        error: Not x86-64 even if uname says so!
21532       #endif
21533
21534 int
21535 main ()
21536 {
21537
21538   ;
21539   return 0;
21540 }
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546   *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549   (eval "$ac_compile") 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } &&
21556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21557   { (case "(($ac_try" in
21558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559   *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562   (eval "$ac_try") 2>&5
21563   ac_status=$?
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); }; } &&
21566          { ac_try='test -s conftest.$ac_objext'
21567   { (case "(($ac_try" in
21568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569   *) ac_try_echo=$ac_try;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572   (eval "$ac_try") 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; }; then
21576   llvm_cv_linux_mixed=no
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581         llvm_cv_linux_mixed=yes
21582 fi
21583
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21585   ac_ext=c
21586 ac_cpp='$CPP $CPPFLAGS'
21587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21590
21591
21592 fi
21593 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21594 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21595
21596   if test "$llvm_cv_linux_mixed" = "yes"; then
21597     llvm_cv_target_arch="x86"
21598     ARCH="x86"
21599   fi
21600 fi
21601
21602
21603 for ac_func in __dso_handle
21604 do
21605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21609   echo $ECHO_N "(cached) $ECHO_C" >&6
21610 else
21611   cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21619 #define $ac_func innocuous_$ac_func
21620
21621 /* System header to define __stub macros and hopefully few prototypes,
21622     which can conflict with char $ac_func (); below.
21623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21624     <limits.h> exists even on freestanding compilers.  */
21625
21626 #ifdef __STDC__
21627 # include <limits.h>
21628 #else
21629 # include <assert.h>
21630 #endif
21631
21632 #undef $ac_func
21633
21634 /* Override any GCC internal prototype to avoid an error.
21635    Use char because int might match the return type of a GCC
21636    builtin and then its argument prototype would still apply.  */
21637 #ifdef __cplusplus
21638 extern "C"
21639 #endif
21640 char $ac_func ();
21641 /* The GNU C library defines this for functions which it implements
21642     to always fail with ENOSYS.  Some functions are actually named
21643     something starting with __ and the normal name is an alias.  */
21644 #if defined __stub_$ac_func || defined __stub___$ac_func
21645 choke me
21646 #endif
21647
21648 int
21649 main ()
21650 {
21651 return $ac_func ();
21652   ;
21653   return 0;
21654 }
21655 _ACEOF
21656 rm -f conftest.$ac_objext conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_link") 2>conftest.er1
21664   ac_status=$?
21665   grep -v '^ *+' conftest.er1 >conftest.err
21666   rm -f conftest.er1
21667   cat conftest.err >&5
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } &&
21670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21671   { (case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_try") 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; } &&
21680          { ac_try='test -s conftest$ac_exeext'
21681   { (case "(($ac_try" in
21682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683   *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686   (eval "$ac_try") 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; }; then
21690   eval "$as_ac_var=yes"
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695         eval "$as_ac_var=no"
21696 fi
21697
21698 rm -f core conftest.err conftest.$ac_objext \
21699       conftest$ac_exeext conftest.$ac_ext
21700 fi
21701 ac_res=`eval echo '${'$as_ac_var'}'`
21702                { echo "$as_me:$LINENO: result: $ac_res" >&5
21703 echo "${ECHO_T}$ac_res" >&6; }
21704 if test `eval echo '${'$as_ac_var'}'` = yes; then
21705   cat >>confdefs.h <<_ACEOF
21706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21707 _ACEOF
21708
21709 fi
21710 done
21711
21712
21713 SHLIBEXT=$libltdl_cv_shlibext
21714
21715
21716 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21717
21718
21719 if test "${prefix}" = "NONE" ; then
21720   prefix="/usr/local"
21721 fi
21722 eval LLVM_PREFIX="${prefix}";
21723 eval LLVM_BINDIR="${prefix}/bin";
21724 eval LLVM_DATADIR="${prefix}/share/llvm";
21725 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21726 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21727 eval LLVM_INCLUDEDIR="${prefix}/include";
21728 eval LLVM_INFODIR="${prefix}/info";
21729 eval LLVM_MANDIR="${prefix}/man";
21730 LLVM_CONFIGTIME=`date`
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21742   LLVM_CONFIGTIME="(timestamp not enabled)"
21743 fi
21744
21745
21746 cat >>confdefs.h <<_ACEOF
21747 #define LLVM_PREFIX "$LLVM_PREFIX"
21748 _ACEOF
21749
21750
21751 cat >>confdefs.h <<_ACEOF
21752 #define LLVM_BINDIR "$LLVM_BINDIR"
21753 _ACEOF
21754
21755
21756 cat >>confdefs.h <<_ACEOF
21757 #define LLVM_DATADIR "$LLVM_DATADIR"
21758 _ACEOF
21759
21760
21761 cat >>confdefs.h <<_ACEOF
21762 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21763 _ACEOF
21764
21765
21766 cat >>confdefs.h <<_ACEOF
21767 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21768 _ACEOF
21769
21770
21771 cat >>confdefs.h <<_ACEOF
21772 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21773 _ACEOF
21774
21775
21776 cat >>confdefs.h <<_ACEOF
21777 #define LLVM_INFODIR "$LLVM_INFODIR"
21778 _ACEOF
21779
21780
21781 cat >>confdefs.h <<_ACEOF
21782 #define LLVM_MANDIR "$LLVM_MANDIR"
21783 _ACEOF
21784
21785
21786 cat >>confdefs.h <<_ACEOF
21787 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21788 _ACEOF
21789
21790
21791 cat >>confdefs.h <<_ACEOF
21792 #define LLVM_HOST_TRIPLE "$host"
21793 _ACEOF
21794
21795
21796 cat >>confdefs.h <<_ACEOF
21797 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21798 _ACEOF
21799
21800
21801 if test "$BINDINGS_TO_BUILD" = auto ; then
21802   BINDINGS_TO_BUILD=""
21803   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21804     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21805   fi
21806 fi
21807 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21808
21809
21810 ALL_BINDINGS=ocaml
21811
21812
21813 binding_prereqs_failed=0
21814 for a_binding in $BINDINGS_TO_BUILD ; do
21815   case "$a_binding" in
21816   ocaml)
21817     if test "x$OCAMLC" = x ; then
21818       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21819 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21820       binding_prereqs_failed=1
21821     fi
21822     if test "x$OCAMLDEP" = x ; then
21823       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21824 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21825       binding_prereqs_failed=1
21826     fi
21827     if test "x$OCAMLOPT" = x ; then
21828       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21829 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21830           fi
21831     if test "x$with_ocaml_libdir" != xauto ; then
21832       OCAML_LIBDIR=$with_ocaml_libdir
21833
21834     else
21835       ocaml_stdlib="`"$OCAMLC" -where`"
21836       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21837       then
21838         # ocaml stdlib is beneath our prefix; use stdlib
21839         OCAML_LIBDIR=$ocaml_stdlib
21840
21841       else
21842         # ocaml stdlib is outside our prefix; use libdir/ocaml
21843         OCAML_LIBDIR=${prefix}/lib/ocaml
21844
21845       fi
21846     fi
21847     ;;
21848   esac
21849 done
21850 if test "$binding_prereqs_failed" = 1 ; then
21851   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21852 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21853    { (exit 1); exit 1; }; }
21854 fi
21855
21856 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21857 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21858 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21859   echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861    ac_ext=cpp
21862 ac_cpp='$CXXCPP $CPPFLAGS'
21863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21866
21867   oldcxxflags="$CXXFLAGS"
21868   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21869   cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21876 int
21877 main ()
21878 {
21879 X<int>().f();
21880   ;
21881   return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } &&
21898          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21899   { (case "(($ac_try" in
21900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901   *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904   (eval "$ac_try") 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; } &&
21908          { ac_try='test -s conftest.$ac_objext'
21909   { (case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_try") 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); }; }; then
21918   llvm_cv_cxx_visibility_inlines_hidden=yes
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923         llvm_cv_cxx_visibility_inlines_hidden=no
21924 fi
21925
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927   CXXFLAGS="$oldcxxflags"
21928   ac_ext=c
21929 ac_cpp='$CPP $CPPFLAGS'
21930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933
21934
21935 fi
21936 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21937 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21938 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21939   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21940
21941 else
21942   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21943
21944 fi
21945
21946
21947 if test "$llvm_cv_link_use_r" = "yes" ; then
21948   RPATH="-Wl,-R"
21949 else
21950   RPATH="-Wl,-rpath"
21951 fi
21952
21953
21954 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21955   RDYNAMIC="-rdynamic"
21956 else
21957   RDYNAMIC=""
21958 fi
21959
21960
21961
21962 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21963
21964
21965
21966
21967
21968
21969 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21970
21971 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21972
21973 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21974
21975 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21976
21977 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21978
21979
21980 ac_config_files="$ac_config_files Makefile.config"
21981
21982
21983 ac_config_files="$ac_config_files llvm.spec"
21984
21985
21986 ac_config_files="$ac_config_files docs/doxygen.cfg"
21987
21988
21989 if test "${clang_src_root}" = ""; then
21990   clang_src_root="$srcdir/tools/clang"
21991 fi
21992 if test -f ${clang_src_root}/README.txt; then
21993     configh="include/clang/Config/config.h"
21994   doxy="docs/doxygen.cfg"
21995   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21996
21997   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21998
21999 fi
22000
22001 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22002
22003
22004 test "x$program_prefix" = "xNONE" && program_prefix=""
22005
22006
22007
22008 ac_config_commands="$ac_config_commands setup"
22009
22010 ac_config_commands="$ac_config_commands Makefile"
22011
22012
22013 ac_config_commands="$ac_config_commands Makefile.common"
22014
22015
22016 ac_config_commands="$ac_config_commands examples/Makefile"
22017
22018
22019 ac_config_commands="$ac_config_commands lib/Makefile"
22020
22021
22022 ac_config_commands="$ac_config_commands test/Makefile"
22023
22024
22025 ac_config_commands="$ac_config_commands test/Makefile.tests"
22026
22027
22028 ac_config_commands="$ac_config_commands unittests/Makefile"
22029
22030
22031 ac_config_commands="$ac_config_commands tools/Makefile"
22032
22033
22034 ac_config_commands="$ac_config_commands utils/Makefile"
22035
22036
22037 ac_config_commands="$ac_config_commands projects/Makefile"
22038
22039
22040 ac_config_commands="$ac_config_commands bindings/Makefile"
22041
22042
22043 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22044
22045
22046
22047 cat >confcache <<\_ACEOF
22048 # This file is a shell script that caches the results of configure
22049 # tests run on this system so they can be shared between configure
22050 # scripts and configure runs, see configure's option --config-cache.
22051 # It is not useful on other systems.  If it contains results you don't
22052 # want to keep, you may remove or edit it.
22053 #
22054 # config.status only pays attention to the cache file if you give it
22055 # the --recheck option to rerun configure.
22056 #
22057 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22058 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22059 # following values.
22060
22061 _ACEOF
22062
22063 # The following way of writing the cache mishandles newlines in values,
22064 # but we know of no workaround that is simple, portable, and efficient.
22065 # So, we kill variables containing newlines.
22066 # Ultrix sh set writes to stderr and can't be redirected directly,
22067 # and sets the high bit in the cache file unless we assign to the vars.
22068 (
22069   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22070     eval ac_val=\$$ac_var
22071     case $ac_val in #(
22072     *${as_nl}*)
22073       case $ac_var in #(
22074       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22075 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22076       esac
22077       case $ac_var in #(
22078       _ | IFS | as_nl) ;; #(
22079       *) $as_unset $ac_var ;;
22080       esac ;;
22081     esac
22082   done
22083
22084   (set) 2>&1 |
22085     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22086     *${as_nl}ac_space=\ *)
22087       # `set' does not quote correctly, so add quotes (double-quote
22088       # substitution turns \\\\ into \\, and sed turns \\ into \).
22089       sed -n \
22090         "s/'/'\\\\''/g;
22091           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22092       ;; #(
22093     *)
22094       # `set' quotes correctly as required by POSIX, so do not add quotes.
22095       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22096       ;;
22097     esac |
22098     sort
22099 ) |
22100   sed '
22101      /^ac_cv_env_/b end
22102      t clear
22103      :clear
22104      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22105      t end
22106      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22107      :end' >>confcache
22108 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22109   if test -w "$cache_file"; then
22110     test "x$cache_file" != "x/dev/null" &&
22111       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22112 echo "$as_me: updating cache $cache_file" >&6;}
22113     cat confcache >$cache_file
22114   else
22115     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22116 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22117   fi
22118 fi
22119 rm -f confcache
22120
22121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22122 # Let make expand exec_prefix.
22123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22124
22125 DEFS=-DHAVE_CONFIG_H
22126
22127 ac_libobjs=
22128 ac_ltlibobjs=
22129 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22130   # 1. Remove the extension, and $U if already installed.
22131   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22132   ac_i=`echo "$ac_i" | sed "$ac_script"`
22133   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22134   #    will be set to the directory where LIBOBJS objects are built.
22135   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22136   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22137 done
22138 LIBOBJS=$ac_libobjs
22139
22140 LTLIBOBJS=$ac_ltlibobjs
22141
22142
22143 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22144   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22145 Usually this means the macro was only invoked conditionally." >&5
22146 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22147 Usually this means the macro was only invoked conditionally." >&2;}
22148    { (exit 1); exit 1; }; }
22149 fi
22150 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22151   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22152 Usually this means the macro was only invoked conditionally." >&5
22153 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22154 Usually this means the macro was only invoked conditionally." >&2;}
22155    { (exit 1); exit 1; }; }
22156 fi
22157
22158 : ${CONFIG_STATUS=./config.status}
22159 ac_clean_files_save=$ac_clean_files
22160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22161 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22162 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22163 cat >$CONFIG_STATUS <<_ACEOF
22164 #! $SHELL
22165 # Generated by $as_me.
22166 # Run this file to recreate the current configuration.
22167 # Compiler output produced by configure, useful for debugging
22168 # configure, is in config.log if it exists.
22169
22170 debug=false
22171 ac_cs_recheck=false
22172 ac_cs_silent=false
22173 SHELL=\${CONFIG_SHELL-$SHELL}
22174 _ACEOF
22175
22176 cat >>$CONFIG_STATUS <<\_ACEOF
22177 ## --------------------- ##
22178 ## M4sh Initialization.  ##
22179 ## --------------------- ##
22180
22181 # Be Bourne compatible
22182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22183   emulate sh
22184   NULLCMD=:
22185   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22186   # is contrary to our usage.  Disable this feature.
22187   alias -g '${1+"$@"}'='"$@"'
22188   setopt NO_GLOB_SUBST
22189 else
22190   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22191 fi
22192 BIN_SH=xpg4; export BIN_SH # for Tru64
22193 DUALCASE=1; export DUALCASE # for MKS sh
22194
22195
22196 # PATH needs CR
22197 # Avoid depending upon Character Ranges.
22198 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22201 as_cr_digits='0123456789'
22202 as_cr_alnum=$as_cr_Letters$as_cr_digits
22203
22204 # The user is always right.
22205 if test "${PATH_SEPARATOR+set}" != set; then
22206   echo "#! /bin/sh" >conf$$.sh
22207   echo  "exit 0"   >>conf$$.sh
22208   chmod +x conf$$.sh
22209   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22210     PATH_SEPARATOR=';'
22211   else
22212     PATH_SEPARATOR=:
22213   fi
22214   rm -f conf$$.sh
22215 fi
22216
22217 # Support unset when possible.
22218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22219   as_unset=unset
22220 else
22221   as_unset=false
22222 fi
22223
22224
22225 # IFS
22226 # We need space, tab and new line, in precisely that order.  Quoting is
22227 # there to prevent editors from complaining about space-tab.
22228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22229 # splitting by setting IFS to empty value.)
22230 as_nl='
22231 '
22232 IFS=" ""        $as_nl"
22233
22234 # Find who we are.  Look in the path if we contain no directory separator.
22235 case $0 in
22236   *[\\/]* ) as_myself=$0 ;;
22237   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22238 for as_dir in $PATH
22239 do
22240   IFS=$as_save_IFS
22241   test -z "$as_dir" && as_dir=.
22242   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22243 done
22244 IFS=$as_save_IFS
22245
22246      ;;
22247 esac
22248 # We did not find ourselves, most probably we were run as `sh COMMAND'
22249 # in which case we are not to be found in the path.
22250 if test "x$as_myself" = x; then
22251   as_myself=$0
22252 fi
22253 if test ! -f "$as_myself"; then
22254   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22255   { (exit 1); exit 1; }
22256 fi
22257
22258 # Work around bugs in pre-3.0 UWIN ksh.
22259 for as_var in ENV MAIL MAILPATH
22260 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22261 done
22262 PS1='$ '
22263 PS2='> '
22264 PS4='+ '
22265
22266 # NLS nuisances.
22267 for as_var in \
22268   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22269   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22270   LC_TELEPHONE LC_TIME
22271 do
22272   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22273     eval $as_var=C; export $as_var
22274   else
22275     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22276   fi
22277 done
22278
22279 # Required to use basename.
22280 if expr a : '\(a\)' >/dev/null 2>&1 &&
22281    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22282   as_expr=expr
22283 else
22284   as_expr=false
22285 fi
22286
22287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22288   as_basename=basename
22289 else
22290   as_basename=false
22291 fi
22292
22293
22294 # Name of the executable.
22295 as_me=`$as_basename -- "$0" ||
22296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22297          X"$0" : 'X\(//\)$' \| \
22298          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22299 echo X/"$0" |
22300     sed '/^.*\/\([^/][^/]*\)\/*$/{
22301             s//\1/
22302             q
22303           }
22304           /^X\/\(\/\/\)$/{
22305             s//\1/
22306             q
22307           }
22308           /^X\/\(\/\).*/{
22309             s//\1/
22310             q
22311           }
22312           s/.*/./; q'`
22313
22314 # CDPATH.
22315 $as_unset CDPATH
22316
22317
22318
22319   as_lineno_1=$LINENO
22320   as_lineno_2=$LINENO
22321   test "x$as_lineno_1" != "x$as_lineno_2" &&
22322   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22323
22324   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22325   # uniformly replaced by the line number.  The first 'sed' inserts a
22326   # line-number line after each line using $LINENO; the second 'sed'
22327   # does the real work.  The second script uses 'N' to pair each
22328   # line-number line with the line containing $LINENO, and appends
22329   # trailing '-' during substitution so that $LINENO is not a special
22330   # case at line end.
22331   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22332   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22333   # E. McMahon (1931-1989) for sed's syntax.  :-)
22334   sed -n '
22335     p
22336     /[$]LINENO/=
22337   ' <$as_myself |
22338     sed '
22339       s/[$]LINENO.*/&-/
22340       t lineno
22341       b
22342       :lineno
22343       N
22344       :loop
22345       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22346       t loop
22347       s/-\n.*//
22348     ' >$as_me.lineno &&
22349   chmod +x "$as_me.lineno" ||
22350     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22351    { (exit 1); exit 1; }; }
22352
22353   # Don't try to exec as it changes $[0], causing all sort of problems
22354   # (the dirname of $[0] is not the place where we might find the
22355   # original and so on.  Autoconf is especially sensitive to this).
22356   . "./$as_me.lineno"
22357   # Exit status is that of the last command.
22358   exit
22359 }
22360
22361
22362 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22363   as_dirname=dirname
22364 else
22365   as_dirname=false
22366 fi
22367
22368 ECHO_C= ECHO_N= ECHO_T=
22369 case `echo -n x` in
22370 -n*)
22371   case `echo 'x\c'` in
22372   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22373   *)   ECHO_C='\c';;
22374   esac;;
22375 *)
22376   ECHO_N='-n';;
22377 esac
22378
22379 if expr a : '\(a\)' >/dev/null 2>&1 &&
22380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22381   as_expr=expr
22382 else
22383   as_expr=false
22384 fi
22385
22386 rm -f conf$$ conf$$.exe conf$$.file
22387 if test -d conf$$.dir; then
22388   rm -f conf$$.dir/conf$$.file
22389 else
22390   rm -f conf$$.dir
22391   mkdir conf$$.dir
22392 fi
22393 echo >conf$$.file
22394 if ln -s conf$$.file conf$$ 2>/dev/null; then
22395   as_ln_s='ln -s'
22396   # ... but there are two gotchas:
22397   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22398   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22399   # In both cases, we have to default to `cp -p'.
22400   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22401     as_ln_s='cp -p'
22402 elif ln conf$$.file conf$$ 2>/dev/null; then
22403   as_ln_s=ln
22404 else
22405   as_ln_s='cp -p'
22406 fi
22407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22408 rmdir conf$$.dir 2>/dev/null
22409
22410 if mkdir -p . 2>/dev/null; then
22411   as_mkdir_p=:
22412 else
22413   test -d ./-p && rmdir ./-p
22414   as_mkdir_p=false
22415 fi
22416
22417 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22418 # systems may use methods other than mode bits to determine executability.
22419 cat >conf$$.file <<_ASEOF
22420 #! /bin/sh
22421 exit 0
22422 _ASEOF
22423 chmod +x conf$$.file
22424 if test -x conf$$.file >/dev/null 2>&1; then
22425   as_executable_p="test -x"
22426 else
22427   as_executable_p=:
22428 fi
22429 rm -f conf$$.file
22430
22431 # Sed expression to map a string onto a valid CPP name.
22432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22433
22434 # Sed expression to map a string onto a valid variable name.
22435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22436
22437
22438 exec 6>&1
22439
22440 # Save the log message, to keep $[0] and so on meaningful, and to
22441 # report actual input values of CONFIG_FILES etc. instead of their
22442 # values after options handling.
22443 ac_log="
22444 This file was extended by LLVM $as_me 3.5svn, which was
22445 generated by GNU Autoconf 2.60.  Invocation command line was
22446
22447   CONFIG_FILES    = $CONFIG_FILES
22448   CONFIG_HEADERS  = $CONFIG_HEADERS
22449   CONFIG_LINKS    = $CONFIG_LINKS
22450   CONFIG_COMMANDS = $CONFIG_COMMANDS
22451   $ $0 $@
22452
22453 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22454 "
22455
22456 _ACEOF
22457
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 # Files that config.status was made for.
22460 config_files="$ac_config_files"
22461 config_headers="$ac_config_headers"
22462 config_commands="$ac_config_commands"
22463
22464 _ACEOF
22465
22466 cat >>$CONFIG_STATUS <<\_ACEOF
22467 ac_cs_usage="\
22468 \`$as_me' instantiates files from templates according to the
22469 current configuration.
22470
22471 Usage: $0 [OPTIONS] [FILE]...
22472
22473   -h, --help       print this help, then exit
22474   -V, --version    print version number, then exit
22475   -q, --quiet      do not print progress messages
22476   -d, --debug      don't remove temporary files
22477       --recheck    update $as_me by reconfiguring in the same conditions
22478   --file=FILE[:TEMPLATE]
22479                    instantiate the configuration file FILE
22480   --header=FILE[:TEMPLATE]
22481                    instantiate the configuration header FILE
22482
22483 Configuration files:
22484 $config_files
22485
22486 Configuration headers:
22487 $config_headers
22488
22489 Configuration commands:
22490 $config_commands
22491
22492 Report bugs to <bug-autoconf@gnu.org>."
22493
22494 _ACEOF
22495 cat >>$CONFIG_STATUS <<_ACEOF
22496 ac_cs_version="\\
22497 LLVM config.status 3.5svn
22498 configured by $0, generated by GNU Autoconf 2.60,
22499   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22500
22501 Copyright (C) 2006 Free Software Foundation, Inc.
22502 This config.status script is free software; the Free Software Foundation
22503 gives unlimited permission to copy, distribute and modify it."
22504
22505 ac_pwd='$ac_pwd'
22506 srcdir='$srcdir'
22507 INSTALL='$INSTALL'
22508 _ACEOF
22509
22510 cat >>$CONFIG_STATUS <<\_ACEOF
22511 # If no file are specified by the user, then we need to provide default
22512 # value.  By we need to know if files were specified by the user.
22513 ac_need_defaults=:
22514 while test $# != 0
22515 do
22516   case $1 in
22517   --*=*)
22518     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22519     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22520     ac_shift=:
22521     ;;
22522   *)
22523     ac_option=$1
22524     ac_optarg=$2
22525     ac_shift=shift
22526     ;;
22527   esac
22528
22529   case $ac_option in
22530   # Handling of the options.
22531   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22532     ac_cs_recheck=: ;;
22533   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22534     echo "$ac_cs_version"; exit ;;
22535   --debug | --debu | --deb | --de | --d | -d )
22536     debug=: ;;
22537   --file | --fil | --fi | --f )
22538     $ac_shift
22539     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22540     ac_need_defaults=false;;
22541   --header | --heade | --head | --hea )
22542     $ac_shift
22543     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22544     ac_need_defaults=false;;
22545   --he | --h)
22546     # Conflict between --help and --header
22547     { echo "$as_me: error: ambiguous option: $1
22548 Try \`$0 --help' for more information." >&2
22549    { (exit 1); exit 1; }; };;
22550   --help | --hel | -h )
22551     echo "$ac_cs_usage"; exit ;;
22552   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22553   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22554     ac_cs_silent=: ;;
22555
22556   # This is an error.
22557   -*) { echo "$as_me: error: unrecognized option: $1
22558 Try \`$0 --help' for more information." >&2
22559    { (exit 1); exit 1; }; } ;;
22560
22561   *) ac_config_targets="$ac_config_targets $1"
22562      ac_need_defaults=false ;;
22563
22564   esac
22565   shift
22566 done
22567
22568 ac_configure_extra_args=
22569
22570 if $ac_cs_silent; then
22571   exec 6>/dev/null
22572   ac_configure_extra_args="$ac_configure_extra_args --silent"
22573 fi
22574
22575 _ACEOF
22576 cat >>$CONFIG_STATUS <<_ACEOF
22577 if \$ac_cs_recheck; then
22578   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22579   CONFIG_SHELL=$SHELL
22580   export CONFIG_SHELL
22581   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22582 fi
22583
22584 _ACEOF
22585 cat >>$CONFIG_STATUS <<\_ACEOF
22586 exec 5>>config.log
22587 {
22588   echo
22589   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22590 ## Running $as_me. ##
22591 _ASBOX
22592   echo "$ac_log"
22593 } >&5
22594
22595 _ACEOF
22596 cat >>$CONFIG_STATUS <<_ACEOF
22597 #
22598 # INIT-COMMANDS
22599 #
22600 llvm_src="${srcdir}"
22601
22602 _ACEOF
22603
22604 cat >>$CONFIG_STATUS <<\_ACEOF
22605
22606 # Handling of arguments.
22607 for ac_config_target in $ac_config_targets
22608 do
22609   case $ac_config_target in
22610     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22611     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22612     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22613     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22614     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22615     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22616     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22617     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22618     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22619     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22620     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22621     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22622     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22623     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22624     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22625     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22626     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22627     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22628     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22629     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22630     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22631     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22632     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22633     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22634     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22635     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22636
22637   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22638 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22639    { (exit 1); exit 1; }; };;
22640   esac
22641 done
22642
22643
22644 # If the user did not use the arguments to specify the items to instantiate,
22645 # then the envvar interface is used.  Set only those that are not.
22646 # We use the long form for the default assignment because of an extremely
22647 # bizarre bug on SunOS 4.1.3.
22648 if $ac_need_defaults; then
22649   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22650   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22651   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22652 fi
22653
22654 # Have a temporary directory for convenience.  Make it in the build tree
22655 # simply because there is no reason against having it here, and in addition,
22656 # creating and moving files from /tmp can sometimes cause problems.
22657 # Hook for its removal unless debugging.
22658 # Note that there is a small window in which the directory will not be cleaned:
22659 # after its creation but before its name has been assigned to `$tmp'.
22660 $debug ||
22661 {
22662   tmp=
22663   trap 'exit_status=$?
22664   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22665 ' 0
22666   trap '{ (exit 1); exit 1; }' 1 2 13 15
22667 }
22668 # Create a (secure) tmp directory for tmp files.
22669
22670 {
22671   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22672   test -n "$tmp" && test -d "$tmp"
22673 }  ||
22674 {
22675   tmp=./conf$$-$RANDOM
22676   (umask 077 && mkdir "$tmp")
22677 } ||
22678 {
22679    echo "$me: cannot create a temporary directory in ." >&2
22680    { (exit 1); exit 1; }
22681 }
22682
22683 #
22684 # Set up the sed scripts for CONFIG_FILES section.
22685 #
22686
22687 # No need to generate the scripts if there are no CONFIG_FILES.
22688 # This happens for instance when ./config.status config.h
22689 if test -n "$CONFIG_FILES"; then
22690
22691 _ACEOF
22692
22693
22694
22695 ac_delim='%!_!# '
22696 for ac_last_try in false false false false false :; do
22697   cat >conf$$subs.sed <<_ACEOF
22698 SHELL!$SHELL$ac_delim
22699 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22700 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22701 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22702 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22703 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22704 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22705 exec_prefix!$exec_prefix$ac_delim
22706 prefix!$prefix$ac_delim
22707 program_transform_name!$program_transform_name$ac_delim
22708 bindir!$bindir$ac_delim
22709 sbindir!$sbindir$ac_delim
22710 libexecdir!$libexecdir$ac_delim
22711 datarootdir!$datarootdir$ac_delim
22712 datadir!$datadir$ac_delim
22713 sysconfdir!$sysconfdir$ac_delim
22714 sharedstatedir!$sharedstatedir$ac_delim
22715 localstatedir!$localstatedir$ac_delim
22716 includedir!$includedir$ac_delim
22717 oldincludedir!$oldincludedir$ac_delim
22718 docdir!$docdir$ac_delim
22719 infodir!$infodir$ac_delim
22720 htmldir!$htmldir$ac_delim
22721 dvidir!$dvidir$ac_delim
22722 pdfdir!$pdfdir$ac_delim
22723 psdir!$psdir$ac_delim
22724 libdir!$libdir$ac_delim
22725 localedir!$localedir$ac_delim
22726 mandir!$mandir$ac_delim
22727 DEFS!$DEFS$ac_delim
22728 ECHO_C!$ECHO_C$ac_delim
22729 ECHO_N!$ECHO_N$ac_delim
22730 ECHO_T!$ECHO_T$ac_delim
22731 LIBS!$LIBS$ac_delim
22732 build_alias!$build_alias$ac_delim
22733 host_alias!$host_alias$ac_delim
22734 target_alias!$target_alias$ac_delim
22735 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22736 CC!$CC$ac_delim
22737 CFLAGS!$CFLAGS$ac_delim
22738 LDFLAGS!$LDFLAGS$ac_delim
22739 CPPFLAGS!$CPPFLAGS$ac_delim
22740 ac_ct_CC!$ac_ct_CC$ac_delim
22741 EXEEXT!$EXEEXT$ac_delim
22742 OBJEXT!$OBJEXT$ac_delim
22743 CXX!$CXX$ac_delim
22744 CXXFLAGS!$CXXFLAGS$ac_delim
22745 ac_ct_CXX!$ac_ct_CXX$ac_delim
22746 CPP!$CPP$ac_delim
22747 subdirs!$subdirs$ac_delim
22748 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22749 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22750 build!$build$ac_delim
22751 build_cpu!$build_cpu$ac_delim
22752 build_vendor!$build_vendor$ac_delim
22753 build_os!$build_os$ac_delim
22754 host!$host$ac_delim
22755 host_cpu!$host_cpu$ac_delim
22756 host_vendor!$host_vendor$ac_delim
22757 host_os!$host_os$ac_delim
22758 target!$target$ac_delim
22759 target_cpu!$target_cpu$ac_delim
22760 target_vendor!$target_vendor$ac_delim
22761 target_os!$target_os$ac_delim
22762 OS!$OS$ac_delim
22763 HOST_OS!$HOST_OS$ac_delim
22764 TARGET_OS!$TARGET_OS$ac_delim
22765 LINKALL!$LINKALL$ac_delim
22766 NOLINKALL!$NOLINKALL$ac_delim
22767 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22768 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22769 ARCH!$ARCH$ac_delim
22770 HOST_ARCH!$HOST_ARCH$ac_delim
22771 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22772 BUILD_CC!$BUILD_CC$ac_delim
22773 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22774 BUILD_CXX!$BUILD_CXX$ac_delim
22775 CVSBUILD!$CVSBUILD$ac_delim
22776 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22777 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22778 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22779 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22780 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22781 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22782 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22783 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22784 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22785 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22786 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22787 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22788 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22789 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22790 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22791 JIT!$JIT$ac_delim
22792 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22793 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22794 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22795 _ACEOF
22796
22797   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22798     break
22799   elif $ac_last_try; then
22800     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22802    { (exit 1); exit 1; }; }
22803   else
22804     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22805   fi
22806 done
22807
22808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22809 if test -n "$ac_eof"; then
22810   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22811   ac_eof=`expr $ac_eof + 1`
22812 fi
22813
22814 cat >>$CONFIG_STATUS <<_ACEOF
22815 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22817 _ACEOF
22818 sed '
22819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22820 s/^/s,@/; s/!/@,|#_!!_#|/
22821 :n
22822 t n
22823 s/'"$ac_delim"'$/,g/; t
22824 s/$/\\/; p
22825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22826 ' >>$CONFIG_STATUS <conf$$subs.sed
22827 rm -f conf$$subs.sed
22828 cat >>$CONFIG_STATUS <<_ACEOF
22829 CEOF$ac_eof
22830 _ACEOF
22831
22832
22833 ac_delim='%!_!# '
22834 for ac_last_try in false false false false false :; do
22835   cat >conf$$subs.sed <<_ACEOF
22836 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22837 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22838 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22839 ENABLE_PIC!$ENABLE_PIC$ac_delim
22840 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22841 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22842 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22843 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22844 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22845 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22846 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22847 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22848 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22849 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22850 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22851 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22852 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22853 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22854 NM!$NM$ac_delim
22855 ifGNUmake!$ifGNUmake$ac_delim
22856 LN_S!$LN_S$ac_delim
22857 CMP!$CMP$ac_delim
22858 CP!$CP$ac_delim
22859 DATE!$DATE$ac_delim
22860 FIND!$FIND$ac_delim
22861 GREP!$GREP$ac_delim
22862 MKDIR!$MKDIR$ac_delim
22863 MV!$MV$ac_delim
22864 RANLIB!$RANLIB$ac_delim
22865 AR!$AR$ac_delim
22866 RM!$RM$ac_delim
22867 SED!$SED$ac_delim
22868 TAR!$TAR$ac_delim
22869 BINPWD!$BINPWD$ac_delim
22870 GRAPHVIZ!$GRAPHVIZ$ac_delim
22871 DOT!$DOT$ac_delim
22872 FDP!$FDP$ac_delim
22873 NEATO!$NEATO$ac_delim
22874 TWOPI!$TWOPI$ac_delim
22875 CIRCO!$CIRCO$ac_delim
22876 GV!$GV$ac_delim
22877 DOTTY!$DOTTY$ac_delim
22878 XDOT!$XDOT$ac_delim
22879 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22880 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22881 INSTALL_DATA!$INSTALL_DATA$ac_delim
22882 BZIP2!$BZIP2$ac_delim
22883 CAT!$CAT$ac_delim
22884 DOXYGEN!$DOXYGEN$ac_delim
22885 GROFF!$GROFF$ac_delim
22886 GZIPBIN!$GZIPBIN$ac_delim
22887 PDFROFF!$PDFROFF$ac_delim
22888 ZIP!$ZIP$ac_delim
22889 OCAMLC!$OCAMLC$ac_delim
22890 OCAMLOPT!$OCAMLOPT$ac_delim
22891 OCAMLDEP!$OCAMLDEP$ac_delim
22892 OCAMLDOC!$OCAMLDOC$ac_delim
22893 GAS!$GAS$ac_delim
22894 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22895 EGREP!$EGREP$ac_delim
22896 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22897 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22898 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22899 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22900 LIBADD_DL!$LIBADD_DL$ac_delim
22901 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22902 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22903 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22904 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22905 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22906 PYTHON!$PYTHON$ac_delim
22907 USE_UDIS86!$USE_UDIS86$ac_delim
22908 USE_OPROFILE!$USE_OPROFILE$ac_delim
22909 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22910 XML2CONFIG!$XML2CONFIG$ac_delim
22911 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22912 LIBXML2_INC!$LIBXML2_INC$ac_delim
22913 CXXCPP!$CXXCPP$ac_delim
22914 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22915 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22916 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22917 MMAP_FILE!$MMAP_FILE$ac_delim
22918 SHLIBEXT!$SHLIBEXT$ac_delim
22919 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22920 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22921 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22922 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22923 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22924 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22925 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22926 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22927 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22928 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22929 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22930 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22931 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22932 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22933 _ACEOF
22934
22935   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22936     break
22937   elif $ac_last_try; then
22938     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22940    { (exit 1); exit 1; }; }
22941   else
22942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22943   fi
22944 done
22945
22946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22947 if test -n "$ac_eof"; then
22948   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22949   ac_eof=`expr $ac_eof + 1`
22950 fi
22951
22952 cat >>$CONFIG_STATUS <<_ACEOF
22953 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22955 _ACEOF
22956 sed '
22957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22958 s/^/s,@/; s/!/@,|#_!!_#|/
22959 :n
22960 t n
22961 s/'"$ac_delim"'$/,g/; t
22962 s/$/\\/; p
22963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22964 ' >>$CONFIG_STATUS <conf$$subs.sed
22965 rm -f conf$$subs.sed
22966 cat >>$CONFIG_STATUS <<_ACEOF
22967 CEOF$ac_eof
22968 _ACEOF
22969
22970
22971 ac_delim='%!_!# '
22972 for ac_last_try in false false false false false :; do
22973   cat >conf$$subs.sed <<_ACEOF
22974 RPATH!$RPATH$ac_delim
22975 RDYNAMIC!$RDYNAMIC$ac_delim
22976 program_prefix!$program_prefix$ac_delim
22977 LIBOBJS!$LIBOBJS$ac_delim
22978 LTLIBOBJS!$LTLIBOBJS$ac_delim
22979 _ACEOF
22980
22981   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22982     break
22983   elif $ac_last_try; then
22984     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22985 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22986    { (exit 1); exit 1; }; }
22987   else
22988     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22989   fi
22990 done
22991
22992 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22993 if test -n "$ac_eof"; then
22994   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22995   ac_eof=`expr $ac_eof + 1`
22996 fi
22997
22998 cat >>$CONFIG_STATUS <<_ACEOF
22999 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23001 _ACEOF
23002 sed '
23003 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23004 s/^/s,@/; s/!/@,|#_!!_#|/
23005 :n
23006 t n
23007 s/'"$ac_delim"'$/,g/; t
23008 s/$/\\/; p
23009 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23010 ' >>$CONFIG_STATUS <conf$$subs.sed
23011 rm -f conf$$subs.sed
23012 cat >>$CONFIG_STATUS <<_ACEOF
23013 :end
23014 s/|#_!!_#|//g
23015 CEOF$ac_eof
23016 _ACEOF
23017
23018
23019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23021 # trailing colons and then remove the whole line if VPATH becomes empty
23022 # (actually we leave an empty line to preserve line numbers).
23023 if test "x$srcdir" = x.; then
23024   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23025 s/:*\$(srcdir):*/:/
23026 s/:*\${srcdir}:*/:/
23027 s/:*@srcdir@:*/:/
23028 s/^\([^=]*=[     ]*\):*/\1/
23029 s/:*$//
23030 s/^[^=]*=[       ]*$//
23031 }'
23032 fi
23033
23034 cat >>$CONFIG_STATUS <<\_ACEOF
23035 fi # test -n "$CONFIG_FILES"
23036
23037
23038 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23039 do
23040   case $ac_tag in
23041   :[FHLC]) ac_mode=$ac_tag; continue;;
23042   esac
23043   case $ac_mode$ac_tag in
23044   :[FHL]*:*);;
23045   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23046 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23047    { (exit 1); exit 1; }; };;
23048   :[FH]-) ac_tag=-:-;;
23049   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23050   esac
23051   ac_save_IFS=$IFS
23052   IFS=:
23053   set x $ac_tag
23054   IFS=$ac_save_IFS
23055   shift
23056   ac_file=$1
23057   shift
23058
23059   case $ac_mode in
23060   :L) ac_source=$1;;
23061   :[FH])
23062     ac_file_inputs=
23063     for ac_f
23064     do
23065       case $ac_f in
23066       -) ac_f="$tmp/stdin";;
23067       *) # Look for the file first in the build tree, then in the source tree
23068          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23069          # because $ac_f cannot contain `:'.
23070          test -f "$ac_f" ||
23071            case $ac_f in
23072            [\\/$]*) false;;
23073            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23074            esac ||
23075            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23076 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23077    { (exit 1); exit 1; }; };;
23078       esac
23079       ac_file_inputs="$ac_file_inputs $ac_f"
23080     done
23081
23082     # Let's still pretend it is `configure' which instantiates (i.e., don't
23083     # use $as_me), people would be surprised to read:
23084     #    /* config.h.  Generated by config.status.  */
23085     configure_input="Generated from "`IFS=:
23086           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23087     if test x"$ac_file" != x-; then
23088       configure_input="$ac_file.  $configure_input"
23089       { echo "$as_me:$LINENO: creating $ac_file" >&5
23090 echo "$as_me: creating $ac_file" >&6;}
23091     fi
23092
23093     case $ac_tag in
23094     *:-:* | *:-) cat >"$tmp/stdin";;
23095     esac
23096     ;;
23097   esac
23098
23099   ac_dir=`$as_dirname -- "$ac_file" ||
23100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101          X"$ac_file" : 'X\(//\)[^/]' \| \
23102          X"$ac_file" : 'X\(//\)$' \| \
23103          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23104 echo X"$ac_file" |
23105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23106             s//\1/
23107             q
23108           }
23109           /^X\(\/\/\)[^/].*/{
23110             s//\1/
23111             q
23112           }
23113           /^X\(\/\/\)$/{
23114             s//\1/
23115             q
23116           }
23117           /^X\(\/\).*/{
23118             s//\1/
23119             q
23120           }
23121           s/.*/./; q'`
23122   { as_dir="$ac_dir"
23123   case $as_dir in #(
23124   -*) as_dir=./$as_dir;;
23125   esac
23126   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23127     as_dirs=
23128     while :; do
23129       case $as_dir in #(
23130       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23131       *) as_qdir=$as_dir;;
23132       esac
23133       as_dirs="'$as_qdir' $as_dirs"
23134       as_dir=`$as_dirname -- "$as_dir" ||
23135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136          X"$as_dir" : 'X\(//\)[^/]' \| \
23137          X"$as_dir" : 'X\(//\)$' \| \
23138          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23139 echo X"$as_dir" |
23140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23141             s//\1/
23142             q
23143           }
23144           /^X\(\/\/\)[^/].*/{
23145             s//\1/
23146             q
23147           }
23148           /^X\(\/\/\)$/{
23149             s//\1/
23150             q
23151           }
23152           /^X\(\/\).*/{
23153             s//\1/
23154             q
23155           }
23156           s/.*/./; q'`
23157       test -d "$as_dir" && break
23158     done
23159     test -z "$as_dirs" || eval "mkdir $as_dirs"
23160   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23161 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23162    { (exit 1); exit 1; }; }; }
23163   ac_builddir=.
23164
23165 case "$ac_dir" in
23166 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23167 *)
23168   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23169   # A ".." for each directory in $ac_dir_suffix.
23170   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23171   case $ac_top_builddir_sub in
23172   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23173   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23174   esac ;;
23175 esac
23176 ac_abs_top_builddir=$ac_pwd
23177 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23178 # for backward compatibility:
23179 ac_top_builddir=$ac_top_build_prefix
23180
23181 case $srcdir in
23182   .)  # We are building in place.
23183     ac_srcdir=.
23184     ac_top_srcdir=$ac_top_builddir_sub
23185     ac_abs_top_srcdir=$ac_pwd ;;
23186   [\\/]* | ?:[\\/]* )  # Absolute name.
23187     ac_srcdir=$srcdir$ac_dir_suffix;
23188     ac_top_srcdir=$srcdir
23189     ac_abs_top_srcdir=$srcdir ;;
23190   *) # Relative name.
23191     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23192     ac_top_srcdir=$ac_top_build_prefix$srcdir
23193     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23194 esac
23195 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23196
23197
23198   case $ac_mode in
23199   :F)
23200   #
23201   # CONFIG_FILE
23202   #
23203
23204   case $INSTALL in
23205   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23206   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23207   esac
23208 _ACEOF
23209
23210 cat >>$CONFIG_STATUS <<\_ACEOF
23211 # If the template does not know about datarootdir, expand it.
23212 # FIXME: This hack should be removed a few years after 2.60.
23213 ac_datarootdir_hack=; ac_datarootdir_seen=
23214
23215 case `sed -n '/datarootdir/ {
23216   p
23217   q
23218 }
23219 /@datadir@/p
23220 /@docdir@/p
23221 /@infodir@/p
23222 /@localedir@/p
23223 /@mandir@/p
23224 ' $ac_file_inputs` in
23225 *datarootdir*) ac_datarootdir_seen=yes;;
23226 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23227   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23228 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23229 _ACEOF
23230 cat >>$CONFIG_STATUS <<_ACEOF
23231   ac_datarootdir_hack='
23232   s&@datadir@&$datadir&g
23233   s&@docdir@&$docdir&g
23234   s&@infodir@&$infodir&g
23235   s&@localedir@&$localedir&g
23236   s&@mandir@&$mandir&g
23237     s&\\\${datarootdir}&$datarootdir&g' ;;
23238 esac
23239 _ACEOF
23240
23241 # Neutralize VPATH when `$srcdir' = `.'.
23242 # Shell code in configure.ac might set extrasub.
23243 # FIXME: do we really want to maintain this feature?
23244 cat >>$CONFIG_STATUS <<_ACEOF
23245   sed "$ac_vpsub
23246 $extrasub
23247 _ACEOF
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23249 :t
23250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23251 s&@configure_input@&$configure_input&;t t
23252 s&@top_builddir@&$ac_top_builddir_sub&;t t
23253 s&@srcdir@&$ac_srcdir&;t t
23254 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23255 s&@top_srcdir@&$ac_top_srcdir&;t t
23256 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23257 s&@builddir@&$ac_builddir&;t t
23258 s&@abs_builddir@&$ac_abs_builddir&;t t
23259 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23260 s&@INSTALL@&$ac_INSTALL&;t t
23261 $ac_datarootdir_hack
23262 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23263
23264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23265   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23266   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23267   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23268 which seems to be undefined.  Please make sure it is defined." >&5
23269 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23270 which seems to be undefined.  Please make sure it is defined." >&2;}
23271
23272   rm -f "$tmp/stdin"
23273   case $ac_file in
23274   -) cat "$tmp/out"; rm -f "$tmp/out";;
23275   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23276   esac
23277  ;;
23278   :H)
23279   #
23280   # CONFIG_HEADER
23281   #
23282 _ACEOF
23283
23284 # Transform confdefs.h into a sed script `conftest.defines', that
23285 # substitutes the proper values into config.h.in to produce config.h.
23286 rm -f conftest.defines conftest.tail
23287 # First, append a space to every undef/define line, to ease matching.
23288 echo 's/$/ /' >conftest.defines
23289 # Then, protect against being on the right side of a sed subst, or in
23290 # an unquoted here document, in config.status.  If some macros were
23291 # called several times there might be several #defines for the same
23292 # symbol, which is useless.  But do not sort them, since the last
23293 # AC_DEFINE must be honored.
23294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23295 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23296 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23297 # PARAMS is the parameter list in the macro definition--in most cases, it's
23298 # just an empty string.
23299 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23300 ac_dB='\\)[      (].*,\\1define\\2'
23301 ac_dC=' '
23302 ac_dD=' ,'
23303
23304 uniq confdefs.h |
23305   sed -n '
23306         t rset
23307         :rset
23308         s/^[     ]*#[    ]*define[       ][      ]*//
23309         t ok
23310         d
23311         :ok
23312         s/[\\&,]/\\&/g
23313         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23314         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23315   ' >>conftest.defines
23316
23317 # Remove the space that was appended to ease matching.
23318 # Then replace #undef with comments.  This is necessary, for
23319 # example, in the case of _POSIX_SOURCE, which is predefined and required
23320 # on some systems where configure will not decide to define it.
23321 # (The regexp can be short, since the line contains either #define or #undef.)
23322 echo 's/ $//
23323 s,^[     #]*u.*,/* & */,' >>conftest.defines
23324
23325 # Break up conftest.defines:
23326 ac_max_sed_lines=50
23327
23328 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23329 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23330 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23331 # et cetera.
23332 ac_in='$ac_file_inputs'
23333 ac_out='"$tmp/out1"'
23334 ac_nxt='"$tmp/out2"'
23335
23336 while :
23337 do
23338   # Write a here document:
23339     cat >>$CONFIG_STATUS <<_ACEOF
23340     # First, check the format of the line:
23341     cat >"\$tmp/defines.sed" <<\\CEOF
23342 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23343 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23344 b
23345 :def
23346 _ACEOF
23347   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23348   echo 'CEOF
23349     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23350   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23351   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23352   grep . conftest.tail >/dev/null || break
23353   rm -f conftest.defines
23354   mv conftest.tail conftest.defines
23355 done
23356 rm -f conftest.defines conftest.tail
23357
23358 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23359 cat >>$CONFIG_STATUS <<\_ACEOF
23360   if test x"$ac_file" != x-; then
23361     echo "/* $configure_input  */" >"$tmp/config.h"
23362     cat "$ac_result" >>"$tmp/config.h"
23363     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23364       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23365 echo "$as_me: $ac_file is unchanged" >&6;}
23366     else
23367       rm -f $ac_file
23368       mv "$tmp/config.h" $ac_file
23369     fi
23370   else
23371     echo "/* $configure_input  */"
23372     cat "$ac_result"
23373   fi
23374   rm -f "$tmp/out12"
23375  ;;
23376
23377   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23378 echo "$as_me: executing $ac_file commands" >&6;}
23379  ;;
23380   esac
23381
23382
23383   case $ac_file$ac_mode in
23384     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23385    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23386     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23387    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23388     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23389    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23390     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23391    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23392     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23393    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23394     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23395    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23396     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23397    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23398     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23399    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23400     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23401    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23402     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23403    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23404     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23405    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23406     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23407    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23408
23409   esac
23410 done # for ac_tag
23411
23412
23413 { (exit 0); exit 0; }
23414 _ACEOF
23415 chmod +x $CONFIG_STATUS
23416 ac_clean_files=$ac_clean_files_save
23417
23418
23419 # configure is writing to config.log, and then calls config.status.
23420 # config.status does its own redirection, appending to config.log.
23421 # Unfortunately, on DOS this fails, as config.log is still kept open
23422 # by configure, so config.status won't be able to write to it; its
23423 # output is simply discarded.  So we exec the FD to /dev/null,
23424 # effectively closing config.log, so it can be properly (re)opened and
23425 # appended to by config.status.  When coming back to configure, we
23426 # need to make the FD available again.
23427 if test "$no_create" != yes; then
23428   ac_cs_success=:
23429   ac_config_status_args=
23430   test "$silent" = yes &&
23431     ac_config_status_args="$ac_config_status_args --quiet"
23432   exec 5>/dev/null
23433   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23434   exec 5>>config.log
23435   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23436   # would make configure fail if this is the last instruction.
23437   $ac_cs_success || { (exit 1); exit 1; }
23438 fi
23439
23440 #
23441 # CONFIG_SUBDIRS section.
23442 #
23443 if test "$no_recursion" != yes; then
23444
23445   # Remove --cache-file and --srcdir arguments so they do not pile up.
23446   ac_sub_configure_args=
23447   ac_prev=
23448   eval "set x $ac_configure_args"
23449   shift
23450   for ac_arg
23451   do
23452     if test -n "$ac_prev"; then
23453       ac_prev=
23454       continue
23455     fi
23456     case $ac_arg in
23457     -cache-file | --cache-file | --cache-fil | --cache-fi \
23458     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23459       ac_prev=cache_file ;;
23460     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23461     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23462     | --c=*)
23463       ;;
23464     --config-cache | -C)
23465       ;;
23466     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23467       ac_prev=srcdir ;;
23468     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23469       ;;
23470     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23471       ac_prev=prefix ;;
23472     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23473       ;;
23474     *)
23475       case $ac_arg in
23476       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23477       esac
23478       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23479     esac
23480   done
23481
23482   # Always prepend --prefix to ensure using the same prefix
23483   # in subdir configurations.
23484   ac_arg="--prefix=$prefix"
23485   case $ac_arg in
23486   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23487   esac
23488   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23489
23490   ac_popdir=`pwd`
23491   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23492
23493     # Do not complain, so a configure script can configure whichever
23494     # parts of a large source tree are present.
23495     test -d "$srcdir/$ac_dir" || continue
23496
23497     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23498     echo "$as_me:$LINENO: $ac_msg" >&5
23499     echo "$ac_msg" >&6
23500     { as_dir="$ac_dir"
23501   case $as_dir in #(
23502   -*) as_dir=./$as_dir;;
23503   esac
23504   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23505     as_dirs=
23506     while :; do
23507       case $as_dir in #(
23508       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23509       *) as_qdir=$as_dir;;
23510       esac
23511       as_dirs="'$as_qdir' $as_dirs"
23512       as_dir=`$as_dirname -- "$as_dir" ||
23513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23514          X"$as_dir" : 'X\(//\)[^/]' \| \
23515          X"$as_dir" : 'X\(//\)$' \| \
23516          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23517 echo X"$as_dir" |
23518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23519             s//\1/
23520             q
23521           }
23522           /^X\(\/\/\)[^/].*/{
23523             s//\1/
23524             q
23525           }
23526           /^X\(\/\/\)$/{
23527             s//\1/
23528             q
23529           }
23530           /^X\(\/\).*/{
23531             s//\1/
23532             q
23533           }
23534           s/.*/./; q'`
23535       test -d "$as_dir" && break
23536     done
23537     test -z "$as_dirs" || eval "mkdir $as_dirs"
23538   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23539 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23540    { (exit 1); exit 1; }; }; }
23541     ac_builddir=.
23542
23543 case "$ac_dir" in
23544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23545 *)
23546   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23547   # A ".." for each directory in $ac_dir_suffix.
23548   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23549   case $ac_top_builddir_sub in
23550   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23551   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23552   esac ;;
23553 esac
23554 ac_abs_top_builddir=$ac_pwd
23555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23556 # for backward compatibility:
23557 ac_top_builddir=$ac_top_build_prefix
23558
23559 case $srcdir in
23560   .)  # We are building in place.
23561     ac_srcdir=.
23562     ac_top_srcdir=$ac_top_builddir_sub
23563     ac_abs_top_srcdir=$ac_pwd ;;
23564   [\\/]* | ?:[\\/]* )  # Absolute name.
23565     ac_srcdir=$srcdir$ac_dir_suffix;
23566     ac_top_srcdir=$srcdir
23567     ac_abs_top_srcdir=$srcdir ;;
23568   *) # Relative name.
23569     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23570     ac_top_srcdir=$ac_top_build_prefix$srcdir
23571     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23572 esac
23573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23574
23575
23576     cd "$ac_dir"
23577
23578     # Check for guested configure; otherwise get Cygnus style configure.
23579     if test -f "$ac_srcdir/configure.gnu"; then
23580       ac_sub_configure=$ac_srcdir/configure.gnu
23581     elif test -f "$ac_srcdir/configure"; then
23582       ac_sub_configure=$ac_srcdir/configure
23583     elif test -f "$ac_srcdir/configure.in"; then
23584       # This should be Cygnus configure.
23585       ac_sub_configure=$ac_aux_dir/configure
23586     else
23587       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23589       ac_sub_configure=
23590     fi
23591
23592     # The recursion is here.
23593     if test -n "$ac_sub_configure"; then
23594       # Make the cache file name correct relative to the subdirectory.
23595       case $cache_file in
23596       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23597       *) # Relative name.
23598         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23599       esac
23600
23601       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23602 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23603       # The eval makes quoting arguments work.
23604       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23605            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23606         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23607 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23608    { (exit 1); exit 1; }; }
23609     fi
23610
23611     cd "$ac_popdir"
23612   done
23613 fi
23614