18806ee31b66ba8fb902747bf8192f4a2247fffc
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 LLVM_CROSS_COMPILING
679 BUILD_CC
680 BUILD_EXEEXT
681 BUILD_CXX
682 CVSBUILD
683 ENABLE_LIBCPP
684 ENABLE_CXX11
685 ENABLE_SPLIT_DWARF
686 ENABLE_CLANG_ARCMT
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
689 ENABLE_OPTIMIZED
690 ENABLE_PROFILING
691 DISABLE_ASSERTIONS
692 ENABLE_WERROR
693 ENABLE_EXPENSIVE_CHECKS
694 EXPENSIVE_CHECKS
695 DEBUG_RUNTIME
696 DEBUG_SYMBOLS
697 KEEP_SYMBOLS
698 JIT
699 TARGET_HAS_JIT
700 ENABLE_DOCS
701 ENABLE_DOXYGEN
702 LLVM_ENABLE_THREADS
703 ENABLE_PTHREADS
704 LLVM_ENABLE_ZLIB
705 ENABLE_PIC
706 ENABLE_SHARED
707 ENABLE_EMBED_STDCXX
708 ENABLE_TIMESTAMPS
709 TARGETS_TO_BUILD
710 LLVM_ENUM_TARGETS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
714 OPTIMIZE_OPTION
715 EXTRA_OPTIONS
716 EXTRA_LD_OPTIONS
717 CLANG_SRC_ROOT
718 BINUTILS_INCDIR
719 INTERNAL_PREFIX
720 NM
721 ifGNUmake
722 LN_S
723 CMP
724 CP
725 DATE
726 FIND
727 GREP
728 MKDIR
729 MV
730 RANLIB
731 AR
732 RM
733 SED
734 TAR
735 BINPWD
736 GRAPHVIZ
737 DOT
738 FDP
739 NEATO
740 TWOPI
741 CIRCO
742 GV
743 DOTTY
744 XDOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 CXXCPP
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 CXXCPP'
817 ac_subdirs_all='projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/safecode
823 tools/polly'
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875   # If the previous option needs an argument, assign it.
876   if test -n "$ac_prev"; then
877     eval $ac_prev=\$ac_option
878     ac_prev=
879     continue
880   fi
881
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949    { (exit 1); exit 1; }; }
950     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951     eval enable_$ac_feature=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package| sed 's/-/_/g'`
1148     eval with_$ac_package=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package | sed 's/-/_/g'`
1157     eval with_$ac_package=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187    { (exit 1); exit 1; }; }
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   { echo "$as_me: error: missing argument to $ac_option" >&2
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Be sure to have absolute directory names.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { echo "$as_me: error: Working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$0" : 'X\(//\)[^/]' \| \
1264          X"$0" : 'X\(//\)$' \| \
1265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 echo X"$0" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR           user executables [EPREFIX/bin]
1360   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR       program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR           object code libraries [EPREFIX/lib]
1366   --includedir=DIR       C header files [PREFIX/include]
1367   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR          info documentation [DATAROOTDIR/info]
1371   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR           man documentation [DATAROOTDIR/man]
1373   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1374   --htmldir=DIR          html documentation [DOCDIR]
1375   --dvidir=DIR           dvi documentation [DOCDIR]
1376   --pdfdir=DIR           pdf documentation [DOCDIR]
1377   --psdir=DIR            ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385   --target=TARGET   configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-compiler-version-checks
1399                           Check the version of the host compiler (default is
1400                           YES)
1401   --enable-polly          Use polly if available (default is YES)
1402   --enable-libcpp         Use libc++ if available (default is NO)
1403   --enable-cxx11          Use c++11 if available (default is NO)
1404   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1405   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1406   --enable-clang-static-analyzer
1407                           Enable building of clang Static Analyzer (default is
1408                           YES)
1409   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410   --enable-optimized      Compile with optimizations enabled (default is NO)
1411   --enable-profiling      Compile with profiling enabled (default is NO)
1412   --enable-assertions     Compile with assertion checks enabled (default is
1413                           YES)
1414   --enable-werror         Compile with -Werror enabled (default is NO)
1415   --enable-expensive-checks
1416                           Compile with expensive debug checks enabled (default
1417                           is NO)
1418   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1419                           NO)
1420   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1421                           optimization is on and YES if it's off)
1422   --enable-keep-symbols   Do not strip installed executables)
1423   --enable-jit            Enable Just In Time Compiling (default is YES)
1424   --enable-docs           Build documents (default is YES)
1425   --enable-doxygen        Build doxygen documentation (default is NO)
1426   --enable-threads        Use threads if available (default is YES)
1427   --enable-pthreads       Use pthreads if available (default is YES)
1428   --enable-zlib           Use zlib for compression/decompression if available
1429                           (default is YES)
1430   --enable-pic            Build LLVM with Position Independent Code (default
1431                           is YES)
1432   --enable-shared         Build a shared library and link tools against it
1433                           (default is NO)
1434   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1435                           Win32 DLL (default is NO)
1436   --enable-timestamps     Enable embedding timestamp information in build
1437                           (default is YES)
1438   --enable-backtraces     Enable embedding backtraces on crash (default is
1439                           YES)
1440   --enable-crash-overrides
1441                           Enable crash handling overrides (default is YES)
1442   --enable-targets        Build specific host targets: all or
1443                           target1,target2,... Valid targets are: host, x86,
1444                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1445                           xcore, msp430, nvptx, systemz, r600, and cpp
1446                           (default=all)
1447   --enable-experimental-targets
1448                           Build experimental host targets: disable or
1449                           target1,target2,... (default=disable)
1450   --enable-bindings       Build specific language bindings:
1451                           all,auto,none,{binding-name} (default=auto)
1452   --enable-terminfo       Query the terminfo database if available (default is
1453                           YES)
1454   --enable-libffi         Check for the presence of libffi (default is NO)
1455   --enable-ltdl-install   install libltdl
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-optimize-option  Select the compiler options to use for optimized
1461                           builds
1462   --with-extra-options    Specify additional options to compile LLVM with
1463   --with-extra-ld-options Specify additional options to link LLVM with
1464   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1465                           is stdlib)
1466   --with-clang-srcdir     Directory to the out-of-tree Clang source
1467   --with-clang-resource-dir
1468                           Relative directory from the Clang binary for
1469                           resource files
1470   --with-c-include-dirs   Colon separated list of directories clang will
1471                           search for headers
1472   --with-gcc-toolchain    Directory where gcc is installed.
1473   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1474   --with-binutils-include Specify path to binutils/include/ containing
1475                           plugin-api.h file for gold plugin.
1476   --with-bug-report-url   Specify the URL where bug reports should be
1477                           submitted (default=http://llvm.org/bugs/)
1478   --with-internal-prefix  Installation directory for internal files
1479   --with-python           path to python
1480   --with-udis86=<path>    Use udis86 external x86 disassembler library
1481   --with-oprofile=<prefix>
1482                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1483   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1484
1485
1486 Some influential environment variables:
1487   CC          C compiler command
1488   CFLAGS      C compiler flags
1489   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490               nonstandard directory <lib dir>
1491   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492               you have headers in a nonstandard directory <include dir>
1493   CXX         C++ compiler command
1494   CXXFLAGS    C++ compiler flags
1495   CPP         C preprocessor
1496   CXXCPP      C++ preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 LLVM configure 3.5svn
1563 generated by GNU Autoconf 2.60
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569
1570 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1571 _ACEOF
1572   exit
1573 fi
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1577
1578 It was created by LLVM $as_me 3.5svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1580
1581   $ $0 $@
1582
1583 _ACEOF
1584 exec 5>>config.log
1585 {
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
1590
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608 _ASUNAME
1609
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   echo "PATH: $as_dir"
1616 done
1617 IFS=$as_save_IFS
1618
1619 } >&5
1620
1621 cat >&5 <<_ACEOF
1622
1623
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1627
1628 _ACEOF
1629
1630
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_configure_args=
1637 ac_configure_args0=
1638 ac_configure_args1=
1639 ac_must_keep_next=false
1640 for ac_pass in 1 2
1641 do
1642   for ac_arg
1643   do
1644     case $ac_arg in
1645     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647     | -silent | --silent | --silen | --sile | --sil)
1648       continue ;;
1649     *\'*)
1650       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651     esac
1652     case $ac_pass in
1653     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654     2)
1655       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656       if test $ac_must_keep_next = true; then
1657         ac_must_keep_next=false # Got value, back to normal.
1658       else
1659         case $ac_arg in
1660           *=* | --config-cache | -C | -disable-* | --disable-* \
1661           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663           | -with-* | --with-* | -without-* | --without-* | --x)
1664             case "$ac_configure_args0 " in
1665               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666             esac
1667             ;;
1668           -* ) ac_must_keep_next=true ;;
1669         esac
1670       fi
1671       ac_configure_args="$ac_configure_args '$ac_arg'"
1672       ;;
1673     esac
1674   done
1675 done
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log.  We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685   # Save into config.log some information that might help in debugging.
1686   {
1687     echo
1688
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
1696 (
1697   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698     eval ac_val=\$$ac_var
1699     case $ac_val in #(
1700     *${as_nl}*)
1701       case $ac_var in #(
1702       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704       esac
1705       case $ac_var in #(
1706       _ | IFS | as_nl) ;; #(
1707       *) $as_unset $ac_var ;;
1708       esac ;;
1709     esac
1710   done
1711   (set) 2>&1 |
1712     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713     *${as_nl}ac_space=\ *)
1714       sed -n \
1715         "s/'\''/'\''\\\\'\'''\''/g;
1716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717       ;; #(
1718     *)
1719       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720       ;;
1721     esac |
1722     sort
1723 )
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1730 _ASBOX
1731     echo
1732     for ac_var in $ac_subst_vars
1733     do
1734       eval ac_val=\$$ac_var
1735       case $ac_val in
1736       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737       esac
1738       echo "$ac_var='\''$ac_val'\''"
1739     done | sort
1740     echo
1741
1742     if test -n "$ac_subst_files"; then
1743       cat <<\_ASBOX
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1747 _ASBOX
1748       echo
1749       for ac_var in $ac_subst_files
1750       do
1751         eval ac_val=\$$ac_var
1752         case $ac_val in
1753         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754         esac
1755         echo "$ac_var='\''$ac_val'\''"
1756       done | sort
1757       echo
1758     fi
1759
1760     if test -s confdefs.h; then
1761       cat <<\_ASBOX
1762 ## ----------- ##
1763 ## confdefs.h. ##
1764 ## ----------- ##
1765 _ASBOX
1766       echo
1767       cat confdefs.h
1768       echo
1769     fi
1770     test "$ac_signal" != 0 &&
1771       echo "$as_me: caught signal $ac_signal"
1772     echo "$as_me: exit $exit_status"
1773   } >&5
1774   rm -f core *.core core.conftest.* &&
1775     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776     exit $exit_status
1777 ' 0
1778 for ac_signal in 1 2 13 15; do
1779   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780 done
1781 ac_signal=0
1782
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1785
1786 # Predefined preprocessor variables.
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
1811
1812
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816   set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819 else
1820   set x "$ac_default_prefix/share/config.site" \
1821         "$ac_default_prefix/etc/config.site"
1822 fi
1823 shift
1824 for ac_site_file
1825 do
1826   if test -r "$ac_site_file"; then
1827     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829     sed 's/^/| /' "$ac_site_file" >&5
1830     . "$ac_site_file"
1831   fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835   # Some versions of bash will fail to source /dev/null (special
1836   # files actually), so we avoid doing that.
1837   if test -f "$cache_file"; then
1838     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1840     case $cache_file in
1841       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842       *)                      . "./$cache_file";;
1843     esac
1844   fi
1845 else
1846   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1848   >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856   eval ac_new_set=\$ac_env_${ac_var}_set
1857   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858   eval ac_new_val=\$ac_env_${ac_var}_value
1859   case $ac_old_set,$ac_new_set in
1860     set,)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,set)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,);;
1869     *)
1870       if test "x$ac_old_val" != "x$ac_new_val"; then
1871         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874 echo "$as_me:   former value:  $ac_old_val" >&2;}
1875         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876 echo "$as_me:   current value: $ac_new_val" >&2;}
1877         ac_cache_corrupted=:
1878       fi;;
1879   esac
1880   # Pass precious variables to config.status.
1881   if test "$ac_new_set" = set; then
1882     case $ac_new_val in
1883     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884     *) ac_arg=$ac_var=$ac_new_val ;;
1885     esac
1886     case " $ac_configure_args " in
1887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889     esac
1890   fi
1891 done
1892 if $ac_cache_corrupted; then
1893   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897    { (exit 1); exit 1; }; }
1898 fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 5
1939 _ACEOF
1940
1941
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1943
1944
1945
1946
1947
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981
1982 if test ${srcdir} != "." ; then
1983   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986    { (exit 1); exit 1; }; }
1987   fi
1988 fi
1989
1990 : ${CFLAGS=}
1991 : ${CXXFLAGS=}
1992
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   for ac_prog in clang gcc
2000   do
2001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$CC"; then
2009   ac_cv_prog_CC="$CC" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2032 else
2033   { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2035 fi
2036
2037
2038     test -n "$CC" && break
2039   done
2040 fi
2041 if test -z "$CC"; then
2042   ac_ct_CC=$CC
2043   for ac_prog in clang gcc
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_CC"; then
2053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_prog_ac_ct_CC="$ac_prog"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$ac_ct_CC" && break
2083 done
2084
2085   if test "x$ac_ct_CC" = x; then
2086     CC=""
2087   else
2088     case $cross_compiling:$ac_tool_warned in
2089 yes:)
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet.  If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2097 esac
2098     CC=$ac_ct_CC
2099   fi
2100 fi
2101
2102
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107    { (exit 1); exit 1; }; }
2108
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler --version >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler -v >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -V >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142
2143 cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2162 # of exeext.
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166 #
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort.  b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171 #
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions.  Remove them first so a
2174 # subsequent execution test works.
2175 ac_rmfiles=
2176 for ac_file in $ac_files
2177 do
2178   case $ac_file in
2179     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181   esac
2182 done
2183 rm -f $ac_rmfiles
2184
2185 if { (ac_try="$ac_link_default"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191   (eval "$ac_link_default") 2>&5
2192   ac_status=$?
2193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194   (exit $ac_status); }; then
2195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2199 # Autoconf.
2200 for ac_file in $ac_files
2201 do
2202   test -f "$ac_file" || continue
2203   case $ac_file in
2204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205         ;;
2206     [ab].out )
2207         # We found the default executable, but exeext='' is most
2208         # certainly right.
2209         break;;
2210     *.* )
2211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2212         then :; else
2213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214         fi
2215         # We set ac_cv_exeext here because the later test for it is not
2216         # safe: cross compilers may not add the suffix if given an `-o'
2217         # argument, so we may need to know it at that point already.
2218         # Even if this section looks crufty: it has the advantage of
2219         # actually working.
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235    { (exit 77); exit 77; }; }
2236 fi
2237
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2241
2242 # Check that the compiler produces executables we can run.  If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249   if { ac_try='./$ac_file'
2250   { (case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_try") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259     cross_compiling=no
2260   else
2261     if test "$cross_compiling" = maybe; then
2262         cross_compiling=yes
2263     else
2264         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271     fi
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run.  If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303   test -f "$ac_file" || continue
2304   case $ac_file in
2305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2348 case "(($ac_try" in
2349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350   *) ac_try_echo=$ac_try;;
2351 esac
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353   (eval "$ac_compile") 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   for ac_file in conftest.o conftest.obj conftest.*; do
2358   test -f "$ac_file" || continue;
2359   case $ac_file in
2360     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362        break;;
2363   esac
2364 done
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374 fi
2375
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377 fi
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compile") 2>conftest.er1
2413   ac_status=$?
2414   grep -v '^ *+' conftest.er1 >conftest.err
2415   rm -f conftest.er1
2416   cat conftest.err >&5
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); } &&
2419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420   { (case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_try") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   ac_compiler_gnu=yes
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444         ac_compiler_gnu=no
2445 fi
2446
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449
2450 fi
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   ac_save_c_werror_flag=$ac_c_werror_flag
2462    ac_c_werror_flag=yes
2463    ac_cv_prog_cc_g=no
2464    CFLAGS="-g"
2465    cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_compile") 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495   { (case "(($ac_try" in
2496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497   *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500   (eval "$ac_try") 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; }; then
2514   ac_cv_prog_cc_g=yes
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519         CFLAGS=""
2520       cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   :
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_c_werror_flag=$ac_save_c_werror_flag
2575          CFLAGS="-g"
2576          cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606   { (case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611   (eval "$ac_try") 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   ac_cv_prog_cc_g=yes
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640    ac_c_werror_flag=$ac_save_c_werror_flag
2641 fi
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645   CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647   if test "$GCC" = yes; then
2648     CFLAGS="-g -O2"
2649   else
2650     CFLAGS="-g"
2651   fi
2652 else
2653   if test "$GCC" = yes; then
2654     CFLAGS="-O2"
2655   else
2656     CFLAGS=
2657   fi
2658 fi
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   ac_cv_prog_cc_c89=no
2665 ac_save_CC=$CC
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672 #include <stdarg.h>
2673 #include <stdio.h>
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2680      char **p;
2681      int i;
2682 {
2683   return p[i];
2684 }
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2686 {
2687   char *s;
2688   va_list v;
2689   va_start (v,p);
2690   s = g (p, va_arg (v,int));
2691   va_end (v);
2692   return s;
2693 }
2694
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2696    function prototypes and stuff, but not '\xHH' hex character constants.
2697    These don't provoke an error unfortunately, instead are silently treated
2698    as 'x'.  The following induces an error, until -std is added to get
2699    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2700    array size at least.  It's necessary to write '\x00'==0 to get something
2701    that's true only with -std.  */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705    inside strings and character constants.  */
2706 #define FOO(x) 'x'
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713 int argc;
2714 char **argv;
2715 int
2716 main ()
2717 {
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 do
2726   CC="$ac_save_CC $ac_arg"
2727   rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2729 case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_compile") 2>conftest.er1
2735   ac_status=$?
2736   grep -v '^ *+' conftest.er1 >conftest.err
2737   rm -f conftest.er1
2738   cat conftest.err >&5
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742   { (case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747   (eval "$ac_try") 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_c89=$ac_arg
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext
2770   test "x$ac_cv_prog_cc_c89" != "xno" && break
2771 done
2772 rm -f conftest.$ac_ext
2773 CC=$ac_save_CC
2774
2775 fi
2776 # AC_CACHE_VAL
2777 case "x$ac_cv_prog_cc_c89" in
2778   x)
2779     { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2781   xno)
2782     { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2784   *)
2785     CC="$CC $ac_cv_prog_cc_c89"
2786     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2788 esac
2789
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797 ac_ext=cpp
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803   if test -n "$CCC"; then
2804     CXX=$CCC
2805   else
2806     if test -n "$ac_tool_prefix"; then
2807   for ac_prog in clang++ g++
2808   do
2809     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CXX"; then
2817   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CXX=$ac_cv_prog_CXX
2837 if test -n "$CXX"; then
2838   { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846     test -n "$CXX" && break
2847   done
2848 fi
2849 if test -z "$CXX"; then
2850   ac_ct_CXX=$CXX
2851   for ac_prog in clang++ g++
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CXX"; then
2861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CXX="$ac_prog"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889
2890   test -n "$ac_ct_CXX" && break
2891 done
2892
2893   if test "x$ac_ct_CXX" = x; then
2894     CXX="g++"
2895   else
2896     case $cross_compiling:$ac_tool_warned in
2897 yes:)
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet.  If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906     CXX=$ac_ct_CXX
2907   fi
2908 fi
2909
2910   fi
2911 fi
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler --version >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler -v >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -V >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957
2958 int
2959 main ()
2960 {
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } &&
2983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984   { (case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_try") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; } &&
2993          { ac_try='test -s conftest.$ac_objext'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; }; then
3003   ac_compiler_gnu=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008         ac_compiler_gnu=no
3009 fi
3010
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014 fi
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026    ac_cxx_werror_flag=yes
3027    ac_cv_prog_cxx_g=no
3028    CXXFLAGS="-g"
3029    cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compile") 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059   { (case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_try") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; } &&
3068          { ac_try='test -s conftest.$ac_objext'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; }; then
3078   ac_cv_prog_cxx_g=yes
3079 else
3080   echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3082
3083         CXXFLAGS=""
3084       cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   :
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139          CXXFLAGS="-g"
3140          cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compile") 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170   { (case "(($ac_try" in
3171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172   *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175   (eval "$ac_try") 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; }; then
3189   ac_cv_prog_cxx_g=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209   CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211   if test "$GXX" = yes; then
3212     CXXFLAGS="-g -O2"
3213   else
3214     CXXFLAGS="-g"
3215   fi
3216 else
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-O2"
3219   else
3220     CXXFLAGS=
3221   fi
3222 fi
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null; then
3282   if test -s conftest.err; then
3283     ac_cpp_err=$ac_c_preproc_warn_flag
3284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285   else
3286     ac_cpp_err=
3287   fi
3288 else
3289   ac_cpp_err=yes
3290 fi
3291 if test -z "$ac_cpp_err"; then
3292   :
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3300
3301 rm -f conftest.err conftest.$ac_ext
3302
3303   # OK, works on sane cases.  Now check whether nonexistent headers
3304   # can be detected and how.
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ac_nonexistent.h>
3312 _ACEOF
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346
3347 rm -f conftest.err conftest.$ac_ext
3348
3349 done
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3353   break
3354 fi
3355
3356     done
3357     ac_cv_prog_CPP=$CPP
3358
3359 fi
3360   CPP=$ac_cv_prog_CPP
3361 else
3362   ac_cv_prog_CPP=$CPP
3363 fi
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3366 ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null; then
3401   if test -s conftest.err; then
3402     ac_cpp_err=$ac_c_preproc_warn_flag
3403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404   else
3405     ac_cpp_err=
3406   fi
3407 else
3408   ac_cpp_err=yes
3409 fi
3410 if test -z "$ac_cpp_err"; then
3411   :
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3419
3420 rm -f conftest.err conftest.$ac_ext
3421
3422   # OK, works on sane cases.  Now check whether nonexistent headers
3423   # can be detected and how.
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430 #include <ac_nonexistent.h>
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   # Broken: success on invalid input.
3456 continue
3457 else
3458   echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3465
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   :
3473 else
3474   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478    { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 if test "$CXX" = "clang++" ; then
3489   { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491   ac_ext=cpp
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <limits>
3505 #if __has_include (<cxxabi.h>)
3506 #include <cxxabi.h>
3507 #endif
3508 #if __has_include (<unwind.h>)
3509 #include <unwind.h>
3510 #endif
3511
3512 int
3513 main ()
3514 {
3515
3516   ;
3517   return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_compile") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } &&
3534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540   (eval "$ac_try") 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; } &&
3544          { ac_try='test -s conftest.$ac_objext'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563   { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572   ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578 fi
3579
3580 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3581 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3582 ac_ext=cpp
3583 ac_cpp='$CXXCPP $CPPFLAGS'
3584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3587
3588 llvm_cv_cxx_compiler=unknown
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595 #if ! __clang__
3596                                      #error
3597                                      #endif
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_compile") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3622   { (case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_try") 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   llvm_cv_cxx_compiler=clang
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646         cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #if ! __GNUC__
3653                                                         #error
3654                                                         #endif
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_compile") 2>conftest.er1
3672   ac_status=$?
3673   grep -v '^ *+' conftest.er1 >conftest.err
3674   rm -f conftest.er1
3675   cat conftest.err >&5
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } &&
3678          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3679   { (case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_try") 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest.$ac_objext'
3689   { (case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; }; then
3698   llvm_cv_cxx_compiler=gcc
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703
3704 fi
3705
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 fi
3708
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3717 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3718
3719 # Check whether --enable-compiler-version-checks was given.
3720 if test "${enable_compiler_version_checks+set}" = set; then
3721   enableval=$enable_compiler_version_checks;
3722 else
3723   enableval=default
3724 fi
3725
3726 case "$enableval" in
3727   no)
3728     ;;
3729   yes|default)
3730     ac_ext=cpp
3731 ac_cpp='$CXXCPP $CPPFLAGS'
3732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3735
3736     case "$llvm_cv_cxx_compiler" in
3737     clang)
3738       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3739 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3740       cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746
3747 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3748 #error This version of Clang is too old to build LLVM
3749 #endif
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766   (eval "$ac_compile") 2>conftest.er1
3767   ac_status=$?
3768   grep -v '^ *+' conftest.er1 >conftest.err
3769   rm -f conftest.er1
3770   cat conftest.err >&5
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); } &&
3773          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3774   { (case "(($ac_try" in
3775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776   *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779   (eval "$ac_try") 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789   (eval "$ac_try") 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795 else
3796   echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799         { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3801            { { echo "$as_me:$LINENO: error:
3802 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3803 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3804 bypass these sanity checks." >&5
3805 echo "$as_me: error:
3806 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3807 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3808 bypass these sanity checks." >&2;}
3809    { (exit 1); exit 1; }; }
3810 fi
3811
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813       ;;
3814     gcc)
3815       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3816 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3817       cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823
3824 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3825 #error This version of GCC is too old to build LLVM
3826 #endif
3827
3828 int
3829 main ()
3830 {
3831
3832   ;
3833   return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3838 case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843   (eval "$ac_compile") 2>conftest.er1
3844   ac_status=$?
3845   grep -v '^ *+' conftest.er1 >conftest.err
3846   rm -f conftest.er1
3847   cat conftest.err >&5
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } &&
3850          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3851   { (case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856   (eval "$ac_try") 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest.$ac_objext'
3861   { (case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866   (eval "$ac_try") 2>&5
3867   ac_status=$?
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); }; }; then
3870   { echo "$as_me:$LINENO: result: yes" >&5
3871 echo "${ECHO_T}yes" >&6; }
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876         { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3878            { { echo "$as_me:$LINENO: error:
3879 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3880 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3881 bypass these sanity checks." >&5
3882 echo "$as_me: error:
3883 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3884 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3885 bypass these sanity checks." >&2;}
3886    { (exit 1); exit 1; }; }
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890       ;;
3891     unknown)
3892       ;;
3893     esac
3894     ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899
3900     ;;
3901   *)
3902     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3903 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3904    { (exit 1); exit 1; }; }
3905     ;;
3906 esac
3907
3908
3909
3910 if test -d ${srcdir}/projects/test-suite ; then
3911   subdirs="$subdirs projects/test-suite"
3912
3913 fi
3914
3915 if test -d ${srcdir}/projects/llvm-test ; then
3916   subdirs="$subdirs projects/llvm-test"
3917
3918 fi
3919
3920 if test -d ${srcdir}/projects/poolalloc ; then
3921   subdirs="$subdirs projects/poolalloc"
3922
3923 fi
3924
3925 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3926   subdirs="$subdirs projects/llvm-poolalloc"
3927
3928 fi
3929
3930 for i in `ls ${srcdir}/projects`
3931 do
3932   if test -d ${srcdir}/projects/${i} ; then
3933     case ${i} in
3934       sample)       subdirs="$subdirs projects/sample"
3935     ;;
3936       safecode)     subdirs="$subdirs projects/safecode"
3937  ;;
3938       compiler-rt)       ;;
3939       test-suite)     ;;
3940       llvm-test)      ;;
3941       poolalloc)      ;;
3942       llvm-poolalloc) ;;
3943       *)
3944         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3945 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3946         ;;
3947     esac
3948   fi
3949 done
3950
3951 # Check whether --enable-polly was given.
3952 if test "${enable_polly+set}" = set; then
3953   enableval=$enable_polly;
3954 else
3955   enableval=default
3956 fi
3957
3958 case "$enableval" in
3959   yes) ENABLE_POLLY=1
3960  ;;
3961   no)  ENABLE_POLLY=0
3962  ;;
3963   default) ENABLE_POLLY=1
3964  ;;
3965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3966 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3967    { (exit 1); exit 1; }; } ;;
3968 esac
3969
3970
3971 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3972   LLVM_HAS_POLLY=1
3973
3974   subdirs="$subdirs tools/polly"
3975
3976 fi
3977
3978
3979 # Make sure we can run config.sub.
3980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3981   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3983    { (exit 1); exit 1; }; }
3984
3985 { echo "$as_me:$LINENO: checking build system type" >&5
3986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3987 if test "${ac_cv_build+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   ac_build_alias=$build_alias
3991 test "x$ac_build_alias" = x &&
3992   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3993 test "x$ac_build_alias" = x &&
3994   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3996    { (exit 1); exit 1; }; }
3997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3998   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4000    { (exit 1); exit 1; }; }
4001
4002 fi
4003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4004 echo "${ECHO_T}$ac_cv_build" >&6; }
4005 case $ac_cv_build in
4006 *-*-*) ;;
4007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4008 echo "$as_me: error: invalid value of canonical build" >&2;}
4009    { (exit 1); exit 1; }; };;
4010 esac
4011 build=$ac_cv_build
4012 ac_save_IFS=$IFS; IFS='-'
4013 set x $ac_cv_build
4014 shift
4015 build_cpu=$1
4016 build_vendor=$2
4017 shift; shift
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4020 build_os=$*
4021 IFS=$ac_save_IFS
4022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4023
4024
4025 { echo "$as_me:$LINENO: checking host system type" >&5
4026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4027 if test "${ac_cv_host+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   if test "x$host_alias" = x; then
4031   ac_cv_host=$ac_cv_build
4032 else
4033   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4034     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4036    { (exit 1); exit 1; }; }
4037 fi
4038
4039 fi
4040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4041 echo "${ECHO_T}$ac_cv_host" >&6; }
4042 case $ac_cv_host in
4043 *-*-*) ;;
4044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4045 echo "$as_me: error: invalid value of canonical host" >&2;}
4046    { (exit 1); exit 1; }; };;
4047 esac
4048 host=$ac_cv_host
4049 ac_save_IFS=$IFS; IFS='-'
4050 set x $ac_cv_host
4051 shift
4052 host_cpu=$1
4053 host_vendor=$2
4054 shift; shift
4055 # Remember, the first character of IFS is used to create $*,
4056 # except with old shells:
4057 host_os=$*
4058 IFS=$ac_save_IFS
4059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4060
4061
4062 { echo "$as_me:$LINENO: checking target system type" >&5
4063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4064 if test "${ac_cv_target+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test "x$target_alias" = x; then
4068   ac_cv_target=$ac_cv_host
4069 else
4070   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4071     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4073    { (exit 1); exit 1; }; }
4074 fi
4075
4076 fi
4077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4078 echo "${ECHO_T}$ac_cv_target" >&6; }
4079 case $ac_cv_target in
4080 *-*-*) ;;
4081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4082 echo "$as_me: error: invalid value of canonical target" >&2;}
4083    { (exit 1); exit 1; }; };;
4084 esac
4085 target=$ac_cv_target
4086 ac_save_IFS=$IFS; IFS='-'
4087 set x $ac_cv_target
4088 shift
4089 target_cpu=$1
4090 target_vendor=$2
4091 shift; shift
4092 # Remember, the first character of IFS is used to create $*,
4093 # except with old shells:
4094 target_os=$*
4095 IFS=$ac_save_IFS
4096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4097
4098
4099 # The aliases save the names the user supplied, while $host etc.
4100 # will get canonicalized.
4101 test -n "$target_alias" &&
4102   test "$program_prefix$program_suffix$program_transform_name" = \
4103     NONENONEs,x,x, &&
4104   program_prefix=${target_alias}-
4105
4106 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4107 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4108 if test "${llvm_cv_os_type+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   case $host in
4112   *-*-aix*)
4113     llvm_cv_link_all_option="-Wl,--whole-archive"
4114     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4115     llvm_cv_os_type="AIX"
4116     llvm_cv_platform_type="Unix" ;;
4117   *-*-irix*)
4118     llvm_cv_link_all_option="-Wl,--whole-archive"
4119     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4120     llvm_cv_os_type="IRIX"
4121     llvm_cv_platform_type="Unix" ;;
4122   *-*-cygwin*)
4123     llvm_cv_link_all_option="-Wl,--whole-archive"
4124     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4125     llvm_cv_os_type="Cygwin"
4126     llvm_cv_platform_type="Unix" ;;
4127   *-*-darwin*)
4128     llvm_cv_link_all_option="-Wl,-all_load"
4129     llvm_cv_no_link_all_option="-Wl,-noall_load"
4130     llvm_cv_os_type="Darwin"
4131     llvm_cv_platform_type="Unix" ;;
4132   *-*-minix*)
4133     llvm_cv_link_all_option="-Wl,-all_load"
4134     llvm_cv_no_link_all_option="-Wl,-noall_load"
4135     llvm_cv_os_type="Minix"
4136     llvm_cv_platform_type="Unix" ;;
4137   *-*-freebsd*)
4138     llvm_cv_link_all_option="-Wl,--whole-archive"
4139     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4140     llvm_cv_os_type="FreeBSD"
4141     llvm_cv_platform_type="Unix" ;;
4142   *-*-kfreebsd-gnu)
4143     llvm_cv_link_all_option="-Wl,--whole-archive"
4144     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4145     llvm_cv_os_type="GNU/kFreeBSD"
4146     llvm_cv_platform_type="Unix" ;;
4147   *-*-openbsd*)
4148     llvm_cv_link_all_option="-Wl,--whole-archive"
4149     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4150     llvm_cv_os_type="OpenBSD"
4151     llvm_cv_platform_type="Unix" ;;
4152   *-*-netbsd*)
4153     llvm_cv_link_all_option="-Wl,--whole-archive"
4154     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4155     llvm_cv_os_type="NetBSD"
4156     llvm_cv_platform_type="Unix" ;;
4157   *-*-dragonfly*)
4158     llvm_cv_link_all_option="-Wl,--whole-archive"
4159     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4160     llvm_cv_os_type="DragonFly"
4161     llvm_cv_platform_type="Unix" ;;
4162   *-*-hpux*)
4163     llvm_cv_link_all_option="-Wl,--whole-archive"
4164     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4165     llvm_cv_os_type="HP-UX"
4166     llvm_cv_platform_type="Unix" ;;
4167   *-*-interix*)
4168     llvm_cv_link_all_option="-Wl,--whole-archive"
4169     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4170     llvm_cv_os_type="Interix"
4171     llvm_cv_platform_type="Unix" ;;
4172   *-*-linux*)
4173     llvm_cv_link_all_option="-Wl,--whole-archive"
4174     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4175     llvm_cv_os_type="Linux"
4176     llvm_cv_platform_type="Unix" ;;
4177   *-*-gnu*)
4178     llvm_cv_link_all_option="-Wl,--whole-archive"
4179     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4180     llvm_cv_os_type="GNU"
4181     llvm_cv_platform_type="Unix" ;;
4182   *-*-solaris*)
4183     llvm_cv_link_all_option="-Wl,-z,allextract"
4184     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4185     llvm_cv_os_type="SunOS"
4186     llvm_cv_platform_type="Unix" ;;
4187   *-*-auroraux*)
4188     llvm_cv_link_all_option="-Wl,-z,allextract"
4189     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4190     llvm_cv_os_type="AuroraUX"
4191     llvm_cv_platform_type="Unix" ;;
4192   *-*-win32*)
4193     llvm_cv_link_all_option="-Wl,--whole-archive"
4194     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4195     llvm_cv_os_type="Win32"
4196     llvm_cv_platform_type="Win32" ;;
4197   *-*-mingw*)
4198     llvm_cv_link_all_option="-Wl,--whole-archive"
4199     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4200     llvm_cv_os_type="MingW"
4201     llvm_cv_platform_type="Win32" ;;
4202   *-*-haiku*)
4203     llvm_cv_link_all_option="-Wl,--whole-archive"
4204     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4205     llvm_cv_os_type="Haiku"
4206     llvm_cv_platform_type="Unix" ;;
4207   *-unknown-eabi*)
4208     llvm_cv_link_all_option="-Wl,--whole-archive"
4209     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4210     llvm_cv_os_type="Freestanding"
4211     llvm_cv_platform_type="Unix" ;;
4212   *-unknown-elf*)
4213     llvm_cv_link_all_option="-Wl,--whole-archive"
4214     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4215     llvm_cv_os_type="Freestanding"
4216     llvm_cv_platform_type="Unix" ;;
4217   *)
4218     llvm_cv_link_all_option=""
4219     llvm_cv_no_link_all_option=""
4220     llvm_cv_os_type="Unknown"
4221     llvm_cv_platform_type="Unknown" ;;
4222 esac
4223 fi
4224 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4225 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4226
4227 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4228 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4229 if test "${llvm_cv_target_os_type+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   case $target in
4233   *-*-aix*)
4234     llvm_cv_target_os_type="AIX" ;;
4235   *-*-irix*)
4236     llvm_cv_target_os_type="IRIX" ;;
4237   *-*-cygwin*)
4238     llvm_cv_target_os_type="Cygwin" ;;
4239   *-*-darwin*)
4240     llvm_cv_target_os_type="Darwin" ;;
4241   *-*-minix*)
4242     llvm_cv_target_os_type="Minix" ;;
4243   *-*-freebsd*)
4244     llvm_cv_target_os_type="FreeBSD" ;;
4245   *-*-kfreebsd-gnu)
4246     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4247   *-*-openbsd*)
4248     llvm_cv_target_os_type="OpenBSD" ;;
4249   *-*-netbsd*)
4250     llvm_cv_target_os_type="NetBSD" ;;
4251   *-*-dragonfly*)
4252     llvm_cv_target_os_type="DragonFly" ;;
4253   *-*-hpux*)
4254     llvm_cv_target_os_type="HP-UX" ;;
4255   *-*-interix*)
4256     llvm_cv_target_os_type="Interix" ;;
4257   *-*-linux*)
4258     llvm_cv_target_os_type="Linux" ;;
4259   *-*-gnu*)
4260     llvm_cv_target_os_type="GNU" ;;
4261   *-*-solaris*)
4262     llvm_cv_target_os_type="SunOS" ;;
4263   *-*-auroraux*)
4264     llvm_cv_target_os_type="AuroraUX" ;;
4265   *-*-win32*)
4266     llvm_cv_target_os_type="Win32" ;;
4267   *-*-mingw*)
4268     llvm_cv_target_os_type="MingW" ;;
4269   *-*-haiku*)
4270     llvm_cv_target_os_type="Haiku" ;;
4271   *-*-rtems*)
4272     llvm_cv_target_os_type="RTEMS" ;;
4273   *-*-nacl*)
4274     llvm_cv_target_os_type="NativeClient" ;;
4275   *-unknown-eabi*)
4276     llvm_cv_target_os_type="Freestanding" ;;
4277   *)
4278     llvm_cv_target_os_type="Unknown" ;;
4279 esac
4280 fi
4281 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4282 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4283
4284 if test "$llvm_cv_os_type" = "Unknown" ; then
4285   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4286 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4287    { (exit 1); exit 1; }; }
4288 fi
4289
4290 OS=$llvm_cv_os_type
4291
4292 HOST_OS=$llvm_cv_os_type
4293
4294 TARGET_OS=$llvm_cv_target_os_type
4295
4296
4297 LINKALL=$llvm_cv_link_all_option
4298
4299 NOLINKALL=$llvm_cv_no_link_all_option
4300
4301
4302 case $llvm_cv_platform_type in
4303   Unix)
4304
4305 cat >>confdefs.h <<\_ACEOF
4306 #define LLVM_ON_UNIX 1
4307 _ACEOF
4308
4309     LLVM_ON_UNIX=1
4310
4311     LLVM_ON_WIN32=0
4312
4313     ;;
4314   Win32)
4315
4316 cat >>confdefs.h <<\_ACEOF
4317 #define LLVM_ON_WIN32 1
4318 _ACEOF
4319
4320     LLVM_ON_UNIX=0
4321
4322     LLVM_ON_WIN32=1
4323
4324     ;;
4325 esac
4326
4327 { echo "$as_me:$LINENO: checking target architecture" >&5
4328 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4329 if test "${llvm_cv_target_arch+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   case $target in
4333   i?86-*)                 llvm_cv_target_arch="x86" ;;
4334   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4335   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4336   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4337   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4338   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4339   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4340   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4341   xcore-*)                llvm_cv_target_arch="XCore" ;;
4342   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4343   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4344   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4345   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4346   *)                      llvm_cv_target_arch="Unknown" ;;
4347 esac
4348 fi
4349 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4350 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4351
4352 if test "$llvm_cv_target_arch" = "Unknown" ; then
4353   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4354 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4355 fi
4356
4357 case "$llvm_cv_target_arch" in
4358     x86)     LLVM_NATIVE_ARCH="X86" ;;
4359     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4360     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4361 esac
4362
4363 ARCH=$llvm_cv_target_arch
4364
4365
4366 case $host in
4367   i?86-*)                 host_arch="x86" ;;
4368   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4369   sparc*-*)               host_arch="Sparc" ;;
4370   powerpc*-*)             host_arch="PowerPC" ;;
4371   arm*-*)                 host_arch="ARM" ;;
4372   aarch64*-*)             host_arch="AArch64" ;;
4373   mips-* | mips64-*)      host_arch="Mips" ;;
4374   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4375   xcore-*)                host_arch="XCore" ;;
4376   msp430-*)               host_arch="MSP430" ;;
4377   hexagon-*)              host_arch="Hexagon" ;;
4378   s390x-*)                host_arch="SystemZ" ;;
4379   *)                      host_arch="Unknown" ;;
4380 esac
4381
4382 if test "$host_arch" = "Unknown" ; then
4383   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4384 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4385 fi
4386
4387 HOST_ARCH=$host_arch
4388
4389
4390 if test "$cross_compiling" = yes; then
4391   LLVM_CROSS_COMPILING=1
4392
4393
4394 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4395 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4396 if test "${ac_cv_build_exeext+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4400   ac_cv_build_exeext=.exe
4401 else
4402   ac_build_prefix=${build_alias}-
4403
4404   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4405 set dummy ${ac_build_prefix}gcc; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   if test -n "$BUILD_CC"; then
4412   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 BUILD_CC=$ac_cv_prog_BUILD_CC
4432 if test -n "$BUILD_CC"; then
4433   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434 echo "${ECHO_T}$BUILD_CC" >&6; }
4435 else
4436   { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4438 fi
4439
4440
4441   if test -z "$BUILD_CC"; then
4442      # Extract the first word of "gcc", so it can be a program name with args.
4443 set dummy gcc; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   if test -n "$BUILD_CC"; then
4450   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457   for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     ac_cv_prog_BUILD_CC="gcc"
4460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 BUILD_CC=$ac_cv_prog_BUILD_CC
4470 if test -n "$BUILD_CC"; then
4471   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472 echo "${ECHO_T}$BUILD_CC" >&6; }
4473 else
4474   { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4476 fi
4477
4478
4479      if test -z "$BUILD_CC"; then
4480        # Extract the first word of "cc", so it can be a program name with args.
4481 set dummy cc; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   if test -n "$BUILD_CC"; then
4488   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4489 else
4490   ac_prog_rejected=no
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496   for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4499        ac_prog_rejected=yes
4500        continue
4501      fi
4502     ac_cv_prog_BUILD_CC="cc"
4503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 if test $ac_prog_rejected = yes; then
4511   # We found a bogon in the path, so make sure we never use it.
4512   set dummy $ac_cv_prog_BUILD_CC
4513   shift
4514   if test $# != 0; then
4515     # We chose a different compiler from the bogus one.
4516     # However, it has the same basename, so the bogon will be chosen
4517     # first if we set BUILD_CC to just the basename; use the full file name.
4518     shift
4519     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4520   fi
4521 fi
4522 fi
4523 fi
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6; }
4528 else
4529   { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4531 fi
4532
4533
4534      fi
4535   fi
4536   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4537 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4538    { (exit 1); exit 1; }; }
4539   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4540   rm -f conftest*
4541   echo 'int main () { return 0; }' > conftest.$ac_ext
4542   ac_cv_build_exeext=
4543   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4544   (eval $ac_build_link) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; then
4548     for file in conftest.*; do
4549       case $file in
4550       *.c | *.o | *.obj | *.dSYM) ;;
4551       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4552       esac
4553     done
4554   else
4555     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4556 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4557    { (exit 1); exit 1; }; }
4558   fi
4559   rm -f conftest*
4560   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4561 fi
4562 fi
4563
4564 BUILD_EXEEXT=""
4565 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4566 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4567 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4568 ac_build_exeext=$BUILD_EXEEXT
4569
4570   ac_build_prefix=${build_alias}-
4571   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4572 set dummy ${ac_build_prefix}g++; ac_word=$2
4573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test -n "$BUILD_CXX"; then
4579   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586   for ac_exec_ext in '' $ac_executable_extensions; do
4587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593 done
4594 IFS=$as_save_IFS
4595
4596 fi
4597 fi
4598 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4599 if test -n "$BUILD_CXX"; then
4600   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4601 echo "${ECHO_T}$BUILD_CXX" >&6; }
4602 else
4603   { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4605 fi
4606
4607
4608   if test -z "$BUILD_CXX"; then
4609      # Extract the first word of "g++", so it can be a program name with args.
4610 set dummy g++; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   if test -n "$BUILD_CXX"; then
4617   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624   for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_prog_BUILD_CXX="g++"
4627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637 if test -n "$BUILD_CXX"; then
4638   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639 echo "${ECHO_T}$BUILD_CXX" >&6; }
4640 else
4641   { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4643 fi
4644
4645
4646      if test -z "$BUILD_CXX"; then
4647        # Extract the first word of "c++", so it can be a program name with args.
4648 set dummy c++; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   if test -n "$BUILD_CXX"; then
4655   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4656 else
4657   ac_prog_rejected=no
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663   for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4666        ac_prog_rejected=yes
4667        continue
4668      fi
4669     ac_cv_prog_BUILD_CXX="c++"
4670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671     break 2
4672   fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 if test $ac_prog_rejected = yes; then
4678   # We found a bogon in the path, so make sure we never use it.
4679   set dummy $ac_cv_prog_BUILD_CXX
4680   shift
4681   if test $# != 0; then
4682     # We chose a different compiler from the bogus one.
4683     # However, it has the same basename, so the bogon will be chosen
4684     # first if we set BUILD_CXX to just the basename; use the full file name.
4685     shift
4686     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4687   fi
4688 fi
4689 fi
4690 fi
4691 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692 if test -n "$BUILD_CXX"; then
4693   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694 echo "${ECHO_T}$BUILD_CXX" >&6; }
4695 else
4696   { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699
4700
4701      fi
4702   fi
4703 else
4704   LLVM_CROSS_COMPILING=0
4705
4706 fi
4707
4708 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4709   cvsbuild="yes"
4710   optimize="no"
4711   CVSBUILD=CVSBUILD=1
4712
4713 else
4714   cvsbuild="no"
4715   optimize="yes"
4716 fi
4717
4718
4719 # Check whether --enable-libcpp was given.
4720 if test "${enable_libcpp+set}" = set; then
4721   enableval=$enable_libcpp;
4722 else
4723   enableval=default
4724 fi
4725
4726 case "$enableval" in
4727   yes) ENABLE_LIBCPP=1
4728  ;;
4729   no)  ENABLE_LIBCPP=0
4730  ;;
4731   default) ENABLE_LIBCPP=0
4732 ;;
4733   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4734 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4735    { (exit 1); exit 1; }; } ;;
4736 esac
4737
4738 # Check whether --enable-cxx11 was given.
4739 if test "${enable_cxx11+set}" = set; then
4740   enableval=$enable_cxx11;
4741 else
4742   enableval=default
4743 fi
4744
4745 case "$enableval" in
4746   yes) ENABLE_CXX11=1
4747  ;;
4748   no)  ENABLE_CXX11=0
4749  ;;
4750   default) ENABLE_CXX11=0
4751 ;;
4752   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4753 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4754    { (exit 1); exit 1; }; } ;;
4755 esac
4756
4757 # Check whether --enable-split-dwarf was given.
4758 if test "${enable_split_dwarf+set}" = set; then
4759   enableval=$enable_split_dwarf;
4760 else
4761   enableval=default
4762 fi
4763
4764 case "$enableval" in
4765   yes) ENABLE_SPLIT_DWARF=1
4766  ;;
4767   no)  ENABLE_SPLIT_DWARF=0
4768  ;;
4769   default) ENABLE_SPLIT_DWARF=0
4770 ;;
4771   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4772 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4773    { (exit 1); exit 1; }; } ;;
4774 esac
4775
4776 clang_arcmt="yes"
4777 # Check whether --enable-clang-arcmt was given.
4778 if test "${enable_clang_arcmt+set}" = set; then
4779   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4780 else
4781   enableval="yes"
4782 fi
4783
4784 case "$enableval" in
4785   yes) ENABLE_CLANG_ARCMT=1
4786  ;;
4787   no)  ENABLE_CLANG_ARCMT=0
4788  ;;
4789   default) ENABLE_CLANG_ARCMT=1
4790 ;;
4791   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4793    { (exit 1); exit 1; }; } ;;
4794 esac
4795
4796 clang_static_analyzer="yes"
4797 # Check whether --enable-clang-static-analyzer was given.
4798 if test "${enable_clang_static_analyzer+set}" = set; then
4799   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4800 else
4801   enableval="yes"
4802 fi
4803
4804 case "$enableval" in
4805   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4806  ;;
4807   no)
4808     if test ${clang_arcmt} != "no" ; then
4809       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4810 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4811    { (exit 1); exit 1; }; }
4812     fi
4813     ENABLE_CLANG_STATIC_ANALYZER=0
4814
4815     ;;
4816   default) ENABLE_CLANG_STATIC_ANALYZER=1
4817 ;;
4818   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4819 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4820    { (exit 1); exit 1; }; } ;;
4821 esac
4822
4823 # Check whether --enable-clang-rewriter was given.
4824 if test "${enable_clang_rewriter+set}" = set; then
4825   enableval=$enable_clang_rewriter;
4826 else
4827   enableval="yes"
4828 fi
4829
4830 case "$enableval" in
4831   yes) ENABLE_CLANG_REWRITER=1
4832  ;;
4833   no)
4834     if test ${clang_arcmt} != "no" ; then
4835       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4836 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4837    { (exit 1); exit 1; }; }
4838     fi
4839     if test ${clang_static_analyzer} != "no" ; then
4840       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4841 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4842    { (exit 1); exit 1; }; }
4843     fi
4844     ENABLE_CLANG_REWRITER=0
4845
4846     ;;
4847   default) ENABLE_CLANG_REWRITER=1
4848 ;;
4849   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4851    { (exit 1); exit 1; }; } ;;
4852 esac
4853
4854 # Check whether --enable-optimized was given.
4855 if test "${enable_optimized+set}" = set; then
4856   enableval=$enable_optimized;
4857 else
4858   enableval=$optimize
4859 fi
4860
4861 if test ${enableval} = "no" ; then
4862   ENABLE_OPTIMIZED=
4863
4864 else
4865   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4866
4867 fi
4868
4869 # Check whether --enable-profiling was given.
4870 if test "${enable_profiling+set}" = set; then
4871   enableval=$enable_profiling;
4872 else
4873   enableval="no"
4874 fi
4875
4876 if test ${enableval} = "no" ; then
4877   ENABLE_PROFILING=
4878
4879 else
4880   ENABLE_PROFILING=ENABLE_PROFILING=1
4881
4882 fi
4883
4884 # Check whether --enable-assertions was given.
4885 if test "${enable_assertions+set}" = set; then
4886   enableval=$enable_assertions;
4887 else
4888   enableval="yes"
4889 fi
4890
4891 if test ${enableval} = "yes" ; then
4892   DISABLE_ASSERTIONS=
4893
4894 else
4895   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4896
4897 fi
4898
4899 # Check whether --enable-werror was given.
4900 if test "${enable_werror+set}" = set; then
4901   enableval=$enable_werror;
4902 else
4903   enableval="no"
4904 fi
4905
4906 case "$enableval" in
4907   yes) ENABLE_WERROR=1
4908  ;;
4909   no)  ENABLE_WERROR=0
4910  ;;
4911   default) ENABLE_WERROR=0
4912 ;;
4913   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4914 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4915    { (exit 1); exit 1; }; } ;;
4916 esac
4917
4918 # Check whether --enable-expensive-checks was given.
4919 if test "${enable_expensive_checks+set}" = set; then
4920   enableval=$enable_expensive_checks;
4921 else
4922   enableval="no"
4923 fi
4924
4925 if test ${enableval} = "yes" ; then
4926   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4927
4928   EXPENSIVE_CHECKS=yes
4929
4930 else
4931   ENABLE_EXPENSIVE_CHECKS=
4932
4933   EXPENSIVE_CHECKS=no
4934
4935 fi
4936
4937 # Check whether --enable-debug-runtime was given.
4938 if test "${enable_debug_runtime+set}" = set; then
4939   enableval=$enable_debug_runtime;
4940 else
4941   enableval=no
4942 fi
4943
4944 if test ${enableval} = "no" ; then
4945   DEBUG_RUNTIME=
4946
4947 else
4948   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4949
4950 fi
4951
4952 # Check whether --enable-debug-symbols was given.
4953 if test "${enable_debug_symbols+set}" = set; then
4954   enableval=$enable_debug_symbols;
4955 else
4956   enableval=no
4957 fi
4958
4959 if test ${enableval} = "no" ; then
4960   DEBUG_SYMBOLS=
4961
4962 else
4963   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4964
4965 fi
4966
4967 # Check whether --enable-keep-symbols was given.
4968 if test "${enable_keep_symbols+set}" = set; then
4969   enableval=$enable_keep_symbols;
4970 else
4971   enableval=no
4972 fi
4973
4974 if test ${enableval} = "no" ; then
4975   KEEP_SYMBOLS=
4976
4977 else
4978   KEEP_SYMBOLS=KEEP_SYMBOLS=1
4979
4980 fi
4981
4982 # Check whether --enable-jit was given.
4983 if test "${enable_jit+set}" = set; then
4984   enableval=$enable_jit;
4985 else
4986   enableval=default
4987 fi
4988
4989 if test ${enableval} = "no"
4990 then
4991   JIT=
4992
4993 else
4994   case "$llvm_cv_target_arch" in
4995     x86)         TARGET_HAS_JIT=1
4996  ;;
4997     Sparc)       TARGET_HAS_JIT=0
4998  ;;
4999     PowerPC)     TARGET_HAS_JIT=1
5000  ;;
5001     x86_64)      TARGET_HAS_JIT=1
5002  ;;
5003     ARM)         TARGET_HAS_JIT=1
5004  ;;
5005     AArch64)     TARGET_HAS_JIT=0
5006  ;;
5007     Mips)        TARGET_HAS_JIT=1
5008  ;;
5009     XCore)       TARGET_HAS_JIT=0
5010  ;;
5011     MSP430)      TARGET_HAS_JIT=0
5012  ;;
5013     Hexagon)     TARGET_HAS_JIT=0
5014  ;;
5015     NVPTX)       TARGET_HAS_JIT=0
5016  ;;
5017     SystemZ)     TARGET_HAS_JIT=1
5018  ;;
5019     *)           TARGET_HAS_JIT=0
5020  ;;
5021   esac
5022 fi
5023
5024 # Check whether --enable-docs was given.
5025 if test "${enable_docs+set}" = set; then
5026   enableval=$enable_docs;
5027 else
5028   enableval=default
5029 fi
5030
5031 case "$enableval" in
5032   yes) ENABLE_DOCS=1
5033  ;;
5034   no)  ENABLE_DOCS=0
5035  ;;
5036   default) ENABLE_DOCS=1
5037  ;;
5038   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5040    { (exit 1); exit 1; }; } ;;
5041 esac
5042
5043 # Check whether --enable-doxygen was given.
5044 if test "${enable_doxygen+set}" = set; then
5045   enableval=$enable_doxygen;
5046 else
5047   enableval=default
5048 fi
5049
5050 case "$enableval" in
5051   yes) ENABLE_DOXYGEN=1
5052  ;;
5053   no)  ENABLE_DOXYGEN=0
5054  ;;
5055   default) ENABLE_DOXYGEN=0
5056  ;;
5057   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5058 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5059    { (exit 1); exit 1; }; } ;;
5060 esac
5061
5062 # Check whether --enable-threads was given.
5063 if test "${enable_threads+set}" = set; then
5064   enableval=$enable_threads;
5065 else
5066   enableval=default
5067 fi
5068
5069 case "$enableval" in
5070   yes) LLVM_ENABLE_THREADS=1
5071  ;;
5072   no)  LLVM_ENABLE_THREADS=0
5073  ;;
5074   default) LLVM_ENABLE_THREADS=1
5075  ;;
5076   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5077 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5078    { (exit 1); exit 1; }; } ;;
5079 esac
5080
5081 cat >>confdefs.h <<_ACEOF
5082 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5083 _ACEOF
5084
5085
5086 # Check whether --enable-pthreads was given.
5087 if test "${enable_pthreads+set}" = set; then
5088   enableval=$enable_pthreads;
5089 else
5090   enableval=default
5091 fi
5092
5093 case "$enableval" in
5094   yes) ENABLE_PTHREADS=1
5095  ;;
5096   no)  ENABLE_PTHREADS=0
5097  ;;
5098   default) ENABLE_PTHREADS=1
5099  ;;
5100   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5101 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5102    { (exit 1); exit 1; }; } ;;
5103 esac
5104
5105 # Check whether --enable-zlib was given.
5106 if test "${enable_zlib+set}" = set; then
5107   enableval=$enable_zlib;
5108 else
5109   enableval=default
5110 fi
5111
5112 case "$enableval" in
5113   yes) LLVM_ENABLE_ZLIB=1
5114  ;;
5115   no)  LLVM_ENABLE_ZLIB=0
5116  ;;
5117   default) LLVM_ENABLE_ZLIB=1
5118  ;;
5119   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5120 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5121    { (exit 1); exit 1; }; } ;;
5122 esac
5123
5124 cat >>confdefs.h <<_ACEOF
5125 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5126 _ACEOF
5127
5128
5129 # Check whether --enable-pic was given.
5130 if test "${enable_pic+set}" = set; then
5131   enableval=$enable_pic;
5132 else
5133   enableval=default
5134 fi
5135
5136 case "$enableval" in
5137   yes) ENABLE_PIC=1
5138  ;;
5139   no)  ENABLE_PIC=0
5140  ;;
5141   default) ENABLE_PIC=1
5142  ;;
5143   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5145    { (exit 1); exit 1; }; } ;;
5146 esac
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define ENABLE_PIC $ENABLE_PIC
5150 _ACEOF
5151
5152
5153 # Check whether --enable-shared was given.
5154 if test "${enable_shared+set}" = set; then
5155   enableval=$enable_shared;
5156 else
5157   enableval=default
5158 fi
5159
5160 case "$enableval" in
5161   yes) ENABLE_SHARED=1
5162  ;;
5163   no)  ENABLE_SHARED=0
5164  ;;
5165   default) ENABLE_SHARED=0
5166  ;;
5167   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5169    { (exit 1); exit 1; }; } ;;
5170 esac
5171
5172 # Check whether --enable-embed-stdcxx was given.
5173 if test "${enable_embed_stdcxx+set}" = set; then
5174   enableval=$enable_embed_stdcxx;
5175 else
5176   enableval=default
5177 fi
5178
5179 case "$enableval" in
5180   yes) ENABLE_EMBED_STDCXX=1
5181  ;;
5182   no)  ENABLE_EMBED_STDCXX=0
5183  ;;
5184   default) ENABLE_EMBED_STDCXX=0
5185  ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190
5191 # Check whether --enable-timestamps was given.
5192 if test "${enable_timestamps+set}" = set; then
5193   enableval=$enable_timestamps;
5194 else
5195   enableval=default
5196 fi
5197
5198 case "$enableval" in
5199   yes) ENABLE_TIMESTAMPS=1
5200  ;;
5201   no)  ENABLE_TIMESTAMPS=0
5202  ;;
5203   default) ENABLE_TIMESTAMPS=1
5204  ;;
5205   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5207    { (exit 1); exit 1; }; } ;;
5208 esac
5209
5210 cat >>confdefs.h <<_ACEOF
5211 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5212 _ACEOF
5213
5214
5215 # Check whether --enable-backtraces was given.
5216 if test "${enable_backtraces+set}" = set; then
5217   enableval=$enable_backtraces; case "$enableval" in
5218     yes) llvm_cv_enable_backtraces="yes" ;;
5219     no)  llvm_cv_enable_backtraces="no"  ;;
5220     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5222    { (exit 1); exit 1; }; } ;;
5223   esac
5224 else
5225   llvm_cv_enable_backtraces="yes"
5226 fi
5227
5228 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5229
5230 cat >>confdefs.h <<\_ACEOF
5231 #define ENABLE_BACKTRACES 1
5232 _ACEOF
5233
5234 fi
5235
5236 # Check whether --enable-crash-overrides was given.
5237 if test "${enable_crash_overrides+set}" = set; then
5238   enableval=$enable_crash_overrides; case "$enableval" in
5239     yes) llvm_cv_enable_crash_overrides="yes" ;;
5240     no)  llvm_cv_enable_crash_overrides="no"  ;;
5241     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5242 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5243    { (exit 1); exit 1; }; } ;;
5244   esac
5245 else
5246   llvm_cv_enable_crash_overrides="yes"
5247 fi
5248
5249 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5250
5251 cat >>confdefs.h <<\_ACEOF
5252 #define ENABLE_CRASH_OVERRIDES 1
5253 _ACEOF
5254
5255 fi
5256
5257 TARGETS_TO_BUILD=""
5258 # Check whether --enable-targets was given.
5259 if test "${enable_targets+set}" = set; then
5260   enableval=$enable_targets;
5261 else
5262   enableval=all
5263 fi
5264
5265 if test "$enableval" = host-only ; then
5266   enableval=host
5267 fi
5268 case "$enableval" in
5269   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5270   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5271       case "$a_target" in
5272         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5273         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5274         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5275         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5276         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5277         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5278         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5279         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5280         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5281         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5282         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5283         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5284         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5285         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5286         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5287         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5288         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5289         host) case "$llvm_cv_target_arch" in
5290             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5291             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5293             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5294             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5295             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5296             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5297             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5298             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5299             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5300             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5301             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5302             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5303 echo "$as_me: error: Can not set target to build" >&2;}
5304    { (exit 1); exit 1; }; } ;;
5305           esac ;;
5306         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5307 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5308    { (exit 1); exit 1; }; } ;;
5309       esac
5310   done
5311   ;;
5312 esac
5313
5314 # Check whether --enable-experimental-targets was given.
5315 if test "${enable_experimental_targets+set}" = set; then
5316   enableval=$enable_experimental_targets;
5317 else
5318   enableval=disable
5319 fi
5320
5321
5322 if test ${enableval} != "disable"
5323 then
5324   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5325 fi
5326
5327 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5328
5329
5330 for a_target in $TARGETS_TO_BUILD; do
5331   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5332
5333 cat >>confdefs.h <<_ACEOF
5334 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5335 _ACEOF
5336
5337     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5338     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5339     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5340     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5341     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5342       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5343     fi
5344     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5345       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5346     fi
5347
5348 cat >>confdefs.h <<_ACEOF
5349 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5350 _ACEOF
5351
5352
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5355 _ACEOF
5356
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5360 _ACEOF
5361
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5365 _ACEOF
5366
5367     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5368
5369 cat >>confdefs.h <<_ACEOF
5370 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5371 _ACEOF
5372
5373     fi
5374     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5378 _ACEOF
5379
5380     fi
5381   fi
5382 done
5383
5384 LLVM_ENUM_TARGETS=""
5385 LLVM_ENUM_ASM_PRINTERS=""
5386 LLVM_ENUM_ASM_PARSERS=""
5387 LLVM_ENUM_DISASSEMBLERS=""
5388 for target_to_build in $TARGETS_TO_BUILD; do
5389   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5390   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5391     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5392   fi
5393   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5395   fi
5396   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5398   fi
5399 done
5400
5401
5402
5403
5404
5405
5406 # Check whether --with-optimize-option was given.
5407 if test "${with_optimize_option+set}" = set; then
5408   withval=$with_optimize_option;
5409 else
5410   withval=default
5411 fi
5412
5413 { echo "$as_me:$LINENO: checking optimization flags" >&5
5414 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5415 case "$withval" in
5416   default)
5417     case "$llvm_cv_os_type" in
5418     FreeBSD) optimize_option=-O2 ;;
5419     MingW) optimize_option=-O2 ;;
5420     *)     optimize_option=-O3 ;;
5421     esac ;;
5422   *) optimize_option="$withval" ;;
5423 esac
5424 OPTIMIZE_OPTION=$optimize_option
5425
5426 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5427 echo "${ECHO_T}$optimize_option" >&6; }
5428
5429
5430 # Check whether --with-extra-options was given.
5431 if test "${with_extra_options+set}" = set; then
5432   withval=$with_extra_options;
5433 else
5434   withval=default
5435 fi
5436
5437 case "$withval" in
5438   default) EXTRA_OPTIONS= ;;
5439   *) EXTRA_OPTIONS=$withval ;;
5440 esac
5441 EXTRA_OPTIONS=$EXTRA_OPTIONS
5442
5443
5444
5445 # Check whether --with-extra-ld-options was given.
5446 if test "${with_extra_ld_options+set}" = set; then
5447   withval=$with_extra_ld_options;
5448 else
5449   withval=default
5450 fi
5451
5452 case "$withval" in
5453   default) EXTRA_LD_OPTIONS= ;;
5454   *) EXTRA_LD_OPTIONS=$withval ;;
5455 esac
5456 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5457
5458
5459 # Check whether --enable-bindings was given.
5460 if test "${enable_bindings+set}" = set; then
5461   enableval=$enable_bindings;
5462 else
5463   enableval=default
5464 fi
5465
5466 BINDINGS_TO_BUILD=""
5467 case "$enableval" in
5468   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5469   all ) BINDINGS_TO_BUILD="ocaml" ;;
5470   none | no) BINDINGS_TO_BUILD="" ;;
5471   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5472       case "$a_binding" in
5473         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5474         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5475 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477       esac
5478   done
5479   ;;
5480 esac
5481
5482
5483 # Check whether --with-ocaml-libdir was given.
5484 if test "${with_ocaml_libdir+set}" = set; then
5485   withval=$with_ocaml_libdir;
5486 else
5487   withval=auto
5488 fi
5489
5490 case "$withval" in
5491   auto) with_ocaml_libdir="$withval" ;;
5492   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5494 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498
5499 # Check whether --with-clang-srcdir was given.
5500 if test "${with_clang_srcdir+set}" = set; then
5501   withval=$with_clang_srcdir;
5502 else
5503   withval="-"
5504 fi
5505
5506 case "$withval" in
5507   -) clang_src_root="" ;;
5508   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5509   *) clang_src_root="$ac_pwd/$withval" ;;
5510 esac
5511 CLANG_SRC_ROOT=$clang_src_root
5512
5513
5514
5515 # Check whether --with-clang-resource-dir was given.
5516 if test "${with_clang_resource_dir+set}" = set; then
5517   withval=$with_clang_resource_dir;
5518 else
5519   withval=""
5520 fi
5521
5522
5523 cat >>confdefs.h <<_ACEOF
5524 #define CLANG_RESOURCE_DIR "$withval"
5525 _ACEOF
5526
5527
5528
5529 # Check whether --with-c-include-dirs was given.
5530 if test "${with_c_include_dirs+set}" = set; then
5531   withval=$with_c_include_dirs;
5532 else
5533   withval=""
5534 fi
5535
5536
5537 cat >>confdefs.h <<_ACEOF
5538 #define C_INCLUDE_DIRS "$withval"
5539 _ACEOF
5540
5541
5542 # Clang normally uses the system c++ headers and libraries. With this option,
5543 # clang will use the ones provided by a gcc installation instead. This option should
5544 # be passed the same value that was used with --prefix when configuring gcc.
5545
5546 # Check whether --with-gcc-toolchain was given.
5547 if test "${with_gcc_toolchain+set}" = set; then
5548   withval=$with_gcc_toolchain;
5549 else
5550   withval=""
5551 fi
5552
5553
5554 cat >>confdefs.h <<_ACEOF
5555 #define GCC_INSTALL_PREFIX "$withval"
5556 _ACEOF
5557
5558
5559
5560 # Check whether --with-default-sysroot was given.
5561 if test "${with_default_sysroot+set}" = set; then
5562   withval=$with_default_sysroot;
5563 else
5564   withval=""
5565 fi
5566
5567
5568 cat >>confdefs.h <<_ACEOF
5569 #define DEFAULT_SYSROOT "$withval"
5570 _ACEOF
5571
5572
5573
5574 # Check whether --with-binutils-include was given.
5575 if test "${with_binutils_include+set}" = set; then
5576   withval=$with_binutils_include;
5577 else
5578   withval=default
5579 fi
5580
5581 case "$withval" in
5582   default) WITH_BINUTILS_INCDIR=default ;;
5583   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5584   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5585 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5586    { (exit 1); exit 1; }; } ;;
5587 esac
5588 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5589   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5590
5591   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5592      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5593      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5594 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5595    { (exit 1); exit 1; }; };
5596   fi
5597 fi
5598
5599
5600 # Check whether --with-bug-report-url was given.
5601 if test "${with_bug_report_url+set}" = set; then
5602   withval=$with_bug_report_url;
5603 else
5604   withval="http://llvm.org/bugs/"
5605 fi
5606
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define BUG_REPORT_URL "$withval"
5610 _ACEOF
5611
5612
5613 # Check whether --enable-terminfo was given.
5614 if test "${enable_terminfo+set}" = set; then
5615   enableval=$enable_terminfo; case "$enableval" in
5616     yes) llvm_cv_enable_terminfo="yes" ;;
5617     no)  llvm_cv_enable_terminfo="no"  ;;
5618     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5620    { (exit 1); exit 1; }; } ;;
5621   esac
5622 else
5623   llvm_cv_enable_terminfo="yes"
5624 fi
5625
5626
5627 # Check whether --enable-libffi was given.
5628 if test "${enable_libffi+set}" = set; then
5629   enableval=$enable_libffi; case "$enableval" in
5630     yes) llvm_cv_enable_libffi="yes" ;;
5631     no)  llvm_cv_enable_libffi="no"  ;;
5632     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5633 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5634    { (exit 1); exit 1; }; } ;;
5635   esac
5636 else
5637   llvm_cv_enable_libffi=no
5638 fi
5639
5640
5641
5642 # Check whether --with-internal-prefix was given.
5643 if test "${with_internal_prefix+set}" = set; then
5644   withval=$with_internal_prefix;
5645 else
5646   withval=""
5647 fi
5648
5649 INTERNAL_PREFIX=$withval
5650
5651
5652
5653 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5654 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5655 if test "${lt_cv_path_NM+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   if test -n "$NM"; then
5659   # Let the user override the test.
5660   lt_cv_path_NM="$NM"
5661 else
5662   lt_nm_to_check="${ac_tool_prefix}nm"
5663   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5664     lt_nm_to_check="$lt_nm_to_check nm"
5665   fi
5666   for lt_tmp_nm in $lt_nm_to_check; do
5667     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5668     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5669       IFS="$lt_save_ifs"
5670       test -z "$ac_dir" && ac_dir=.
5671       tmp_nm="$ac_dir/$lt_tmp_nm"
5672       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5673         # Check to see if the nm accepts a BSD-compat flag.
5674         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5675         #   nm: unknown option "B" ignored
5676         # Tru64's nm complains that /dev/null is an invalid object file
5677         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5678         */dev/null* | *'Invalid file or object type'*)
5679           lt_cv_path_NM="$tmp_nm -B"
5680           break
5681           ;;
5682         *)
5683           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5684           */dev/null*)
5685             lt_cv_path_NM="$tmp_nm -p"
5686             break
5687             ;;
5688           *)
5689             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5690             continue # so that we can try to find one that supports BSD flags
5691             ;;
5692           esac
5693           ;;
5694         esac
5695       fi
5696     done
5697     IFS="$lt_save_ifs"
5698   done
5699   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5700 fi
5701 fi
5702 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5703 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5704 NM="$lt_cv_path_NM"
5705
5706
5707
5708 { echo "$as_me:$LINENO: checking for GNU make" >&5
5709 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5710 if test "${llvm_cv_gnu_make_command+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   llvm_cv_gnu_make_command=''
5714  for a in "$MAKE" make gmake gnumake ; do
5715   if test -z "$a" ; then continue ; fi ;
5716   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5717   then
5718    llvm_cv_gnu_make_command=$a ;
5719    break;
5720   fi
5721  done
5722 fi
5723 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5724 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5725  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5726    ifGNUmake='' ;
5727  else
5728    ifGNUmake='#' ;
5729    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5730 echo "${ECHO_T}\"Not found\"" >&6; };
5731  fi
5732
5733
5734 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5736 LN_S=$as_ln_s
5737 if test "$LN_S" = "ln -s"; then
5738   { echo "$as_me:$LINENO: result: yes" >&5
5739 echo "${ECHO_T}yes" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5742 echo "${ECHO_T}no, using $LN_S" >&6; }
5743 fi
5744
5745 # Extract the first word of "cmp", so it can be a program name with args.
5746 set dummy cmp; 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_path_CMP+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   case $CMP in
5753   [\\/]* | ?:[\\/]*)
5754   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5755   ;;
5756   *)
5757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762   for ac_exec_ext in '' $ac_executable_extensions; do
5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5773   ;;
5774 esac
5775 fi
5776 CMP=$ac_cv_path_CMP
5777 if test -n "$CMP"; then
5778   { echo "$as_me:$LINENO: result: $CMP" >&5
5779 echo "${ECHO_T}$CMP" >&6; }
5780 else
5781   { echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6; }
5783 fi
5784
5785
5786 # Extract the first word of "cp", so it can be a program name with args.
5787 set dummy cp; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_CP+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   case $CP in
5794   [\\/]* | ?:[\\/]*)
5795   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5796   ;;
5797   *)
5798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801   IFS=$as_save_IFS
5802   test -z "$as_dir" && as_dir=.
5803   for ac_exec_ext in '' $ac_executable_extensions; do
5804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807     break 2
5808   fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5814   ;;
5815 esac
5816 fi
5817 CP=$ac_cv_path_CP
5818 if test -n "$CP"; then
5819   { echo "$as_me:$LINENO: result: $CP" >&5
5820 echo "${ECHO_T}$CP" >&6; }
5821 else
5822   { echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6; }
5824 fi
5825
5826
5827 # Extract the first word of "date", so it can be a program name with args.
5828 set dummy date; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_DATE+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   case $DATE in
5835   [\\/]* | ?:[\\/]*)
5836   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5837   ;;
5838   *)
5839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844   for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5855   ;;
5856 esac
5857 fi
5858 DATE=$ac_cv_path_DATE
5859 if test -n "$DATE"; then
5860   { echo "$as_me:$LINENO: result: $DATE" >&5
5861 echo "${ECHO_T}$DATE" >&6; }
5862 else
5863   { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5865 fi
5866
5867
5868 # Extract the first word of "find", so it can be a program name with args.
5869 set dummy find; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_FIND+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   case $FIND in
5876   [\\/]* | ?:[\\/]*)
5877   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5878   ;;
5879   *)
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5896   ;;
5897 esac
5898 fi
5899 FIND=$ac_cv_path_FIND
5900 if test -n "$FIND"; then
5901   { echo "$as_me:$LINENO: result: $FIND" >&5
5902 echo "${ECHO_T}$FIND" >&6; }
5903 else
5904   { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906 fi
5907
5908
5909 # Extract the first word of "grep", so it can be a program name with args.
5910 set dummy grep; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_path_GREP+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   case $GREP in
5917   [\\/]* | ?:[\\/]*)
5918   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5919   ;;
5920   *)
5921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5937   ;;
5938 esac
5939 fi
5940 GREP=$ac_cv_path_GREP
5941 if test -n "$GREP"; then
5942   { echo "$as_me:$LINENO: result: $GREP" >&5
5943 echo "${ECHO_T}$GREP" >&6; }
5944 else
5945   { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5947 fi
5948
5949
5950 # Extract the first word of "mkdir", so it can be a program name with args.
5951 set dummy mkdir; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_path_MKDIR+set}" = set; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   case $MKDIR in
5958   [\\/]* | ?:[\\/]*)
5959   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5960   ;;
5961   *)
5962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5978   ;;
5979 esac
5980 fi
5981 MKDIR=$ac_cv_path_MKDIR
5982 if test -n "$MKDIR"; then
5983   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5984 echo "${ECHO_T}$MKDIR" >&6; }
5985 else
5986   { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5988 fi
5989
5990
5991 # Extract the first word of "mv", so it can be a program name with args.
5992 set dummy mv; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_MV+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   case $MV in
5999   [\\/]* | ?:[\\/]*)
6000   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6001   ;;
6002   *)
6003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016 IFS=$as_save_IFS
6017
6018   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6019   ;;
6020 esac
6021 fi
6022 MV=$ac_cv_path_MV
6023 if test -n "$MV"; then
6024   { echo "$as_me:$LINENO: result: $MV" >&5
6025 echo "${ECHO_T}$MV" >&6; }
6026 else
6027   { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6029 fi
6030
6031
6032 if test -n "$ac_tool_prefix"; then
6033   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_RANLIB+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test -n "$RANLIB"; then
6041   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048   for ac_exec_ext in '' $ac_executable_extensions; do
6049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 RANLIB=$ac_cv_prog_RANLIB
6061 if test -n "$RANLIB"; then
6062   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6063 echo "${ECHO_T}$RANLIB" >&6; }
6064 else
6065   { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6067 fi
6068
6069
6070 fi
6071 if test -z "$ac_cv_prog_RANLIB"; then
6072   ac_ct_RANLIB=$RANLIB
6073   # Extract the first word of "ranlib", so it can be a program name with args.
6074 set dummy ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   if test -n "$ac_ct_RANLIB"; then
6081   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088   for ac_exec_ext in '' $ac_executable_extensions; do
6089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090     ac_cv_prog_ac_ct_RANLIB="ranlib"
6091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093   fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6101 if test -n "$ac_ct_RANLIB"; then
6102   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6104 else
6105   { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107 fi
6108
6109   if test "x$ac_ct_RANLIB" = x; then
6110     RANLIB=":"
6111   else
6112     case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115 whose name does not start with the host triplet.  If you think this
6116 configuration is useful to you, please write to autoconf@gnu.org." >&5
6117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet.  If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122     RANLIB=$ac_ct_RANLIB
6123   fi
6124 else
6125   RANLIB="$ac_cv_prog_RANLIB"
6126 fi
6127
6128 if test -n "$ac_tool_prefix"; then
6129   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_AR+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   if test -n "$AR"; then
6137   ac_cv_prog_AR="$AR" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144   for ac_exec_ext in '' $ac_executable_extensions; do
6145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146     ac_cv_prog_AR="${ac_tool_prefix}ar"
6147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 AR=$ac_cv_prog_AR
6157 if test -n "$AR"; then
6158   { echo "$as_me:$LINENO: result: $AR" >&5
6159 echo "${ECHO_T}$AR" >&6; }
6160 else
6161   { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165
6166 fi
6167 if test -z "$ac_cv_prog_AR"; then
6168   ac_ct_AR=$AR
6169   # Extract the first word of "ar", so it can be a program name with args.
6170 set dummy ar; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   if test -n "$ac_ct_AR"; then
6177   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184   for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_ac_ct_AR="ar"
6187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6197 if test -n "$ac_ct_AR"; then
6198   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6199 echo "${ECHO_T}$ac_ct_AR" >&6; }
6200 else
6201   { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6203 fi
6204
6205   if test "x$ac_ct_AR" = x; then
6206     AR="false"
6207   else
6208     case $cross_compiling:$ac_tool_warned in
6209 yes:)
6210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet.  If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&5
6213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet.  If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218     AR=$ac_ct_AR
6219   fi
6220 else
6221   AR="$ac_cv_prog_AR"
6222 fi
6223
6224 # Extract the first word of "rm", so it can be a program name with args.
6225 set dummy rm; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_RM+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   case $RM in
6232   [\\/]* | ?:[\\/]*)
6233   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6234   ;;
6235   *)
6236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241   for ac_exec_ext in '' $ac_executable_extensions; do
6242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6252   ;;
6253 esac
6254 fi
6255 RM=$ac_cv_path_RM
6256 if test -n "$RM"; then
6257   { echo "$as_me:$LINENO: result: $RM" >&5
6258 echo "${ECHO_T}$RM" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264
6265 # Extract the first word of "sed", so it can be a program name with args.
6266 set dummy sed; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_SED+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272   case $SED in
6273   [\\/]* | ?:[\\/]*)
6274   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6275   ;;
6276   *)
6277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280   IFS=$as_save_IFS
6281   test -z "$as_dir" && as_dir=.
6282   for ac_exec_ext in '' $ac_executable_extensions; do
6283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286     break 2
6287   fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6293   ;;
6294 esac
6295 fi
6296 SED=$ac_cv_path_SED
6297 if test -n "$SED"; then
6298   { echo "$as_me:$LINENO: result: $SED" >&5
6299 echo "${ECHO_T}$SED" >&6; }
6300 else
6301   { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6303 fi
6304
6305
6306 # Extract the first word of "tar", so it can be a program name with args.
6307 set dummy tar; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_TAR+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   case $TAR in
6314   [\\/]* | ?:[\\/]*)
6315   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6316   ;;
6317   *)
6318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323   for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6334   ;;
6335 esac
6336 fi
6337 TAR=$ac_cv_path_TAR
6338 if test -n "$TAR"; then
6339   { echo "$as_me:$LINENO: result: $TAR" >&5
6340 echo "${ECHO_T}$TAR" >&6; }
6341 else
6342   { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6344 fi
6345
6346
6347 # Extract the first word of "pwd", so it can be a program name with args.
6348 set dummy pwd; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_path_BINPWD+set}" = set; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   case $BINPWD in
6355   [\\/]* | ?:[\\/]*)
6356   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6357   ;;
6358   *)
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6375   ;;
6376 esac
6377 fi
6378 BINPWD=$ac_cv_path_BINPWD
6379 if test -n "$BINPWD"; then
6380   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6381 echo "${ECHO_T}$BINPWD" >&6; }
6382 else
6383   { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6385 fi
6386
6387
6388
6389 # Extract the first word of "Graphviz", so it can be a program name with args.
6390 set dummy Graphviz; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   case $GRAPHVIZ in
6397   [\\/]* | ?:[\\/]*)
6398   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6399   ;;
6400   *)
6401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6417   ;;
6418 esac
6419 fi
6420 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6421 if test -n "$GRAPHVIZ"; then
6422   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6423 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 fi
6428
6429
6430 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6431
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_GRAPHVIZ 1
6434 _ACEOF
6435
6436     if test "$llvm_cv_os_type" = "MingW" ; then
6437     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6438   fi
6439
6440 cat >>confdefs.h <<_ACEOF
6441 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6442 _ACEOF
6443
6444 fi
6445 # Extract the first word of "dot", so it can be a program name with args.
6446 set dummy dot; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_DOT+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   case $DOT in
6453   [\\/]* | ?:[\\/]*)
6454   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6455   ;;
6456   *)
6457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462   for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469 done
6470 IFS=$as_save_IFS
6471
6472   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6473   ;;
6474 esac
6475 fi
6476 DOT=$ac_cv_path_DOT
6477 if test -n "$DOT"; then
6478   { echo "$as_me:$LINENO: result: $DOT" >&5
6479 echo "${ECHO_T}$DOT" >&6; }
6480 else
6481   { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6483 fi
6484
6485
6486 if test "$DOT" != "echo dot" ; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define HAVE_DOT 1
6490 _ACEOF
6491
6492     if test "$llvm_cv_os_type" = "MingW" ; then
6493     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494   fi
6495
6496 cat >>confdefs.h <<_ACEOF
6497 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6498 _ACEOF
6499
6500 fi
6501 # Extract the first word of "fdp", so it can be a program name with args.
6502 set dummy fdp; ac_word=$2
6503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505 if test "${ac_cv_path_FDP+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   case $FDP in
6509   [\\/]* | ?:[\\/]*)
6510   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6511   ;;
6512   *)
6513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518   for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6529   ;;
6530 esac
6531 fi
6532 FDP=$ac_cv_path_FDP
6533 if test -n "$FDP"; then
6534   { echo "$as_me:$LINENO: result: $FDP" >&5
6535 echo "${ECHO_T}$FDP" >&6; }
6536 else
6537   { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6539 fi
6540
6541
6542 if test "$FDP" != "echo fdp" ; then
6543
6544 cat >>confdefs.h <<\_ACEOF
6545 #define HAVE_FDP 1
6546 _ACEOF
6547
6548     if test "$llvm_cv_os_type" = "MingW" ; then
6549     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550   fi
6551
6552 cat >>confdefs.h <<_ACEOF
6553 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6554 _ACEOF
6555
6556 fi
6557 # Extract the first word of "neato", so it can be a program name with args.
6558 set dummy neato; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_NEATO+set}" = set; then
6562   echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564   case $NEATO in
6565   [\\/]* | ?:[\\/]*)
6566   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6567   ;;
6568   *)
6569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6585   ;;
6586 esac
6587 fi
6588 NEATO=$ac_cv_path_NEATO
6589 if test -n "$NEATO"; then
6590   { echo "$as_me:$LINENO: result: $NEATO" >&5
6591 echo "${ECHO_T}$NEATO" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597
6598 if test "$NEATO" != "echo neato" ; then
6599
6600 cat >>confdefs.h <<\_ACEOF
6601 #define HAVE_NEATO 1
6602 _ACEOF
6603
6604     if test "$llvm_cv_os_type" = "MingW" ; then
6605     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606   fi
6607
6608 cat >>confdefs.h <<_ACEOF
6609 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6610 _ACEOF
6611
6612 fi
6613 # Extract the first word of "twopi", so it can be a program name with args.
6614 set dummy twopi; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_TWOPI+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $TWOPI in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6641   ;;
6642 esac
6643 fi
6644 TWOPI=$ac_cv_path_TWOPI
6645 if test -n "$TWOPI"; then
6646   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6647 echo "${ECHO_T}$TWOPI" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 if test "$TWOPI" != "echo twopi" ; then
6655
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_TWOPI 1
6658 _ACEOF
6659
6660     if test "$llvm_cv_os_type" = "MingW" ; then
6661     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662   fi
6663
6664 cat >>confdefs.h <<_ACEOF
6665 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6666 _ACEOF
6667
6668 fi
6669 # Extract the first word of "circo", so it can be a program name with args.
6670 set dummy circo; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_CIRCO+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   case $CIRCO in
6677   [\\/]* | ?:[\\/]*)
6678   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6679   ;;
6680   *)
6681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686   for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6697   ;;
6698 esac
6699 fi
6700 CIRCO=$ac_cv_path_CIRCO
6701 if test -n "$CIRCO"; then
6702   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6703 echo "${ECHO_T}$CIRCO" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 if test "$CIRCO" != "echo circo" ; then
6711
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_CIRCO 1
6714 _ACEOF
6715
6716     if test "$llvm_cv_os_type" = "MingW" ; then
6717     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718   fi
6719
6720 cat >>confdefs.h <<_ACEOF
6721 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6722 _ACEOF
6723
6724 fi
6725 for ac_prog in gv gsview32
6726 do
6727   # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GV+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $GV in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   ;;
6755 esac
6756 fi
6757 GV=$ac_cv_path_GV
6758 if test -n "$GV"; then
6759   { echo "$as_me:$LINENO: result: $GV" >&5
6760 echo "${ECHO_T}$GV" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766
6767   test -n "$GV" && break
6768 done
6769 test -n "$GV" || GV="echo gv"
6770
6771 if test "$GV" != "echo gv" ; then
6772
6773 cat >>confdefs.h <<\_ACEOF
6774 #define HAVE_GV 1
6775 _ACEOF
6776
6777     if test "$llvm_cv_os_type" = "MingW" ; then
6778     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6779   fi
6780
6781 cat >>confdefs.h <<_ACEOF
6782 #define LLVM_PATH_GV "$GV${EXEEXT}"
6783 _ACEOF
6784
6785 fi
6786 # Extract the first word of "dotty", so it can be a program name with args.
6787 set dummy dotty; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_DOTTY+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   case $DOTTY in
6794   [\\/]* | ?:[\\/]*)
6795   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6796   ;;
6797   *)
6798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803   for ac_exec_ext in '' $ac_executable_extensions; do
6804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6814   ;;
6815 esac
6816 fi
6817 DOTTY=$ac_cv_path_DOTTY
6818 if test -n "$DOTTY"; then
6819   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6820 echo "${ECHO_T}$DOTTY" >&6; }
6821 else
6822   { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6824 fi
6825
6826
6827 if test "$DOTTY" != "echo dotty" ; then
6828
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_DOTTY 1
6831 _ACEOF
6832
6833     if test "$llvm_cv_os_type" = "MingW" ; then
6834     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835   fi
6836
6837 cat >>confdefs.h <<_ACEOF
6838 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6839 _ACEOF
6840
6841 fi
6842 for ac_prog in xdot xdot.py
6843 do
6844   # Extract the first word of "$ac_prog", so it can be a program name with args.
6845 set dummy $ac_prog; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_XDOT+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   case $XDOT in
6852   [\\/]* | ?:[\\/]*)
6853   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6854   ;;
6855   *)
6856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861   for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871   ;;
6872 esac
6873 fi
6874 XDOT=$ac_cv_path_XDOT
6875 if test -n "$XDOT"; then
6876   { echo "$as_me:$LINENO: result: $XDOT" >&5
6877 echo "${ECHO_T}$XDOT" >&6; }
6878 else
6879   { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6881 fi
6882
6883
6884   test -n "$XDOT" && break
6885 done
6886 test -n "$XDOT" || XDOT="echo xdot"
6887
6888 if test "$XDOT" != "echo xdot" ; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_XDOT 1
6892 _ACEOF
6893
6894     if test "$llvm_cv_os_type" = "MingW" ; then
6895     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6896   fi
6897
6898 cat >>confdefs.h <<_ACEOF
6899 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6900 _ACEOF
6901
6902 fi
6903
6904 # Find a good install program.  We prefer a C program (faster),
6905 # so one script is as good as another.  But avoid the broken or
6906 # incompatible versions:
6907 # SysV /etc/install, /usr/sbin/install
6908 # SunOS /usr/etc/install
6909 # IRIX /sbin/install
6910 # AIX /bin/install
6911 # AmigaOS /C/install, which installs bootblocks on floppy discs
6912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6915 # OS/2's system install, which has a completely different semantic
6916 # ./install, which can be erroneously created by make from ./install.sh.
6917 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6919 if test -z "$INSTALL"; then
6920 if test "${ac_cv_path_install+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   # Account for people who put trailing slashes in PATH elements.
6929 case $as_dir/ in
6930   ./ | .// | /cC/* | \
6931   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6932   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6933   /usr/ucb/* ) ;;
6934   *)
6935     # OSF1 and SCO ODT 3.0 have their own names for install.
6936     # Don't use installbsd from OSF since it installs stuff as root
6937     # by default.
6938     for ac_prog in ginstall scoinst install; do
6939       for ac_exec_ext in '' $ac_executable_extensions; do
6940         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6941           if test $ac_prog = install &&
6942             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6943             # AIX install.  It has an incompatible calling convention.
6944             :
6945           elif test $ac_prog = install &&
6946             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6947             # program-specific install script used by HP pwplus--don't use.
6948             :
6949           else
6950             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6951             break 3
6952           fi
6953         fi
6954       done
6955     done
6956     ;;
6957 esac
6958 done
6959 IFS=$as_save_IFS
6960
6961
6962 fi
6963   if test "${ac_cv_path_install+set}" = set; then
6964     INSTALL=$ac_cv_path_install
6965   else
6966     # As a last resort, use the slow shell script.  Don't cache a
6967     # value for INSTALL within a source directory, because that will
6968     # break other packages using the cache if that directory is
6969     # removed, or if the value is a relative name.
6970     INSTALL=$ac_install_sh
6971   fi
6972 fi
6973 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6974 echo "${ECHO_T}$INSTALL" >&6; }
6975
6976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6977 # It thinks the first close brace ends the variable substitution.
6978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6979
6980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6981
6982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6983
6984 case "$INSTALL" in
6985  [\\/$]* | ?:[\\/]* ) ;;
6986  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6987 esac
6988
6989 # Extract the first word of "bzip2", so it can be a program name with args.
6990 set dummy bzip2; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_BZIP2+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   case $BZIP2 in
6997   [\\/]* | ?:[\\/]*)
6998   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6999   ;;
7000   *)
7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016   ;;
7017 esac
7018 fi
7019 BZIP2=$ac_cv_path_BZIP2
7020 if test -n "$BZIP2"; then
7021   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7022 echo "${ECHO_T}$BZIP2" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029 # Extract the first word of "cat", so it can be a program name with args.
7030 set dummy cat; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_CAT+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   case $CAT in
7037   [\\/]* | ?:[\\/]*)
7038   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7039   ;;
7040   *)
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056   ;;
7057 esac
7058 fi
7059 CAT=$ac_cv_path_CAT
7060 if test -n "$CAT"; then
7061   { echo "$as_me:$LINENO: result: $CAT" >&5
7062 echo "${ECHO_T}$CAT" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068
7069 # Extract the first word of "doxygen", so it can be a program name with args.
7070 set dummy doxygen; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   case $DOXYGEN in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   ;;
7097 esac
7098 fi
7099 DOXYGEN=$ac_cv_path_DOXYGEN
7100 if test -n "$DOXYGEN"; then
7101   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7102 echo "${ECHO_T}$DOXYGEN" >&6; }
7103 else
7104   { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108
7109 # Extract the first word of "groff", so it can be a program name with args.
7110 set dummy groff; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_GROFF+set}" = set; then
7114   echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116   case $GROFF in
7117   [\\/]* | ?:[\\/]*)
7118   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7119   ;;
7120   *)
7121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126   for ac_exec_ext in '' $ac_executable_extensions; do
7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136   ;;
7137 esac
7138 fi
7139 GROFF=$ac_cv_path_GROFF
7140 if test -n "$GROFF"; then
7141   { echo "$as_me:$LINENO: result: $GROFF" >&5
7142 echo "${ECHO_T}$GROFF" >&6; }
7143 else
7144   { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7146 fi
7147
7148
7149 # Extract the first word of "gzip", so it can be a program name with args.
7150 set dummy gzip; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   case $GZIPBIN in
7157   [\\/]* | ?:[\\/]*)
7158   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7159   ;;
7160   *)
7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166   for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176   ;;
7177 esac
7178 fi
7179 GZIPBIN=$ac_cv_path_GZIPBIN
7180 if test -n "$GZIPBIN"; then
7181   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7182 echo "${ECHO_T}$GZIPBIN" >&6; }
7183 else
7184   { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188
7189 # Extract the first word of "pdfroff", so it can be a program name with args.
7190 set dummy pdfroff; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_PDFROFF+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $PDFROFF in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   ;;
7217 esac
7218 fi
7219 PDFROFF=$ac_cv_path_PDFROFF
7220 if test -n "$PDFROFF"; then
7221   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7222 echo "${ECHO_T}$PDFROFF" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 # Extract the first word of "zip", so it can be a program name with args.
7230 set dummy zip; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_ZIP+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   case $ZIP in
7237   [\\/]* | ?:[\\/]*)
7238   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7239   ;;
7240   *)
7241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246   for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256   ;;
7257 esac
7258 fi
7259 ZIP=$ac_cv_path_ZIP
7260 if test -n "$ZIP"; then
7261   { echo "$as_me:$LINENO: result: $ZIP" >&5
7262 echo "${ECHO_T}$ZIP" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268
7269 for ac_prog in ocamlc
7270 do
7271   # Extract the first word of "$ac_prog", so it can be a program name with args.
7272 set dummy $ac_prog; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_OCAMLC+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   case $OCAMLC in
7279   [\\/]* | ?:[\\/]*)
7280   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7281   ;;
7282   *)
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298   ;;
7299 esac
7300 fi
7301 OCAMLC=$ac_cv_path_OCAMLC
7302 if test -n "$OCAMLC"; then
7303   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7304 echo "${ECHO_T}$OCAMLC" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310
7311   test -n "$OCAMLC" && break
7312 done
7313
7314 for ac_prog in ocamlopt
7315 do
7316   # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   case $OCAMLOPT in
7324   [\\/]* | ?:[\\/]*)
7325   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7326   ;;
7327   *)
7328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333   for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343   ;;
7344 esac
7345 fi
7346 OCAMLOPT=$ac_cv_path_OCAMLOPT
7347 if test -n "$OCAMLOPT"; then
7348   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7349 echo "${ECHO_T}$OCAMLOPT" >&6; }
7350 else
7351   { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7353 fi
7354
7355
7356   test -n "$OCAMLOPT" && break
7357 done
7358
7359 for ac_prog in ocamldep
7360 do
7361   # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   case $OCAMLDEP in
7369   [\\/]* | ?:[\\/]*)
7370   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7371   ;;
7372   *)
7373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376   IFS=$as_save_IFS
7377   test -z "$as_dir" && as_dir=.
7378   for ac_exec_ext in '' $ac_executable_extensions; do
7379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7380     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382     break 2
7383   fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388   ;;
7389 esac
7390 fi
7391 OCAMLDEP=$ac_cv_path_OCAMLDEP
7392 if test -n "$OCAMLDEP"; then
7393   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7394 echo "${ECHO_T}$OCAMLDEP" >&6; }
7395 else
7396   { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7398 fi
7399
7400
7401   test -n "$OCAMLDEP" && break
7402 done
7403
7404 for ac_prog in ocamldoc
7405 do
7406   # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   case $OCAMLDOC in
7414   [\\/]* | ?:[\\/]*)
7415   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7416   ;;
7417   *)
7418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433   ;;
7434 esac
7435 fi
7436 OCAMLDOC=$ac_cv_path_OCAMLDOC
7437 if test -n "$OCAMLDOC"; then
7438   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7439 echo "${ECHO_T}$OCAMLDOC" >&6; }
7440 else
7441   { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443 fi
7444
7445
7446   test -n "$OCAMLDOC" && break
7447 done
7448
7449 for ac_prog in gas as
7450 do
7451   # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_GAS+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   case $GAS in
7459   [\\/]* | ?:[\\/]*)
7460   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7461   ;;
7462   *)
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478   ;;
7479 esac
7480 fi
7481 GAS=$ac_cv_path_GAS
7482 if test -n "$GAS"; then
7483   { echo "$as_me:$LINENO: result: $GAS" >&5
7484 echo "${ECHO_T}$GAS" >&6; }
7485 else
7486   { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7488 fi
7489
7490
7491   test -n "$GAS" && break
7492 done
7493
7494
7495 { echo "$as_me:$LINENO: checking for linker version" >&5
7496 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7497 if test "${llvm_cv_link_version+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500
7501    version_string="$(ld -v 2>&1 | head -1)"
7502
7503    # Check for ld64.
7504    if (echo "$version_string" | grep -q "ld64"); then
7505      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7506    else
7507      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7508    fi
7509
7510 fi
7511 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7512 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7513
7514 cat >>confdefs.h <<_ACEOF
7515 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7516 _ACEOF
7517
7518
7519
7520
7521 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7522 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7523 if test "${llvm_cv_link_use_r+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526    ac_ext=c
7527 ac_cpp='$CPP $CPPFLAGS'
7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7531
7532   oldcflags="$CFLAGS"
7533   CFLAGS="$CFLAGS -Wl,-R."
7534   cat >conftest.$ac_ext <<_ACEOF
7535 /* confdefs.h.  */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h.  */
7540
7541 int
7542 main ()
7543 {
7544
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7551 case "(($ac_try" in
7552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553   *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556   (eval "$ac_link") 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } &&
7563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564   { (case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_try") 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest$ac_exeext'
7574   { (case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579   (eval "$ac_try") 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   llvm_cv_link_use_r=yes
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         llvm_cv_link_use_r=no
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext \
7592       conftest$ac_exeext conftest.$ac_ext
7593   CFLAGS="$oldcflags"
7594   ac_ext=c
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600
7601 fi
7602 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7603 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7604 if test "$llvm_cv_link_use_r" = yes ; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_LINK_R 1
7608 _ACEOF
7609
7610   fi
7611
7612
7613 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7614 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7615 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618    ac_ext=c
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624   oldcflags="$CFLAGS"
7625   CFLAGS="$CFLAGS -rdynamic"
7626   cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h.  */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h.  */
7632
7633 int
7634 main ()
7635 {
7636
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (ac_try="$ac_link"
7643 case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648   (eval "$ac_link") 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } &&
7655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7656   { (case "(($ac_try" in
7657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658   *) ac_try_echo=$ac_try;;
7659 esac
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661   (eval "$ac_try") 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; } &&
7665          { ac_try='test -s conftest$ac_exeext'
7666   { (case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_try") 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   llvm_cv_link_use_export_dynamic=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680         llvm_cv_link_use_export_dynamic=no
7681 fi
7682
7683 rm -f core conftest.err conftest.$ac_objext \
7684       conftest$ac_exeext conftest.$ac_ext
7685   CFLAGS="$oldcflags"
7686   ac_ext=c
7687 ac_cpp='$CPP $CPPFLAGS'
7688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7691
7692
7693 fi
7694 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7695 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7696 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7697
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_LINK_EXPORT_DYNAMIC 1
7700 _ACEOF
7701
7702   fi
7703
7704
7705 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7706 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7707 if test "${llvm_cv_link_use_version_script+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710    ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716   oldcflags="$CFLAGS"
7717
7718   # The following code is from the autoconf manual,
7719   # "11.13: Limitations of Usual Tools".
7720   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7721   # Use mktemp if possible; otherwise fall back on mkdir,
7722   # with $RANDOM to make collisions less likely.
7723   : ${TMPDIR=/tmp}
7724   {
7725     tmp=`
7726       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7727     ` &&
7728     test -n "$tmp" && test -d "$tmp"
7729   } || {
7730     tmp=$TMPDIR/foo$$-$RANDOM
7731     (umask 077 && mkdir "$tmp")
7732   } || exit $?
7733
7734   echo "{" > "$tmp/export.map"
7735   echo "  global: main;" >> "$tmp/export.map"
7736   echo "  local: *;" >> "$tmp/export.map"
7737   echo "};" >> "$tmp/export.map"
7738
7739   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746
7747 int
7748 main ()
7749 {
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7757 case "(($ac_try" in
7758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759   *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762   (eval "$ac_link") 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770   { (case "(($ac_try" in
7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772   *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775   (eval "$ac_try") 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; } &&
7779          { ac_try='test -s conftest$ac_exeext'
7780   { (case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_try") 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   llvm_cv_link_use_version_script=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794         llvm_cv_link_use_version_script=no
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext \
7798       conftest$ac_exeext conftest.$ac_ext
7799   rm "$tmp/export.map"
7800   rmdir "$tmp"
7801   CFLAGS="$oldcflags"
7802   ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809 fi
7810 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7811 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7812 if test "$llvm_cv_link_use_version_script" = yes ; then
7813   HAVE_LINK_VERSION_SCRIPT=1
7814
7815   fi
7816
7817
7818
7819
7820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7822 if test "${ac_cv_c_const+set}" = set; then
7823   echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825   cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 int
7833 main ()
7834 {
7835 /* FIXME: Include the comments suggested by Paul. */
7836 #ifndef __cplusplus
7837   /* Ultrix mips cc rejects this.  */
7838   typedef int charset[2];
7839   const charset x;
7840   /* SunOS 4.1.1 cc rejects this.  */
7841   char const *const *ccp;
7842   char **p;
7843   /* NEC SVR4.0.2 mips cc rejects this.  */
7844   struct point {int x, y;};
7845   static struct point const zero = {0,0};
7846   /* AIX XL C 1.02.0.0 rejects this.
7847      It does not let you subtract one const X* pointer from another in
7848      an arm of an if-expression whose if-part is not a constant
7849      expression */
7850   const char *g = "string";
7851   ccp = &g + (g ? g-g : 0);
7852   /* HPUX 7.0 cc rejects these. */
7853   ++ccp;
7854   p = (char**) ccp;
7855   ccp = (char const *const *) p;
7856   { /* SCO 3.2v4 cc rejects this.  */
7857     char *t;
7858     char const *s = 0 ? (char *) 0 : (char const *) 0;
7859
7860     *t++ = 0;
7861     if (s) return 0;
7862   }
7863   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7864     int x[] = {25, 17};
7865     const int *foo = &x[0];
7866     ++foo;
7867   }
7868   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7869     typedef const int *iptr;
7870     iptr p = 0;
7871     ++p;
7872   }
7873   { /* AIX XL C 1.02.0.0 rejects this saying
7874        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7875     struct s { int j; const int *ap[3]; };
7876     struct s *b; b->j = 5;
7877   }
7878   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7879     const int foo = 10;
7880     if (!foo) return 0;
7881   }
7882   return !x[0] && !zero.x;
7883 #endif
7884
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893   *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896   (eval "$ac_compile") 2>conftest.er1
7897   ac_status=$?
7898   grep -v '^ *+' conftest.er1 >conftest.err
7899   rm -f conftest.er1
7900   cat conftest.err >&5
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } &&
7903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7904   { (case "(($ac_try" in
7905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906   *) ac_try_echo=$ac_try;;
7907 esac
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909   (eval "$ac_try") 2>&5
7910   ac_status=$?
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); }; } &&
7913          { ac_try='test -s conftest.$ac_objext'
7914   { (case "(($ac_try" in
7915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916   *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919   (eval "$ac_try") 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_cv_c_const=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928         ac_cv_c_const=no
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 fi
7933 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7934 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7935 if test $ac_cv_c_const = no; then
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define const
7939 _ACEOF
7940
7941 fi
7942
7943
7944 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7945 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7946 if test "${ac_cv_path_GREP+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   # Extract the first word of "grep ggrep" to use in msg output
7950 if test -z "$GREP"; then
7951 set dummy grep ggrep; ac_prog_name=$2
7952 if test "${ac_cv_path_GREP+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   ac_path_GREP_found=false
7956 # Loop through the user's path and test for each of PROGNAME-LIST
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7959 do
7960   IFS=$as_save_IFS
7961   test -z "$as_dir" && as_dir=.
7962   for ac_prog in grep ggrep; do
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7965     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7966     # Check for GNU ac_path_GREP and select it if it is found.
7967   # Check for GNU $ac_path_GREP
7968 case `"$ac_path_GREP" --version 2>&1` in
7969 *GNU*)
7970   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7971 *)
7972   ac_count=0
7973   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7974   while :
7975   do
7976     cat "conftest.in" "conftest.in" >"conftest.tmp"
7977     mv "conftest.tmp" "conftest.in"
7978     cp "conftest.in" "conftest.nl"
7979     echo 'GREP' >> "conftest.nl"
7980     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7982     ac_count=`expr $ac_count + 1`
7983     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7984       # Best one so far, save it but keep looking for a better one
7985       ac_cv_path_GREP="$ac_path_GREP"
7986       ac_path_GREP_max=$ac_count
7987     fi
7988     # 10*(2^10) chars as input seems more than enough
7989     test $ac_count -gt 10 && break
7990   done
7991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7992 esac
7993
7994
7995     $ac_path_GREP_found && break 3
7996   done
7997 done
7998
7999 done
8000 IFS=$as_save_IFS
8001
8002
8003 fi
8004
8005 GREP="$ac_cv_path_GREP"
8006 if test -z "$GREP"; then
8007   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8008 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8009    { (exit 1); exit 1; }; }
8010 fi
8011
8012 else
8013   ac_cv_path_GREP=$GREP
8014 fi
8015
8016
8017 fi
8018 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8019 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8020  GREP="$ac_cv_path_GREP"
8021
8022
8023 { echo "$as_me:$LINENO: checking for egrep" >&5
8024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8025 if test "${ac_cv_path_EGREP+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8029    then ac_cv_path_EGREP="$GREP -E"
8030    else
8031      # Extract the first word of "egrep" to use in msg output
8032 if test -z "$EGREP"; then
8033 set dummy egrep; ac_prog_name=$2
8034 if test "${ac_cv_path_EGREP+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   ac_path_EGREP_found=false
8038 # Loop through the user's path and test for each of PROGNAME-LIST
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044   for ac_prog in egrep; do
8045   for ac_exec_ext in '' $ac_executable_extensions; do
8046     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8047     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8048     # Check for GNU ac_path_EGREP and select it if it is found.
8049   # Check for GNU $ac_path_EGREP
8050 case `"$ac_path_EGREP" --version 2>&1` in
8051 *GNU*)
8052   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8053 *)
8054   ac_count=0
8055   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8056   while :
8057   do
8058     cat "conftest.in" "conftest.in" >"conftest.tmp"
8059     mv "conftest.tmp" "conftest.in"
8060     cp "conftest.in" "conftest.nl"
8061     echo 'EGREP' >> "conftest.nl"
8062     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8063     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8064     ac_count=`expr $ac_count + 1`
8065     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8066       # Best one so far, save it but keep looking for a better one
8067       ac_cv_path_EGREP="$ac_path_EGREP"
8068       ac_path_EGREP_max=$ac_count
8069     fi
8070     # 10*(2^10) chars as input seems more than enough
8071     test $ac_count -gt 10 && break
8072   done
8073   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8074 esac
8075
8076
8077     $ac_path_EGREP_found && break 3
8078   done
8079 done
8080
8081 done
8082 IFS=$as_save_IFS
8083
8084
8085 fi
8086
8087 EGREP="$ac_cv_path_EGREP"
8088 if test -z "$EGREP"; then
8089   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8090 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8091    { (exit 1); exit 1; }; }
8092 fi
8093
8094 else
8095   ac_cv_path_EGREP=$EGREP
8096 fi
8097
8098
8099    fi
8100 fi
8101 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8102 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8103  EGREP="$ac_cv_path_EGREP"
8104
8105
8106 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8108 if test "${ac_cv_header_stdc+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117 #include <stdlib.h>
8118 #include <stdarg.h>
8119 #include <string.h>
8120 #include <float.h>
8121
8122 int
8123 main ()
8124 {
8125
8126   ;
8127   return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134   *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137   (eval "$ac_compile") 2>conftest.er1
8138   ac_status=$?
8139   grep -v '^ *+' conftest.er1 >conftest.err
8140   rm -f conftest.er1
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); } &&
8144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145   { (case "(($ac_try" in
8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147   *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150   (eval "$ac_try") 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; } &&
8154          { ac_try='test -s conftest.$ac_objext'
8155   { (case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_try") 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; }; then
8164   ac_cv_header_stdc=yes
8165 else
8166   echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169         ac_cv_header_stdc=no
8170 fi
8171
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173
8174 if test $ac_cv_header_stdc = yes; then
8175   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 #include <string.h>
8183
8184 _ACEOF
8185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8186   $EGREP "memchr" >/dev/null 2>&1; then
8187   :
8188 else
8189   ac_cv_header_stdc=no
8190 fi
8191 rm -f conftest*
8192
8193 fi
8194
8195 if test $ac_cv_header_stdc = yes; then
8196   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8197   cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203 #include <stdlib.h>
8204
8205 _ACEOF
8206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207   $EGREP "free" >/dev/null 2>&1; then
8208   :
8209 else
8210   ac_cv_header_stdc=no
8211 fi
8212 rm -f conftest*
8213
8214 fi
8215
8216 if test $ac_cv_header_stdc = yes; then
8217   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8218   if test "$cross_compiling" = yes; then
8219   :
8220 else
8221   cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 #include <ctype.h>
8228 #include <stdlib.h>
8229 #if ((' ' & 0x0FF) == 0x020)
8230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8232 #else
8233 # define ISLOWER(c) \
8234                    (('a' <= (c) && (c) <= 'i') \
8235                      || ('j' <= (c) && (c) <= 'r') \
8236                      || ('s' <= (c) && (c) <= 'z'))
8237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8238 #endif
8239
8240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8241 int
8242 main ()
8243 {
8244   int i;
8245   for (i = 0; i < 256; i++)
8246     if (XOR (islower (i), ISLOWER (i))
8247         || toupper (i) != TOUPPER (i))
8248       return 2;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8254 case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_link") 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8263   { (case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_try") 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; }; then
8272   :
8273 else
8274   echo "$as_me: program exited with status $ac_status" >&5
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278 ( exit $ac_status )
8279 ac_cv_header_stdc=no
8280 fi
8281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8282 fi
8283
8284
8285 fi
8286 fi
8287 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8288 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8289 if test $ac_cv_header_stdc = yes; then
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define STDC_HEADERS 1
8293 _ACEOF
8294
8295 fi
8296
8297
8298
8299
8300
8301
8302 ac_header_dirent=no
8303 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8304   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8305 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8306 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 #include <sys/types.h>
8317 #include <$ac_hdr>
8318
8319 int
8320 main ()
8321 {
8322 if ((DIR *) 0)
8323 return 0;
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8330 case "(($ac_try" in
8331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332   *) ac_try_echo=$ac_try;;
8333 esac
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335   (eval "$ac_compile") 2>conftest.er1
8336   ac_status=$?
8337   grep -v '^ *+' conftest.er1 >conftest.err
8338   rm -f conftest.er1
8339   cat conftest.err >&5
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); } &&
8342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8343   { (case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_try") 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; } &&
8352          { ac_try='test -s conftest.$ac_objext'
8353   { (case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_try") 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   eval "$as_ac_Header=yes"
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367         eval "$as_ac_Header=no"
8368 fi
8369
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 ac_res=`eval echo '${'$as_ac_Header'}'`
8373                { echo "$as_me:$LINENO: result: $ac_res" >&5
8374 echo "${ECHO_T}$ac_res" >&6; }
8375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8376   cat >>confdefs.h <<_ACEOF
8377 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8378 _ACEOF
8379
8380 ac_header_dirent=$ac_hdr; break
8381 fi
8382
8383 done
8384 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8385 if test $ac_header_dirent = dirent.h; then
8386   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8387 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8388 if test "${ac_cv_search_opendir+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391   ac_func_search_save_LIBS=$LIBS
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 /* Override any GCC internal prototype to avoid an error.
8400    Use char because int might match the return type of a GCC
8401    builtin and then its argument prototype would still apply.  */
8402 #ifdef __cplusplus
8403 extern "C"
8404 #endif
8405 char opendir ();
8406 int
8407 main ()
8408 {
8409 return opendir ();
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 for ac_lib in '' dir; do
8415   if test -z "$ac_lib"; then
8416     ac_res="none required"
8417   else
8418     ac_res=-l$ac_lib
8419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8420   fi
8421   rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (ac_try="$ac_link"
8423 case "(($ac_try" in
8424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425   *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428   (eval "$ac_link") 2>conftest.er1
8429   ac_status=$?
8430   grep -v '^ *+' conftest.er1 >conftest.err
8431   rm -f conftest.er1
8432   cat conftest.err >&5
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); } &&
8435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8436   { (case "(($ac_try" in
8437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438   *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441   (eval "$ac_try") 2>&5
8442   ac_status=$?
8443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); }; } &&
8445          { ac_try='test -s conftest$ac_exeext'
8446   { (case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_try") 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; }; then
8455   ac_cv_search_opendir=$ac_res
8456 else
8457   echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460
8461 fi
8462
8463 rm -f core conftest.err conftest.$ac_objext \
8464       conftest$ac_exeext
8465   if test "${ac_cv_search_opendir+set}" = set; then
8466   break
8467 fi
8468 done
8469 if test "${ac_cv_search_opendir+set}" = set; then
8470   :
8471 else
8472   ac_cv_search_opendir=no
8473 fi
8474 rm conftest.$ac_ext
8475 LIBS=$ac_func_search_save_LIBS
8476 fi
8477 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8478 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8479 ac_res=$ac_cv_search_opendir
8480 if test "$ac_res" != no; then
8481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8482
8483 fi
8484
8485 else
8486   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8487 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8488 if test "${ac_cv_search_opendir+set}" = set; then
8489   echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491   ac_func_search_save_LIBS=$LIBS
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any GCC internal prototype to avoid an error.
8500    Use char because int might match the return type of a GCC
8501    builtin and then its argument prototype would still apply.  */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 char opendir ();
8506 int
8507 main ()
8508 {
8509 return opendir ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 for ac_lib in '' x; do
8515   if test -z "$ac_lib"; then
8516     ac_res="none required"
8517   else
8518     ac_res=-l$ac_lib
8519     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8520   fi
8521   rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (ac_try="$ac_link"
8523 case "(($ac_try" in
8524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525   *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528   (eval "$ac_link") 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8536   { (case "(($ac_try" in
8537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538   *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541   (eval "$ac_try") 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; } &&
8545          { ac_try='test -s conftest$ac_exeext'
8546   { (case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551   (eval "$ac_try") 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; }; then
8555   ac_cv_search_opendir=$ac_res
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560
8561 fi
8562
8563 rm -f core conftest.err conftest.$ac_objext \
8564       conftest$ac_exeext
8565   if test "${ac_cv_search_opendir+set}" = set; then
8566   break
8567 fi
8568 done
8569 if test "${ac_cv_search_opendir+set}" = set; then
8570   :
8571 else
8572   ac_cv_search_opendir=no
8573 fi
8574 rm conftest.$ac_ext
8575 LIBS=$ac_func_search_save_LIBS
8576 fi
8577 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8578 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8579 ac_res=$ac_cv_search_opendir
8580 if test "$ac_res" != no; then
8581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8582
8583 fi
8584
8585 fi
8586
8587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8598                   inttypes.h stdint.h unistd.h
8599 do
8600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612 $ac_includes_default
8613
8614 #include <$ac_header>
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_compile") 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631   { (case "(($ac_try" in
8632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633   *) ac_try_echo=$ac_try;;
8634 esac
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636   (eval "$ac_try") 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; } &&
8640          { ac_try='test -s conftest.$ac_objext'
8641   { (case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_try") 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; }; then
8650   eval "$as_ac_Header=yes"
8651 else
8652   echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655         eval "$as_ac_Header=no"
8656 fi
8657
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 ac_res=`eval echo '${'$as_ac_Header'}'`
8661                { echo "$as_me:$LINENO: result: $ac_res" >&5
8662 echo "${ECHO_T}$ac_res" >&6; }
8663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8664   cat >>confdefs.h <<_ACEOF
8665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8666 _ACEOF
8667
8668 fi
8669
8670 done
8671
8672
8673
8674 for ac_header in dlfcn.h
8675 do
8676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8678   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 fi
8683 ac_res=`eval echo '${'$as_ac_Header'}'`
8684                { echo "$as_me:$LINENO: result: $ac_res" >&5
8685 echo "${ECHO_T}$ac_res" >&6; }
8686 else
8687   # Is the header compilable?
8688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696 $ac_includes_default
8697 #include <$ac_header>
8698 _ACEOF
8699 rm -f conftest.$ac_objext
8700 if { (ac_try="$ac_compile"
8701 case "(($ac_try" in
8702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703   *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706   (eval "$ac_compile") 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714   { (case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719   (eval "$ac_try") 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest.$ac_objext'
8724   { (case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729   (eval "$ac_try") 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_header_compiler=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738         ac_header_compiler=no
8739 fi
8740
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8743 echo "${ECHO_T}$ac_header_compiler" >&6; }
8744
8745 # Is the header present?
8746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754 #include <$ac_header>
8755 _ACEOF
8756 if { (ac_try="$ac_cpp conftest.$ac_ext"
8757 case "(($ac_try" in
8758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759   *) ac_try_echo=$ac_try;;
8760 esac
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } >/dev/null; then
8769   if test -s conftest.err; then
8770     ac_cpp_err=$ac_c_preproc_warn_flag
8771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8772   else
8773     ac_cpp_err=
8774   fi
8775 else
8776   ac_cpp_err=yes
8777 fi
8778 if test -z "$ac_cpp_err"; then
8779   ac_header_preproc=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784   ac_header_preproc=no
8785 fi
8786
8787 rm -f conftest.err conftest.$ac_ext
8788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8789 echo "${ECHO_T}$ac_header_preproc" >&6; }
8790
8791 # So?  What about this header?
8792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8793   yes:no: )
8794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8798     ac_header_preproc=yes
8799     ;;
8800   no:yes:* )
8801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8813     ( cat <<\_ASBOX
8814 ## ------------------------------------ ##
8815 ## Report this to http://llvm.org/bugs/ ##
8816 ## ------------------------------------ ##
8817 _ASBOX
8818      ) | sed "s/^/$as_me: WARNING:     /" >&2
8819     ;;
8820 esac
8821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8824   echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826   eval "$as_ac_Header=\$ac_header_preproc"
8827 fi
8828 ac_res=`eval echo '${'$as_ac_Header'}'`
8829                { echo "$as_me:$LINENO: result: $ac_res" >&5
8830 echo "${ECHO_T}$ac_res" >&6; }
8831
8832 fi
8833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8834   cat >>confdefs.h <<_ACEOF
8835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8836 _ACEOF
8837
8838 fi
8839
8840 done
8841
8842 # Check whether --enable-ltdl-install was given.
8843 if test "${enable_ltdl_install+set}" = set; then
8844   enableval=$enable_ltdl_install;
8845 fi
8846
8847
8848
8849
8850 if test x"${enable_ltdl_install-no}" != xno; then
8851   INSTALL_LTDL_TRUE=
8852   INSTALL_LTDL_FALSE='#'
8853 else
8854   INSTALL_LTDL_TRUE='#'
8855   INSTALL_LTDL_FALSE=
8856 fi
8857
8858
8859
8860 if test x"${enable_ltdl_convenience-no}" != xno; then
8861   CONVENIENCE_LTDL_TRUE=
8862   CONVENIENCE_LTDL_FALSE='#'
8863 else
8864   CONVENIENCE_LTDL_TRUE='#'
8865   CONVENIENCE_LTDL_FALSE=
8866 fi
8867
8868
8869 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8871 library_names_spec=
8872 libname_spec='lib$name'
8873 soname_spec=
8874 shrext_cmds=".so"
8875 postinstall_cmds=
8876 postuninstall_cmds=
8877 finish_cmds=
8878 finish_eval=
8879 shlibpath_var=
8880 shlibpath_overrides_runpath=unknown
8881 version_type=none
8882 dynamic_linker="$host_os ld.so"
8883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8884 if test "$GCC" = yes; then
8885   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8886   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8887     # if the path contains ";" then we assume it to be the separator
8888     # otherwise default to the standard path separator (i.e. ":") - it is
8889     # assumed that no part of a normal pathname contains ";" but that should
8890     # okay in the real world where ";" in dirpaths is itself problematic.
8891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8892   else
8893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8894   fi
8895 else
8896   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8897 fi
8898 need_lib_prefix=unknown
8899 hardcode_into_libs=no
8900
8901 # when you set need_version to no, make sure it does not cause -set_version
8902 # flags to be left without arguments
8903 need_version=unknown
8904
8905 case $host_os in
8906 aix3*)
8907   version_type=linux
8908   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8909   shlibpath_var=LIBPATH
8910
8911   # AIX 3 has no versioning support, so we append a major version to the name.
8912   soname_spec='${libname}${release}${shared_ext}$major'
8913   ;;
8914
8915 aix4* | aix5*)
8916   version_type=linux
8917   need_lib_prefix=no
8918   need_version=no
8919   hardcode_into_libs=yes
8920   if test "$host_cpu" = ia64; then
8921     # AIX 5 supports IA64
8922     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8923     shlibpath_var=LD_LIBRARY_PATH
8924   else
8925     # With GCC up to 2.95.x, collect2 would create an import file
8926     # for dependence libraries.  The import file would start with
8927     # the line `#! .'.  This would cause the generated library to
8928     # depend on `.', always an invalid library.  This was fixed in
8929     # development snapshots of GCC prior to 3.0.
8930     case $host_os in
8931       aix4 | aix4.[01] | aix4.[01].*)
8932       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8933            echo ' yes '
8934            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8935         :
8936       else
8937         can_build_shared=no
8938       fi
8939       ;;
8940     esac
8941     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8942     # soname into executable. Probably we can add versioning support to
8943     # collect2, so additional links can be useful in future.
8944     if test "$aix_use_runtimelinking" = yes; then
8945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8946       # instead of lib<name>.a to let people know that these are not
8947       # typical AIX shared libraries.
8948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949     else
8950       # We preserve .a as extension for shared libraries through AIX4.2
8951       # and later when we are not doing run time linking.
8952       library_names_spec='${libname}${release}.a $libname.a'
8953       soname_spec='${libname}${release}${shared_ext}$major'
8954     fi
8955     shlibpath_var=LIBPATH
8956   fi
8957   ;;
8958
8959 amigaos*)
8960   library_names_spec='$libname.ixlibrary $libname.a'
8961   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8962   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'
8963   ;;
8964
8965 beos*)
8966   library_names_spec='${libname}${shared_ext}'
8967   dynamic_linker="$host_os ld.so"
8968   shlibpath_var=LIBRARY_PATH
8969   ;;
8970
8971 bsdi[45]*)
8972   version_type=linux
8973   need_version=no
8974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975   soname_spec='${libname}${release}${shared_ext}$major'
8976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8977   shlibpath_var=LD_LIBRARY_PATH
8978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8980   # the default ld.so.conf also contains /usr/contrib/lib and
8981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8982   # libtool to hard-code these into programs
8983   ;;
8984
8985 cygwin* | mingw* | pw32*)
8986   version_type=windows
8987   shrext_cmds=".dll"
8988   need_version=no
8989   need_lib_prefix=no
8990
8991   case $GCC,$host_os in
8992   yes,cygwin* | yes,mingw* | yes,pw32*)
8993     library_names_spec='$libname.dll.a'
8994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8995     postinstall_cmds='base_file=`basename \${file}`~
8996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8997       dldir=$destdir/`dirname \$dlpath`~
8998       test -d \$dldir || mkdir -p \$dldir~
8999       $install_prog $dir/$dlname \$dldir/$dlname~
9000       chmod a+x \$dldir/$dlname'
9001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9002       dlpath=$dir/\$dldll~
9003        $rm \$dlpath'
9004     shlibpath_overrides_runpath=yes
9005
9006     case $host_os in
9007     cygwin*)
9008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9010       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9011       ;;
9012     mingw*)
9013       # MinGW DLLs use traditional 'lib' prefix
9014       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9016       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9017         # It is most probably a Windows format PATH printed by
9018         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9019         # path with ; separators, and with drive letters. We can handle the
9020         # drive letters (cygwin fileutils understands them), so leave them,
9021         # especially as we might pass files found there to a mingw objdump,
9022         # which wouldn't understand a cygwinified path. Ahh.
9023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9024       else
9025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9026       fi
9027       ;;
9028     pw32*)
9029       # pw32 DLLs use 'pw' prefix rather than 'lib'
9030       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9031       ;;
9032     esac
9033     ;;
9034
9035   *)
9036     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9037     ;;
9038   esac
9039   dynamic_linker='Win32 ld.exe'
9040   # FIXME: first we should search . and the directory the executable is in
9041   shlibpath_var=PATH
9042   ;;
9043
9044 darwin* | rhapsody*)
9045   dynamic_linker="$host_os dyld"
9046   version_type=darwin
9047   need_lib_prefix=no
9048   need_version=no
9049   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9050   soname_spec='${libname}${release}${major}$shared_ext'
9051   shlibpath_overrides_runpath=yes
9052   shlibpath_var=DYLD_LIBRARY_PATH
9053   shrext_cmds='.dylib'
9054   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9055   if test "$GCC" = yes; then
9056     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"`
9057   else
9058     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9059   fi
9060   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9061   ;;
9062
9063 dgux*)
9064   version_type=linux
9065   need_lib_prefix=no
9066   need_version=no
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   ;;
9071
9072 freebsd1.*)
9073   dynamic_linker=no
9074   ;;
9075
9076 kfreebsd*-gnu)
9077   version_type=linux
9078   need_lib_prefix=no
9079   need_version=no
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   shlibpath_overrides_runpath=no
9084   hardcode_into_libs=yes
9085   dynamic_linker='GNU ld.so'
9086   ;;
9087
9088 freebsd* | dragonfly*)
9089   # DragonFly does not have aout.  When/if they implement a new
9090   # versioning mechanism, adjust this.
9091   if test -x /usr/bin/objformat; then
9092     objformat=`/usr/bin/objformat`
9093   else
9094     case $host_os in
9095     freebsd[123].*) objformat=aout ;;
9096     *) objformat=elf ;;
9097     esac
9098   fi
9099   version_type=freebsd-$objformat
9100   case $version_type in
9101     freebsd-elf*)
9102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9103       need_version=no
9104       need_lib_prefix=no
9105       ;;
9106     freebsd-*)
9107       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9108       need_version=yes
9109       ;;
9110   esac
9111   shlibpath_var=LD_LIBRARY_PATH
9112   case $host_os in
9113   freebsd2.*)
9114     shlibpath_overrides_runpath=yes
9115     ;;
9116   freebsd3.[01]* | freebsdelf3.[01]*)
9117     shlibpath_overrides_runpath=yes
9118     hardcode_into_libs=yes
9119     ;;
9120   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9121   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9122     shlibpath_overrides_runpath=no
9123     hardcode_into_libs=yes
9124     ;;
9125   freebsd*) # from 4.6 on
9126     shlibpath_overrides_runpath=yes
9127     hardcode_into_libs=yes
9128     ;;
9129   esac
9130   ;;
9131
9132 gnu*)
9133   version_type=linux
9134   need_lib_prefix=no
9135   need_version=no
9136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9137   soname_spec='${libname}${release}${shared_ext}$major'
9138   shlibpath_var=LD_LIBRARY_PATH
9139   hardcode_into_libs=yes
9140   ;;
9141
9142 hpux9* | hpux10* | hpux11*)
9143   # Give a soname corresponding to the major version so that dld.sl refuses to
9144   # link against other versions.
9145   version_type=sunos
9146   need_lib_prefix=no
9147   need_version=no
9148   case $host_cpu in
9149   ia64*)
9150     shrext_cmds='.so'
9151     hardcode_into_libs=yes
9152     dynamic_linker="$host_os dld.so"
9153     shlibpath_var=LD_LIBRARY_PATH
9154     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156     soname_spec='${libname}${release}${shared_ext}$major'
9157     if test "X$HPUX_IA64_MODE" = X32; then
9158       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9159     else
9160       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9161     fi
9162     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9163     ;;
9164    hppa*64*)
9165      shrext_cmds='.sl'
9166      hardcode_into_libs=yes
9167      dynamic_linker="$host_os dld.sl"
9168      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9169      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9170      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171      soname_spec='${libname}${release}${shared_ext}$major'
9172      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9173      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9174      ;;
9175    *)
9176     shrext_cmds='.sl'
9177     dynamic_linker="$host_os dld.sl"
9178     shlibpath_var=SHLIB_PATH
9179     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181     soname_spec='${libname}${release}${shared_ext}$major'
9182     ;;
9183   esac
9184   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9185   postinstall_cmds='chmod 555 $lib'
9186   ;;
9187
9188 interix3*)
9189   version_type=linux
9190   need_lib_prefix=no
9191   need_version=no
9192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9193   soname_spec='${libname}${release}${shared_ext}$major'
9194   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   shlibpath_overrides_runpath=no
9197   hardcode_into_libs=yes
9198   ;;
9199
9200 irix5* | irix6* | nonstopux*)
9201   case $host_os in
9202     nonstopux*) version_type=nonstopux ;;
9203     *)
9204         if test "$lt_cv_prog_gnu_ld" = yes; then
9205                 version_type=linux
9206         else
9207                 version_type=irix
9208         fi ;;
9209   esac
9210   need_lib_prefix=no
9211   need_version=no
9212   soname_spec='${libname}${release}${shared_ext}$major'
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9214   case $host_os in
9215   irix5* | nonstopux*)
9216     libsuff= shlibsuff=
9217     ;;
9218   *)
9219     case $LD in # libtool.m4 will add one of these switches to LD
9220     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9221       libsuff= shlibsuff= libmagic=32-bit;;
9222     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9223       libsuff=32 shlibsuff=N32 libmagic=N32;;
9224     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9225       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9226     *) libsuff= shlibsuff= libmagic=never-match;;
9227     esac
9228     ;;
9229   esac
9230   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9231   shlibpath_overrides_runpath=no
9232   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9233   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9234   hardcode_into_libs=yes
9235   ;;
9236
9237 # No shared lib support for Linux oldld, aout, or coff.
9238 linux*oldld* | linux*aout* | linux*coff*)
9239   dynamic_linker=no
9240   ;;
9241
9242 # This must be Linux ELF.
9243 linux*)
9244   version_type=linux
9245   need_lib_prefix=no
9246   need_version=no
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248   soname_spec='${libname}${release}${shared_ext}$major'
9249   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   shlibpath_overrides_runpath=no
9252   # This implies no fast_install, which is unacceptable.
9253   # Some rework will be needed to allow for fast_install
9254   # before this can be enabled.
9255   hardcode_into_libs=yes
9256
9257   # Append ld.so.conf contents to the search path
9258   if test -f /etc/ld.so.conf; then
9259     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' ' '`
9260     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9261   fi
9262
9263   # We used to test for /lib/ld.so.1 and disable shared libraries on
9264   # powerpc, because MkLinux only supported shared libraries with the
9265   # GNU dynamic linker.  Since this was broken with cross compilers,
9266   # most powerpc-linux boxes support dynamic linking these days and
9267   # people can always --disable-shared, the test was removed, and we
9268   # assume the GNU/Linux dynamic linker is in use.
9269   dynamic_linker='GNU/Linux ld.so'
9270   ;;
9271
9272 knetbsd*-gnu)
9273   version_type=linux
9274   need_lib_prefix=no
9275   need_version=no
9276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   shlibpath_var=LD_LIBRARY_PATH
9279   shlibpath_overrides_runpath=no
9280   hardcode_into_libs=yes
9281   dynamic_linker='GNU ld.so'
9282   ;;
9283
9284 netbsd*)
9285   version_type=sunos
9286   need_lib_prefix=no
9287   need_version=no
9288   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9290     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9291     dynamic_linker='NetBSD (a.out) ld.so'
9292   else
9293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9294     soname_spec='${libname}${release}${shared_ext}$major'
9295     dynamic_linker='NetBSD ld.elf_so'
9296   fi
9297   shlibpath_var=LD_LIBRARY_PATH
9298   shlibpath_overrides_runpath=yes
9299   hardcode_into_libs=yes
9300   ;;
9301
9302 newsos6)
9303   version_type=linux
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   shlibpath_overrides_runpath=yes
9307   ;;
9308
9309 nto-qnx*)
9310   version_type=linux
9311   need_lib_prefix=no
9312   need_version=no
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   shlibpath_overrides_runpath=yes
9317   ;;
9318
9319 openbsd* | bitrig*)
9320   version_type=sunos
9321   sys_lib_dlsearch_path_spec="/usr/lib"
9322   need_lib_prefix=no
9323   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9324   case $host_os in
9325     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9326     *)                         need_version=no  ;;
9327   esac
9328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9332     case $host_os in
9333       openbsd2.[89] | openbsd2.[89].*)
9334         shlibpath_overrides_runpath=no
9335         ;;
9336       *)
9337         shlibpath_overrides_runpath=yes
9338         ;;
9339       esac
9340   else
9341     shlibpath_overrides_runpath=yes
9342   fi
9343   ;;
9344
9345 os2*)
9346   libname_spec='$name'
9347   shrext_cmds=".dll"
9348   need_lib_prefix=no
9349   library_names_spec='$libname${shared_ext} $libname.a'
9350   dynamic_linker='OS/2 ld.exe'
9351   shlibpath_var=LIBPATH
9352   ;;
9353
9354 osf3* | osf4* | osf5*)
9355   version_type=osf
9356   need_lib_prefix=no
9357   need_version=no
9358   soname_spec='${libname}${release}${shared_ext}$major'
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360   shlibpath_var=LD_LIBRARY_PATH
9361   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9362   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9363   ;;
9364
9365 solaris*)
9366   version_type=linux
9367   need_lib_prefix=no
9368   need_version=no
9369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   shlibpath_var=LD_LIBRARY_PATH
9372   shlibpath_overrides_runpath=yes
9373   hardcode_into_libs=yes
9374   # ldd complains unless libraries are executable
9375   postinstall_cmds='chmod +x $lib'
9376   ;;
9377
9378 sunos4*)
9379   version_type=sunos
9380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   shlibpath_overrides_runpath=yes
9384   if test "$with_gnu_ld" = yes; then
9385     need_lib_prefix=no
9386   fi
9387   need_version=yes
9388   ;;
9389
9390 sysv4 | sysv4.3*)
9391   version_type=linux
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393   soname_spec='${libname}${release}${shared_ext}$major'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   case $host_vendor in
9396     sni)
9397       shlibpath_overrides_runpath=no
9398       need_lib_prefix=no
9399       export_dynamic_flag_spec='${wl}-Blargedynsym'
9400       runpath_var=LD_RUN_PATH
9401       ;;
9402     siemens)
9403       need_lib_prefix=no
9404       ;;
9405     motorola)
9406       need_lib_prefix=no
9407       need_version=no
9408       shlibpath_overrides_runpath=no
9409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9410       ;;
9411   esac
9412   ;;
9413
9414 sysv4*MP*)
9415   if test -d /usr/nec ;then
9416     version_type=linux
9417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9418     soname_spec='$libname${shared_ext}.$major'
9419     shlibpath_var=LD_LIBRARY_PATH
9420   fi
9421   ;;
9422
9423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9424   version_type=freebsd-elf
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   hardcode_into_libs=yes
9431   if test "$with_gnu_ld" = yes; then
9432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9433     shlibpath_overrides_runpath=no
9434   else
9435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9436     shlibpath_overrides_runpath=yes
9437     case $host_os in
9438       sco3.2v5*)
9439         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9440         ;;
9441     esac
9442   fi
9443   sys_lib_dlsearch_path_spec='/usr/lib'
9444   ;;
9445
9446 uts4*)
9447   version_type=linux
9448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449   soname_spec='${libname}${release}${shared_ext}$major'
9450   shlibpath_var=LD_LIBRARY_PATH
9451   ;;
9452
9453 *)
9454   dynamic_linker=no
9455   ;;
9456 esac
9457 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9458 echo "${ECHO_T}$dynamic_linker" >&6; }
9459 test "$dynamic_linker" = no && can_build_shared=no
9460
9461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9462 if test "$GCC" = yes; then
9463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9464 fi
9465
9466
9467 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9468 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_shlibext+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473 module=yes
9474 eval libltdl_cv_shlibext=$shrext_cmds
9475
9476 fi
9477 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9478 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9479 if test -n "$libltdl_cv_shlibext"; then
9480
9481 cat >>confdefs.h <<_ACEOF
9482 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9483 _ACEOF
9484
9485 fi
9486
9487
9488 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9489 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9490 if test "${libltdl_cv_sys_search_path+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9494 fi
9495 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9496 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9497 if test -n "$libltdl_cv_sys_search_path"; then
9498   sys_search_path=
9499   for dir in $libltdl_cv_sys_search_path; do
9500     if test -z "$sys_search_path"; then
9501       sys_search_path="$dir"
9502     else
9503       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9504     fi
9505   done
9506
9507 cat >>confdefs.h <<_ACEOF
9508 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9509 _ACEOF
9510
9511 fi
9512
9513 { echo "$as_me:$LINENO: checking for objdir" >&5
9514 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9515 if test "${libltdl_cv_objdir+set}" = set; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518   libltdl_cv_objdir="$objdir"
9519   if test -n "$objdir"; then
9520     :
9521   else
9522     rm -f .libs 2>/dev/null
9523     mkdir .libs 2>/dev/null
9524     if test -d .libs; then
9525       libltdl_cv_objdir=.libs
9526     else
9527       # MS-DOS does not allow filenames that begin with a dot.
9528       libltdl_cv_objdir=_libs
9529     fi
9530   rmdir .libs 2>/dev/null
9531   fi
9532
9533 fi
9534 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9535 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9536
9537 cat >>confdefs.h <<_ACEOF
9538 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9539 _ACEOF
9540
9541
9542
9543
9544
9545
9546 # Check for command to grab the raw symbol name followed by C symbol from nm.
9547 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9548 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552
9553 # These are sane defaults that work on at least a few old systems.
9554 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9555
9556 # Character class describing NM global symbol codes.
9557 symcode='[BCDEGRST]'
9558
9559 # Regexp to match symbols that can be accessed directly from C.
9560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9561
9562 # Transform an extracted symbol line into a proper C declaration
9563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9564
9565 # Transform an extracted symbol line into symbol name and symbol address
9566 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'"
9567
9568 # Define system-specific variables.
9569 case $host_os in
9570 aix*)
9571   symcode='[BCDT]'
9572   ;;
9573 cygwin* | mingw* | pw32*)
9574   symcode='[ABCDGISTW]'
9575   ;;
9576 hpux*) # Its linker distinguishes data from code symbols
9577   if test "$host_cpu" = ia64; then
9578     symcode='[ABCDEGRST]'
9579   fi
9580   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9581   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'"
9582   ;;
9583 linux*)
9584   if test "$host_cpu" = ia64; then
9585     symcode='[ABCDGIRSTW]'
9586     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9587     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'"
9588   fi
9589   ;;
9590 irix* | nonstopux*)
9591   symcode='[BCDEGRST]'
9592   ;;
9593 osf*)
9594   symcode='[BCDEGQRST]'
9595   ;;
9596 solaris*)
9597   symcode='[BDRT]'
9598   ;;
9599 sco3.2v5*)
9600   symcode='[DT]'
9601   ;;
9602 sysv4.2uw2*)
9603   symcode='[DT]'
9604   ;;
9605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9606   symcode='[ABDT]'
9607   ;;
9608 sysv4)
9609   symcode='[DFNSTU]'
9610   ;;
9611 esac
9612
9613 # Handle CRLF in mingw tool chain
9614 opt_cr=
9615 case $build_os in
9616 mingw*)
9617   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9618   ;;
9619 esac
9620
9621 # If we're using GNU nm, then use its standard symbol codes.
9622 case `$NM -V 2>&1` in
9623 *GNU* | *'with BFD'*)
9624   symcode='[ABCDGIRSTW]' ;;
9625 esac
9626
9627 # Try without a prefix undercore, then with it.
9628 for ac_symprfx in "" "_"; do
9629
9630   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9631   symxfrm="\\1 $ac_symprfx\\2 \\2"
9632
9633   # Write the raw and C identifiers.
9634   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9635
9636   # Check to see that the pipe works correctly.
9637   pipe_works=no
9638
9639   rm -f conftest*
9640   cat > conftest.$ac_ext <<EOF
9641 #ifdef __cplusplus
9642 extern "C" {
9643 #endif
9644 char nm_test_var;
9645 void nm_test_func(){}
9646 #ifdef __cplusplus
9647 }
9648 #endif
9649 int main(){nm_test_var='a';nm_test_func();return(0);}
9650 EOF
9651
9652   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653   (eval $ac_compile) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); }; then
9657     # Now try to grab the symbols.
9658     nlist=conftest.nm
9659     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9660   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && test -s "$nlist"; then
9664       # Try sorting and uniquifying the output.
9665       if sort "$nlist" | uniq > "$nlist"T; then
9666         mv -f "$nlist"T "$nlist"
9667       else
9668         rm -f "$nlist"T
9669       fi
9670
9671       # Make sure that we snagged all the symbols we need.
9672       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9673         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9674           cat <<EOF > conftest.$ac_ext
9675 #ifdef __cplusplus
9676 extern "C" {
9677 #endif
9678
9679 EOF
9680           # Now generate the symbol file.
9681           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9682
9683           cat <<EOF >> conftest.$ac_ext
9684 #if defined (__STDC__) && __STDC__
9685 # define lt_ptr_t void *
9686 #else
9687 # define lt_ptr_t char *
9688 # define const
9689 #endif
9690
9691 /* The mapping between symbol names and symbols. */
9692 const struct {
9693   const char *name;
9694   lt_ptr_t address;
9695 }
9696 lt_preloaded_symbols[] =
9697 {
9698 EOF
9699           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9700           cat <<\EOF >> conftest.$ac_ext
9701   {0, (lt_ptr_t) 0}
9702 };
9703
9704 #ifdef __cplusplus
9705 }
9706 #endif
9707 EOF
9708           # Now try linking the two files.
9709           mv conftest.$ac_objext conftstm.$ac_objext
9710           lt_save_LIBS="$LIBS"
9711           lt_save_CFLAGS="$CFLAGS"
9712           LIBS="conftstm.$ac_objext"
9713           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9714           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9719             pipe_works=yes
9720           fi
9721           LIBS="$lt_save_LIBS"
9722           CFLAGS="$lt_save_CFLAGS"
9723         else
9724           echo "cannot find nm_test_func in $nlist" >&5
9725         fi
9726       else
9727         echo "cannot find nm_test_var in $nlist" >&5
9728       fi
9729     else
9730       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9731     fi
9732   else
9733     echo "$progname: failed program was:" >&5
9734     cat conftest.$ac_ext >&5
9735   fi
9736   rm -f conftest* conftst*
9737
9738   # Do not use the global_symbol_pipe unless it works.
9739   if test "$pipe_works" = yes; then
9740     break
9741   else
9742     lt_cv_sys_global_symbol_pipe=
9743   fi
9744 done
9745
9746 fi
9747
9748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9749   lt_cv_sys_global_symbol_to_cdecl=
9750 fi
9751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9752   { echo "$as_me:$LINENO: result: failed" >&5
9753 echo "${ECHO_T}failed" >&6; }
9754 else
9755   { echo "$as_me:$LINENO: result: ok" >&5
9756 echo "${ECHO_T}ok" >&6; }
9757 fi
9758
9759
9760 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9761 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9762 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9766     libltdl_cv_preloaded_symbols=yes
9767   else
9768     libltdl_cv_preloaded_symbols=no
9769   fi
9770
9771 fi
9772 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9773 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9774 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9775
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_PRELOADED_SYMBOLS 1
9778 _ACEOF
9779
9780 fi
9781
9782 LIBADD_DL=
9783
9784 ac_ext=c
9785 ac_cpp='$CPP $CPPFLAGS'
9786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9789
9790
9791 { echo "$as_me:$LINENO: checking for shl_load" >&5
9792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9793 if test "${ac_cv_func_shl_load+set}" = set; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9804 #define shl_load innocuous_shl_load
9805
9806 /* System header to define __stub macros and hopefully few prototypes,
9807     which can conflict with char shl_load (); below.
9808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809     <limits.h> exists even on freestanding compilers.  */
9810
9811 #ifdef __STDC__
9812 # include <limits.h>
9813 #else
9814 # include <assert.h>
9815 #endif
9816
9817 #undef shl_load
9818
9819 /* Override any GCC internal prototype to avoid an error.
9820    Use char because int might match the return type of a GCC
9821    builtin and then its argument prototype would still apply.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char shl_load ();
9826 /* The GNU C library defines this for functions which it implements
9827     to always fail with ENOSYS.  Some functions are actually named
9828     something starting with __ and the normal name is an alias.  */
9829 #if defined __stub_shl_load || defined __stub___shl_load
9830 choke me
9831 #endif
9832
9833 int
9834 main ()
9835 {
9836 return shl_load ();
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9843 case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_link") 2>conftest.er1
9849   ac_status=$?
9850   grep -v '^ *+' conftest.er1 >conftest.err
9851   rm -f conftest.er1
9852   cat conftest.err >&5
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856   { (case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_try") 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; } &&
9865          { ac_try='test -s conftest$ac_exeext'
9866   { (case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_try") 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_func_shl_load=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880         ac_cv_func_shl_load=no
9881 fi
9882
9883 rm -f core conftest.err conftest.$ac_objext \
9884       conftest$ac_exeext conftest.$ac_ext
9885 fi
9886 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9887 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9888 if test $ac_cv_func_shl_load = yes; then
9889
9890 cat >>confdefs.h <<\_ACEOF
9891 #define HAVE_SHL_LOAD 1
9892 _ACEOF
9893
9894 else
9895   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9896 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900   ac_check_lib_save_LIBS=$LIBS
9901 LIBS="-ldld  $LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h.  */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h.  */
9908
9909 /* Override any GCC internal prototype to avoid an error.
9910    Use char because int might match the return type of a GCC
9911    builtin and then its argument prototype would still apply.  */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 char shl_load ();
9916 int
9917 main ()
9918 {
9919 return shl_load ();
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9926 case "(($ac_try" in
9927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928   *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931   (eval "$ac_link") 2>conftest.er1
9932   ac_status=$?
9933   grep -v '^ *+' conftest.er1 >conftest.err
9934   rm -f conftest.er1
9935   cat conftest.err >&5
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } &&
9938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9939   { (case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_try") 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest$ac_exeext'
9949   { (case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_try") 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; }; then
9958   ac_cv_lib_dld_shl_load=yes
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963         ac_cv_lib_dld_shl_load=no
9964 fi
9965
9966 rm -f core conftest.err conftest.$ac_objext \
9967       conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9972 if test $ac_cv_lib_dld_shl_load = yes; then
9973
9974 cat >>confdefs.h <<\_ACEOF
9975 #define HAVE_SHL_LOAD 1
9976 _ACEOF
9977
9978         LIBADD_DL="$LIBADD_DL -ldld"
9979 else
9980   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9981 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9982 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-ldl  $LIBS"
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993
9994 /* Override any GCC internal prototype to avoid an error.
9995    Use char because int might match the return type of a GCC
9996    builtin and then its argument prototype would still apply.  */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char dlopen ();
10001 int
10002 main ()
10003 {
10004 return dlopen ();
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013   *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016   (eval "$ac_link") 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (case "(($ac_try" in
10035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036   *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039   (eval "$ac_try") 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; }; then
10043   ac_cv_lib_dl_dlopen=yes
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048         ac_cv_lib_dl_dlopen=no
10049 fi
10050
10051 rm -f core conftest.err conftest.$ac_objext \
10052       conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10058
10059 cat >>confdefs.h <<\_ACEOF
10060 #define HAVE_LIBDL 1
10061 _ACEOF
10062
10063                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10064 else
10065   cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h.  */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h.  */
10071 #if HAVE_DLFCN_H
10072 #  include <dlfcn.h>
10073 #endif
10074
10075 int
10076 main ()
10077 {
10078 dlopen(0, 0);
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087   *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090   (eval "$ac_link") 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } &&
10097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098   { (case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_try") 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; } &&
10107          { ac_try='test -s conftest$ac_exeext'
10108   { (case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_try") 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; }; then
10117
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_LIBDL 1
10120 _ACEOF
10121  libltdl_cv_func_dlopen="yes"
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10129   echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131   ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lsvld  $LIBS"
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h.  */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h.  */
10139
10140 /* Override any GCC internal prototype to avoid an error.
10141    Use char because int might match the return type of a GCC
10142    builtin and then its argument prototype would still apply.  */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char dlopen ();
10147 int
10148 main ()
10149 {
10150 return dlopen ();
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_try") 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_lib_svld_dlopen=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_lib_svld_dlopen=no
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10200 fi
10201 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10202 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10203 if test $ac_cv_lib_svld_dlopen = yes; then
10204
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_LIBDL 1
10207 _ACEOF
10208
10209                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10210 else
10211   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10212 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10213 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-ldld  $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224
10225 /* Override any GCC internal prototype to avoid an error.
10226    Use char because int might match the return type of a GCC
10227    builtin and then its argument prototype would still apply.  */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char dld_link ();
10232 int
10233 main ()
10234 {
10235 return dld_link ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_link") 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_try") 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; }; then
10274   ac_cv_lib_dld_dld_link=yes
10275 else
10276   echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279         ac_cv_lib_dld_dld_link=no
10280 fi
10281
10282 rm -f core conftest.err conftest.$ac_objext \
10283       conftest$ac_exeext conftest.$ac_ext
10284 LIBS=$ac_check_lib_save_LIBS
10285 fi
10286 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10287 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10288 if test $ac_cv_lib_dld_dld_link = yes; then
10289
10290 cat >>confdefs.h <<\_ACEOF
10291 #define HAVE_DLD 1
10292 _ACEOF
10293
10294                 LIBADD_DL="$LIBADD_DL -ldld"
10295 else
10296   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10297 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10298 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10299   echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301   cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h.  */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h.  */
10307 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10309 #define _dyld_func_lookup innocuous__dyld_func_lookup
10310
10311 /* System header to define __stub macros and hopefully few prototypes,
10312     which can conflict with char _dyld_func_lookup (); below.
10313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10314     <limits.h> exists even on freestanding compilers.  */
10315
10316 #ifdef __STDC__
10317 # include <limits.h>
10318 #else
10319 # include <assert.h>
10320 #endif
10321
10322 #undef _dyld_func_lookup
10323
10324 /* Override any GCC internal prototype to avoid an error.
10325    Use char because int might match the return type of a GCC
10326    builtin and then its argument prototype would still apply.  */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char _dyld_func_lookup ();
10331 /* The GNU C library defines this for functions which it implements
10332     to always fail with ENOSYS.  Some functions are actually named
10333     something starting with __ and the normal name is an alias.  */
10334 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10335 choke me
10336 #endif
10337
10338 int
10339 main ()
10340 {
10341 return _dyld_func_lookup ();
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (ac_try="$ac_link"
10348 case "(($ac_try" in
10349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350   *) ac_try_echo=$ac_try;;
10351 esac
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353   (eval "$ac_link") 2>conftest.er1
10354   ac_status=$?
10355   grep -v '^ *+' conftest.er1 >conftest.err
10356   rm -f conftest.er1
10357   cat conftest.err >&5
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } &&
10360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10361   { (case "(($ac_try" in
10362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363   *) ac_try_echo=$ac_try;;
10364 esac
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366   (eval "$ac_try") 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; } &&
10370          { ac_try='test -s conftest$ac_exeext'
10371   { (case "(($ac_try" in
10372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373   *) ac_try_echo=$ac_try;;
10374 esac
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376   (eval "$ac_try") 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); }; }; then
10380   ac_cv_func__dyld_func_lookup=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385         ac_cv_func__dyld_func_lookup=no
10386 fi
10387
10388 rm -f core conftest.err conftest.$ac_objext \
10389       conftest$ac_exeext conftest.$ac_ext
10390 fi
10391 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10392 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10393 if test $ac_cv_func__dyld_func_lookup = yes; then
10394
10395 cat >>confdefs.h <<\_ACEOF
10396 #define HAVE_DYLD 1
10397 _ACEOF
10398
10399 fi
10400
10401
10402 fi
10403
10404
10405 fi
10406
10407
10408 fi
10409
10410 rm -f core conftest.err conftest.$ac_objext \
10411       conftest$ac_exeext conftest.$ac_ext
10412
10413 fi
10414
10415
10416 fi
10417
10418
10419 fi
10420
10421
10422 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10423 then
10424   lt_save_LIBS="$LIBS"
10425   LIBS="$LIBS $LIBADD_DL"
10426
10427 for ac_func in dlerror
10428 do
10429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10443 #define $ac_func innocuous_$ac_func
10444
10445 /* System header to define __stub macros and hopefully few prototypes,
10446     which can conflict with char $ac_func (); below.
10447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10448     <limits.h> exists even on freestanding compilers.  */
10449
10450 #ifdef __STDC__
10451 # include <limits.h>
10452 #else
10453 # include <assert.h>
10454 #endif
10455
10456 #undef $ac_func
10457
10458 /* Override any GCC internal prototype to avoid an error.
10459    Use char because int might match the return type of a GCC
10460    builtin and then its argument prototype would still apply.  */
10461 #ifdef __cplusplus
10462 extern "C"
10463 #endif
10464 char $ac_func ();
10465 /* The GNU C library defines this for functions which it implements
10466     to always fail with ENOSYS.  Some functions are actually named
10467     something starting with __ and the normal name is an alias.  */
10468 #if defined __stub_$ac_func || defined __stub___$ac_func
10469 choke me
10470 #endif
10471
10472 int
10473 main ()
10474 {
10475 return $ac_func ();
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484   *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487   (eval "$ac_link") 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } &&
10494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10495   { (case "(($ac_try" in
10496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497   *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500   (eval "$ac_try") 2>&5
10501   ac_status=$?
10502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503   (exit $ac_status); }; } &&
10504          { ac_try='test -s conftest$ac_exeext'
10505   { (case "(($ac_try" in
10506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507   *) ac_try_echo=$ac_try;;
10508 esac
10509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510   (eval "$ac_try") 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; }; then
10514   eval "$as_ac_var=yes"
10515 else
10516   echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519         eval "$as_ac_var=no"
10520 fi
10521
10522 rm -f core conftest.err conftest.$ac_objext \
10523       conftest$ac_exeext conftest.$ac_ext
10524 fi
10525 ac_res=`eval echo '${'$as_ac_var'}'`
10526                { echo "$as_me:$LINENO: result: $ac_res" >&5
10527 echo "${ECHO_T}$ac_res" >&6; }
10528 if test `eval echo '${'$as_ac_var'}'` = yes; then
10529   cat >>confdefs.h <<_ACEOF
10530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10531 _ACEOF
10532
10533 fi
10534 done
10535
10536   LIBS="$lt_save_LIBS"
10537 fi
10538 ac_ext=c
10539 ac_cpp='$CPP $CPPFLAGS'
10540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543
10544
10545
10546 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10547 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10548 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   ac_cv_sys_symbol_underscore=no
10552   cat > conftest.$ac_ext <<EOF
10553 void nm_test_func(){}
10554 int main(){nm_test_func;return 0;}
10555 EOF
10556   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557   (eval $ac_compile) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; then
10561     # Now try to grab the symbols.
10562     ac_nlist=conftest.nm
10563     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10564   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } && test -s "$ac_nlist"; then
10568       # See whether the symbols have a leading underscore.
10569       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10570         ac_cv_sys_symbol_underscore=yes
10571       else
10572         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10573           :
10574         else
10575           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10576         fi
10577       fi
10578     else
10579       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10580     fi
10581   else
10582     echo "configure: failed program was:" >&5
10583     cat conftest.c >&5
10584   fi
10585   rm -rf conftest*
10586
10587 fi
10588 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10589 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10590
10591
10592 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10593   if test x"$libltdl_cv_func_dlopen" = xyes ||
10594      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10595         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10596 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10597 if test "${libltdl_cv_need_uscore+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   libltdl_cv_need_uscore=unknown
10601           save_LIBS="$LIBS"
10602           LIBS="$LIBS $LIBADD_DL"
10603           if test "$cross_compiling" = yes; then :
10604   libltdl_cv_need_uscore=cross
10605 else
10606   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10607   lt_status=$lt_dlunknown
10608   cat > conftest.$ac_ext <<EOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10611
10612 #if HAVE_DLFCN_H
10613 #include <dlfcn.h>
10614 #endif
10615
10616 #include <stdio.h>
10617
10618 #ifdef RTLD_GLOBAL
10619 #  define LT_DLGLOBAL           RTLD_GLOBAL
10620 #else
10621 #  ifdef DL_GLOBAL
10622 #    define LT_DLGLOBAL         DL_GLOBAL
10623 #  else
10624 #    define LT_DLGLOBAL         0
10625 #  endif
10626 #endif
10627
10628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10629    find out it does not work in some platform. */
10630 #ifndef LT_DLLAZY_OR_NOW
10631 #  ifdef RTLD_LAZY
10632 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10633 #  else
10634 #    ifdef DL_LAZY
10635 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10636 #    else
10637 #      ifdef RTLD_NOW
10638 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10639 #      else
10640 #        ifdef DL_NOW
10641 #          define LT_DLLAZY_OR_NOW      DL_NOW
10642 #        else
10643 #          define LT_DLLAZY_OR_NOW      0
10644 #        endif
10645 #      endif
10646 #    endif
10647 #  endif
10648 #endif
10649
10650 #ifdef __cplusplus
10651 extern "C" void exit (int);
10652 #endif
10653
10654 void fnord() { int i=42;}
10655 int main ()
10656 {
10657   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10658   int status = $lt_dlunknown;
10659
10660   if (self)
10661     {
10662       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10663       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10664       /* dlclose (self); */
10665     }
10666   else
10667     puts (dlerror ());
10668
10669     exit (status);
10670 }
10671 EOF
10672   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673   (eval $ac_link) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10677     (./conftest; exit; ) >&5 2>/dev/null
10678     lt_status=$?
10679     case x$lt_status in
10680       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10681       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10682       x$lt_dlunknown|x*)  ;;
10683     esac
10684   else :
10685     # compilation failed
10686
10687   fi
10688 fi
10689 rm -fr conftest*
10690
10691           LIBS="$save_LIBS"
10692
10693 fi
10694 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10695 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10696   fi
10697 fi
10698
10699 if test x"$libltdl_cv_need_uscore" = xyes; then
10700
10701 cat >>confdefs.h <<\_ACEOF
10702 #define NEED_USCORE 1
10703 _ACEOF
10704
10705 fi
10706
10707
10708 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10709 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10710 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   # PORTME does your system automatically load deplibs for dlopen?
10714   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10715   # For now, we just catch OSes we know something about -- in the
10716   # future, we'll try test this programmatically.
10717   libltdl_cv_sys_dlopen_deplibs=unknown
10718   case "$host_os" in
10719   aix3*|aix4.1.*|aix4.2.*)
10720     # Unknown whether this is true for these versions of AIX, but
10721     # we want this `case' here to explicitly catch those versions.
10722     libltdl_cv_sys_dlopen_deplibs=unknown
10723     ;;
10724   aix[45]*)
10725     libltdl_cv_sys_dlopen_deplibs=yes
10726     ;;
10727   darwin*)
10728     # Assuming the user has installed a libdl from somewhere, this is true
10729     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10730     libltdl_cv_sys_dlopen_deplibs=yes
10731     ;;
10732   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10733     # GNU and its variants, using gnu ld.so (Glibc)
10734     libltdl_cv_sys_dlopen_deplibs=yes
10735     ;;
10736   hpux10*|hpux11*)
10737     libltdl_cv_sys_dlopen_deplibs=yes
10738     ;;
10739   interix*)
10740     libltdl_cv_sys_dlopen_deplibs=yes
10741     ;;
10742   irix[12345]*|irix6.[01]*)
10743     # Catch all versions of IRIX before 6.2, and indicate that we don't
10744     # know how it worked for any of those versions.
10745     libltdl_cv_sys_dlopen_deplibs=unknown
10746     ;;
10747   irix*)
10748     # The case above catches anything before 6.2, and it's known that
10749     # at 6.2 and later dlopen does load deplibs.
10750     libltdl_cv_sys_dlopen_deplibs=yes
10751     ;;
10752   netbsd*)
10753     libltdl_cv_sys_dlopen_deplibs=yes
10754     ;;
10755   openbsd*)
10756     libltdl_cv_sys_dlopen_deplibs=yes
10757     ;;
10758   osf[1234]*)
10759     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10760     # it did *not* use an RPATH in a shared library to find objects the
10761     # library depends on, so we explicitly say `no'.
10762     libltdl_cv_sys_dlopen_deplibs=no
10763     ;;
10764   osf5.0|osf5.0a|osf5.1)
10765     # dlopen *does* load deplibs and with the right loader patch applied
10766     # it even uses RPATH in a shared library to search for shared objects
10767     # that the library depends on, but there's no easy way to know if that
10768     # patch is installed.  Since this is the case, all we can really
10769     # say is unknown -- it depends on the patch being installed.  If
10770     # it is, this changes to `yes'.  Without it, it would be `no'.
10771     libltdl_cv_sys_dlopen_deplibs=unknown
10772     ;;
10773   osf*)
10774     # the two cases above should catch all versions of osf <= 5.1.  Read
10775     # the comments above for what we know about them.
10776     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10777     # is used to find them so we can finally say `yes'.
10778     libltdl_cv_sys_dlopen_deplibs=yes
10779     ;;
10780   solaris*)
10781     libltdl_cv_sys_dlopen_deplibs=yes
10782     ;;
10783   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10784     libltdl_cv_sys_dlopen_deplibs=yes
10785     ;;
10786   esac
10787
10788 fi
10789 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10790 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10791 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10792
10793 cat >>confdefs.h <<\_ACEOF
10794 #define LTDL_DLOPEN_DEPLIBS 1
10795 _ACEOF
10796
10797 fi
10798
10799
10800 for ac_header in argz.h
10801 do
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 fi
10809 ac_res=`eval echo '${'$as_ac_Header'}'`
10810                { echo "$as_me:$LINENO: result: $ac_res" >&5
10811 echo "${ECHO_T}$ac_res" >&6; }
10812 else
10813   # Is the header compilable?
10814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 $ac_includes_default
10823 #include <$ac_header>
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829   *) ac_try_echo=$ac_try;;
10830 esac
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832   (eval "$ac_compile") 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840   { (case "(($ac_try" in
10841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842   *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845   (eval "$ac_try") 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); }; } &&
10849          { ac_try='test -s conftest.$ac_objext'
10850   { (case "(($ac_try" in
10851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852   *) ac_try_echo=$ac_try;;
10853 esac
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855   (eval "$ac_try") 2>&5
10856   ac_status=$?
10857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858   (exit $ac_status); }; }; then
10859   ac_header_compiler=yes
10860 else
10861   echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864         ac_header_compiler=no
10865 fi
10866
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10869 echo "${ECHO_T}$ac_header_compiler" >&6; }
10870
10871 # Is the header present?
10872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880 #include <$ac_header>
10881 _ACEOF
10882 if { (ac_try="$ac_cpp conftest.$ac_ext"
10883 case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } >/dev/null; then
10895   if test -s conftest.err; then
10896     ac_cpp_err=$ac_c_preproc_warn_flag
10897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10898   else
10899     ac_cpp_err=
10900   fi
10901 else
10902   ac_cpp_err=yes
10903 fi
10904 if test -z "$ac_cpp_err"; then
10905   ac_header_preproc=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910   ac_header_preproc=no
10911 fi
10912
10913 rm -f conftest.err conftest.$ac_ext
10914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915 echo "${ECHO_T}$ac_header_preproc" >&6; }
10916
10917 # So?  What about this header?
10918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10919   yes:no: )
10920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10924     ac_header_preproc=yes
10925     ;;
10926   no:yes:* )
10927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10939     ( cat <<\_ASBOX
10940 ## ------------------------------------ ##
10941 ## Report this to http://llvm.org/bugs/ ##
10942 ## ------------------------------------ ##
10943 _ASBOX
10944      ) | sed "s/^/$as_me: WARNING:     /" >&2
10945     ;;
10946 esac
10947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   eval "$as_ac_Header=\$ac_header_preproc"
10953 fi
10954 ac_res=`eval echo '${'$as_ac_Header'}'`
10955                { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10957
10958 fi
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960   cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10962 _ACEOF
10963
10964 fi
10965
10966 done
10967
10968
10969 { echo "$as_me:$LINENO: checking for error_t" >&5
10970 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10971 if test "${ac_cv_type_error_t+set}" = set; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h.  */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h.  */
10980 #if HAVE_ARGZ_H
10981 #  include <argz.h>
10982 #endif
10983
10984 typedef error_t ac__type_new_;
10985 int
10986 main ()
10987 {
10988 if ((ac__type_new_ *) 0)
10989   return 0;
10990 if (sizeof (ac__type_new_))
10991   return 0;
10992   ;
10993   return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_compile") 2>conftest.er1
11004   ac_status=$?
11005   grep -v '^ *+' conftest.er1 >conftest.err
11006   rm -f conftest.er1
11007   cat conftest.err >&5
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); } &&
11010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011   { (case "(($ac_try" in
11012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013   *) ac_try_echo=$ac_try;;
11014 esac
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016   (eval "$ac_try") 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; } &&
11020          { ac_try='test -s conftest.$ac_objext'
11021   { (case "(($ac_try" in
11022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023   *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026   (eval "$ac_try") 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; }; then
11030   ac_cv_type_error_t=yes
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035         ac_cv_type_error_t=no
11036 fi
11037
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 fi
11040 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11041 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11042 if test $ac_cv_type_error_t = yes; then
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_ERROR_T 1
11046 _ACEOF
11047
11048
11049 else
11050
11051 cat >>confdefs.h <<\_ACEOF
11052 #define error_t int
11053 _ACEOF
11054
11055 fi
11056
11057
11058
11059
11060
11061
11062
11063 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11064 do
11065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11069   echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071   cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11079 #define $ac_func innocuous_$ac_func
11080
11081 /* System header to define __stub macros and hopefully few prototypes,
11082     which can conflict with char $ac_func (); below.
11083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11084     <limits.h> exists even on freestanding compilers.  */
11085
11086 #ifdef __STDC__
11087 # include <limits.h>
11088 #else
11089 # include <assert.h>
11090 #endif
11091
11092 #undef $ac_func
11093
11094 /* Override any GCC internal prototype to avoid an error.
11095    Use char because int might match the return type of a GCC
11096    builtin and then its argument prototype would still apply.  */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char $ac_func ();
11101 /* The GNU C library defines this for functions which it implements
11102     to always fail with ENOSYS.  Some functions are actually named
11103     something starting with __ and the normal name is an alias.  */
11104 #if defined __stub_$ac_func || defined __stub___$ac_func
11105 choke me
11106 #endif
11107
11108 int
11109 main ()
11110 {
11111 return $ac_func ();
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
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_link") 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); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest$ac_exeext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   eval "$as_ac_var=yes"
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         eval "$as_ac_var=no"
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext \
11159       conftest$ac_exeext conftest.$ac_ext
11160 fi
11161 ac_res=`eval echo '${'$as_ac_var'}'`
11162                { echo "$as_me:$LINENO: result: $ac_res" >&5
11163 echo "${ECHO_T}$ac_res" >&6; }
11164 if test `eval echo '${'$as_ac_var'}'` = yes; then
11165   cat >>confdefs.h <<_ACEOF
11166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11167 _ACEOF
11168
11169 fi
11170 done
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194 for ac_header in errno.h malloc.h memory.h unistd.h
11195 do
11196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 fi
11203 ac_res=`eval echo '${'$as_ac_Header'}'`
11204                { echo "$as_me:$LINENO: result: $ac_res" >&5
11205 echo "${ECHO_T}$ac_res" >&6; }
11206 else
11207   # Is the header compilable?
11208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h.  */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h.  */
11216 $ac_includes_default
11217 #include <$ac_header>
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_compile") 2>conftest.er1
11227   ac_status=$?
11228   grep -v '^ *+' conftest.er1 >conftest.err
11229   rm -f conftest.er1
11230   cat conftest.err >&5
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } &&
11233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234   { (case "(($ac_try" in
11235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236   *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239   (eval "$ac_try") 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; } &&
11243          { ac_try='test -s conftest.$ac_objext'
11244   { (case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_try") 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; }; then
11253   ac_header_compiler=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258         ac_header_compiler=no
11259 fi
11260
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263 echo "${ECHO_T}$ac_header_compiler" >&6; }
11264
11265 # Is the header present?
11266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11268 cat >conftest.$ac_ext <<_ACEOF
11269 /* confdefs.h.  */
11270 _ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h.  */
11274 #include <$ac_header>
11275 _ACEOF
11276 if { (ac_try="$ac_cpp conftest.$ac_ext"
11277 case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11283   ac_status=$?
11284   grep -v '^ *+' conftest.er1 >conftest.err
11285   rm -f conftest.er1
11286   cat conftest.err >&5
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); } >/dev/null; then
11289   if test -s conftest.err; then
11290     ac_cpp_err=$ac_c_preproc_warn_flag
11291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11292   else
11293     ac_cpp_err=
11294   fi
11295 else
11296   ac_cpp_err=yes
11297 fi
11298 if test -z "$ac_cpp_err"; then
11299   ac_header_preproc=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304   ac_header_preproc=no
11305 fi
11306
11307 rm -f conftest.err conftest.$ac_ext
11308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6; }
11310
11311 # So?  What about this header?
11312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11313   yes:no: )
11314     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11318     ac_header_preproc=yes
11319     ;;
11320   no:yes:* )
11321     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11323     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11324 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11327     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11328 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11331     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11333     ( cat <<\_ASBOX
11334 ## ------------------------------------ ##
11335 ## Report this to http://llvm.org/bugs/ ##
11336 ## ------------------------------------ ##
11337 _ASBOX
11338      ) | sed "s/^/$as_me: WARNING:     /" >&2
11339     ;;
11340 esac
11341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   eval "$as_ac_Header=\$ac_header_preproc"
11347 fi
11348 ac_res=`eval echo '${'$as_ac_Header'}'`
11349                { echo "$as_me:$LINENO: result: $ac_res" >&5
11350 echo "${ECHO_T}$ac_res" >&6; }
11351
11352 fi
11353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11354   cat >>confdefs.h <<_ACEOF
11355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11356 _ACEOF
11357
11358 fi
11359
11360 done
11361
11362
11363 for ac_header in mach-o/dyld.h
11364 do
11365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 fi
11372 ac_res=`eval echo '${'$as_ac_Header'}'`
11373                { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11375 else
11376   # Is the header compilable?
11377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385 $ac_includes_default
11386 #include <$ac_header>
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (ac_try="$ac_compile"
11390 case "(($ac_try" in
11391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392   *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395   (eval "$ac_compile") 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403   { (case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_try") 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; } &&
11412          { ac_try='test -s conftest.$ac_objext'
11413   { (case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_try") 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   ac_header_compiler=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427         ac_header_compiler=no
11428 fi
11429
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11432 echo "${ECHO_T}$ac_header_compiler" >&6; }
11433
11434 # Is the header present?
11435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 #include <$ac_header>
11444 _ACEOF
11445 if { (ac_try="$ac_cpp conftest.$ac_ext"
11446 case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11452   ac_status=$?
11453   grep -v '^ *+' conftest.er1 >conftest.err
11454   rm -f conftest.er1
11455   cat conftest.err >&5
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } >/dev/null; then
11458   if test -s conftest.err; then
11459     ac_cpp_err=$ac_c_preproc_warn_flag
11460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11461   else
11462     ac_cpp_err=
11463   fi
11464 else
11465   ac_cpp_err=yes
11466 fi
11467 if test -z "$ac_cpp_err"; then
11468   ac_header_preproc=yes
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473   ac_header_preproc=no
11474 fi
11475
11476 rm -f conftest.err conftest.$ac_ext
11477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11478 echo "${ECHO_T}$ac_header_preproc" >&6; }
11479
11480 # So?  What about this header?
11481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11482   yes:no: )
11483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11487     ac_header_preproc=yes
11488     ;;
11489   no:yes:* )
11490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11502     ( cat <<\_ASBOX
11503 ## ------------------------------------ ##
11504 ## Report this to http://llvm.org/bugs/ ##
11505 ## ------------------------------------ ##
11506 _ASBOX
11507      ) | sed "s/^/$as_me: WARNING:     /" >&2
11508     ;;
11509 esac
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513   echo $ECHO_N "(cached) $ECHO_C" >&6
11514 else
11515   eval "$as_ac_Header=\$ac_header_preproc"
11516 fi
11517 ac_res=`eval echo '${'$as_ac_Header'}'`
11518                { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11520
11521 fi
11522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 fi
11528
11529 done
11530
11531
11532
11533
11534
11535 for ac_func in closedir opendir readdir
11536 do
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11551 #define $ac_func innocuous_$ac_func
11552
11553 /* System header to define __stub macros and hopefully few prototypes,
11554     which can conflict with char $ac_func (); below.
11555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556     <limits.h> exists even on freestanding compilers.  */
11557
11558 #ifdef __STDC__
11559 # include <limits.h>
11560 #else
11561 # include <assert.h>
11562 #endif
11563
11564 #undef $ac_func
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567    Use char because int might match the return type of a GCC
11568    builtin and then its argument prototype would still apply.  */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char $ac_func ();
11573 /* The GNU C library defines this for functions which it implements
11574     to always fail with ENOSYS.  Some functions are actually named
11575     something starting with __ and the normal name is an alias.  */
11576 #if defined __stub_$ac_func || defined __stub___$ac_func
11577 choke me
11578 #endif
11579
11580 int
11581 main ()
11582 {
11583 return $ac_func ();
11584   ;
11585   return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592   *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595   (eval "$ac_link") 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } &&
11602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11603   { (case "(($ac_try" in
11604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605   *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608   (eval "$ac_try") 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; } &&
11612          { ac_try='test -s conftest$ac_exeext'
11613   { (case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_try") 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   eval "$as_ac_var=yes"
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627         eval "$as_ac_var=no"
11628 fi
11629
11630 rm -f core conftest.err conftest.$ac_objext \
11631       conftest$ac_exeext conftest.$ac_ext
11632 fi
11633 ac_res=`eval echo '${'$as_ac_var'}'`
11634                { echo "$as_me:$LINENO: result: $ac_res" >&5
11635 echo "${ECHO_T}$ac_res" >&6; }
11636 if test `eval echo '${'$as_ac_var'}'` = yes; then
11637   cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11639 _ACEOF
11640
11641 fi
11642 done
11643
11644
11645
11646 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11647 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11648
11649 ICC=no
11650 IXX=no
11651 case $CC in
11652   icc*|icpc*)
11653     ICC=yes
11654     IXX=yes
11655     ;;
11656    *)
11657     ;;
11658 esac
11659
11660 if test "$GCC" != "yes" && test "$ICC" != "yes"
11661 then
11662   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11663 echo "$as_me: error: gcc|icc required but not found" >&2;}
11664    { (exit 1); exit 1; }; }
11665 fi
11666
11667 if test "$GXX" != "yes" && test "$IXX" != "yes"
11668 then
11669   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11670 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11671    { (exit 1); exit 1; }; }
11672 fi
11673
11674 if test "$GCC" = "yes"
11675 then
11676   cat >conftest.$ac_ext <<_ACEOF
11677
11678   /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683
11684     #if !defined(__GNUC__) || __GNUC__ < 3
11685     #error Unsupported GCC version
11686     #endif
11687
11688
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694   *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697   (eval "$ac_compile") 2>conftest.er1
11698   ac_status=$?
11699   grep -v '^ *+' conftest.er1 >conftest.err
11700   rm -f conftest.er1
11701   cat conftest.err >&5
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); } &&
11704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705   { (case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_try") 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (case "(($ac_try" in
11716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717   *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720   (eval "$ac_try") 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; }; then
11724   :
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11730 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11731    { (exit 1); exit 1; }; }
11732 fi
11733
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735 fi
11736
11737 if test -z "$llvm_cv_gnu_make_command"
11738 then
11739   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11740 echo "$as_me: error: GNU Make required but not found" >&2;}
11741    { (exit 1); exit 1; }; }
11742 fi
11743
11744 { echo "$as_me:$LINENO: result: ok" >&5
11745 echo "${ECHO_T}ok" >&6; }
11746
11747 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11748 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11749 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11750
11751 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11752
11753 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11754
11755
11756 NO_UNINITIALIZED=
11757 NO_MAYBE_UNINITIALIZED=
11758 if test "$GXX" = "yes"
11759 then
11760   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11761
11762         if test -z "$NO_MAYBE_UNINITIALIZED"
11763   then
11764     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11765
11766   fi
11767 fi
11768 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11769 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11770
11771
11772 # Check whether --with-python was given.
11773 if test "${with_python+set}" = set; then
11774   withval=$with_python; PYTHON="$withval"
11775 fi
11776
11777
11778 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11779   { echo "$as_me:$LINENO: checking for python" >&5
11780 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11781   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11782 echo "${ECHO_T}user defined: $with_python" >&6; }
11783 else
11784   if test -n "$PYTHON" ; then
11785     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11786 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11787   fi
11788
11789   # Extract the first word of "python python2 python26", so it can be a program name with args.
11790 set dummy python python2 python26; ac_word=$2
11791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11793 if test "${ac_cv_path_PYTHON+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   case $PYTHON in
11797   [\\/]* | ?:[\\/]*)
11798   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11799   ;;
11800   *)
11801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804   IFS=$as_save_IFS
11805   test -z "$as_dir" && as_dir=.
11806   for ac_exec_ext in '' $ac_executable_extensions; do
11807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11808     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810     break 2
11811   fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11817 echo "${ECHO_T}not found" >&6; }
11818                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11819 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11820    { (exit 1); exit 1; }; }"
11821   ;;
11822 esac
11823 fi
11824 PYTHON=$ac_cv_path_PYTHON
11825 if test -n "$PYTHON"; then
11826   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11827 echo "${ECHO_T}$PYTHON" >&6; }
11828 else
11829   { echo "$as_me:$LINENO: result: no" >&5
11830 echo "${ECHO_T}no" >&6; }
11831 fi
11832
11833
11834 fi
11835
11836 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11837 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11838 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11839 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11840 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11841 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11842 if test "$ac_python_version_major" -gt "2" || \
11843    (test "$ac_python_version_major" -eq "2" && \
11844     test "$ac_python_version_minor" -ge "5") ; then
11845   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11846 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11847 else
11848   { echo "$as_me:$LINENO: result: not found" >&5
11849 echo "${ECHO_T}not found" >&6; }
11850   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11851 See \`config.log' for more details." >&5
11852 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11853 See \`config.log' for more details." >&2;}
11854    { (exit 1); exit 1; }; }
11855 fi
11856
11857
11858
11859 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11860 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11861 if test "${ac_cv_lib_m_sin+set}" = set; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lm  $LIBS"
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872
11873 /* Override any GCC internal prototype to avoid an error.
11874    Use char because int might match the return type of a GCC
11875    builtin and then its argument prototype would still apply.  */
11876 #ifdef __cplusplus
11877 extern "C"
11878 #endif
11879 char sin ();
11880 int
11881 main ()
11882 {
11883 return sin ();
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_link") 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903   { (case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_try") 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; } &&
11912          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11922   ac_cv_lib_m_sin=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927         ac_cv_lib_m_sin=no
11928 fi
11929
11930 rm -f core conftest.err conftest.$ac_objext \
11931       conftest$ac_exeext conftest.$ac_ext
11932 LIBS=$ac_check_lib_save_LIBS
11933 fi
11934 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11935 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11936 if test $ac_cv_lib_m_sin = yes; then
11937   cat >>confdefs.h <<_ACEOF
11938 #define HAVE_LIBM 1
11939 _ACEOF
11940
11941   LIBS="-lm $LIBS"
11942
11943 fi
11944
11945 if test "$llvm_cv_os_type" = "MingW" ; then
11946
11947 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11948 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11949 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952   ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-limagehlp  $LIBS"
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960
11961
11962 int
11963 main ()
11964 {
11965 return main ();
11966   ;
11967   return 0;
11968 }
11969 _ACEOF
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974   *) ac_try_echo=$ac_try;;
11975 esac
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977   (eval "$ac_link") 2>conftest.er1
11978   ac_status=$?
11979   grep -v '^ *+' conftest.er1 >conftest.err
11980   rm -f conftest.er1
11981   cat conftest.err >&5
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); } &&
11984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11985   { (case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_try") 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; } &&
11994          { ac_try='test -s conftest$ac_exeext'
11995   { (case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_try") 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   ac_cv_lib_imagehlp_main=yes
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009         ac_cv_lib_imagehlp_main=no
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext \
12013       conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12015 fi
12016 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12017 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12018 if test $ac_cv_lib_imagehlp_main = yes; then
12019   cat >>confdefs.h <<_ACEOF
12020 #define HAVE_LIBIMAGEHLP 1
12021 _ACEOF
12022
12023   LIBS="-limagehlp $LIBS"
12024
12025 fi
12026
12027
12028 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12029 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12030 if test "${ac_cv_lib_psapi_main+set}" = set; then
12031   echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033   ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-lpsapi  $LIBS"
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041
12042
12043 int
12044 main ()
12045 {
12046 return main ();
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (ac_try="$ac_link"
12053 case "(($ac_try" in
12054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055   *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058   (eval "$ac_link") 2>conftest.er1
12059   ac_status=$?
12060   grep -v '^ *+' conftest.er1 >conftest.err
12061   rm -f conftest.er1
12062   cat conftest.err >&5
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); } &&
12065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12066   { (case "(($ac_try" in
12067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068   *) ac_try_echo=$ac_try;;
12069 esac
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071   (eval "$ac_try") 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; } &&
12075          { ac_try='test -s conftest$ac_exeext'
12076   { (case "(($ac_try" in
12077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078   *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081   (eval "$ac_try") 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); }; }; then
12085   ac_cv_lib_psapi_main=yes
12086 else
12087   echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090         ac_cv_lib_psapi_main=no
12091 fi
12092
12093 rm -f core conftest.err conftest.$ac_objext \
12094       conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12096 fi
12097 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12098 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12099 if test $ac_cv_lib_psapi_main = yes; then
12100   cat >>confdefs.h <<_ACEOF
12101 #define HAVE_LIBPSAPI 1
12102 _ACEOF
12103
12104   LIBS="-lpsapi $LIBS"
12105
12106 fi
12107
12108
12109 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12110 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12111 if test "${ac_cv_lib_shell32_main+set}" = set; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-lshell32  $LIBS"
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122
12123
12124 int
12125 main ()
12126 {
12127 return main ();
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136   *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139   (eval "$ac_link") 2>conftest.er1
12140   ac_status=$?
12141   grep -v '^ *+' conftest.er1 >conftest.err
12142   rm -f conftest.er1
12143   cat conftest.err >&5
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147   { (case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_try") 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; } &&
12156          { ac_try='test -s conftest$ac_exeext'
12157   { (case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_try") 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_lib_shell32_main=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171         ac_cv_lib_shell32_main=no
12172 fi
12173
12174 rm -f core conftest.err conftest.$ac_objext \
12175       conftest$ac_exeext conftest.$ac_ext
12176 LIBS=$ac_check_lib_save_LIBS
12177 fi
12178 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12179 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12180 if test $ac_cv_lib_shell32_main = yes; then
12181   cat >>confdefs.h <<_ACEOF
12182 #define HAVE_LIBSHELL32 1
12183 _ACEOF
12184
12185   LIBS="-lshell32 $LIBS"
12186
12187 fi
12188
12189 fi
12190
12191 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12192 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12193 if test "${ac_cv_search_dlopen+set}" = set; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   ac_func_search_save_LIBS=$LIBS
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203
12204 /* Override any GCC internal prototype to avoid an error.
12205    Use char because int might match the return type of a GCC
12206    builtin and then its argument prototype would still apply.  */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 char dlopen ();
12211 int
12212 main ()
12213 {
12214 return dlopen ();
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 for ac_lib in '' dl; do
12220   if test -z "$ac_lib"; then
12221     ac_res="none required"
12222   else
12223     ac_res=-l$ac_lib
12224     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12225   fi
12226   rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230   *) ac_try_echo=$ac_try;;
12231 esac
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233   (eval "$ac_link") 2>conftest.er1
12234   ac_status=$?
12235   grep -v '^ *+' conftest.er1 >conftest.err
12236   rm -f conftest.er1
12237   cat conftest.err >&5
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); } &&
12240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12241   { (case "(($ac_try" in
12242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243   *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246   (eval "$ac_try") 2>&5
12247   ac_status=$?
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); }; } &&
12250          { ac_try='test -s conftest$ac_exeext'
12251   { (case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_try") 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; }; then
12260   ac_cv_search_dlopen=$ac_res
12261 else
12262   echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265
12266 fi
12267
12268 rm -f core conftest.err conftest.$ac_objext \
12269       conftest$ac_exeext
12270   if test "${ac_cv_search_dlopen+set}" = set; then
12271   break
12272 fi
12273 done
12274 if test "${ac_cv_search_dlopen+set}" = set; then
12275   :
12276 else
12277   ac_cv_search_dlopen=no
12278 fi
12279 rm conftest.$ac_ext
12280 LIBS=$ac_func_search_save_LIBS
12281 fi
12282 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12283 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12284 ac_res=$ac_cv_search_dlopen
12285 if test "$ac_res" != no; then
12286   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12287
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_DLOPEN 1
12290 _ACEOF
12291
12292 else
12293   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12294 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12295 fi
12296
12297
12298 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12299 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12300 if test "${ac_cv_search_clock_gettime+set}" = set; then
12301   echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303   ac_func_search_save_LIBS=$LIBS
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310
12311 /* Override any GCC internal prototype to avoid an error.
12312    Use char because int might match the return type of a GCC
12313    builtin and then its argument prototype would still apply.  */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char clock_gettime ();
12318 int
12319 main ()
12320 {
12321 return clock_gettime ();
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 for ac_lib in '' rt; do
12327   if test -z "$ac_lib"; then
12328     ac_res="none required"
12329   else
12330     ac_res=-l$ac_lib
12331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12332   fi
12333   rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_link") 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } &&
12347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348   { (case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_try") 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest$ac_exeext'
12358   { (case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_try") 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; }; then
12367   ac_cv_search_clock_gettime=$ac_res
12368 else
12369   echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372
12373 fi
12374
12375 rm -f core conftest.err conftest.$ac_objext \
12376       conftest$ac_exeext
12377   if test "${ac_cv_search_clock_gettime+set}" = set; then
12378   break
12379 fi
12380 done
12381 if test "${ac_cv_search_clock_gettime+set}" = set; then
12382   :
12383 else
12384   ac_cv_search_clock_gettime=no
12385 fi
12386 rm conftest.$ac_ext
12387 LIBS=$ac_func_search_save_LIBS
12388 fi
12389 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12390 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12391 ac_res=$ac_cv_search_clock_gettime
12392 if test "$ac_res" != no; then
12393   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12394
12395 fi
12396
12397
12398 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12399     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12400 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12401 if test "${ac_cv_search_setupterm+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   ac_func_search_save_LIBS=$LIBS
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411
12412 /* Override any GCC internal prototype to avoid an error.
12413    Use char because int might match the return type of a GCC
12414    builtin and then its argument prototype would still apply.  */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char setupterm ();
12419 int
12420 main ()
12421 {
12422 return setupterm ();
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12428   if test -z "$ac_lib"; then
12429     ac_res="none required"
12430   else
12431     ac_res=-l$ac_lib
12432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12433   fi
12434   rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449   { (case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_try") 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; } &&
12458          { ac_try='test -s conftest$ac_exeext'
12459   { (case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_try") 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   ac_cv_search_setupterm=$ac_res
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473
12474 fi
12475
12476 rm -f core conftest.err conftest.$ac_objext \
12477       conftest$ac_exeext
12478   if test "${ac_cv_search_setupterm+set}" = set; then
12479   break
12480 fi
12481 done
12482 if test "${ac_cv_search_setupterm+set}" = set; then
12483   :
12484 else
12485   ac_cv_search_setupterm=no
12486 fi
12487 rm conftest.$ac_ext
12488 LIBS=$ac_func_search_save_LIBS
12489 fi
12490 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12491 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12492 ac_res=$ac_cv_search_setupterm
12493 if test "$ac_res" != no; then
12494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12495
12496 cat >>confdefs.h <<\_ACEOF
12497 #define HAVE_TERMINFO 1
12498 _ACEOF
12499
12500 fi
12501
12502 fi
12503
12504 if test "$llvm_cv_enable_libffi" = "yes" ; then
12505   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12506 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12507 if test "${ac_cv_search_ffi_call+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   ac_func_search_save_LIBS=$LIBS
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517
12518 /* Override any GCC internal prototype to avoid an error.
12519    Use char because int might match the return type of a GCC
12520    builtin and then its argument prototype would still apply.  */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 char ffi_call ();
12525 int
12526 main ()
12527 {
12528 return ffi_call ();
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 for ac_lib in '' ffi; do
12534   if test -z "$ac_lib"; then
12535     ac_res="none required"
12536   else
12537     ac_res=-l$ac_lib
12538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12539   fi
12540   rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_link") 2>conftest.er1
12548   ac_status=$?
12549   grep -v '^ *+' conftest.er1 >conftest.err
12550   rm -f conftest.er1
12551   cat conftest.err >&5
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); } &&
12554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12555   { (case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_try") 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; } &&
12564          { ac_try='test -s conftest$ac_exeext'
12565   { (case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_try") 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_cv_search_ffi_call=$ac_res
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579
12580 fi
12581
12582 rm -f core conftest.err conftest.$ac_objext \
12583       conftest$ac_exeext
12584   if test "${ac_cv_search_ffi_call+set}" = set; then
12585   break
12586 fi
12587 done
12588 if test "${ac_cv_search_ffi_call+set}" = set; then
12589   :
12590 else
12591   ac_cv_search_ffi_call=no
12592 fi
12593 rm conftest.$ac_ext
12594 LIBS=$ac_func_search_save_LIBS
12595 fi
12596 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12597 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12598 ac_res=$ac_cv_search_ffi_call
12599 if test "$ac_res" != no; then
12600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12601
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_FFI_CALL 1
12604 _ACEOF
12605
12606 else
12607   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12608 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12609    { (exit 1); exit 1; }; }
12610 fi
12611
12612 fi
12613
12614 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12615 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12616 if test "${ac_cv_search_mallinfo+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   ac_func_search_save_LIBS=$LIBS
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626
12627 /* Override any GCC internal prototype to avoid an error.
12628    Use char because int might match the return type of a GCC
12629    builtin and then its argument prototype would still apply.  */
12630 #ifdef __cplusplus
12631 extern "C"
12632 #endif
12633 char mallinfo ();
12634 int
12635 main ()
12636 {
12637 return mallinfo ();
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 for ac_lib in '' malloc; do
12643   if test -z "$ac_lib"; then
12644     ac_res="none required"
12645   else
12646     ac_res=-l$ac_lib
12647     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12648   fi
12649   rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (ac_try="$ac_link"
12651 case "(($ac_try" in
12652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653   *) ac_try_echo=$ac_try;;
12654 esac
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656   (eval "$ac_link") 2>conftest.er1
12657   ac_status=$?
12658   grep -v '^ *+' conftest.er1 >conftest.err
12659   rm -f conftest.er1
12660   cat conftest.err >&5
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); } &&
12663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664   { (case "(($ac_try" in
12665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666   *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669   (eval "$ac_try") 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; } &&
12673          { ac_try='test -s conftest$ac_exeext'
12674   { (case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679   (eval "$ac_try") 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; }; then
12683   ac_cv_search_mallinfo=$ac_res
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688
12689 fi
12690
12691 rm -f core conftest.err conftest.$ac_objext \
12692       conftest$ac_exeext
12693   if test "${ac_cv_search_mallinfo+set}" = set; then
12694   break
12695 fi
12696 done
12697 if test "${ac_cv_search_mallinfo+set}" = set; then
12698   :
12699 else
12700   ac_cv_search_mallinfo=no
12701 fi
12702 rm conftest.$ac_ext
12703 LIBS=$ac_func_search_save_LIBS
12704 fi
12705 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12706 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12707 ac_res=$ac_cv_search_mallinfo
12708 if test "$ac_res" != no; then
12709   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12710
12711 cat >>confdefs.h <<\_ACEOF
12712 #define HAVE_MALLINFO 1
12713 _ACEOF
12714
12715 fi
12716
12717
12718 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12719
12720 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12721 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12722 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725   ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lpthread  $LIBS"
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733
12734 /* Override any GCC internal prototype to avoid an error.
12735    Use char because int might match the return type of a GCC
12736    builtin and then its argument prototype would still apply.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char pthread_mutex_init ();
12741 int
12742 main ()
12743 {
12744 return pthread_mutex_init ();
12745   ;
12746   return 0;
12747 }
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756   (eval "$ac_link") 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764   { (case "(($ac_try" in
12765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766   *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769   (eval "$ac_try") 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; } &&
12773          { ac_try='test -s conftest$ac_exeext'
12774   { (case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_try") 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; }; then
12783   ac_cv_lib_pthread_pthread_mutex_init=yes
12784 else
12785   echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12787
12788         ac_cv_lib_pthread_pthread_mutex_init=no
12789 fi
12790
12791 rm -f core conftest.err conftest.$ac_objext \
12792       conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12794 fi
12795 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12796 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12797 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12798   cat >>confdefs.h <<_ACEOF
12799 #define HAVE_LIBPTHREAD 1
12800 _ACEOF
12801
12802   LIBS="-lpthread $LIBS"
12803
12804 fi
12805
12806   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12807 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12808 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12809   echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811   ac_func_search_save_LIBS=$LIBS
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h.  */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h.  */
12818
12819 /* Override any GCC internal prototype to avoid an error.
12820    Use char because int might match the return type of a GCC
12821    builtin and then its argument prototype would still apply.  */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 char pthread_mutex_lock ();
12826 int
12827 main ()
12828 {
12829 return pthread_mutex_lock ();
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 for ac_lib in '' pthread; do
12835   if test -z "$ac_lib"; then
12836     ac_res="none required"
12837   else
12838     ac_res=-l$ac_lib
12839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12840   fi
12841   rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (ac_try="$ac_link"
12843 case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_link") 2>conftest.er1
12849   ac_status=$?
12850   grep -v '^ *+' conftest.er1 >conftest.err
12851   rm -f conftest.er1
12852   cat conftest.err >&5
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); } &&
12855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856   { (case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_try") 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } &&
12865          { ac_try='test -s conftest$ac_exeext'
12866   { (case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871   (eval "$ac_try") 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; }; then
12875   ac_cv_search_pthread_mutex_lock=$ac_res
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880
12881 fi
12882
12883 rm -f core conftest.err conftest.$ac_objext \
12884       conftest$ac_exeext
12885   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12886   break
12887 fi
12888 done
12889 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12890   :
12891 else
12892   ac_cv_search_pthread_mutex_lock=no
12893 fi
12894 rm conftest.$ac_ext
12895 LIBS=$ac_func_search_save_LIBS
12896 fi
12897 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12898 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12899 ac_res=$ac_cv_search_pthread_mutex_lock
12900 if test "$ac_res" != no; then
12901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12902
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_PTHREAD_MUTEX_LOCK 1
12905 _ACEOF
12906
12907 fi
12908
12909   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12910 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12911 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   ac_func_search_save_LIBS=$LIBS
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921
12922 /* Override any GCC internal prototype to avoid an error.
12923    Use char because int might match the return type of a GCC
12924    builtin and then its argument prototype would still apply.  */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char pthread_rwlock_init ();
12929 int
12930 main ()
12931 {
12932 return pthread_rwlock_init ();
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 for ac_lib in '' pthread; do
12938   if test -z "$ac_lib"; then
12939     ac_res="none required"
12940   else
12941     ac_res=-l$ac_lib
12942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12943   fi
12944   rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948   *) ac_try_echo=$ac_try;;
12949 esac
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951   (eval "$ac_link") 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959   { (case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_try") 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }; } &&
12968          { ac_try='test -s conftest$ac_exeext'
12969   { (case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974   (eval "$ac_try") 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; }; then
12978   ac_cv_search_pthread_rwlock_init=$ac_res
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983
12984 fi
12985
12986 rm -f core conftest.err conftest.$ac_objext \
12987       conftest$ac_exeext
12988   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12989   break
12990 fi
12991 done
12992 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12993   :
12994 else
12995   ac_cv_search_pthread_rwlock_init=no
12996 fi
12997 rm conftest.$ac_ext
12998 LIBS=$ac_func_search_save_LIBS
12999 fi
13000 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13001 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13002 ac_res=$ac_cv_search_pthread_rwlock_init
13003 if test "$ac_res" != no; then
13004   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13005
13006 cat >>confdefs.h <<\_ACEOF
13007 #define HAVE_PTHREAD_RWLOCK_INIT 1
13008 _ACEOF
13009
13010 fi
13011
13012   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13013 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13014 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   ac_func_search_save_LIBS=$LIBS
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024
13025 /* Override any GCC internal prototype to avoid an error.
13026    Use char because int might match the return type of a GCC
13027    builtin and then its argument prototype would still apply.  */
13028 #ifdef __cplusplus
13029 extern "C"
13030 #endif
13031 char pthread_getspecific ();
13032 int
13033 main ()
13034 {
13035 return pthread_getspecific ();
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 for ac_lib in '' pthread; do
13041   if test -z "$ac_lib"; then
13042     ac_res="none required"
13043   else
13044     ac_res=-l$ac_lib
13045     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13046   fi
13047   rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_link") 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } &&
13061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13062   { (case "(($ac_try" in
13063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064   *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067   (eval "$ac_try") 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; } &&
13071          { ac_try='test -s conftest$ac_exeext'
13072   { (case "(($ac_try" in
13073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074   *) ac_try_echo=$ac_try;;
13075 esac
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077   (eval "$ac_try") 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); }; }; then
13081   ac_cv_search_pthread_getspecific=$ac_res
13082 else
13083   echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13085
13086
13087 fi
13088
13089 rm -f core conftest.err conftest.$ac_objext \
13090       conftest$ac_exeext
13091   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13092   break
13093 fi
13094 done
13095 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13096   :
13097 else
13098   ac_cv_search_pthread_getspecific=no
13099 fi
13100 rm conftest.$ac_ext
13101 LIBS=$ac_func_search_save_LIBS
13102 fi
13103 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13104 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13105 ac_res=$ac_cv_search_pthread_getspecific
13106 if test "$ac_res" != no; then
13107   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13108
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_PTHREAD_GETSPECIFIC 1
13111 _ACEOF
13112
13113 fi
13114
13115 fi
13116
13117 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13118
13119 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13120 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13121 if test "${ac_cv_lib_z_compress2+set}" = set; then
13122   echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124   ac_check_lib_save_LIBS=$LIBS
13125 LIBS="-lz  $LIBS"
13126 cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132
13133 /* Override any GCC internal prototype to avoid an error.
13134    Use char because int might match the return type of a GCC
13135    builtin and then its argument prototype would still apply.  */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char compress2 ();
13140 int
13141 main ()
13142 {
13143 return compress2 ();
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (ac_try="$ac_link"
13150 case "(($ac_try" in
13151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152   *) ac_try_echo=$ac_try;;
13153 esac
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155   (eval "$ac_link") 2>conftest.er1
13156   ac_status=$?
13157   grep -v '^ *+' conftest.er1 >conftest.err
13158   rm -f conftest.er1
13159   cat conftest.err >&5
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } &&
13162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13163   { (case "(($ac_try" in
13164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165   *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168   (eval "$ac_try") 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; } &&
13172          { ac_try='test -s conftest$ac_exeext'
13173   { (case "(($ac_try" in
13174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175   *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178   (eval "$ac_try") 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; }; then
13182   ac_cv_lib_z_compress2=yes
13183 else
13184   echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13186
13187         ac_cv_lib_z_compress2=no
13188 fi
13189
13190 rm -f core conftest.err conftest.$ac_objext \
13191       conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13193 fi
13194 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13195 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13196 if test $ac_cv_lib_z_compress2 = yes; then
13197   cat >>confdefs.h <<_ACEOF
13198 #define HAVE_LIBZ 1
13199 _ACEOF
13200
13201   LIBS="-lz $LIBS"
13202
13203 fi
13204
13205 fi
13206
13207
13208 # Check whether --with-udis86 was given.
13209 if test "${with_udis86+set}" = set; then
13210   withval=$with_udis86;
13211       USE_UDIS86=1
13212
13213       case "$withval" in
13214         /usr/lib|yes) ;;
13215         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13216       esac
13217
13218 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13219 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13220 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-ludis86  $LIBS"
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231
13232 /* Override any GCC internal prototype to avoid an error.
13233    Use char because int might match the return type of a GCC
13234    builtin and then its argument prototype would still apply.  */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char ud_init ();
13239 int
13240 main ()
13241 {
13242 return ud_init ();
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_link") 2>conftest.er1
13255   ac_status=$?
13256   grep -v '^ *+' conftest.er1 >conftest.err
13257   rm -f conftest.er1
13258   cat conftest.err >&5
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } &&
13261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13262   { (case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_try") 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; } &&
13271          { ac_try='test -s conftest$ac_exeext'
13272   { (case "(($ac_try" in
13273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274   *) ac_try_echo=$ac_try;;
13275 esac
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277   (eval "$ac_try") 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; }; then
13281   ac_cv_lib_udis86_ud_init=yes
13282 else
13283   echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286         ac_cv_lib_udis86_ud_init=no
13287 fi
13288
13289 rm -f core conftest.err conftest.$ac_objext \
13290       conftest$ac_exeext conftest.$ac_ext
13291 LIBS=$ac_check_lib_save_LIBS
13292 fi
13293 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13294 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13295 if test $ac_cv_lib_udis86_ud_init = yes; then
13296   cat >>confdefs.h <<_ACEOF
13297 #define HAVE_LIBUDIS86 1
13298 _ACEOF
13299
13300   LIBS="-ludis86 $LIBS"
13301
13302 else
13303
13304         echo "Error! You need to have libudis86 around."
13305         exit -1
13306
13307 fi
13308
13309
13310 else
13311   USE_UDIS86=0
13312
13313 fi
13314
13315
13316 cat >>confdefs.h <<_ACEOF
13317 #define USE_UDIS86 $USE_UDIS86
13318 _ACEOF
13319
13320
13321
13322 # Check whether --with-oprofile was given.
13323 if test "${with_oprofile+set}" = set; then
13324   withval=$with_oprofile;
13325       USE_OPROFILE=1
13326
13327       case "$withval" in
13328         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13329         no) llvm_cv_oppath=
13330             USE_OPROFILE=0
13331  ;;
13332         *) llvm_cv_oppath="${withval}/lib/oprofile"
13333            CPPFLAGS="-I${withval}/include";;
13334       esac
13335       case $llvm_cv_os_type in
13336         Linux)
13337           if test -n "$llvm_cv_oppath" ; then
13338             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13339                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13340 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13341 if test "${ac_cv_search_bfd_init+set}" = set; then
13342   echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344   ac_func_search_save_LIBS=$LIBS
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351
13352 /* Override any GCC internal prototype to avoid an error.
13353    Use char because int might match the return type of a GCC
13354    builtin and then its argument prototype would still apply.  */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 char bfd_init ();
13359 int
13360 main ()
13361 {
13362 return bfd_init ();
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 for ac_lib in '' bfd; do
13368   if test -z "$ac_lib"; then
13369     ac_res="none required"
13370   else
13371     ac_res=-l$ac_lib
13372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13373   fi
13374   rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (ac_try="$ac_link"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381   (eval "$ac_link") 2>conftest.er1
13382   ac_status=$?
13383   grep -v '^ *+' conftest.er1 >conftest.err
13384   rm -f conftest.er1
13385   cat conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   (exit $ac_status); } &&
13388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389   { (case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_try") 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; } &&
13398          { ac_try='test -s conftest$ac_exeext'
13399   { (case "(($ac_try" in
13400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401   *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404   (eval "$ac_try") 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_cv_search_bfd_init=$ac_res
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413
13414 fi
13415
13416 rm -f core conftest.err conftest.$ac_objext \
13417       conftest$ac_exeext
13418   if test "${ac_cv_search_bfd_init+set}" = set; then
13419   break
13420 fi
13421 done
13422 if test "${ac_cv_search_bfd_init+set}" = set; then
13423   :
13424 else
13425   ac_cv_search_bfd_init=no
13426 fi
13427 rm conftest.$ac_ext
13428 LIBS=$ac_func_search_save_LIBS
13429 fi
13430 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13431 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13432 ac_res=$ac_cv_search_bfd_init
13433 if test "$ac_res" != no; then
13434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435
13436 fi
13437
13438             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13439 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13440 if test "${ac_cv_search_op_open_agent+set}" = set; then
13441   echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443   ac_func_search_save_LIBS=$LIBS
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450
13451 /* Override any GCC internal prototype to avoid an error.
13452    Use char because int might match the return type of a GCC
13453    builtin and then its argument prototype would still apply.  */
13454 #ifdef __cplusplus
13455 extern "C"
13456 #endif
13457 char op_open_agent ();
13458 int
13459 main ()
13460 {
13461 return op_open_agent ();
13462   ;
13463   return 0;
13464 }
13465 _ACEOF
13466 for ac_lib in '' opagent; do
13467   if test -z "$ac_lib"; then
13468     ac_res="none required"
13469   else
13470     ac_res=-l$ac_lib
13471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13472   fi
13473   rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (ac_try="$ac_link"
13475 case "(($ac_try" in
13476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477   *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480   (eval "$ac_link") 2>conftest.er1
13481   ac_status=$?
13482   grep -v '^ *+' conftest.er1 >conftest.err
13483   rm -f conftest.er1
13484   cat conftest.err >&5
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } &&
13487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13488   { (case "(($ac_try" in
13489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490   *) ac_try_echo=$ac_try;;
13491 esac
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493   (eval "$ac_try") 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; } &&
13497          { ac_try='test -s conftest$ac_exeext'
13498   { (case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_try") 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; }; then
13507   ac_cv_search_op_open_agent=$ac_res
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512
13513 fi
13514
13515 rm -f core conftest.err conftest.$ac_objext \
13516       conftest$ac_exeext
13517   if test "${ac_cv_search_op_open_agent+set}" = set; then
13518   break
13519 fi
13520 done
13521 if test "${ac_cv_search_op_open_agent+set}" = set; then
13522   :
13523 else
13524   ac_cv_search_op_open_agent=no
13525 fi
13526 rm conftest.$ac_ext
13527 LIBS=$ac_func_search_save_LIBS
13528 fi
13529 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13530 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13531 ac_res=$ac_cv_search_op_open_agent
13532 if test "$ac_res" != no; then
13533   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13534
13535 else
13536
13537               echo "Error! You need to have libopagent around."
13538               exit -1
13539
13540 fi
13541
13542             if test "${ac_cv_header_opagent_h+set}" = set; then
13543   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13544 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13545 if test "${ac_cv_header_opagent_h+set}" = set; then
13546   echo $ECHO_N "(cached) $ECHO_C" >&6
13547 fi
13548 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13549 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13550 else
13551   # Is the header compilable?
13552 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13553 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 $ac_includes_default
13561 #include <opagent.h>
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_compile") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } &&
13577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578   { (case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_try") 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; } &&
13587          { ac_try='test -s conftest.$ac_objext'
13588   { (case "(($ac_try" in
13589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590   *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593   (eval "$ac_try") 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   ac_header_compiler=yes
13598 else
13599   echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602         ac_header_compiler=no
13603 fi
13604
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13607 echo "${ECHO_T}$ac_header_compiler" >&6; }
13608
13609 # Is the header present?
13610 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13611 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h.  */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h.  */
13618 #include <opagent.h>
13619 _ACEOF
13620 if { (ac_try="$ac_cpp conftest.$ac_ext"
13621 case "(($ac_try" in
13622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623   *) ac_try_echo=$ac_try;;
13624 esac
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13627   ac_status=$?
13628   grep -v '^ *+' conftest.er1 >conftest.err
13629   rm -f conftest.er1
13630   cat conftest.err >&5
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); } >/dev/null; then
13633   if test -s conftest.err; then
13634     ac_cpp_err=$ac_c_preproc_warn_flag
13635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13636   else
13637     ac_cpp_err=
13638   fi
13639 else
13640   ac_cpp_err=yes
13641 fi
13642 if test -z "$ac_cpp_err"; then
13643   ac_header_preproc=yes
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648   ac_header_preproc=no
13649 fi
13650
13651 rm -f conftest.err conftest.$ac_ext
13652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 echo "${ECHO_T}$ac_header_preproc" >&6; }
13654
13655 # So?  What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657   yes:no: )
13658     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13661 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13662     ac_header_preproc=yes
13663     ;;
13664   no:yes:* )
13665     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13666 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13667     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13668 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13669     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13670 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13671     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13672 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13673     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13674 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13675     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13676 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13677     ( cat <<\_ASBOX
13678 ## ------------------------------------ ##
13679 ## Report this to http://llvm.org/bugs/ ##
13680 ## ------------------------------------ ##
13681 _ASBOX
13682      ) | sed "s/^/$as_me: WARNING:     /" >&2
13683     ;;
13684 esac
13685 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13686 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13687 if test "${ac_cv_header_opagent_h+set}" = set; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690   ac_cv_header_opagent_h=$ac_header_preproc
13691 fi
13692 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13693 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13694
13695 fi
13696 if test $ac_cv_header_opagent_h = yes; then
13697   :
13698 else
13699
13700               echo "Error! You need to have opagent.h around."
13701               exit -1
13702
13703 fi
13704
13705
13706           fi ;;
13707         *)
13708           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13709 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13710    { (exit 1); exit 1; }; } ;;
13711       esac
13712
13713 else
13714
13715       USE_OPROFILE=0
13716
13717
13718 fi
13719
13720
13721 cat >>confdefs.h <<_ACEOF
13722 #define LLVM_USE_OPROFILE $USE_OPROFILE
13723 _ACEOF
13724
13725
13726
13727 # Check whether --with-intel-jitevents was given.
13728 if test "${with_intel_jitevents+set}" = set; then
13729   withval=$with_intel_jitevents;
13730        case "$withval" in
13731           yes) USE_INTEL_JITEVENTS=1
13732 ;;
13733           no)  USE_INTEL_JITEVENTS=0
13734 ;;
13735           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13736 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13737    { (exit 1); exit 1; }; };;
13738        esac
13739
13740       case $llvm_cv_os_type in
13741         Linux|Win32|Cygwin|MingW) ;;
13742         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13743 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13744    { (exit 1); exit 1; }; };;
13745       esac
13746
13747       case "$llvm_cv_target_arch" in
13748         x86|x86_64) ;;
13749         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13750 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13751    { (exit 1); exit 1; }; };;
13752       esac
13753
13754 else
13755
13756       USE_INTEL_JITEVENTS=0
13757
13758
13759 fi
13760
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13764 _ACEOF
13765
13766
13767 for ac_prog in xml2-config
13768 do
13769   # Extract the first word of "$ac_prog", so it can be a program name with args.
13770 set dummy $ac_prog; ac_word=$2
13771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13773 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776   if test -n "$XML2CONFIG"; then
13777   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13778 else
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13781 do
13782   IFS=$as_save_IFS
13783   test -z "$as_dir" && as_dir=.
13784   for ac_exec_ext in '' $ac_executable_extensions; do
13785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13786     ac_cv_prog_XML2CONFIG="$ac_prog"
13787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788     break 2
13789   fi
13790 done
13791 done
13792 IFS=$as_save_IFS
13793
13794 fi
13795 fi
13796 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13797 if test -n "$XML2CONFIG"; then
13798   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13799 echo "${ECHO_T}$XML2CONFIG" >&6; }
13800 else
13801   { echo "$as_me:$LINENO: result: no" >&5
13802 echo "${ECHO_T}no" >&6; }
13803 fi
13804
13805
13806   test -n "$XML2CONFIG" && break
13807 done
13808
13809
13810 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13811 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13812 if test "x$XML2CONFIG" = "x"; then
13813  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13814 echo "${ECHO_T}xml2-config not found" >&6; }
13815 else
13816  LIBXML2_INC=`$XML2CONFIG --cflags`
13817  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13818 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13819  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13820 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13821 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lxml2  $LIBS"
13826 cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h.  */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h.  */
13832
13833 /* Override any GCC internal prototype to avoid an error.
13834    Use char because int might match the return type of a GCC
13835    builtin and then its argument prototype would still apply.  */
13836 #ifdef __cplusplus
13837 extern "C"
13838 #endif
13839 char xmlReadFile ();
13840 int
13841 main ()
13842 {
13843 return xmlReadFile ();
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (ac_try="$ac_link"
13850 case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_link") 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } &&
13862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; } &&
13872          { ac_try='test -s conftest$ac_exeext'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   ac_cv_lib_xml2_xmlReadFile=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887         ac_cv_lib_xml2_xmlReadFile=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext \
13891       conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13895 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13896 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13897
13898 cat >>confdefs.h <<\_ACEOF
13899 #define CLANG_HAVE_LIBXML 1
13900 _ACEOF
13901
13902                                 LIBXML2_LIBS="-lxml2"
13903 fi
13904
13905 fi
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915 ac_header_dirent=no
13916 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13917   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13918 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13919 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 #include <sys/types.h>
13930 #include <$ac_hdr>
13931
13932 int
13933 main ()
13934 {
13935 if ((DIR *) 0)
13936 return 0;
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (ac_try="$ac_compile"
13943 case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_compile") 2>conftest.er1
13949   ac_status=$?
13950   grep -v '^ *+' conftest.er1 >conftest.err
13951   rm -f conftest.er1
13952   cat conftest.err >&5
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } &&
13955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956   { (case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_try") 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; } &&
13965          { ac_try='test -s conftest.$ac_objext'
13966   { (case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_try") 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; }; then
13975   eval "$as_ac_Header=yes"
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980         eval "$as_ac_Header=no"
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 fi
13985 ac_res=`eval echo '${'$as_ac_Header'}'`
13986                { echo "$as_me:$LINENO: result: $ac_res" >&5
13987 echo "${ECHO_T}$ac_res" >&6; }
13988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13989   cat >>confdefs.h <<_ACEOF
13990 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13991 _ACEOF
13992
13993 ac_header_dirent=$ac_hdr; break
13994 fi
13995
13996 done
13997 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13998 if test $ac_header_dirent = dirent.h; then
13999   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14001 if test "${ac_cv_search_opendir+set}" = set; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004   ac_func_search_save_LIBS=$LIBS
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h.  */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h.  */
14011
14012 /* Override any GCC internal prototype to avoid an error.
14013    Use char because int might match the return type of a GCC
14014    builtin and then its argument prototype would still apply.  */
14015 #ifdef __cplusplus
14016 extern "C"
14017 #endif
14018 char opendir ();
14019 int
14020 main ()
14021 {
14022 return opendir ();
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 for ac_lib in '' dir; do
14028   if test -z "$ac_lib"; then
14029     ac_res="none required"
14030   else
14031     ac_res=-l$ac_lib
14032     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14033   fi
14034   rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038   *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041   (eval "$ac_link") 2>conftest.er1
14042   ac_status=$?
14043   grep -v '^ *+' conftest.er1 >conftest.err
14044   rm -f conftest.er1
14045   cat conftest.err >&5
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); } &&
14048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14049   { (case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054   (eval "$ac_try") 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; } &&
14058          { ac_try='test -s conftest$ac_exeext'
14059   { (case "(($ac_try" in
14060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061   *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064   (eval "$ac_try") 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068   ac_cv_search_opendir=$ac_res
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073
14074 fi
14075
14076 rm -f core conftest.err conftest.$ac_objext \
14077       conftest$ac_exeext
14078   if test "${ac_cv_search_opendir+set}" = set; then
14079   break
14080 fi
14081 done
14082 if test "${ac_cv_search_opendir+set}" = set; then
14083   :
14084 else
14085   ac_cv_search_opendir=no
14086 fi
14087 rm conftest.$ac_ext
14088 LIBS=$ac_func_search_save_LIBS
14089 fi
14090 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14091 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14092 ac_res=$ac_cv_search_opendir
14093 if test "$ac_res" != no; then
14094   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14095
14096 fi
14097
14098 else
14099   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14100 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14101 if test "${ac_cv_search_opendir+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   ac_func_search_save_LIBS=$LIBS
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h.  */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h.  */
14111
14112 /* Override any GCC internal prototype to avoid an error.
14113    Use char because int might match the return type of a GCC
14114    builtin and then its argument prototype would still apply.  */
14115 #ifdef __cplusplus
14116 extern "C"
14117 #endif
14118 char opendir ();
14119 int
14120 main ()
14121 {
14122 return opendir ();
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 for ac_lib in '' x; do
14128   if test -z "$ac_lib"; then
14129     ac_res="none required"
14130   else
14131     ac_res=-l$ac_lib
14132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14133   fi
14134   rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (ac_try="$ac_link"
14136 case "(($ac_try" in
14137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138   *) ac_try_echo=$ac_try;;
14139 esac
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141   (eval "$ac_link") 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14149   { (case "(($ac_try" in
14150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151   *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154   (eval "$ac_try") 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; } &&
14158          { ac_try='test -s conftest$ac_exeext'
14159   { (case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164   (eval "$ac_try") 2>&5
14165   ac_status=$?
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); }; }; then
14168   ac_cv_search_opendir=$ac_res
14169 else
14170   echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173
14174 fi
14175
14176 rm -f core conftest.err conftest.$ac_objext \
14177       conftest$ac_exeext
14178   if test "${ac_cv_search_opendir+set}" = set; then
14179   break
14180 fi
14181 done
14182 if test "${ac_cv_search_opendir+set}" = set; then
14183   :
14184 else
14185   ac_cv_search_opendir=no
14186 fi
14187 rm conftest.$ac_ext
14188 LIBS=$ac_func_search_save_LIBS
14189 fi
14190 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14191 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14192 ac_res=$ac_cv_search_opendir
14193 if test "$ac_res" != no; then
14194   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14195
14196 fi
14197
14198 fi
14199
14200 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14201 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14202 if test "${ac_cv_header_mmap_anon+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205    ac_ext=c
14206 ac_cpp='$CPP $CPPFLAGS'
14207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14210
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 #include <sys/mman.h>
14218 #include <unistd.h>
14219 #include <fcntl.h>
14220 int
14221 main ()
14222 {
14223 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (ac_try="$ac_compile"
14230 case "(($ac_try" in
14231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232   *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235   (eval "$ac_compile") 2>conftest.er1
14236   ac_status=$?
14237   grep -v '^ *+' conftest.er1 >conftest.err
14238   rm -f conftest.er1
14239   cat conftest.err >&5
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } &&
14242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243   { (case "(($ac_try" in
14244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245   *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248   (eval "$ac_try") 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (case "(($ac_try" in
14254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255   *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258   (eval "$ac_try") 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; }; then
14262   ac_cv_header_mmap_anon=yes
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267         ac_cv_header_mmap_anon=no
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271   ac_ext=c
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14276
14277
14278 fi
14279 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14280 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14281 if test "$ac_cv_header_mmap_anon" = yes; then
14282
14283 cat >>confdefs.h <<\_ACEOF
14284 #define HAVE_MMAP_ANONYMOUS 1
14285 _ACEOF
14286
14287 fi
14288
14289 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14290 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14291 if test "${ac_cv_header_stat_broken+set}" = set; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294   cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 #include <sys/types.h>
14301 #include <sys/stat.h>
14302
14303 #if defined S_ISBLK && defined S_IFDIR
14304 # if S_ISBLK (S_IFDIR)
14305 You lose.
14306 # endif
14307 #endif
14308
14309 #if defined S_ISBLK && defined S_IFCHR
14310 # if S_ISBLK (S_IFCHR)
14311 You lose.
14312 # endif
14313 #endif
14314
14315 #if defined S_ISLNK && defined S_IFREG
14316 # if S_ISLNK (S_IFREG)
14317 You lose.
14318 # endif
14319 #endif
14320
14321 #if defined S_ISSOCK && defined S_IFREG
14322 # if S_ISSOCK (S_IFREG)
14323 You lose.
14324 # endif
14325 #endif
14326
14327 _ACEOF
14328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14329   $EGREP "You lose" >/dev/null 2>&1; then
14330   ac_cv_header_stat_broken=yes
14331 else
14332   ac_cv_header_stat_broken=no
14333 fi
14334 rm -f conftest*
14335
14336 fi
14337 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14338 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14339 if test $ac_cv_header_stat_broken = yes; then
14340
14341 cat >>confdefs.h <<\_ACEOF
14342 #define STAT_MACROS_BROKEN 1
14343 _ACEOF
14344
14345 fi
14346
14347 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14348 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h.  */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h.  */
14358 #include <sys/types.h>
14359 #include <sys/wait.h>
14360 #ifndef WEXITSTATUS
14361 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14362 #endif
14363 #ifndef WIFEXITED
14364 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14365 #endif
14366
14367 int
14368 main ()
14369 {
14370   int s;
14371   wait (&s);
14372   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_compile") 2>conftest.er1
14385   ac_status=$?
14386   grep -v '^ *+' conftest.er1 >conftest.err
14387   rm -f conftest.er1
14388   cat conftest.err >&5
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392   { (case "(($ac_try" in
14393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394   *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397   (eval "$ac_try") 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; } &&
14401          { ac_try='test -s conftest.$ac_objext'
14402   { (case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_try") 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }; }; then
14411   ac_cv_header_sys_wait_h=yes
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416         ac_cv_header_sys_wait_h=no
14417 fi
14418
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 fi
14421 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14422 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14423 if test $ac_cv_header_sys_wait_h = yes; then
14424
14425 cat >>confdefs.h <<\_ACEOF
14426 #define HAVE_SYS_WAIT_H 1
14427 _ACEOF
14428
14429 fi
14430
14431 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14432 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14433 if test "${ac_cv_header_time+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 #include <sys/types.h>
14443 #include <sys/time.h>
14444 #include <time.h>
14445
14446 int
14447 main ()
14448 {
14449 if ((struct tm *) 0)
14450 return 0;
14451   ;
14452   return 0;
14453 }
14454 _ACEOF
14455 rm -f conftest.$ac_objext
14456 if { (ac_try="$ac_compile"
14457 case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_compile") 2>conftest.er1
14463   ac_status=$?
14464   grep -v '^ *+' conftest.er1 >conftest.err
14465   rm -f conftest.er1
14466   cat conftest.err >&5
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } &&
14469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14470   { (case "(($ac_try" in
14471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472   *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475   (eval "$ac_try") 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; } &&
14479          { ac_try='test -s conftest.$ac_objext'
14480   { (case "(($ac_try" in
14481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482   *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485   (eval "$ac_try") 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489   ac_cv_header_time=yes
14490 else
14491   echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494         ac_cv_header_time=no
14495 fi
14496
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 fi
14499 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14500 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14501 if test $ac_cv_header_time = yes; then
14502
14503 cat >>confdefs.h <<\_ACEOF
14504 #define TIME_WITH_SYS_TIME 1
14505 _ACEOF
14506
14507 fi
14508
14509
14510 ac_ext=cpp
14511 ac_cpp='$CXXCPP $CPPFLAGS'
14512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14515
14516 ac_ext=cpp
14517 ac_cpp='$CXXCPP $CPPFLAGS'
14518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14521 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14522 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14523 if test -z "$CXXCPP"; then
14524   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14525   echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527       # Double quotes because CXXCPP needs to be expanded
14528     for CXXCPP in "$CXX -E" "/lib/cpp"
14529     do
14530       ac_preproc_ok=false
14531 for ac_cxx_preproc_warn_flag in '' yes
14532 do
14533   # Use a header file that comes with gcc, so configuring glibc
14534   # with a fresh cross-compiler works.
14535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14536   # <limits.h> exists even on freestanding compilers.
14537   # On the NeXT, cc -E runs the code through the compiler's parser,
14538   # not just through cpp. "Syntax error" is here to catch this case.
14539   cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #ifdef __STDC__
14546 # include <limits.h>
14547 #else
14548 # include <assert.h>
14549 #endif
14550                      Syntax error
14551 _ACEOF
14552 if { (ac_try="$ac_cpp conftest.$ac_ext"
14553 case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14559   ac_status=$?
14560   grep -v '^ *+' conftest.er1 >conftest.err
14561   rm -f conftest.er1
14562   cat conftest.err >&5
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } >/dev/null; then
14565   if test -s conftest.err; then
14566     ac_cpp_err=$ac_cxx_preproc_warn_flag
14567     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14568   else
14569     ac_cpp_err=
14570   fi
14571 else
14572   ac_cpp_err=yes
14573 fi
14574 if test -z "$ac_cpp_err"; then
14575   :
14576 else
14577   echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14579
14580   # Broken: fails on valid input.
14581 continue
14582 fi
14583
14584 rm -f conftest.err conftest.$ac_ext
14585
14586   # OK, works on sane cases.  Now check whether nonexistent headers
14587   # can be detected and how.
14588   cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594 #include <ac_nonexistent.h>
14595 _ACEOF
14596 if { (ac_try="$ac_cpp conftest.$ac_ext"
14597 case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } >/dev/null; then
14609   if test -s conftest.err; then
14610     ac_cpp_err=$ac_cxx_preproc_warn_flag
14611     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14612   else
14613     ac_cpp_err=
14614   fi
14615 else
14616   ac_cpp_err=yes
14617 fi
14618 if test -z "$ac_cpp_err"; then
14619   # Broken: success on invalid input.
14620 continue
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625   # Passes both tests.
14626 ac_preproc_ok=:
14627 break
14628 fi
14629
14630 rm -f conftest.err conftest.$ac_ext
14631
14632 done
14633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14634 rm -f conftest.err conftest.$ac_ext
14635 if $ac_preproc_ok; then
14636   break
14637 fi
14638
14639     done
14640     ac_cv_prog_CXXCPP=$CXXCPP
14641
14642 fi
14643   CXXCPP=$ac_cv_prog_CXXCPP
14644 else
14645   ac_cv_prog_CXXCPP=$CXXCPP
14646 fi
14647 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14648 echo "${ECHO_T}$CXXCPP" >&6; }
14649 ac_preproc_ok=false
14650 for ac_cxx_preproc_warn_flag in '' yes
14651 do
14652   # Use a header file that comes with gcc, so configuring glibc
14653   # with a fresh cross-compiler works.
14654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14655   # <limits.h> exists even on freestanding compilers.
14656   # On the NeXT, cc -E runs the code through the compiler's parser,
14657   # not just through cpp. "Syntax error" is here to catch this case.
14658   cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h.  */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h.  */
14664 #ifdef __STDC__
14665 # include <limits.h>
14666 #else
14667 # include <assert.h>
14668 #endif
14669                      Syntax error
14670 _ACEOF
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678   ac_status=$?
14679   grep -v '^ *+' conftest.er1 >conftest.err
14680   rm -f conftest.er1
14681   cat conftest.err >&5
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } >/dev/null; then
14684   if test -s conftest.err; then
14685     ac_cpp_err=$ac_cxx_preproc_warn_flag
14686     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14687   else
14688     ac_cpp_err=
14689   fi
14690 else
14691   ac_cpp_err=yes
14692 fi
14693 if test -z "$ac_cpp_err"; then
14694   :
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699   # Broken: fails on valid input.
14700 continue
14701 fi
14702
14703 rm -f conftest.err conftest.$ac_ext
14704
14705   # OK, works on sane cases.  Now check whether nonexistent headers
14706   # can be detected and how.
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 #include <ac_nonexistent.h>
14714 _ACEOF
14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
14716 case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } >/dev/null; then
14728   if test -s conftest.err; then
14729     ac_cpp_err=$ac_cxx_preproc_warn_flag
14730     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14731   else
14732     ac_cpp_err=
14733   fi
14734 else
14735   ac_cpp_err=yes
14736 fi
14737 if test -z "$ac_cpp_err"; then
14738   # Broken: success on invalid input.
14739 continue
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744   # Passes both tests.
14745 ac_preproc_ok=:
14746 break
14747 fi
14748
14749 rm -f conftest.err conftest.$ac_ext
14750
14751 done
14752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14753 rm -f conftest.err conftest.$ac_ext
14754 if $ac_preproc_ok; then
14755   :
14756 else
14757   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14758 See \`config.log' for more details." >&5
14759 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14760 See \`config.log' for more details." >&2;}
14761    { (exit 1); exit 1; }; }
14762 fi
14763
14764 ac_ext=cpp
14765 ac_cpp='$CXXCPP $CPPFLAGS'
14766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14769
14770
14771
14772 for ac_header in cxxabi.h
14773 do
14774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 fi
14781 ac_res=`eval echo '${'$as_ac_Header'}'`
14782                { echo "$as_me:$LINENO: result: $ac_res" >&5
14783 echo "${ECHO_T}$ac_res" >&6; }
14784 else
14785   # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 $ac_includes_default
14795 #include <$ac_header>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_compile") 2>conftest.er1
14805   ac_status=$?
14806   grep -v '^ *+' conftest.er1 >conftest.err
14807   rm -f conftest.er1
14808   cat conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } &&
14811          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14812   { (case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_try") 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; } &&
14821          { ac_try='test -s conftest.$ac_objext'
14822   { (case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_try") 2>&5
14828   ac_status=$?
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); }; }; then
14831   ac_header_compiler=yes
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836         ac_header_compiler=no
14837 fi
14838
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14841 echo "${ECHO_T}$ac_header_compiler" >&6; }
14842
14843 # Is the header present?
14844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 #include <$ac_header>
14853 _ACEOF
14854 if { (ac_try="$ac_cpp conftest.$ac_ext"
14855 case "(($ac_try" in
14856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857   *) ac_try_echo=$ac_try;;
14858 esac
14859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14861   ac_status=$?
14862   grep -v '^ *+' conftest.er1 >conftest.err
14863   rm -f conftest.er1
14864   cat conftest.err >&5
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); } >/dev/null; then
14867   if test -s conftest.err; then
14868     ac_cpp_err=$ac_cxx_preproc_warn_flag
14869     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14870   else
14871     ac_cpp_err=
14872   fi
14873 else
14874   ac_cpp_err=yes
14875 fi
14876 if test -z "$ac_cpp_err"; then
14877   ac_header_preproc=yes
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882   ac_header_preproc=no
14883 fi
14884
14885 rm -f conftest.err conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14887 echo "${ECHO_T}$ac_header_preproc" >&6; }
14888
14889 # So?  What about this header?
14890 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14891   yes:no: )
14892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14896     ac_header_preproc=yes
14897     ;;
14898   no:yes:* )
14899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14911     ( cat <<\_ASBOX
14912 ## ------------------------------------ ##
14913 ## Report this to http://llvm.org/bugs/ ##
14914 ## ------------------------------------ ##
14915 _ASBOX
14916      ) | sed "s/^/$as_me: WARNING:     /" >&2
14917     ;;
14918 esac
14919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   eval "$as_ac_Header=\$ac_header_preproc"
14925 fi
14926 ac_res=`eval echo '${'$as_ac_Header'}'`
14927                { echo "$as_me:$LINENO: result: $ac_res" >&5
14928 echo "${ECHO_T}$ac_res" >&6; }
14929
14930 fi
14931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14932   cat >>confdefs.h <<_ACEOF
14933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14934 _ACEOF
14935
14936 fi
14937
14938 done
14939
14940 ac_ext=c
14941 ac_cpp='$CPP $CPPFLAGS'
14942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14945
14946
14947
14948
14949
14950
14951 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14952 do
14953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 fi
14960 ac_res=`eval echo '${'$as_ac_Header'}'`
14961                { echo "$as_me:$LINENO: result: $ac_res" >&5
14962 echo "${ECHO_T}$ac_res" >&6; }
14963 else
14964   # Is the header compilable?
14965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973 $ac_includes_default
14974 #include <$ac_header>
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_compile") 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991   { (case "(($ac_try" in
14992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993   *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996   (eval "$ac_try") 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; } &&
15000          { ac_try='test -s conftest.$ac_objext'
15001   { (case "(($ac_try" in
15002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003   *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006   (eval "$ac_try") 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; }; then
15010   ac_header_compiler=yes
15011 else
15012   echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15014
15015         ac_header_compiler=no
15016 fi
15017
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15020 echo "${ECHO_T}$ac_header_compiler" >&6; }
15021
15022 # Is the header present?
15023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 #include <$ac_header>
15032 _ACEOF
15033 if { (ac_try="$ac_cpp conftest.$ac_ext"
15034 case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } >/dev/null; then
15046   if test -s conftest.err; then
15047     ac_cpp_err=$ac_c_preproc_warn_flag
15048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15049   else
15050     ac_cpp_err=
15051   fi
15052 else
15053   ac_cpp_err=yes
15054 fi
15055 if test -z "$ac_cpp_err"; then
15056   ac_header_preproc=yes
15057 else
15058   echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061   ac_header_preproc=no
15062 fi
15063
15064 rm -f conftest.err conftest.$ac_ext
15065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15066 echo "${ECHO_T}$ac_header_preproc" >&6; }
15067
15068 # So?  What about this header?
15069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15070   yes:no: )
15071     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15075     ac_header_preproc=yes
15076     ;;
15077   no:yes:* )
15078     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15080     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15081 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15082     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15084     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15085 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15088     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15090     ( cat <<\_ASBOX
15091 ## ------------------------------------ ##
15092 ## Report this to http://llvm.org/bugs/ ##
15093 ## ------------------------------------ ##
15094 _ASBOX
15095      ) | sed "s/^/$as_me: WARNING:     /" >&2
15096     ;;
15097 esac
15098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101   echo $ECHO_N "(cached) $ECHO_C" >&6
15102 else
15103   eval "$as_ac_Header=\$ac_header_preproc"
15104 fi
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106                { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15108
15109 fi
15110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15111   cat >>confdefs.h <<_ACEOF
15112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15113 _ACEOF
15114
15115 fi
15116
15117 done
15118
15119
15120
15121
15122
15123
15124
15125 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15126 do
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 fi
15134 ac_res=`eval echo '${'$as_ac_Header'}'`
15135                { echo "$as_me:$LINENO: result: $ac_res" >&5
15136 echo "${ECHO_T}$ac_res" >&6; }
15137 else
15138   # Is the header compilable?
15139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 $ac_includes_default
15148 #include <$ac_header>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (ac_try="$ac_compile"
15152 case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_compile") 2>conftest.er1
15158   ac_status=$?
15159   grep -v '^ *+' conftest.er1 >conftest.err
15160   rm -f conftest.er1
15161   cat conftest.err >&5
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165   { (case "(($ac_try" in
15166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167   *) ac_try_echo=$ac_try;;
15168 esac
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170   (eval "$ac_try") 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; } &&
15174          { ac_try='test -s conftest.$ac_objext'
15175   { (case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180   (eval "$ac_try") 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   ac_header_compiler=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189         ac_header_compiler=no
15190 fi
15191
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194 echo "${ECHO_T}$ac_header_compiler" >&6; }
15195
15196 # Is the header present?
15197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h.  */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h.  */
15205 #include <$ac_header>
15206 _ACEOF
15207 if { (ac_try="$ac_cpp conftest.$ac_ext"
15208 case "(($ac_try" in
15209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210   *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } >/dev/null; then
15220   if test -s conftest.err; then
15221     ac_cpp_err=$ac_c_preproc_warn_flag
15222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15223   else
15224     ac_cpp_err=
15225   fi
15226 else
15227   ac_cpp_err=yes
15228 fi
15229 if test -z "$ac_cpp_err"; then
15230   ac_header_preproc=yes
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235   ac_header_preproc=no
15236 fi
15237
15238 rm -f conftest.err conftest.$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6; }
15241
15242 # So?  What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244   yes:no: )
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249     ac_header_preproc=yes
15250     ;;
15251   no:yes:* )
15252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15264     ( cat <<\_ASBOX
15265 ## ------------------------------------ ##
15266 ## Report this to http://llvm.org/bugs/ ##
15267 ## ------------------------------------ ##
15268 _ASBOX
15269      ) | sed "s/^/$as_me: WARNING:     /" >&2
15270     ;;
15271 esac
15272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275   echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15277   eval "$as_ac_Header=\$ac_header_preproc"
15278 fi
15279 ac_res=`eval echo '${'$as_ac_Header'}'`
15280                { echo "$as_me:$LINENO: result: $ac_res" >&5
15281 echo "${ECHO_T}$ac_res" >&6; }
15282
15283 fi
15284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285   cat >>confdefs.h <<_ACEOF
15286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15287 _ACEOF
15288
15289 fi
15290
15291 done
15292
15293
15294 for ac_header in utime.h
15295 do
15296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 fi
15303 ac_res=`eval echo '${'$as_ac_Header'}'`
15304                { echo "$as_me:$LINENO: result: $ac_res" >&5
15305 echo "${ECHO_T}$ac_res" >&6; }
15306 else
15307   # Is the header compilable?
15308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316 $ac_includes_default
15317 #include <$ac_header>
15318 _ACEOF
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326   (eval "$ac_compile") 2>conftest.er1
15327   ac_status=$?
15328   grep -v '^ *+' conftest.er1 >conftest.err
15329   rm -f conftest.er1
15330   cat conftest.err >&5
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); } &&
15333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334   { (case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_try") 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; } &&
15343          { ac_try='test -s conftest.$ac_objext'
15344   { (case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_try") 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; }; then
15353   ac_header_compiler=yes
15354 else
15355   echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15357
15358         ac_header_compiler=no
15359 fi
15360
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15363 echo "${ECHO_T}$ac_header_compiler" >&6; }
15364
15365 # Is the header present?
15366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 #include <$ac_header>
15375 _ACEOF
15376 if { (ac_try="$ac_cpp conftest.$ac_ext"
15377 case "(($ac_try" in
15378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379   *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15383   ac_status=$?
15384   grep -v '^ *+' conftest.er1 >conftest.err
15385   rm -f conftest.er1
15386   cat conftest.err >&5
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); } >/dev/null; then
15389   if test -s conftest.err; then
15390     ac_cpp_err=$ac_c_preproc_warn_flag
15391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15392   else
15393     ac_cpp_err=
15394   fi
15395 else
15396   ac_cpp_err=yes
15397 fi
15398 if test -z "$ac_cpp_err"; then
15399   ac_header_preproc=yes
15400 else
15401   echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404   ac_header_preproc=no
15405 fi
15406
15407 rm -f conftest.err conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15409 echo "${ECHO_T}$ac_header_preproc" >&6; }
15410
15411 # So?  What about this header?
15412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15413   yes:no: )
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15418     ac_header_preproc=yes
15419     ;;
15420   no:yes:* )
15421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15433     ( cat <<\_ASBOX
15434 ## ------------------------------------ ##
15435 ## Report this to http://llvm.org/bugs/ ##
15436 ## ------------------------------------ ##
15437 _ASBOX
15438      ) | sed "s/^/$as_me: WARNING:     /" >&2
15439     ;;
15440 esac
15441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   eval "$as_ac_Header=\$ac_header_preproc"
15447 fi
15448 ac_res=`eval echo '${'$as_ac_Header'}'`
15449                { echo "$as_me:$LINENO: result: $ac_res" >&5
15450 echo "${ECHO_T}$ac_res" >&6; }
15451
15452 fi
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454   cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15456 _ACEOF
15457
15458 fi
15459
15460 done
15461
15462
15463
15464
15465
15466
15467 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15468 do
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 fi
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477                { echo "$as_me:$LINENO: result: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15479 else
15480   # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489 $ac_includes_default
15490 #include <$ac_header>
15491 _ACEOF
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496   *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499   (eval "$ac_compile") 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15507   { (case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_try") 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); }; } &&
15516          { ac_try='test -s conftest.$ac_objext'
15517   { (case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_try") 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526   ac_header_compiler=yes
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531         ac_header_compiler=no
15532 fi
15533
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6; }
15537
15538 # Is the header present?
15539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h.  */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h.  */
15547 #include <$ac_header>
15548 _ACEOF
15549 if { (ac_try="$ac_cpp conftest.$ac_ext"
15550 case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } >/dev/null; then
15562   if test -s conftest.err; then
15563     ac_cpp_err=$ac_c_preproc_warn_flag
15564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15565   else
15566     ac_cpp_err=
15567   fi
15568 else
15569   ac_cpp_err=yes
15570 fi
15571 if test -z "$ac_cpp_err"; then
15572   ac_header_preproc=yes
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577   ac_header_preproc=no
15578 fi
15579
15580 rm -f conftest.err conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15582 echo "${ECHO_T}$ac_header_preproc" >&6; }
15583
15584 # So?  What about this header?
15585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15586   yes:no: )
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15591     ac_header_preproc=yes
15592     ;;
15593   no:yes:* )
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15606     ( cat <<\_ASBOX
15607 ## ------------------------------------ ##
15608 ## Report this to http://llvm.org/bugs/ ##
15609 ## ------------------------------------ ##
15610 _ASBOX
15611      ) | sed "s/^/$as_me: WARNING:     /" >&2
15612     ;;
15613 esac
15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   eval "$as_ac_Header=\$ac_header_preproc"
15620 fi
15621 ac_res=`eval echo '${'$as_ac_Header'}'`
15622                { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15624
15625 fi
15626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15627   cat >>confdefs.h <<_ACEOF
15628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15629 _ACEOF
15630
15631 fi
15632
15633 done
15634
15635
15636
15637
15638 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15639 do
15640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645   echo $ECHO_N "(cached) $ECHO_C" >&6
15646 fi
15647 ac_res=`eval echo '${'$as_ac_Header'}'`
15648                { echo "$as_me:$LINENO: result: $ac_res" >&5
15649 echo "${ECHO_T}$ac_res" >&6; }
15650 else
15651   # Is the header compilable?
15652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660 $ac_includes_default
15661 #include <$ac_header>
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_compile") 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678   { (case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_try") 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15697   ac_header_compiler=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702         ac_header_compiler=no
15703 fi
15704
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707 echo "${ECHO_T}$ac_header_compiler" >&6; }
15708
15709 # Is the header present?
15710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 #include <$ac_header>
15719 _ACEOF
15720 if { (ac_try="$ac_cpp conftest.$ac_ext"
15721 case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } >/dev/null; then
15733   if test -s conftest.err; then
15734     ac_cpp_err=$ac_c_preproc_warn_flag
15735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15736   else
15737     ac_cpp_err=
15738   fi
15739 else
15740   ac_cpp_err=yes
15741 fi
15742 if test -z "$ac_cpp_err"; then
15743   ac_header_preproc=yes
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748   ac_header_preproc=no
15749 fi
15750
15751 rm -f conftest.err conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6; }
15754
15755 # So?  What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757   yes:no: )
15758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762     ac_header_preproc=yes
15763     ;;
15764   no:yes:* )
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15777     ( cat <<\_ASBOX
15778 ## ------------------------------------ ##
15779 ## Report this to http://llvm.org/bugs/ ##
15780 ## ------------------------------------ ##
15781 _ASBOX
15782      ) | sed "s/^/$as_me: WARNING:     /" >&2
15783     ;;
15784 esac
15785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   eval "$as_ac_Header=\$ac_header_preproc"
15791 fi
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793                { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15795
15796 fi
15797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15798   cat >>confdefs.h <<_ACEOF
15799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15800 _ACEOF
15801
15802 fi
15803
15804 done
15805
15806
15807 for ac_header in valgrind/valgrind.h
15808 do
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 fi
15816 ac_res=`eval echo '${'$as_ac_Header'}'`
15817                { echo "$as_me:$LINENO: result: $ac_res" >&5
15818 echo "${ECHO_T}$ac_res" >&6; }
15819 else
15820   # Is the header compilable?
15821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829 $ac_includes_default
15830 #include <$ac_header>
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836   *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839   (eval "$ac_compile") 2>conftest.er1
15840   ac_status=$?
15841   grep -v '^ *+' conftest.er1 >conftest.err
15842   rm -f conftest.er1
15843   cat conftest.err >&5
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } &&
15846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847   { (case "(($ac_try" in
15848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849   *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852   (eval "$ac_try") 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; } &&
15856          { ac_try='test -s conftest.$ac_objext'
15857   { (case "(($ac_try" in
15858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859   *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862   (eval "$ac_try") 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_header_compiler=yes
15867 else
15868   echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871         ac_header_compiler=no
15872 fi
15873
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15876 echo "${ECHO_T}$ac_header_compiler" >&6; }
15877
15878 # Is the header present?
15879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887 #include <$ac_header>
15888 _ACEOF
15889 if { (ac_try="$ac_cpp conftest.$ac_ext"
15890 case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } >/dev/null; then
15902   if test -s conftest.err; then
15903     ac_cpp_err=$ac_c_preproc_warn_flag
15904     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15905   else
15906     ac_cpp_err=
15907   fi
15908 else
15909   ac_cpp_err=yes
15910 fi
15911 if test -z "$ac_cpp_err"; then
15912   ac_header_preproc=yes
15913 else
15914   echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917   ac_header_preproc=no
15918 fi
15919
15920 rm -f conftest.err conftest.$ac_ext
15921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15922 echo "${ECHO_T}$ac_header_preproc" >&6; }
15923
15924 # So?  What about this header?
15925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15926   yes:no: )
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15931     ac_header_preproc=yes
15932     ;;
15933   no:yes:* )
15934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15946     ( cat <<\_ASBOX
15947 ## ------------------------------------ ##
15948 ## Report this to http://llvm.org/bugs/ ##
15949 ## ------------------------------------ ##
15950 _ASBOX
15951      ) | sed "s/^/$as_me: WARNING:     /" >&2
15952     ;;
15953 esac
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   eval "$as_ac_Header=\$ac_header_preproc"
15960 fi
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962                { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15964
15965 fi
15966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15967   cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 fi
15972
15973 done
15974
15975
15976 for ac_header in fenv.h
15977 do
15978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 fi
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986                { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988 else
15989   # Is the header compilable?
15990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998 $ac_includes_default
15999 #include <$ac_header>
16000 _ACEOF
16001 rm -f conftest.$ac_objext
16002 if { (ac_try="$ac_compile"
16003 case "(($ac_try" in
16004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005   *) ac_try_echo=$ac_try;;
16006 esac
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008   (eval "$ac_compile") 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016   { (case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_try") 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; } &&
16025          { ac_try='test -s conftest.$ac_objext'
16026   { (case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_try") 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_header_compiler=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_header_compiler=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16046
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #include <$ac_header>
16057 _ACEOF
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } >/dev/null; then
16071   if test -s conftest.err; then
16072     ac_cpp_err=$ac_c_preproc_warn_flag
16073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16074   else
16075     ac_cpp_err=
16076   fi
16077 else
16078   ac_cpp_err=yes
16079 fi
16080 if test -z "$ac_cpp_err"; then
16081   ac_header_preproc=yes
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086   ac_header_preproc=no
16087 fi
16088
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16092
16093 # So?  What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16095   yes:no: )
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100     ac_header_preproc=yes
16101     ;;
16102   no:yes:* )
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16115     ( cat <<\_ASBOX
16116 ## ------------------------------------ ##
16117 ## Report this to http://llvm.org/bugs/ ##
16118 ## ------------------------------------ ##
16119 _ASBOX
16120      ) | sed "s/^/$as_me: WARNING:     /" >&2
16121     ;;
16122 esac
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   eval "$as_ac_Header=\$ac_header_preproc"
16129 fi
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131                { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16133
16134 fi
16135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16136   cat >>confdefs.h <<_ACEOF
16137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16138 _ACEOF
16139
16140 fi
16141
16142 done
16143
16144 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16145 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16146 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h.  */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h.  */
16155 #include <fenv.h>
16156
16157 int
16158 main ()
16159 {
16160 #ifndef FE_ALL_EXCEPT
16161   char *p = (char *) FE_ALL_EXCEPT;
16162   return !p;
16163 #endif
16164
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_compile") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } &&
16183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184   { (case "(($ac_try" in
16185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186   *) ac_try_echo=$ac_try;;
16187 esac
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189   (eval "$ac_try") 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; } &&
16193          { ac_try='test -s conftest.$ac_objext'
16194   { (case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_try") 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; }; then
16203   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16204 else
16205   echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208         ac_cv_have_decl_FE_ALL_EXCEPT=no
16209 fi
16210
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 fi
16213 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16214 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16215 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16216
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_DECL_FE_ALL_EXCEPT 1
16219 _ACEOF
16220
16221
16222 else
16223   cat >>confdefs.h <<_ACEOF
16224 #define HAVE_DECL_FE_ALL_EXCEPT 0
16225 _ACEOF
16226
16227
16228 fi
16229 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16230 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16231 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16232   echo $ECHO_N "(cached) $ECHO_C" >&6
16233 else
16234   cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240 #include <fenv.h>
16241
16242 int
16243 main ()
16244 {
16245 #ifndef FE_INEXACT
16246   char *p = (char *) FE_INEXACT;
16247   return !p;
16248 #endif
16249
16250   ;
16251   return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_compile") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269   { (case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_try") 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; } &&
16278          { ac_try='test -s conftest.$ac_objext'
16279   { (case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_try") 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_cv_have_decl_FE_INEXACT=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         ac_cv_have_decl_FE_INEXACT=no
16294 fi
16295
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 fi
16298 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16299 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16300 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16301
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_DECL_FE_INEXACT 1
16304 _ACEOF
16305
16306
16307 else
16308   cat >>confdefs.h <<_ACEOF
16309 #define HAVE_DECL_FE_INEXACT 0
16310 _ACEOF
16311
16312
16313 fi
16314
16315
16316 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16317
16318 for ac_header in pthread.h
16319 do
16320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 fi
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328                { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330 else
16331   # Is the header compilable?
16332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340 $ac_includes_default
16341 #include <$ac_header>
16342 _ACEOF
16343 rm -f conftest.$ac_objext
16344 if { (ac_try="$ac_compile"
16345 case "(($ac_try" in
16346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347   *) ac_try_echo=$ac_try;;
16348 esac
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350   (eval "$ac_compile") 2>conftest.er1
16351   ac_status=$?
16352   grep -v '^ *+' conftest.er1 >conftest.err
16353   rm -f conftest.er1
16354   cat conftest.err >&5
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); } &&
16357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358   { (case "(($ac_try" in
16359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360   *) ac_try_echo=$ac_try;;
16361 esac
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363   (eval "$ac_try") 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; } &&
16367          { ac_try='test -s conftest.$ac_objext'
16368   { (case "(($ac_try" in
16369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370   *) ac_try_echo=$ac_try;;
16371 esac
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373   (eval "$ac_try") 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); }; }; then
16377   ac_header_compiler=yes
16378 else
16379   echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382         ac_header_compiler=no
16383 fi
16384
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16387 echo "${ECHO_T}$ac_header_compiler" >&6; }
16388
16389 # Is the header present?
16390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h.  */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h.  */
16398 #include <$ac_header>
16399 _ACEOF
16400 if { (ac_try="$ac_cpp conftest.$ac_ext"
16401 case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16407   ac_status=$?
16408   grep -v '^ *+' conftest.er1 >conftest.err
16409   rm -f conftest.er1
16410   cat conftest.err >&5
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); } >/dev/null; then
16413   if test -s conftest.err; then
16414     ac_cpp_err=$ac_c_preproc_warn_flag
16415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16416   else
16417     ac_cpp_err=
16418   fi
16419 else
16420   ac_cpp_err=yes
16421 fi
16422 if test -z "$ac_cpp_err"; then
16423   ac_header_preproc=yes
16424 else
16425   echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428   ac_header_preproc=no
16429 fi
16430
16431 rm -f conftest.err conftest.$ac_ext
16432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16433 echo "${ECHO_T}$ac_header_preproc" >&6; }
16434
16435 # So?  What about this header?
16436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16437   yes:no: )
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16442     ac_header_preproc=yes
16443     ;;
16444   no:yes:* )
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16457     ( cat <<\_ASBOX
16458 ## ------------------------------------ ##
16459 ## Report this to http://llvm.org/bugs/ ##
16460 ## ------------------------------------ ##
16461 _ASBOX
16462      ) | sed "s/^/$as_me: WARNING:     /" >&2
16463     ;;
16464 esac
16465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16468   echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470   eval "$as_ac_Header=\$ac_header_preproc"
16471 fi
16472 ac_res=`eval echo '${'$as_ac_Header'}'`
16473                { echo "$as_me:$LINENO: result: $ac_res" >&5
16474 echo "${ECHO_T}$ac_res" >&6; }
16475
16476 fi
16477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16478   cat >>confdefs.h <<_ACEOF
16479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16480 _ACEOF
16481  HAVE_PTHREAD=1
16482
16483 else
16484   HAVE_PTHREAD=0
16485
16486 fi
16487
16488 done
16489
16490 else
16491   HAVE_PTHREAD=0
16492
16493 fi
16494 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16495
16496 for ac_header in zlib.h
16497 do
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 fi
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506                { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16508 else
16509   # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 #include <$ac_header>
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_compile") 2>conftest.er1
16529   ac_status=$?
16530   grep -v '^ *+' conftest.er1 >conftest.err
16531   rm -f conftest.er1
16532   cat conftest.err >&5
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } &&
16535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; }; then
16555   ac_header_compiler=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         ac_header_compiler=no
16561 fi
16562
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16566
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576 #include <$ac_header>
16577 _ACEOF
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585   ac_status=$?
16586   grep -v '^ *+' conftest.er1 >conftest.err
16587   rm -f conftest.er1
16588   cat conftest.err >&5
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); } >/dev/null; then
16591   if test -s conftest.err; then
16592     ac_cpp_err=$ac_c_preproc_warn_flag
16593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594   else
16595     ac_cpp_err=
16596   fi
16597 else
16598   ac_cpp_err=yes
16599 fi
16600 if test -z "$ac_cpp_err"; then
16601   ac_header_preproc=yes
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606   ac_header_preproc=no
16607 fi
16608
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16612
16613 # So?  What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615   yes:no: )
16616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620     ac_header_preproc=yes
16621     ;;
16622   no:yes:* )
16623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635     ( cat <<\_ASBOX
16636 ## ------------------------------------ ##
16637 ## Report this to http://llvm.org/bugs/ ##
16638 ## ------------------------------------ ##
16639 _ASBOX
16640      ) | sed "s/^/$as_me: WARNING:     /" >&2
16641     ;;
16642 esac
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   eval "$as_ac_Header=\$ac_header_preproc"
16649 fi
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651                { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16653
16654 fi
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656   cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 _ACEOF
16659  HAVE_LIBZ=1
16660
16661 else
16662   HAVE_LIBZ=0
16663
16664 fi
16665
16666 done
16667
16668 else
16669   HAVE_LIBZ=0
16670
16671 fi
16672
16673 if test "$llvm_cv_enable_libffi" = "yes" ; then
16674
16675
16676 for ac_header in ffi.h ffi/ffi.h
16677 do
16678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 fi
16685 ac_res=`eval echo '${'$as_ac_Header'}'`
16686                { echo "$as_me:$LINENO: result: $ac_res" >&5
16687 echo "${ECHO_T}$ac_res" >&6; }
16688 else
16689   # Is the header compilable?
16690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16692 cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698 $ac_includes_default
16699 #include <$ac_header>
16700 _ACEOF
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_compile") 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest.$ac_objext'
16726   { (case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_try") 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; }; then
16735   ac_header_compiler=yes
16736 else
16737   echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740         ac_header_compiler=no
16741 fi
16742
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16745 echo "${ECHO_T}$ac_header_compiler" >&6; }
16746
16747 # Is the header present?
16748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16750 cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756 #include <$ac_header>
16757 _ACEOF
16758 if { (ac_try="$ac_cpp conftest.$ac_ext"
16759 case "(($ac_try" in
16760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761   *) ac_try_echo=$ac_try;;
16762 esac
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16765   ac_status=$?
16766   grep -v '^ *+' conftest.er1 >conftest.err
16767   rm -f conftest.er1
16768   cat conftest.err >&5
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } >/dev/null; then
16771   if test -s conftest.err; then
16772     ac_cpp_err=$ac_c_preproc_warn_flag
16773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16774   else
16775     ac_cpp_err=
16776   fi
16777 else
16778   ac_cpp_err=yes
16779 fi
16780 if test -z "$ac_cpp_err"; then
16781   ac_header_preproc=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786   ac_header_preproc=no
16787 fi
16788
16789 rm -f conftest.err conftest.$ac_ext
16790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6; }
16792
16793 # So?  What about this header?
16794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16795   yes:no: )
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16800     ac_header_preproc=yes
16801     ;;
16802   no:yes:* )
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16815     ( cat <<\_ASBOX
16816 ## ------------------------------------ ##
16817 ## Report this to http://llvm.org/bugs/ ##
16818 ## ------------------------------------ ##
16819 _ASBOX
16820      ) | sed "s/^/$as_me: WARNING:     /" >&2
16821     ;;
16822 esac
16823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   eval "$as_ac_Header=\$ac_header_preproc"
16829 fi
16830 ac_res=`eval echo '${'$as_ac_Header'}'`
16831                { echo "$as_me:$LINENO: result: $ac_res" >&5
16832 echo "${ECHO_T}$ac_res" >&6; }
16833
16834 fi
16835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16836   cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 _ACEOF
16839
16840 fi
16841
16842 done
16843
16844 fi
16845
16846
16847 for ac_header in CrashReporterClient.h
16848 do
16849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16851   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 fi
16856 ac_res=`eval echo '${'$as_ac_Header'}'`
16857                { echo "$as_me:$LINENO: result: $ac_res" >&5
16858 echo "${ECHO_T}$ac_res" >&6; }
16859 else
16860   # Is the header compilable?
16861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h.  */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h.  */
16869 $ac_includes_default
16870 #include <$ac_header>
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_header_compiler=yes
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911         ac_header_compiler=no
16912 fi
16913
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16916 echo "${ECHO_T}$ac_header_compiler" >&6; }
16917
16918 # Is the header present?
16919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16921 cat >conftest.$ac_ext <<_ACEOF
16922 /* confdefs.h.  */
16923 _ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h.  */
16927 #include <$ac_header>
16928 _ACEOF
16929 if { (ac_try="$ac_cpp conftest.$ac_ext"
16930 case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } >/dev/null; then
16942   if test -s conftest.err; then
16943     ac_cpp_err=$ac_c_preproc_warn_flag
16944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16945   else
16946     ac_cpp_err=
16947   fi
16948 else
16949   ac_cpp_err=yes
16950 fi
16951 if test -z "$ac_cpp_err"; then
16952   ac_header_preproc=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957   ac_header_preproc=no
16958 fi
16959
16960 rm -f conftest.err conftest.$ac_ext
16961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16962 echo "${ECHO_T}$ac_header_preproc" >&6; }
16963
16964 # So?  What about this header?
16965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16966   yes:no: )
16967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16971     ac_header_preproc=yes
16972     ;;
16973   no:yes:* )
16974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16986     ( cat <<\_ASBOX
16987 ## ------------------------------------ ##
16988 ## Report this to http://llvm.org/bugs/ ##
16989 ## ------------------------------------ ##
16990 _ASBOX
16991      ) | sed "s/^/$as_me: WARNING:     /" >&2
16992     ;;
16993 esac
16994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16997   echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999   eval "$as_ac_Header=\$ac_header_preproc"
17000 fi
17001 ac_res=`eval echo '${'$as_ac_Header'}'`
17002                { echo "$as_me:$LINENO: result: $ac_res" >&5
17003 echo "${ECHO_T}$ac_res" >&6; }
17004
17005 fi
17006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17007   cat >>confdefs.h <<_ACEOF
17008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17009 _ACEOF
17010
17011 fi
17012
17013 done
17014
17015
17016 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17017 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17018 cat >conftest.$ac_ext <<_ACEOF
17019
17020   /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026     extern const char *__crashreporter_info__;
17027     int main() {
17028       __crashreporter_info__ = "test";
17029       return 0;
17030     }
17031
17032
17033 _ACEOF
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_link") 2>conftest.er1
17042   ac_status=$?
17043   grep -v '^ *+' conftest.er1 >conftest.err
17044   rm -f conftest.er1
17045   cat conftest.err >&5
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); } &&
17048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049   { (case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_try") 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; } &&
17058          { ac_try='test -s conftest$ac_exeext'
17059   { (case "(($ac_try" in
17060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061   *) ac_try_echo=$ac_try;;
17062 esac
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064   (eval "$ac_try") 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068
17069   { echo "$as_me:$LINENO: result: yes" >&5
17070 echo "${ECHO_T}yes" >&6; }
17071
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_CRASHREPORTER_INFO 1
17074 _ACEOF
17075
17076
17077 else
17078   echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081
17082   { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17084
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_CRASHREPORTER_INFO 0
17087 _ACEOF
17088
17089
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext \
17093       conftest$ac_exeext conftest.$ac_ext
17094
17095
17096
17097   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17098 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17099 if test "${ac_cv_huge_val_sanity+set}" = set; then
17100   echo $ECHO_N "(cached) $ECHO_C" >&6
17101 else
17102
17103     ac_ext=cpp
17104 ac_cpp='$CXXCPP $CPPFLAGS'
17105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17108
17109     ac_save_CXXFLAGS=$CXXFLAGS
17110     CXXFLAGS="$CXXFLAGS -pedantic"
17111     if test "$cross_compiling" = yes; then
17112   ac_cv_huge_val_sanity=yes
17113 else
17114   cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120 #include <math.h>
17121 int
17122 main ()
17123 {
17124 double x = HUGE_VAL; return x != x;
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_link") 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17140   { (case "(($ac_try" in
17141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142   *) ac_try_echo=$ac_try;;
17143 esac
17144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17145   (eval "$ac_try") 2>&5
17146   ac_status=$?
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); }; }; then
17149   ac_cv_huge_val_sanity=yes
17150 else
17151   echo "$as_me: program exited with status $ac_status" >&5
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 ( exit $ac_status )
17156 ac_cv_huge_val_sanity=no
17157 fi
17158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17159 fi
17160
17161
17162     CXXFLAGS=$ac_save_CXXFLAGS
17163     ac_ext=c
17164 ac_cpp='$CPP $CPPFLAGS'
17165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17168
17169
17170 fi
17171 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17172 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17173   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17174
17175
17176 { echo "$as_me:$LINENO: checking for pid_t" >&5
17177 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17178 if test "${ac_cv_type_pid_t+set}" = set; then
17179   echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181   cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h.  */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h.  */
17187 $ac_includes_default
17188 typedef pid_t ac__type_new_;
17189 int
17190 main ()
17191 {
17192 if ((ac__type_new_ *) 0)
17193   return 0;
17194 if (sizeof (ac__type_new_))
17195   return 0;
17196   ;
17197   return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext
17201 if { (ac_try="$ac_compile"
17202 case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_compile") 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215   { (case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220   (eval "$ac_try") 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest.$ac_objext'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_try") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }; then
17234   ac_cv_type_pid_t=yes
17235 else
17236   echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239         ac_cv_type_pid_t=no
17240 fi
17241
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 fi
17244 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17245 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17246 if test $ac_cv_type_pid_t = yes; then
17247   :
17248 else
17249
17250 cat >>confdefs.h <<_ACEOF
17251 #define pid_t int
17252 _ACEOF
17253
17254 fi
17255
17256 { echo "$as_me:$LINENO: checking for size_t" >&5
17257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17258 if test "${ac_cv_type_size_t+set}" = set; then
17259   echo $ECHO_N "(cached) $ECHO_C" >&6
17260 else
17261   cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267 $ac_includes_default
17268 typedef size_t ac__type_new_;
17269 int
17270 main ()
17271 {
17272 if ((ac__type_new_ *) 0)
17273   return 0;
17274 if (sizeof (ac__type_new_))
17275   return 0;
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext
17281 if { (ac_try="$ac_compile"
17282 case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287   (eval "$ac_compile") 2>conftest.er1
17288   ac_status=$?
17289   grep -v '^ *+' conftest.er1 >conftest.err
17290   rm -f conftest.er1
17291   cat conftest.err >&5
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17295   { (case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_try") 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   ac_cv_type_size_t=yes
17315 else
17316   echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319         ac_cv_type_size_t=no
17320 fi
17321
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323 fi
17324 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17325 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17326 if test $ac_cv_type_size_t = yes; then
17327   :
17328 else
17329
17330 cat >>confdefs.h <<_ACEOF
17331 #define size_t unsigned int
17332 _ACEOF
17333
17334 fi
17335
17336
17337 cat >>confdefs.h <<_ACEOF
17338 #define RETSIGTYPE void
17339 _ACEOF
17340
17341 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17342 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17343 if test "${ac_cv_struct_tm+set}" = set; then
17344   echo $ECHO_N "(cached) $ECHO_C" >&6
17345 else
17346   cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h.  */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h.  */
17352 #include <sys/types.h>
17353 #include <time.h>
17354
17355 int
17356 main ()
17357 {
17358 struct tm *tp; tp->tm_sec;
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367   *) ac_try_echo=$ac_try;;
17368 esac
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370   (eval "$ac_compile") 2>conftest.er1
17371   ac_status=$?
17372   grep -v '^ *+' conftest.er1 >conftest.err
17373   rm -f conftest.er1
17374   cat conftest.err >&5
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; } &&
17387          { ac_try='test -s conftest.$ac_objext'
17388   { (case "(($ac_try" in
17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390   *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393   (eval "$ac_try") 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   ac_cv_struct_tm=time.h
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402         ac_cv_struct_tm=sys/time.h
17403 fi
17404
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406 fi
17407 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17408 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17409 if test $ac_cv_struct_tm = sys/time.h; then
17410
17411 cat >>confdefs.h <<\_ACEOF
17412 #define TM_IN_SYS_TIME 1
17413 _ACEOF
17414
17415 fi
17416
17417 { echo "$as_me:$LINENO: checking for int64_t" >&5
17418 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17419 if test "${ac_cv_type_int64_t+set}" = set; then
17420   echo $ECHO_N "(cached) $ECHO_C" >&6
17421 else
17422   cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428 $ac_includes_default
17429 typedef int64_t ac__type_new_;
17430 int
17431 main ()
17432 {
17433 if ((ac__type_new_ *) 0)
17434   return 0;
17435 if (sizeof (ac__type_new_))
17436   return 0;
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext
17442 if { (ac_try="$ac_compile"
17443 case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_compile") 2>conftest.er1
17449   ac_status=$?
17450   grep -v '^ *+' conftest.er1 >conftest.err
17451   rm -f conftest.er1
17452   cat conftest.err >&5
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); } &&
17455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456   { (case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461   (eval "$ac_try") 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; } &&
17465          { ac_try='test -s conftest.$ac_objext'
17466   { (case "(($ac_try" in
17467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468   *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471   (eval "$ac_try") 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }; }; then
17475   ac_cv_type_int64_t=yes
17476 else
17477   echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480         ac_cv_type_int64_t=no
17481 fi
17482
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484 fi
17485 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17486 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17487 if test $ac_cv_type_int64_t = yes; then
17488
17489 cat >>confdefs.h <<_ACEOF
17490 #define HAVE_INT64_T 1
17491 _ACEOF
17492
17493
17494 else
17495   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17496 echo "$as_me: error: Type int64_t required but not found" >&2;}
17497    { (exit 1); exit 1; }; }
17498 fi
17499
17500 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17501 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17502 if test "${ac_cv_type_uint64_t+set}" = set; then
17503   echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505   cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511 $ac_includes_default
17512 typedef uint64_t ac__type_new_;
17513 int
17514 main ()
17515 {
17516 if ((ac__type_new_ *) 0)
17517   return 0;
17518 if (sizeof (ac__type_new_))
17519   return 0;
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_compile") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } &&
17538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17539   { (case "(($ac_try" in
17540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541   *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544   (eval "$ac_try") 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; } &&
17548          { ac_try='test -s conftest.$ac_objext'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; }; then
17558   ac_cv_type_uint64_t=yes
17559 else
17560   echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563         ac_cv_type_uint64_t=no
17564 fi
17565
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 fi
17568 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17569 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17570 if test $ac_cv_type_uint64_t = yes; then
17571
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_UINT64_T 1
17574 _ACEOF
17575
17576
17577 else
17578   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17579 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17580 if test "${ac_cv_type_u_int64_t+set}" = set; then
17581   echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583   cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589 $ac_includes_default
17590 typedef u_int64_t ac__type_new_;
17591 int
17592 main ()
17593 {
17594 if ((ac__type_new_ *) 0)
17595   return 0;
17596 if (sizeof (ac__type_new_))
17597   return 0;
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_compile") 2>conftest.er1
17610   ac_status=$?
17611   grep -v '^ *+' conftest.er1 >conftest.err
17612   rm -f conftest.er1
17613   cat conftest.err >&5
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } &&
17616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17617   { (case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_try") 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; } &&
17626          { ac_try='test -s conftest.$ac_objext'
17627   { (case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_try") 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; }; then
17636   ac_cv_type_u_int64_t=yes
17637 else
17638   echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641         ac_cv_type_u_int64_t=no
17642 fi
17643
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 fi
17646 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17647 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17648 if test $ac_cv_type_u_int64_t = yes; then
17649
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_U_INT64_T 1
17652 _ACEOF
17653
17654
17655 else
17656   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17657 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17658    { (exit 1); exit 1; }; }
17659 fi
17660
17661 fi
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17673 do
17674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17678   echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680   cat >conftest.$ac_ext <<_ACEOF
17681 /* confdefs.h.  */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h.  */
17686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17688 #define $ac_func innocuous_$ac_func
17689
17690 /* System header to define __stub macros and hopefully few prototypes,
17691     which can conflict with char $ac_func (); below.
17692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17693     <limits.h> exists even on freestanding compilers.  */
17694
17695 #ifdef __STDC__
17696 # include <limits.h>
17697 #else
17698 # include <assert.h>
17699 #endif
17700
17701 #undef $ac_func
17702
17703 /* Override any GCC internal prototype to avoid an error.
17704    Use char because int might match the return type of a GCC
17705    builtin and then its argument prototype would still apply.  */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 char $ac_func ();
17710 /* The GNU C library defines this for functions which it implements
17711     to always fail with ENOSYS.  Some functions are actually named
17712     something starting with __ and the normal name is an alias.  */
17713 #if defined __stub_$ac_func || defined __stub___$ac_func
17714 choke me
17715 #endif
17716
17717 int
17718 main ()
17719 {
17720 return $ac_func ();
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_link") 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; } &&
17749          { ac_try='test -s conftest$ac_exeext'
17750   { (case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_try") 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; }; then
17759   eval "$as_ac_var=yes"
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764         eval "$as_ac_var=no"
17765 fi
17766
17767 rm -f core conftest.err conftest.$ac_objext \
17768       conftest$ac_exeext conftest.$ac_ext
17769 fi
17770 ac_res=`eval echo '${'$as_ac_var'}'`
17771                { echo "$as_me:$LINENO: result: $ac_res" >&5
17772 echo "${ECHO_T}$ac_res" >&6; }
17773 if test `eval echo '${'$as_ac_var'}'` = yes; then
17774   cat >>confdefs.h <<_ACEOF
17775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17776 _ACEOF
17777
17778 fi
17779 done
17780
17781
17782
17783
17784
17785 for ac_func in powf fmodf strtof round
17786 do
17787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   cat >conftest.$ac_ext <<_ACEOF
17794 /* confdefs.h.  */
17795 _ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h.  */
17799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17801 #define $ac_func innocuous_$ac_func
17802
17803 /* System header to define __stub macros and hopefully few prototypes,
17804     which can conflict with char $ac_func (); below.
17805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17806     <limits.h> exists even on freestanding compilers.  */
17807
17808 #ifdef __STDC__
17809 # include <limits.h>
17810 #else
17811 # include <assert.h>
17812 #endif
17813
17814 #undef $ac_func
17815
17816 /* Override any GCC internal prototype to avoid an error.
17817    Use char because int might match the return type of a GCC
17818    builtin and then its argument prototype would still apply.  */
17819 #ifdef __cplusplus
17820 extern "C"
17821 #endif
17822 char $ac_func ();
17823 /* The GNU C library defines this for functions which it implements
17824     to always fail with ENOSYS.  Some functions are actually named
17825     something starting with __ and the normal name is an alias.  */
17826 #if defined __stub_$ac_func || defined __stub___$ac_func
17827 choke me
17828 #endif
17829
17830 int
17831 main ()
17832 {
17833 return $ac_func ();
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842   *) ac_try_echo=$ac_try;;
17843 esac
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845   (eval "$ac_link") 2>conftest.er1
17846   ac_status=$?
17847   grep -v '^ *+' conftest.er1 >conftest.err
17848   rm -f conftest.er1
17849   cat conftest.err >&5
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); } &&
17852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17853   { (case "(($ac_try" in
17854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855   *) ac_try_echo=$ac_try;;
17856 esac
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858   (eval "$ac_try") 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; } &&
17862          { ac_try='test -s conftest$ac_exeext'
17863   { (case "(($ac_try" in
17864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865   *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868   (eval "$ac_try") 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; }; then
17872   eval "$as_ac_var=yes"
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877         eval "$as_ac_var=no"
17878 fi
17879
17880 rm -f core conftest.err conftest.$ac_objext \
17881       conftest$ac_exeext conftest.$ac_ext
17882 fi
17883 ac_res=`eval echo '${'$as_ac_var'}'`
17884                { echo "$as_me:$LINENO: result: $ac_res" >&5
17885 echo "${ECHO_T}$ac_res" >&6; }
17886 if test `eval echo '${'$as_ac_var'}'` = yes; then
17887   cat >>confdefs.h <<_ACEOF
17888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17889 _ACEOF
17890
17891 fi
17892 done
17893
17894
17895
17896
17897
17898
17899 for ac_func in log log2 log10 exp exp2
17900 do
17901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17905   echo $ECHO_N "(cached) $ECHO_C" >&6
17906 else
17907   cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h.  */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h.  */
17913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17915 #define $ac_func innocuous_$ac_func
17916
17917 /* System header to define __stub macros and hopefully few prototypes,
17918     which can conflict with char $ac_func (); below.
17919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17920     <limits.h> exists even on freestanding compilers.  */
17921
17922 #ifdef __STDC__
17923 # include <limits.h>
17924 #else
17925 # include <assert.h>
17926 #endif
17927
17928 #undef $ac_func
17929
17930 /* Override any GCC internal prototype to avoid an error.
17931    Use char because int might match the return type of a GCC
17932    builtin and then its argument prototype would still apply.  */
17933 #ifdef __cplusplus
17934 extern "C"
17935 #endif
17936 char $ac_func ();
17937 /* The GNU C library defines this for functions which it implements
17938     to always fail with ENOSYS.  Some functions are actually named
17939     something starting with __ and the normal name is an alias.  */
17940 #if defined __stub_$ac_func || defined __stub___$ac_func
17941 choke me
17942 #endif
17943
17944 int
17945 main ()
17946 {
17947 return $ac_func ();
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959   (eval "$ac_link") 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } &&
17966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; } &&
17976          { ac_try='test -s conftest$ac_exeext'
17977   { (case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_try") 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; }; then
17986   eval "$as_ac_var=yes"
17987 else
17988   echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991         eval "$as_ac_var=no"
17992 fi
17993
17994 rm -f core conftest.err conftest.$ac_objext \
17995       conftest$ac_exeext conftest.$ac_ext
17996 fi
17997 ac_res=`eval echo '${'$as_ac_var'}'`
17998                { echo "$as_me:$LINENO: result: $ac_res" >&5
17999 echo "${ECHO_T}$ac_res" >&6; }
18000 if test `eval echo '${'$as_ac_var'}'` = yes; then
18001   cat >>confdefs.h <<_ACEOF
18002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18003 _ACEOF
18004
18005 fi
18006 done
18007
18008
18009
18010
18011
18012
18013 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18014 do
18015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18019   echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021   cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18029 #define $ac_func innocuous_$ac_func
18030
18031 /* System header to define __stub macros and hopefully few prototypes,
18032     which can conflict with char $ac_func (); below.
18033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18034     <limits.h> exists even on freestanding compilers.  */
18035
18036 #ifdef __STDC__
18037 # include <limits.h>
18038 #else
18039 # include <assert.h>
18040 #endif
18041
18042 #undef $ac_func
18043
18044 /* Override any GCC internal prototype to avoid an error.
18045    Use char because int might match the return type of a GCC
18046    builtin and then its argument prototype would still apply.  */
18047 #ifdef __cplusplus
18048 extern "C"
18049 #endif
18050 char $ac_func ();
18051 /* The GNU C library defines this for functions which it implements
18052     to always fail with ENOSYS.  Some functions are actually named
18053     something starting with __ and the normal name is an alias.  */
18054 #if defined __stub_$ac_func || defined __stub___$ac_func
18055 choke me
18056 #endif
18057
18058 int
18059 main ()
18060 {
18061 return $ac_func ();
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (ac_try="$ac_link"
18068 case "(($ac_try" in
18069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070   *) ac_try_echo=$ac_try;;
18071 esac
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073   (eval "$ac_link") 2>conftest.er1
18074   ac_status=$?
18075   grep -v '^ *+' conftest.er1 >conftest.err
18076   rm -f conftest.er1
18077   cat conftest.err >&5
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); } &&
18080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081   { (case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_try") 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; } &&
18090          { ac_try='test -s conftest$ac_exeext'
18091   { (case "(($ac_try" in
18092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093   *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096   (eval "$ac_try") 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   eval "$as_ac_var=yes"
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105         eval "$as_ac_var=no"
18106 fi
18107
18108 rm -f core conftest.err conftest.$ac_objext \
18109       conftest$ac_exeext conftest.$ac_ext
18110 fi
18111 ac_res=`eval echo '${'$as_ac_var'}'`
18112                { echo "$as_me:$LINENO: result: $ac_res" >&5
18113 echo "${ECHO_T}$ac_res" >&6; }
18114 if test `eval echo '${'$as_ac_var'}'` = yes; then
18115   cat >>confdefs.h <<_ACEOF
18116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18117 _ACEOF
18118
18119 fi
18120 done
18121
18122
18123
18124
18125 for ac_func in isatty mkdtemp mkstemp
18126 do
18127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18141 #define $ac_func innocuous_$ac_func
18142
18143 /* System header to define __stub macros and hopefully few prototypes,
18144     which can conflict with char $ac_func (); below.
18145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18146     <limits.h> exists even on freestanding compilers.  */
18147
18148 #ifdef __STDC__
18149 # include <limits.h>
18150 #else
18151 # include <assert.h>
18152 #endif
18153
18154 #undef $ac_func
18155
18156 /* Override any GCC internal prototype to avoid an error.
18157    Use char because int might match the return type of a GCC
18158    builtin and then its argument prototype would still apply.  */
18159 #ifdef __cplusplus
18160 extern "C"
18161 #endif
18162 char $ac_func ();
18163 /* The GNU C library defines this for functions which it implements
18164     to always fail with ENOSYS.  Some functions are actually named
18165     something starting with __ and the normal name is an alias.  */
18166 #if defined __stub_$ac_func || defined __stub___$ac_func
18167 choke me
18168 #endif
18169
18170 int
18171 main ()
18172 {
18173 return $ac_func ();
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (ac_try="$ac_link"
18180 case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185   (eval "$ac_link") 2>conftest.er1
18186   ac_status=$?
18187   grep -v '^ *+' conftest.er1 >conftest.err
18188   rm -f conftest.er1
18189   cat conftest.err >&5
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); } &&
18192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18199   ac_status=$?
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); }; } &&
18202          { ac_try='test -s conftest$ac_exeext'
18203   { (case "(($ac_try" in
18204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205   *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208   (eval "$ac_try") 2>&5
18209   ac_status=$?
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); }; }; then
18212   eval "$as_ac_var=yes"
18213 else
18214   echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18216
18217         eval "$as_ac_var=no"
18218 fi
18219
18220 rm -f core conftest.err conftest.$ac_objext \
18221       conftest$ac_exeext conftest.$ac_ext
18222 fi
18223 ac_res=`eval echo '${'$as_ac_var'}'`
18224                { echo "$as_me:$LINENO: result: $ac_res" >&5
18225 echo "${ECHO_T}$ac_res" >&6; }
18226 if test `eval echo '${'$as_ac_var'}'` = yes; then
18227   cat >>confdefs.h <<_ACEOF
18228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18229 _ACEOF
18230
18231 fi
18232 done
18233
18234
18235
18236
18237
18238
18239
18240 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18241 do
18242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248   cat >conftest.$ac_ext <<_ACEOF
18249 /* confdefs.h.  */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h.  */
18254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18256 #define $ac_func innocuous_$ac_func
18257
18258 /* System header to define __stub macros and hopefully few prototypes,
18259     which can conflict with char $ac_func (); below.
18260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18261     <limits.h> exists even on freestanding compilers.  */
18262
18263 #ifdef __STDC__
18264 # include <limits.h>
18265 #else
18266 # include <assert.h>
18267 #endif
18268
18269 #undef $ac_func
18270
18271 /* Override any GCC internal prototype to avoid an error.
18272    Use char because int might match the return type of a GCC
18273    builtin and then its argument prototype would still apply.  */
18274 #ifdef __cplusplus
18275 extern "C"
18276 #endif
18277 char $ac_func ();
18278 /* The GNU C library defines this for functions which it implements
18279     to always fail with ENOSYS.  Some functions are actually named
18280     something starting with __ and the normal name is an alias.  */
18281 #if defined __stub_$ac_func || defined __stub___$ac_func
18282 choke me
18283 #endif
18284
18285 int
18286 main ()
18287 {
18288 return $ac_func ();
18289   ;
18290   return 0;
18291 }
18292 _ACEOF
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300   (eval "$ac_link") 2>conftest.er1
18301   ac_status=$?
18302   grep -v '^ *+' conftest.er1 >conftest.err
18303   rm -f conftest.er1
18304   cat conftest.err >&5
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); } &&
18307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18308   { (case "(($ac_try" in
18309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310   *) ac_try_echo=$ac_try;;
18311 esac
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313   (eval "$ac_try") 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; } &&
18317          { ac_try='test -s conftest$ac_exeext'
18318   { (case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_try") 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; }; then
18327   eval "$as_ac_var=yes"
18328 else
18329   echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18331
18332         eval "$as_ac_var=no"
18333 fi
18334
18335 rm -f core conftest.err conftest.$ac_objext \
18336       conftest$ac_exeext conftest.$ac_ext
18337 fi
18338 ac_res=`eval echo '${'$as_ac_var'}'`
18339                { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18341 if test `eval echo '${'$as_ac_var'}'` = yes; then
18342   cat >>confdefs.h <<_ACEOF
18343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18344 _ACEOF
18345
18346 fi
18347 done
18348
18349
18350
18351
18352
18353 for ac_func in strerror strerror_r setenv arc4random
18354 do
18355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18359   echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361   cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h.  */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h.  */
18367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18369 #define $ac_func innocuous_$ac_func
18370
18371 /* System header to define __stub macros and hopefully few prototypes,
18372     which can conflict with char $ac_func (); below.
18373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18374     <limits.h> exists even on freestanding compilers.  */
18375
18376 #ifdef __STDC__
18377 # include <limits.h>
18378 #else
18379 # include <assert.h>
18380 #endif
18381
18382 #undef $ac_func
18383
18384 /* Override any GCC internal prototype to avoid an error.
18385    Use char because int might match the return type of a GCC
18386    builtin and then its argument prototype would still apply.  */
18387 #ifdef __cplusplus
18388 extern "C"
18389 #endif
18390 char $ac_func ();
18391 /* The GNU C library defines this for functions which it implements
18392     to always fail with ENOSYS.  Some functions are actually named
18393     something starting with __ and the normal name is an alias.  */
18394 #if defined __stub_$ac_func || defined __stub___$ac_func
18395 choke me
18396 #endif
18397
18398 int
18399 main ()
18400 {
18401 return $ac_func ();
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } &&
18420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421   { (case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_try") 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; } &&
18430          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18440   eval "$as_ac_var=yes"
18441 else
18442   echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445         eval "$as_ac_var=no"
18446 fi
18447
18448 rm -f core conftest.err conftest.$ac_objext \
18449       conftest$ac_exeext conftest.$ac_ext
18450 fi
18451 ac_res=`eval echo '${'$as_ac_var'}'`
18452                { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455   cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18458
18459 fi
18460 done
18461
18462
18463
18464
18465
18466 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18467 do
18468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18482 #define $ac_func innocuous_$ac_func
18483
18484 /* System header to define __stub macros and hopefully few prototypes,
18485     which can conflict with char $ac_func (); below.
18486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18487     <limits.h> exists even on freestanding compilers.  */
18488
18489 #ifdef __STDC__
18490 # include <limits.h>
18491 #else
18492 # include <assert.h>
18493 #endif
18494
18495 #undef $ac_func
18496
18497 /* Override any GCC internal prototype to avoid an error.
18498    Use char because int might match the return type of a GCC
18499    builtin and then its argument prototype would still apply.  */
18500 #ifdef __cplusplus
18501 extern "C"
18502 #endif
18503 char $ac_func ();
18504 /* The GNU C library defines this for functions which it implements
18505     to always fail with ENOSYS.  Some functions are actually named
18506     something starting with __ and the normal name is an alias.  */
18507 #if defined __stub_$ac_func || defined __stub___$ac_func
18508 choke me
18509 #endif
18510
18511 int
18512 main ()
18513 {
18514 return $ac_func ();
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext conftest$ac_exeext
18520 if { (ac_try="$ac_link"
18521 case "(($ac_try" in
18522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523   *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526   (eval "$ac_link") 2>conftest.er1
18527   ac_status=$?
18528   grep -v '^ *+' conftest.er1 >conftest.err
18529   rm -f conftest.er1
18530   cat conftest.err >&5
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } &&
18533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18534   { (case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_try") 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; } &&
18543          { ac_try='test -s conftest$ac_exeext'
18544   { (case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_try") 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; }; then
18553   eval "$as_ac_var=yes"
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558         eval "$as_ac_var=no"
18559 fi
18560
18561 rm -f core conftest.err conftest.$ac_objext \
18562       conftest$ac_exeext conftest.$ac_ext
18563 fi
18564 ac_res=`eval echo '${'$as_ac_var'}'`
18565                { echo "$as_me:$LINENO: result: $ac_res" >&5
18566 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568   cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570 _ACEOF
18571
18572 fi
18573 done
18574
18575
18576
18577
18578
18579
18580 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18581 do
18582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588   cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18596 #define $ac_func innocuous_$ac_func
18597
18598 /* System header to define __stub macros and hopefully few prototypes,
18599     which can conflict with char $ac_func (); below.
18600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601     <limits.h> exists even on freestanding compilers.  */
18602
18603 #ifdef __STDC__
18604 # include <limits.h>
18605 #else
18606 # include <assert.h>
18607 #endif
18608
18609 #undef $ac_func
18610
18611 /* Override any GCC internal prototype to avoid an error.
18612    Use char because int might match the return type of a GCC
18613    builtin and then its argument prototype would still apply.  */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char $ac_func ();
18618 /* The GNU C library defines this for functions which it implements
18619     to always fail with ENOSYS.  Some functions are actually named
18620     something starting with __ and the normal name is an alias.  */
18621 #if defined __stub_$ac_func || defined __stub___$ac_func
18622 choke me
18623 #endif
18624
18625 int
18626 main ()
18627 {
18628 return $ac_func ();
18629   ;
18630   return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_link") 2>conftest.er1
18641   ac_status=$?
18642   grep -v '^ *+' conftest.er1 >conftest.err
18643   rm -f conftest.er1
18644   cat conftest.err >&5
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); } &&
18647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648   { (case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_try") 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; } &&
18657          { ac_try='test -s conftest$ac_exeext'
18658   { (case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_try") 2>&5
18664   ac_status=$?
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); }; }; then
18667   eval "$as_ac_var=yes"
18668 else
18669   echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672         eval "$as_ac_var=no"
18673 fi
18674
18675 rm -f core conftest.err conftest.$ac_objext \
18676       conftest$ac_exeext conftest.$ac_ext
18677 fi
18678 ac_res=`eval echo '${'$as_ac_var'}'`
18679                { echo "$as_me:$LINENO: result: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18681 if test `eval echo '${'$as_ac_var'}'` = yes; then
18682   cat >>confdefs.h <<_ACEOF
18683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18684 _ACEOF
18685
18686 fi
18687 done
18688
18689
18690
18691 for ac_func in futimes futimens
18692 do
18693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18697   echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699   cat >conftest.$ac_ext <<_ACEOF
18700 /* confdefs.h.  */
18701 _ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h.  */
18705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18707 #define $ac_func innocuous_$ac_func
18708
18709 /* System header to define __stub macros and hopefully few prototypes,
18710     which can conflict with char $ac_func (); below.
18711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18712     <limits.h> exists even on freestanding compilers.  */
18713
18714 #ifdef __STDC__
18715 # include <limits.h>
18716 #else
18717 # include <assert.h>
18718 #endif
18719
18720 #undef $ac_func
18721
18722 /* Override any GCC internal prototype to avoid an error.
18723    Use char because int might match the return type of a GCC
18724    builtin and then its argument prototype would still apply.  */
18725 #ifdef __cplusplus
18726 extern "C"
18727 #endif
18728 char $ac_func ();
18729 /* The GNU C library defines this for functions which it implements
18730     to always fail with ENOSYS.  Some functions are actually named
18731     something starting with __ and the normal name is an alias.  */
18732 #if defined __stub_$ac_func || defined __stub___$ac_func
18733 choke me
18734 #endif
18735
18736 int
18737 main ()
18738 {
18739 return $ac_func ();
18740   ;
18741   return 0;
18742 }
18743 _ACEOF
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (ac_try="$ac_link"
18746 case "(($ac_try" in
18747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748   *) ac_try_echo=$ac_try;;
18749 esac
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751   (eval "$ac_link") 2>conftest.er1
18752   ac_status=$?
18753   grep -v '^ *+' conftest.er1 >conftest.err
18754   rm -f conftest.er1
18755   cat conftest.err >&5
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } &&
18758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18759   { (case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_try") 2>&5
18765   ac_status=$?
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); }; } &&
18768          { ac_try='test -s conftest$ac_exeext'
18769   { (case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_try") 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); }; }; then
18778   eval "$as_ac_var=yes"
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783         eval "$as_ac_var=no"
18784 fi
18785
18786 rm -f core conftest.err conftest.$ac_objext \
18787       conftest$ac_exeext conftest.$ac_ext
18788 fi
18789 ac_res=`eval echo '${'$as_ac_var'}'`
18790                { echo "$as_me:$LINENO: result: $ac_res" >&5
18791 echo "${ECHO_T}$ac_res" >&6; }
18792 if test `eval echo '${'$as_ac_var'}'` = yes; then
18793   cat >>confdefs.h <<_ACEOF
18794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18795 _ACEOF
18796
18797 fi
18798 done
18799
18800 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18801 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18802 if test "${llvm_cv_c_printf_a+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   ac_ext=c
18806 ac_cpp='$CPP $CPPFLAGS'
18807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18810
18811  if test "$cross_compiling" = yes; then
18812   llvmac_cv_c_printf_a=no
18813 else
18814   cat >conftest.$ac_ext <<_ACEOF
18815
18816   /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821
18822 #include <stdio.h>
18823 #include <stdlib.h>
18824
18825 int
18826 main ()
18827 {
18828
18829 volatile double A, B;
18830 char Buffer[100];
18831 A = 1;
18832 A /= 10.0;
18833 sprintf(Buffer, "%a", A);
18834 B = atof(Buffer);
18835 if (A != B)
18836   return (1);
18837 if (A != 0x1.999999999999ap-4)
18838   return (1);
18839 return (0);
18840   ;
18841   return 0;
18842 }
18843 _ACEOF
18844 rm -f conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848   *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851   (eval "$ac_link") 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18855   { (case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_try") 2>&5
18861   ac_status=$?
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); }; }; then
18864   llvm_cv_c_printf_a=yes
18865 else
18866   echo "$as_me: program exited with status $ac_status" >&5
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ( exit $ac_status )
18871 llvmac_cv_c_printf_a=no
18872 fi
18873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18874 fi
18875
18876
18877  ac_ext=c
18878 ac_cpp='$CPP $CPPFLAGS'
18879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18882
18883 fi
18884 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18885 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18886  if test "$llvm_cv_c_printf_a" = "yes"; then
18887
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_PRINTF_A 1
18890 _ACEOF
18891
18892  fi
18893
18894
18895
18896   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18897 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18898 if test "${ac_cv_func_rand48+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901
18902     ac_ext=cpp
18903 ac_cpp='$CXXCPP $CPPFLAGS'
18904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18907
18908     cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h.  */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h.  */
18914 #include <stdlib.h>
18915 int
18916 main ()
18917 {
18918 srand48(0);lrand48();drand48();
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext
18924 if { (ac_try="$ac_compile"
18925 case "(($ac_try" in
18926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927   *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930   (eval "$ac_compile") 2>conftest.er1
18931   ac_status=$?
18932   grep -v '^ *+' conftest.er1 >conftest.err
18933   rm -f conftest.er1
18934   cat conftest.err >&5
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } &&
18937          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18938   { (case "(($ac_try" in
18939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940   *) ac_try_echo=$ac_try;;
18941 esac
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943   (eval "$ac_try") 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; } &&
18947          { ac_try='test -s conftest.$ac_objext'
18948   { (case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_try") 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   ac_cv_func_rand48=yes
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962         ac_cv_func_rand48=no
18963 fi
18964
18965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18966     ac_ext=c
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18971
18972
18973 fi
18974 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18975 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18976
18977 if test "$ac_cv_func_rand48" = "yes" ; then
18978
18979 cat >>confdefs.h <<\_ACEOF
18980 #define HAVE_RAND48 1
18981 _ACEOF
18982
18983 fi
18984
18985
18986 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18987 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18988 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997 $ac_includes_default
18998 int
18999 main ()
19000 {
19001 #ifndef strerror_s
19002   char *p = (char *) strerror_s;
19003   return !p;
19004 #endif
19005
19006   ;
19007   return 0;
19008 }
19009 _ACEOF
19010 rm -f conftest.$ac_objext
19011 if { (ac_try="$ac_compile"
19012 case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_compile") 2>conftest.er1
19018   ac_status=$?
19019   grep -v '^ *+' conftest.er1 >conftest.err
19020   rm -f conftest.er1
19021   cat conftest.err >&5
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); } &&
19024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19025   { (case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_try") 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); }; } &&
19034          { ac_try='test -s conftest.$ac_objext'
19035   { (case "(($ac_try" in
19036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037   *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040   (eval "$ac_try") 2>&5
19041   ac_status=$?
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); }; }; then
19044   ac_cv_have_decl_strerror_s=yes
19045 else
19046   echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19048
19049         ac_cv_have_decl_strerror_s=no
19050 fi
19051
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19053 fi
19054 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19055 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19056 if test $ac_cv_have_decl_strerror_s = yes; then
19057
19058 cat >>confdefs.h <<_ACEOF
19059 #define HAVE_DECL_STRERROR_S 1
19060 _ACEOF
19061
19062
19063 else
19064   cat >>confdefs.h <<_ACEOF
19065 #define HAVE_DECL_STRERROR_S 0
19066 _ACEOF
19067
19068
19069 fi
19070
19071
19072
19073 if test "$llvm_cv_os_type" = "MingW" ; then
19074   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19075 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   ac_check_lib_save_LIBS=$LIBS
19080 LIBS="-lgcc  $LIBS"
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089    Use char because int might match the return type of a GCC
19090    builtin and then its argument prototype would still apply.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char _alloca ();
19095 int
19096 main ()
19097 {
19098 return _alloca ();
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_link") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } &&
19117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; } &&
19127          { ac_try='test -s conftest$ac_exeext'
19128   { (case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_try") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_lib_gcc__alloca=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142         ac_cv_lib_gcc__alloca=no
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext \
19146       conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19148 fi
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19150 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19151 if test $ac_cv_lib_gcc__alloca = yes; then
19152
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE__ALLOCA 1
19155 _ACEOF
19156
19157 fi
19158
19159   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19160 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lgcc  $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174    Use char because int might match the return type of a GCC
19175    builtin and then its argument prototype would still apply.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char __alloca ();
19180 int
19181 main ()
19182 {
19183 return __alloca ();
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192   *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195   (eval "$ac_link") 2>conftest.er1
19196   ac_status=$?
19197   grep -v '^ *+' conftest.er1 >conftest.err
19198   rm -f conftest.er1
19199   cat conftest.err >&5
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); } &&
19202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; } &&
19212          { ac_try='test -s conftest$ac_exeext'
19213   { (case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218   (eval "$ac_try") 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; }; then
19222   ac_cv_lib_gcc___alloca=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         ac_cv_lib_gcc___alloca=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext \
19231       conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19233 fi
19234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19235 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19236 if test $ac_cv_lib_gcc___alloca = yes; then
19237
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE___ALLOCA 1
19240 _ACEOF
19241
19242 fi
19243
19244   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19245 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19246 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   ac_check_lib_save_LIBS=$LIBS
19250 LIBS="-lgcc  $LIBS"
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h.  */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h.  */
19257
19258 /* Override any GCC internal prototype to avoid an error.
19259    Use char because int might match the return type of a GCC
19260    builtin and then its argument prototype would still apply.  */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 char __chkstk ();
19265 int
19266 main ()
19267 {
19268 return __chkstk ();
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277   *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280   (eval "$ac_link") 2>conftest.er1
19281   ac_status=$?
19282   grep -v '^ *+' conftest.er1 >conftest.err
19283   rm -f conftest.er1
19284   cat conftest.err >&5
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); } &&
19287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; } &&
19297          { ac_try='test -s conftest$ac_exeext'
19298   { (case "(($ac_try" in
19299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300   *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303   (eval "$ac_try") 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307   ac_cv_lib_gcc___chkstk=yes
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312         ac_cv_lib_gcc___chkstk=no
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext \
19316       conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19318 fi
19319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19320 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19321 if test $ac_cv_lib_gcc___chkstk = yes; then
19322
19323 cat >>confdefs.h <<\_ACEOF
19324 #define HAVE___CHKSTK 1
19325 _ACEOF
19326
19327 fi
19328
19329   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19330 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19331 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19332   echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334   ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lgcc  $LIBS"
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342
19343 /* Override any GCC internal prototype to avoid an error.
19344    Use char because int might match the return type of a GCC
19345    builtin and then its argument prototype would still apply.  */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char ___chkstk ();
19350 int
19351 main ()
19352 {
19353 return ___chkstk ();
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (ac_try="$ac_link"
19360 case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_link") 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest$ac_exeext'
19383   { (case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_try") 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_lib_gcc____chkstk=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397         ac_cv_lib_gcc____chkstk=no
19398 fi
19399
19400 rm -f core conftest.err conftest.$ac_objext \
19401       conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19403 fi
19404 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19405 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19406 if test $ac_cv_lib_gcc____chkstk = yes; then
19407
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE____CHKSTK 1
19410 _ACEOF
19411
19412 fi
19413
19414
19415   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19416 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-lgcc  $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 /* Override any GCC internal prototype to avoid an error.
19430    Use char because int might match the return type of a GCC
19431    builtin and then its argument prototype would still apply.  */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char __ashldi3 ();
19436 int
19437 main ()
19438 {
19439 return __ashldi3 ();
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448   *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451   (eval "$ac_link") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest$ac_exeext'
19469   { (case "(($ac_try" in
19470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471   *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474   (eval "$ac_try") 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_lib_gcc___ashldi3=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483         ac_cv_lib_gcc___ashldi3=no
19484 fi
19485
19486 rm -f core conftest.err conftest.$ac_objext \
19487       conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19489 fi
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19492 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___ASHLDI3 1
19496 _ACEOF
19497
19498 fi
19499
19500   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19501 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   ac_check_lib_save_LIBS=$LIBS
19506 LIBS="-lgcc  $LIBS"
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514 /* Override any GCC internal prototype to avoid an error.
19515    Use char because int might match the return type of a GCC
19516    builtin and then its argument prototype would still apply.  */
19517 #ifdef __cplusplus
19518 extern "C"
19519 #endif
19520 char __ashrdi3 ();
19521 int
19522 main ()
19523 {
19524 return __ashrdi3 ();
19525   ;
19526   return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_link") 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } &&
19543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19544   { (case "(($ac_try" in
19545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546   *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549   (eval "$ac_try") 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest$ac_exeext'
19554   { (case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_try") 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; }; then
19563   ac_cv_lib_gcc___ashrdi3=yes
19564 else
19565   echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568         ac_cv_lib_gcc___ashrdi3=no
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext \
19572       conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19574 fi
19575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19576 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19577 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19578
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE___ASHRDI3 1
19581 _ACEOF
19582
19583 fi
19584
19585   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19586 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-lgcc  $LIBS"
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598
19599 /* Override any GCC internal prototype to avoid an error.
19600    Use char because int might match the return type of a GCC
19601    builtin and then its argument prototype would still apply.  */
19602 #ifdef __cplusplus
19603 extern "C"
19604 #endif
19605 char __divdi3 ();
19606 int
19607 main ()
19608 {
19609 return __divdi3 ();
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_link") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629   { (case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_try") 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest$ac_exeext'
19639   { (case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_try") 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   ac_cv_lib_gcc___divdi3=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_cv_lib_gcc___divdi3=no
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext \
19657       conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19659 fi
19660 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19661 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19662 if test $ac_cv_lib_gcc___divdi3 = yes; then
19663
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE___DIVDI3 1
19666 _ACEOF
19667
19668 fi
19669
19670   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19671 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19672 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-lgcc  $LIBS"
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683
19684 /* Override any GCC internal prototype to avoid an error.
19685    Use char because int might match the return type of a GCC
19686    builtin and then its argument prototype would still apply.  */
19687 #ifdef __cplusplus
19688 extern "C"
19689 #endif
19690 char __fixdfdi ();
19691 int
19692 main ()
19693 {
19694 return __fixdfdi ();
19695   ;
19696   return 0;
19697 }
19698 _ACEOF
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703   *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706   (eval "$ac_link") 2>conftest.er1
19707   ac_status=$?
19708   grep -v '^ *+' conftest.er1 >conftest.err
19709   rm -f conftest.er1
19710   cat conftest.err >&5
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); } &&
19713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19714   { (case "(($ac_try" in
19715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716   *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719   (eval "$ac_try") 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; } &&
19723          { ac_try='test -s conftest$ac_exeext'
19724   { (case "(($ac_try" in
19725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726   *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729   (eval "$ac_try") 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; }; then
19733   ac_cv_lib_gcc___fixdfdi=yes
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738         ac_cv_lib_gcc___fixdfdi=no
19739 fi
19740
19741 rm -f core conftest.err conftest.$ac_objext \
19742       conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19744 fi
19745 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19746 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19747 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE___FIXDFDI 1
19751 _ACEOF
19752
19753 fi
19754
19755   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19756 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19757 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   ac_check_lib_save_LIBS=$LIBS
19761 LIBS="-lgcc  $LIBS"
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768
19769 /* Override any GCC internal prototype to avoid an error.
19770    Use char because int might match the return type of a GCC
19771    builtin and then its argument prototype would still apply.  */
19772 #ifdef __cplusplus
19773 extern "C"
19774 #endif
19775 char __fixsfdi ();
19776 int
19777 main ()
19778 {
19779 return __fixsfdi ();
19780   ;
19781   return 0;
19782 }
19783 _ACEOF
19784 rm -f conftest.$ac_objext conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788   *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791   (eval "$ac_link") 2>conftest.er1
19792   ac_status=$?
19793   grep -v '^ *+' conftest.er1 >conftest.err
19794   rm -f conftest.er1
19795   cat conftest.err >&5
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); } &&
19798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19799   { (case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804   (eval "$ac_try") 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; } &&
19808          { ac_try='test -s conftest$ac_exeext'
19809   { (case "(($ac_try" in
19810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811   *) ac_try_echo=$ac_try;;
19812 esac
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814   (eval "$ac_try") 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }; }; then
19818   ac_cv_lib_gcc___fixsfdi=yes
19819 else
19820   echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823         ac_cv_lib_gcc___fixsfdi=no
19824 fi
19825
19826 rm -f core conftest.err conftest.$ac_objext \
19827       conftest$ac_exeext conftest.$ac_ext
19828 LIBS=$ac_check_lib_save_LIBS
19829 fi
19830 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19831 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19832 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19833
19834 cat >>confdefs.h <<\_ACEOF
19835 #define HAVE___FIXSFDI 1
19836 _ACEOF
19837
19838 fi
19839
19840   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19841 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19842 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-lgcc  $LIBS"
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853
19854 /* Override any GCC internal prototype to avoid an error.
19855    Use char because int might match the return type of a GCC
19856    builtin and then its argument prototype would still apply.  */
19857 #ifdef __cplusplus
19858 extern "C"
19859 #endif
19860 char __floatdidf ();
19861 int
19862 main ()
19863 {
19864 return __floatdidf ();
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_link") 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19884   { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; } &&
19893          { ac_try='test -s conftest$ac_exeext'
19894   { (case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_try") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; }; then
19903   ac_cv_lib_gcc___floatdidf=yes
19904 else
19905   echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908         ac_cv_lib_gcc___floatdidf=no
19909 fi
19910
19911 rm -f core conftest.err conftest.$ac_objext \
19912       conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19914 fi
19915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19916 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19917 if test $ac_cv_lib_gcc___floatdidf = yes; then
19918
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE___FLOATDIDF 1
19921 _ACEOF
19922
19923 fi
19924
19925   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19926 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19927 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930   ac_check_lib_save_LIBS=$LIBS
19931 LIBS="-lgcc  $LIBS"
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938
19939 /* Override any GCC internal prototype to avoid an error.
19940    Use char because int might match the return type of a GCC
19941    builtin and then its argument prototype would still apply.  */
19942 #ifdef __cplusplus
19943 extern "C"
19944 #endif
19945 char __lshrdi3 ();
19946 int
19947 main ()
19948 {
19949 return __lshrdi3 ();
19950   ;
19951   return 0;
19952 }
19953 _ACEOF
19954 rm -f conftest.$ac_objext conftest$ac_exeext
19955 if { (ac_try="$ac_link"
19956 case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_link") 2>conftest.er1
19962   ac_status=$?
19963   grep -v '^ *+' conftest.er1 >conftest.err
19964   rm -f conftest.er1
19965   cat conftest.err >&5
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); } &&
19968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; } &&
19978          { ac_try='test -s conftest$ac_exeext'
19979   { (case "(($ac_try" in
19980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981   *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984   (eval "$ac_try") 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; }; then
19988   ac_cv_lib_gcc___lshrdi3=yes
19989 else
19990   echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993         ac_cv_lib_gcc___lshrdi3=no
19994 fi
19995
19996 rm -f core conftest.err conftest.$ac_objext \
19997       conftest$ac_exeext conftest.$ac_ext
19998 LIBS=$ac_check_lib_save_LIBS
19999 fi
20000 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20001 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20002 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20003
20004 cat >>confdefs.h <<\_ACEOF
20005 #define HAVE___LSHRDI3 1
20006 _ACEOF
20007
20008 fi
20009
20010   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20011 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20012 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20013   echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015   ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lgcc  $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023
20024 /* Override any GCC internal prototype to avoid an error.
20025    Use char because int might match the return type of a GCC
20026    builtin and then its argument prototype would still apply.  */
20027 #ifdef __cplusplus
20028 extern "C"
20029 #endif
20030 char __moddi3 ();
20031 int
20032 main ()
20033 {
20034 return __moddi3 ();
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043   *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046   (eval "$ac_link") 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } &&
20053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20060   ac_status=$?
20061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062   (exit $ac_status); }; } &&
20063          { ac_try='test -s conftest$ac_exeext'
20064   { (case "(($ac_try" in
20065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066   *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069   (eval "$ac_try") 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_cv_lib_gcc___moddi3=yes
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078         ac_cv_lib_gcc___moddi3=no
20079 fi
20080
20081 rm -f core conftest.err conftest.$ac_objext \
20082       conftest$ac_exeext conftest.$ac_ext
20083 LIBS=$ac_check_lib_save_LIBS
20084 fi
20085 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20086 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20087 if test $ac_cv_lib_gcc___moddi3 = yes; then
20088
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE___MODDI3 1
20091 _ACEOF
20092
20093 fi
20094
20095   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20096 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20097 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20098   echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100   ac_check_lib_save_LIBS=$LIBS
20101 LIBS="-lgcc  $LIBS"
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h.  */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h.  */
20108
20109 /* Override any GCC internal prototype to avoid an error.
20110    Use char because int might match the return type of a GCC
20111    builtin and then its argument prototype would still apply.  */
20112 #ifdef __cplusplus
20113 extern "C"
20114 #endif
20115 char __udivdi3 ();
20116 int
20117 main ()
20118 {
20119 return __udivdi3 ();
20120   ;
20121   return 0;
20122 }
20123 _ACEOF
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (ac_try="$ac_link"
20126 case "(($ac_try" in
20127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128   *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131   (eval "$ac_link") 2>conftest.er1
20132   ac_status=$?
20133   grep -v '^ *+' conftest.er1 >conftest.err
20134   rm -f conftest.er1
20135   cat conftest.err >&5
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); } &&
20138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20139   { (case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_try") 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; } &&
20148          { ac_try='test -s conftest$ac_exeext'
20149   { (case "(($ac_try" in
20150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151   *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154   (eval "$ac_try") 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; }; then
20158   ac_cv_lib_gcc___udivdi3=yes
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163         ac_cv_lib_gcc___udivdi3=no
20164 fi
20165
20166 rm -f core conftest.err conftest.$ac_objext \
20167       conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20169 fi
20170 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20171 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20172 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20173
20174 cat >>confdefs.h <<\_ACEOF
20175 #define HAVE___UDIVDI3 1
20176 _ACEOF
20177
20178 fi
20179
20180   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20181 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20182 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185   ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lgcc  $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193
20194 /* Override any GCC internal prototype to avoid an error.
20195    Use char because int might match the return type of a GCC
20196    builtin and then its argument prototype would still apply.  */
20197 #ifdef __cplusplus
20198 extern "C"
20199 #endif
20200 char __umoddi3 ();
20201 int
20202 main ()
20203 {
20204 return __umoddi3 ();
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216   (eval "$ac_link") 2>conftest.er1
20217   ac_status=$?
20218   grep -v '^ *+' conftest.er1 >conftest.err
20219   rm -f conftest.er1
20220   cat conftest.err >&5
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); } &&
20223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20224   { (case "(($ac_try" in
20225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226   *) ac_try_echo=$ac_try;;
20227 esac
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229   (eval "$ac_try") 2>&5
20230   ac_status=$?
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); }; } &&
20233          { ac_try='test -s conftest$ac_exeext'
20234   { (case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_try") 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_lib_gcc___umoddi3=yes
20244 else
20245   echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248         ac_cv_lib_gcc___umoddi3=no
20249 fi
20250
20251 rm -f core conftest.err conftest.$ac_objext \
20252       conftest$ac_exeext conftest.$ac_ext
20253 LIBS=$ac_check_lib_save_LIBS
20254 fi
20255 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20256 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20257 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20258
20259 cat >>confdefs.h <<\_ACEOF
20260 #define HAVE___UMODDI3 1
20261 _ACEOF
20262
20263 fi
20264
20265
20266   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20267 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20268 if test "${ac_cv_lib_gcc___main+set}" = set; then
20269   echo $ECHO_N "(cached) $ECHO_C" >&6
20270 else
20271   ac_check_lib_save_LIBS=$LIBS
20272 LIBS="-lgcc  $LIBS"
20273 cat >conftest.$ac_ext <<_ACEOF
20274 /* confdefs.h.  */
20275 _ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h.  */
20279
20280 /* Override any GCC internal prototype to avoid an error.
20281    Use char because int might match the return type of a GCC
20282    builtin and then its argument prototype would still apply.  */
20283 #ifdef __cplusplus
20284 extern "C"
20285 #endif
20286 char __main ();
20287 int
20288 main ()
20289 {
20290 return __main ();
20291   ;
20292   return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299   *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302   (eval "$ac_link") 2>conftest.er1
20303   ac_status=$?
20304   grep -v '^ *+' conftest.er1 >conftest.err
20305   rm -f conftest.er1
20306   cat conftest.err >&5
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } &&
20309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310   { (case "(($ac_try" in
20311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312   *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315   (eval "$ac_try") 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); }; } &&
20319          { ac_try='test -s conftest$ac_exeext'
20320   { (case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325   (eval "$ac_try") 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   ac_cv_lib_gcc___main=yes
20330 else
20331   echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334         ac_cv_lib_gcc___main=no
20335 fi
20336
20337 rm -f core conftest.err conftest.$ac_objext \
20338       conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20340 fi
20341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20342 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20343 if test $ac_cv_lib_gcc___main = yes; then
20344
20345 cat >>confdefs.h <<\_ACEOF
20346 #define HAVE___MAIN 1
20347 _ACEOF
20348
20349 fi
20350
20351   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20352 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   ac_check_lib_save_LIBS=$LIBS
20357 LIBS="-lgcc  $LIBS"
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364
20365 /* Override any GCC internal prototype to avoid an error.
20366    Use char because int might match the return type of a GCC
20367    builtin and then its argument prototype would still apply.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char __cmpdi2 ();
20372 int
20373 main ()
20374 {
20375 return __cmpdi2 ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } &&
20394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395   { (case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_try") 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest$ac_exeext'
20405   { (case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_try") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   ac_cv_lib_gcc___cmpdi2=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419         ac_cv_lib_gcc___cmpdi2=no
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext \
20423       conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20427 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20428 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20429
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE___CMPDI2 1
20432 _ACEOF
20433
20434 fi
20435
20436 fi
20437
20438 if test "$llvm_cv_os_type" = "MingW" ; then
20439   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20440 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20441   cat >conftest.$ac_ext <<_ACEOF
20442
20443   /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448
20449     #include <windows.h>
20450     #include <imagehlp.h>
20451     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20452     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20453
20454
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_compile") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } &&
20470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20471   { (case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_try") 2>&5
20477   ac_status=$?
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; } &&
20480          { ac_try='test -s conftest.$ac_objext'
20481   { (case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486   (eval "$ac_try") 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; }; then
20490
20491   { echo "$as_me:$LINENO: result: yes" >&5
20492 echo "${ECHO_T}yes" >&6; }
20493   llvm_cv_win32_elmcb_pcstr="PCSTR"
20494
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499
20500   { echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6; }
20502   llvm_cv_win32_elmcb_pcstr="PSTR"
20503
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507
20508 cat >>confdefs.h <<_ACEOF
20509 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20510 _ACEOF
20511
20512 fi
20513
20514
20515
20516   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20517 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20518 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521
20522     ac_ext=cpp
20523 ac_cpp='$CXXCPP $CPPFLAGS'
20524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20527
20528     cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534 #include <math.h>
20535 int
20536 main ()
20537 {
20538 float f; isnan(f);
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_compile") 2>conftest.er1
20551   ac_status=$?
20552   grep -v '^ *+' conftest.er1 >conftest.err
20553   rm -f conftest.er1
20554   cat conftest.err >&5
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } &&
20557          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20558   { (case "(($ac_try" in
20559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560   *) ac_try_echo=$ac_try;;
20561 esac
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563   (eval "$ac_try") 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; } &&
20567          { ac_try='test -s conftest.$ac_objext'
20568   { (case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573   (eval "$ac_try") 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; }; then
20577   ac_cv_func_isnan_in_math_h=yes
20578 else
20579   echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582         ac_cv_func_isnan_in_math_h=no
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586     ac_ext=c
20587 ac_cpp='$CPP $CPPFLAGS'
20588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20591
20592
20593 fi
20594 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20595 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20596
20597
20598 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20599
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_ISNAN_IN_MATH_H 1
20602 _ACEOF
20603
20604 fi
20605
20606
20607   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20608 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20609 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20610   echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612
20613     ac_ext=cpp
20614 ac_cpp='$CXXCPP $CPPFLAGS'
20615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20618
20619     cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <cmath>
20626 int
20627 main ()
20628 {
20629 float f; isnan(f);
20630   ;
20631   return 0;
20632 }
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641   (eval "$ac_compile") 2>conftest.er1
20642   ac_status=$?
20643   grep -v '^ *+' conftest.er1 >conftest.err
20644   rm -f conftest.er1
20645   cat conftest.err >&5
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); } &&
20648          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20649   { (case "(($ac_try" in
20650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651   *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654   (eval "$ac_try") 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; } &&
20658          { ac_try='test -s conftest.$ac_objext'
20659   { (case "(($ac_try" in
20660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661   *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664   (eval "$ac_try") 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; }; then
20668   ac_cv_func_isnan_in_cmath=yes
20669 else
20670   echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20672
20673         ac_cv_func_isnan_in_cmath=no
20674 fi
20675
20676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677     ac_ext=c
20678 ac_cpp='$CPP $CPPFLAGS'
20679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20682
20683
20684 fi
20685 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20686 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20687
20688 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_ISNAN_IN_CMATH 1
20692 _ACEOF
20693
20694 fi
20695
20696
20697   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20698 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20699 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20700   echo $ECHO_N "(cached) $ECHO_C" >&6
20701 else
20702
20703     ac_ext=cpp
20704 ac_cpp='$CXXCPP $CPPFLAGS'
20705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20708
20709     cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715 #include <cmath>
20716 int
20717 main ()
20718 {
20719 float f; std::isnan(f);
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (ac_try="$ac_compile"
20726 case "(($ac_try" in
20727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728   *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731   (eval "$ac_compile") 2>conftest.er1
20732   ac_status=$?
20733   grep -v '^ *+' conftest.er1 >conftest.err
20734   rm -f conftest.er1
20735   cat conftest.err >&5
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } &&
20738          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20739   { (case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_try") 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; } &&
20748          { ac_try='test -s conftest.$ac_objext'
20749   { (case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_try") 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); }; }; then
20758   ac_cv_func_std_isnan_in_cmath=yes
20759 else
20760   echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763         ac_cv_func_std_isnan_in_cmath=no
20764 fi
20765
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767     ac_ext=c
20768 ac_cpp='$CPP $CPPFLAGS'
20769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20772
20773
20774 fi
20775 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20776 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20777
20778 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_STD_ISNAN_IN_CMATH 1
20782 _ACEOF
20783
20784 fi
20785
20786
20787
20788
20789   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20790 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20791 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20792   echo $ECHO_N "(cached) $ECHO_C" >&6
20793 else
20794
20795     ac_ext=cpp
20796 ac_cpp='$CXXCPP $CPPFLAGS'
20797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20800
20801     cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807 #include <math.h>
20808 int
20809 main ()
20810 {
20811 float f; isinf(f);
20812   ;
20813   return 0;
20814 }
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_compile") 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } &&
20830          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20831   { (case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_try") 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; } &&
20840          { ac_try='test -s conftest.$ac_objext'
20841   { (case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_try") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_cv_func_isinf_in_math_h=yes
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         ac_cv_func_isinf_in_math_h=no
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859     ac_ext=c
20860 ac_cpp='$CPP $CPPFLAGS'
20861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20864
20865
20866 fi
20867 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20868 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20869
20870 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20871
20872 cat >>confdefs.h <<\_ACEOF
20873 #define HAVE_ISINF_IN_MATH_H 1
20874 _ACEOF
20875
20876 fi
20877
20878
20879   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20880 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20881 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20882   echo $ECHO_N "(cached) $ECHO_C" >&6
20883 else
20884
20885     ac_ext=cpp
20886 ac_cpp='$CXXCPP $CPPFLAGS'
20887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20890
20891     cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h.  */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h.  */
20897 #include <cmath>
20898 int
20899 main ()
20900 {
20901 float f; isinf(f);
20902   ;
20903   return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (ac_try="$ac_compile"
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_compile") 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); } &&
20920          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20921   { (case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_try") 2>&5
20927   ac_status=$?
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); }; } &&
20930          { ac_try='test -s conftest.$ac_objext'
20931   { (case "(($ac_try" in
20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933   *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936   (eval "$ac_try") 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); }; }; then
20940   ac_cv_func_isinf_in_cmath=yes
20941 else
20942   echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945         ac_cv_func_isinf_in_cmath=no
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949     ac_ext=c
20950 ac_cpp='$CPP $CPPFLAGS'
20951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20954
20955
20956 fi
20957 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20958 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20959
20960 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_ISINF_IN_CMATH 1
20964 _ACEOF
20965
20966 fi
20967
20968
20969   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20970 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20971 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974
20975     ac_ext=cpp
20976 ac_cpp='$CXXCPP $CPPFLAGS'
20977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20980
20981     cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 #include <cmath>
20988 int
20989 main ()
20990 {
20991 float f; std::isinf(f);
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_compile") 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } &&
21010          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21011   { (case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_try") 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; } &&
21020          { ac_try='test -s conftest.$ac_objext'
21021   { (case "(($ac_try" in
21022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023   *) ac_try_echo=$ac_try;;
21024 esac
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026   (eval "$ac_try") 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; }; then
21030   ac_cv_func_std_isinf_in_cmath=yes
21031 else
21032   echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035         ac_cv_func_std_isinf_in_cmath=no
21036 fi
21037
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039     ac_ext=c
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21044
21045
21046 fi
21047 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21048 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21049
21050 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21051
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_STD_ISINF_IN_CMATH 1
21054 _ACEOF
21055
21056 fi
21057
21058
21059   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21060 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21061 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21062   echo $ECHO_N "(cached) $ECHO_C" >&6
21063 else
21064
21065     ac_ext=cpp
21066 ac_cpp='$CXXCPP $CPPFLAGS'
21067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21070
21071     cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <ieeefp.h>
21078 int
21079 main ()
21080 {
21081 float f; finite(f);
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (ac_try="$ac_compile"
21088 case "(($ac_try" in
21089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090   *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093   (eval "$ac_compile") 2>conftest.er1
21094   ac_status=$?
21095   grep -v '^ *+' conftest.er1 >conftest.err
21096   rm -f conftest.er1
21097   cat conftest.err >&5
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } &&
21100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21101   { (case "(($ac_try" in
21102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103   *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106   (eval "$ac_try") 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; } &&
21110          { ac_try='test -s conftest.$ac_objext'
21111   { (case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_try") 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); }; }; then
21120   ac_cv_func_finite_in_ieeefp_h=yes
21121 else
21122   echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21124
21125         ac_cv_func_finite_in_ieeefp_h=no
21126 fi
21127
21128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21129     ac_ext=c
21130 ac_cpp='$CPP $CPPFLAGS'
21131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21134
21135
21136 fi
21137 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21138 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21139
21140 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21141
21142 cat >>confdefs.h <<\_ACEOF
21143 #define HAVE_FINITE_IN_IEEEFP_H 1
21144 _ACEOF
21145
21146 fi
21147
21148
21149
21150 if test "$llvm_cv_platform_type" = "Unix" ; then
21151
21152
21153 for ac_header in stdlib.h unistd.h
21154 do
21155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21160   echo $ECHO_N "(cached) $ECHO_C" >&6
21161 fi
21162 ac_res=`eval echo '${'$as_ac_Header'}'`
21163                { echo "$as_me:$LINENO: result: $ac_res" >&5
21164 echo "${ECHO_T}$ac_res" >&6; }
21165 else
21166   # Is the header compilable?
21167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h.  */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h.  */
21175 $ac_includes_default
21176 #include <$ac_header>
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } &&
21192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21193   { (case "(($ac_try" in
21194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195   *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198   (eval "$ac_try") 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; } &&
21202          { ac_try='test -s conftest.$ac_objext'
21203   { (case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_try") 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; }; then
21212   ac_header_compiler=yes
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217         ac_header_compiler=no
21218 fi
21219
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21222 echo "${ECHO_T}$ac_header_compiler" >&6; }
21223
21224 # Is the header present?
21225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21227 cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h.  */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h.  */
21233 #include <$ac_header>
21234 _ACEOF
21235 if { (ac_try="$ac_cpp conftest.$ac_ext"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21242   ac_status=$?
21243   grep -v '^ *+' conftest.er1 >conftest.err
21244   rm -f conftest.er1
21245   cat conftest.err >&5
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); } >/dev/null; then
21248   if test -s conftest.err; then
21249     ac_cpp_err=$ac_c_preproc_warn_flag
21250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21251   else
21252     ac_cpp_err=
21253   fi
21254 else
21255   ac_cpp_err=yes
21256 fi
21257 if test -z "$ac_cpp_err"; then
21258   ac_header_preproc=yes
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263   ac_header_preproc=no
21264 fi
21265
21266 rm -f conftest.err conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21268 echo "${ECHO_T}$ac_header_preproc" >&6; }
21269
21270 # So?  What about this header?
21271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21272   yes:no: )
21273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21277     ac_header_preproc=yes
21278     ;;
21279   no:yes:* )
21280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21292     ( cat <<\_ASBOX
21293 ## ------------------------------------ ##
21294 ## Report this to http://llvm.org/bugs/ ##
21295 ## ------------------------------------ ##
21296 _ASBOX
21297      ) | sed "s/^/$as_me: WARNING:     /" >&2
21298     ;;
21299 esac
21300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21303   echo $ECHO_N "(cached) $ECHO_C" >&6
21304 else
21305   eval "$as_ac_Header=\$ac_header_preproc"
21306 fi
21307 ac_res=`eval echo '${'$as_ac_Header'}'`
21308                { echo "$as_me:$LINENO: result: $ac_res" >&5
21309 echo "${ECHO_T}$ac_res" >&6; }
21310
21311 fi
21312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21313   cat >>confdefs.h <<_ACEOF
21314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21315 _ACEOF
21316
21317 fi
21318
21319 done
21320
21321
21322 for ac_func in getpagesize
21323 do
21324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21328   echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330   cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21338 #define $ac_func innocuous_$ac_func
21339
21340 /* System header to define __stub macros and hopefully few prototypes,
21341     which can conflict with char $ac_func (); below.
21342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21343     <limits.h> exists even on freestanding compilers.  */
21344
21345 #ifdef __STDC__
21346 # include <limits.h>
21347 #else
21348 # include <assert.h>
21349 #endif
21350
21351 #undef $ac_func
21352
21353 /* Override any GCC internal prototype to avoid an error.
21354    Use char because int might match the return type of a GCC
21355    builtin and then its argument prototype would still apply.  */
21356 #ifdef __cplusplus
21357 extern "C"
21358 #endif
21359 char $ac_func ();
21360 /* The GNU C library defines this for functions which it implements
21361     to always fail with ENOSYS.  Some functions are actually named
21362     something starting with __ and the normal name is an alias.  */
21363 #if defined __stub_$ac_func || defined __stub___$ac_func
21364 choke me
21365 #endif
21366
21367 int
21368 main ()
21369 {
21370 return $ac_func ();
21371   ;
21372   return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (ac_try="$ac_link"
21377 case "(($ac_try" in
21378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379   *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382   (eval "$ac_link") 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } &&
21389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21390   { (case "(($ac_try" in
21391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392   *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395   (eval "$ac_try") 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; } &&
21399          { ac_try='test -s conftest$ac_exeext'
21400   { (case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_try") 2>&5
21406   ac_status=$?
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); }; }; then
21409   eval "$as_ac_var=yes"
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414         eval "$as_ac_var=no"
21415 fi
21416
21417 rm -f core conftest.err conftest.$ac_objext \
21418       conftest$ac_exeext conftest.$ac_ext
21419 fi
21420 ac_res=`eval echo '${'$as_ac_var'}'`
21421                { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_var'}'` = yes; then
21424   cat >>confdefs.h <<_ACEOF
21425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21426 _ACEOF
21427
21428 fi
21429 done
21430
21431 { echo "$as_me:$LINENO: checking for working mmap" >&5
21432 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21434   echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436   if test "$cross_compiling" = yes; then
21437   ac_cv_func_mmap_fixed_mapped=no
21438 else
21439   cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 $ac_includes_default
21446 /* malloc might have been renamed as rpl_malloc. */
21447 #undef malloc
21448
21449 /* Thanks to Mike Haertel and Jim Avera for this test.
21450    Here is a matrix of mmap possibilities:
21451         mmap private not fixed
21452         mmap private fixed at somewhere currently unmapped
21453         mmap private fixed at somewhere already mapped
21454         mmap shared not fixed
21455         mmap shared fixed at somewhere currently unmapped
21456         mmap shared fixed at somewhere already mapped
21457    For private mappings, we should verify that changes cannot be read()
21458    back from the file, nor mmap's back from the file at a different
21459    address.  (There have been systems where private was not correctly
21460    implemented like the infamous i386 svr4.0, and systems where the
21461    VM page cache was not coherent with the file system buffer cache
21462    like early versions of FreeBSD and possibly contemporary NetBSD.)
21463    For shared mappings, we should conversely verify that changes get
21464    propagated back to all the places they're supposed to be.
21465
21466    Grep wants private fixed already mapped.
21467    The main things grep needs to know about mmap are:
21468    * does it exist and is it safe to write into the mmap'd area
21469    * how to use it (BSD variants)  */
21470
21471 #include <fcntl.h>
21472 #include <sys/mman.h>
21473
21474 #if !STDC_HEADERS && !HAVE_STDLIB_H
21475 char *malloc ();
21476 #endif
21477
21478 /* This mess was copied from the GNU getpagesize.h.  */
21479 #if !HAVE_GETPAGESIZE
21480 /* Assume that all systems that can run configure have sys/param.h.  */
21481 # if !HAVE_SYS_PARAM_H
21482 #  define HAVE_SYS_PARAM_H 1
21483 # endif
21484
21485 # ifdef _SC_PAGESIZE
21486 #  define getpagesize() sysconf(_SC_PAGESIZE)
21487 # else /* no _SC_PAGESIZE */
21488 #  if HAVE_SYS_PARAM_H
21489 #   include <sys/param.h>
21490 #   ifdef EXEC_PAGESIZE
21491 #    define getpagesize() EXEC_PAGESIZE
21492 #   else /* no EXEC_PAGESIZE */
21493 #    ifdef NBPG
21494 #     define getpagesize() NBPG * CLSIZE
21495 #     ifndef CLSIZE
21496 #      define CLSIZE 1
21497 #     endif /* no CLSIZE */
21498 #    else /* no NBPG */
21499 #     ifdef NBPC
21500 #      define getpagesize() NBPC
21501 #     else /* no NBPC */
21502 #      ifdef PAGESIZE
21503 #       define getpagesize() PAGESIZE
21504 #      endif /* PAGESIZE */
21505 #     endif /* no NBPC */
21506 #    endif /* no NBPG */
21507 #   endif /* no EXEC_PAGESIZE */
21508 #  else /* no HAVE_SYS_PARAM_H */
21509 #   define getpagesize() 8192   /* punt totally */
21510 #  endif /* no HAVE_SYS_PARAM_H */
21511 # endif /* no _SC_PAGESIZE */
21512
21513 #endif /* no HAVE_GETPAGESIZE */
21514
21515 int
21516 main ()
21517 {
21518   char *data, *data2, *data3;
21519   int i, pagesize;
21520   int fd;
21521
21522   pagesize = getpagesize ();
21523
21524   /* First, make a file with some known garbage in it. */
21525   data = (char *) malloc (pagesize);
21526   if (!data)
21527     return 1;
21528   for (i = 0; i < pagesize; ++i)
21529     *(data + i) = rand ();
21530   umask (0);
21531   fd = creat ("conftest.mmap", 0600);
21532   if (fd < 0)
21533     return 1;
21534   if (write (fd, data, pagesize) != pagesize)
21535     return 1;
21536   close (fd);
21537
21538   /* Next, try to mmap the file at a fixed address which already has
21539      something else allocated at it.  If we can, also make sure that
21540      we see the same garbage.  */
21541   fd = open ("conftest.mmap", O_RDWR);
21542   if (fd < 0)
21543     return 1;
21544   data2 = (char *) malloc (2 * pagesize);
21545   if (!data2)
21546     return 1;
21547   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21548   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21549                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21550     return 1;
21551   for (i = 0; i < pagesize; ++i)
21552     if (*(data + i) != *(data2 + i))
21553       return 1;
21554
21555   /* Finally, make sure that changes to the mapped area do not
21556      percolate back to the file as seen by read().  (This is a bug on
21557      some variants of i386 svr4.0.)  */
21558   for (i = 0; i < pagesize; ++i)
21559     *(data2 + i) = *(data2 + i) + 1;
21560   data3 = (char *) malloc (pagesize);
21561   if (!data3)
21562     return 1;
21563   if (read (fd, data3, pagesize) != pagesize)
21564     return 1;
21565   for (i = 0; i < pagesize; ++i)
21566     if (*(data + i) != *(data3 + i))
21567       return 1;
21568   close (fd);
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_link") 2>&5
21580   ac_status=$?
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21583   { (case "(($ac_try" in
21584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585   *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588   (eval "$ac_try") 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_cv_func_mmap_fixed_mapped=yes
21593 else
21594   echo "$as_me: program exited with status $ac_status" >&5
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598 ( exit $ac_status )
21599 ac_cv_func_mmap_fixed_mapped=no
21600 fi
21601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21602 fi
21603
21604
21605 fi
21606 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21607 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21609
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_MMAP 1
21612 _ACEOF
21613
21614 fi
21615 rm -f conftest.mmap
21616
21617   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21618 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21619 if test "${ac_cv_func_mmap_file+set}" = set; then
21620   echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622    ac_ext=c
21623 ac_cpp='$CPP $CPPFLAGS'
21624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21627
21628   if test "$cross_compiling" = yes; then
21629   ac_cv_func_mmap_file=no
21630 else
21631   cat >conftest.$ac_ext <<_ACEOF
21632
21633     /* confdefs.h.  */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h.  */
21638
21639 #include <sys/types.h>
21640 #include <sys/mman.h>
21641 #include <fcntl.h>
21642
21643 int
21644 main ()
21645 {
21646
21647   int fd;
21648   fd = creat ("foo",0777);
21649   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21650   unlink ("foo");
21651   return (fd != (int) MAP_FAILED);
21652   ;
21653   return 0;
21654 }
21655 _ACEOF
21656 rm -f 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>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667   { (case "(($ac_try" in
21668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669   *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672   (eval "$ac_try") 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   ac_cv_func_mmap_file=yes
21677 else
21678   echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ( exit $ac_status )
21683 ac_cv_func_mmap_file=no
21684 fi
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686 fi
21687
21688
21689   ac_ext=c
21690 ac_cpp='$CPP $CPPFLAGS'
21691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21694
21695
21696 fi
21697 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21698 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21699 if test "$ac_cv_func_mmap_file" = yes; then
21700
21701 cat >>confdefs.h <<\_ACEOF
21702 #define HAVE_MMAP_FILE
21703 _ACEOF
21704
21705    MMAP_FILE=yes
21706
21707 fi
21708
21709   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21710 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21711 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21712   echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714   if test "$llvm_cv_os_type" = "Interix" ; then
21715    ac_cv_need_dev_zero_for_mmap=yes
21716  else
21717    ac_cv_need_dev_zero_for_mmap=no
21718  fi
21719
21720 fi
21721 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21722 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21723 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21724
21725 cat >>confdefs.h <<\_ACEOF
21726 #define NEED_DEV_ZERO_FOR_MMAP 1
21727 _ACEOF
21728
21729 fi
21730
21731   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21732   then
21733     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21734 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21735   fi
21736   if test "$ac_cv_func_mmap_file" = "no"
21737   then
21738     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21739 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21740   fi
21741 fi
21742
21743 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21744 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21745 ac_ext=cpp
21746 ac_cpp='$CXXCPP $CPPFLAGS'
21747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21750
21751 cat >conftest.$ac_ext <<_ACEOF
21752
21753   /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758
21759     int main() {
21760       volatile unsigned long val = 1;
21761       __sync_synchronize();
21762       __sync_val_compare_and_swap(&val, 1, 0);
21763       __sync_add_and_fetch(&val, 1);
21764       __sync_sub_and_fetch(&val, 1);
21765       return 0;
21766     }
21767
21768
21769 _ACEOF
21770 rm -f conftest.$ac_objext conftest$ac_exeext
21771 if { (ac_try="$ac_link"
21772 case "(($ac_try" in
21773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774   *) ac_try_echo=$ac_try;;
21775 esac
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777   (eval "$ac_link") 2>conftest.er1
21778   ac_status=$?
21779   grep -v '^ *+' conftest.er1 >conftest.err
21780   rm -f conftest.er1
21781   cat conftest.err >&5
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); } &&
21784          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21785   { (case "(($ac_try" in
21786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787   *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790   (eval "$ac_try") 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); }; } &&
21794          { ac_try='test -s conftest$ac_exeext'
21795   { (case "(($ac_try" in
21796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797   *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800   (eval "$ac_try") 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); }; }; then
21804
21805   { echo "$as_me:$LINENO: result: yes" >&5
21806 echo "${ECHO_T}yes" >&6; }
21807
21808 cat >>confdefs.h <<\_ACEOF
21809 #define LLVM_HAS_ATOMICS 1
21810 _ACEOF
21811
21812
21813 else
21814   echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817
21818   { echo "$as_me:$LINENO: result: no" >&5
21819 echo "${ECHO_T}no" >&6; }
21820
21821 cat >>confdefs.h <<\_ACEOF
21822 #define LLVM_HAS_ATOMICS 0
21823 _ACEOF
21824
21825   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21826 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21827
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext \
21831       conftest$ac_exeext conftest.$ac_ext
21832 ac_ext=c
21833 ac_cpp='$CPP $CPPFLAGS'
21834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21837
21838
21839
21840 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21841   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21842 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21843 if test "${llvm_cv_linux_mixed+set}" = set; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846    ac_ext=c
21847 ac_cpp='$CPP $CPPFLAGS'
21848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21851
21852   cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 #ifndef __x86_64__
21859        error: Not x86-64 even if uname says so!
21860       #endif
21861
21862 int
21863 main ()
21864 {
21865
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_compile") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } &&
21884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885   { (case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890   (eval "$ac_try") 2>&5
21891   ac_status=$?
21892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893   (exit $ac_status); }; } &&
21894          { ac_try='test -s conftest.$ac_objext'
21895   { (case "(($ac_try" in
21896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897   *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900   (eval "$ac_try") 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); }; }; then
21904   llvm_cv_linux_mixed=no
21905 else
21906   echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909         llvm_cv_linux_mixed=yes
21910 fi
21911
21912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913   ac_ext=c
21914 ac_cpp='$CPP $CPPFLAGS'
21915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21918
21919
21920 fi
21921 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21922 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21923
21924   if test "$llvm_cv_linux_mixed" = "yes"; then
21925     llvm_cv_target_arch="x86"
21926     ARCH="x86"
21927   fi
21928 fi
21929
21930
21931 for ac_func in __dso_handle
21932 do
21933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21947 #define $ac_func innocuous_$ac_func
21948
21949 /* System header to define __stub macros and hopefully few prototypes,
21950     which can conflict with char $ac_func (); below.
21951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952     <limits.h> exists even on freestanding compilers.  */
21953
21954 #ifdef __STDC__
21955 # include <limits.h>
21956 #else
21957 # include <assert.h>
21958 #endif
21959
21960 #undef $ac_func
21961
21962 /* Override any GCC internal prototype to avoid an error.
21963    Use char because int might match the return type of a GCC
21964    builtin and then its argument prototype would still apply.  */
21965 #ifdef __cplusplus
21966 extern "C"
21967 #endif
21968 char $ac_func ();
21969 /* The GNU C library defines this for functions which it implements
21970     to always fail with ENOSYS.  Some functions are actually named
21971     something starting with __ and the normal name is an alias.  */
21972 #if defined __stub_$ac_func || defined __stub___$ac_func
21973 choke me
21974 #endif
21975
21976 int
21977 main ()
21978 {
21979 return $ac_func ();
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988   *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991   (eval "$ac_link") 2>conftest.er1
21992   ac_status=$?
21993   grep -v '^ *+' conftest.er1 >conftest.err
21994   rm -f conftest.er1
21995   cat conftest.err >&5
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } &&
21998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21999   { (case "(($ac_try" in
22000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001   *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004   (eval "$ac_try") 2>&5
22005   ac_status=$?
22006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007   (exit $ac_status); }; } &&
22008          { ac_try='test -s conftest$ac_exeext'
22009   { (case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014   (eval "$ac_try") 2>&5
22015   ac_status=$?
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); }; }; then
22018   eval "$as_ac_var=yes"
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023         eval "$as_ac_var=no"
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext \
22027       conftest$ac_exeext conftest.$ac_ext
22028 fi
22029 ac_res=`eval echo '${'$as_ac_var'}'`
22030                { echo "$as_me:$LINENO: result: $ac_res" >&5
22031 echo "${ECHO_T}$ac_res" >&6; }
22032 if test `eval echo '${'$as_ac_var'}'` = yes; then
22033   cat >>confdefs.h <<_ACEOF
22034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22035 _ACEOF
22036
22037 fi
22038 done
22039
22040
22041 SHLIBEXT=$libltdl_cv_shlibext
22042
22043
22044 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22045
22046
22047 if test "${prefix}" = "NONE" ; then
22048   prefix="/usr/local"
22049 fi
22050 eval LLVM_PREFIX="${prefix}";
22051 eval LLVM_BINDIR="${prefix}/bin";
22052 eval LLVM_DATADIR="${prefix}/share/llvm";
22053 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22054 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22055 eval LLVM_INCLUDEDIR="${prefix}/include";
22056 eval LLVM_INFODIR="${prefix}/info";
22057 eval LLVM_MANDIR="${prefix}/man";
22058 LLVM_CONFIGTIME=`date`
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22070   LLVM_CONFIGTIME="(timestamp not enabled)"
22071 fi
22072
22073
22074 cat >>confdefs.h <<_ACEOF
22075 #define LLVM_PREFIX "$LLVM_PREFIX"
22076 _ACEOF
22077
22078
22079 cat >>confdefs.h <<_ACEOF
22080 #define LLVM_BINDIR "$LLVM_BINDIR"
22081 _ACEOF
22082
22083
22084 cat >>confdefs.h <<_ACEOF
22085 #define LLVM_DATADIR "$LLVM_DATADIR"
22086 _ACEOF
22087
22088
22089 cat >>confdefs.h <<_ACEOF
22090 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22091 _ACEOF
22092
22093
22094 cat >>confdefs.h <<_ACEOF
22095 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22096 _ACEOF
22097
22098
22099 cat >>confdefs.h <<_ACEOF
22100 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22101 _ACEOF
22102
22103
22104 cat >>confdefs.h <<_ACEOF
22105 #define LLVM_INFODIR "$LLVM_INFODIR"
22106 _ACEOF
22107
22108
22109 cat >>confdefs.h <<_ACEOF
22110 #define LLVM_MANDIR "$LLVM_MANDIR"
22111 _ACEOF
22112
22113
22114 cat >>confdefs.h <<_ACEOF
22115 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22116 _ACEOF
22117
22118
22119 cat >>confdefs.h <<_ACEOF
22120 #define LLVM_HOST_TRIPLE "$host"
22121 _ACEOF
22122
22123
22124 cat >>confdefs.h <<_ACEOF
22125 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22126 _ACEOF
22127
22128
22129 if test "$BINDINGS_TO_BUILD" = auto ; then
22130   BINDINGS_TO_BUILD=""
22131   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22132     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22133   fi
22134 fi
22135 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22136
22137
22138 ALL_BINDINGS=ocaml
22139
22140
22141 binding_prereqs_failed=0
22142 for a_binding in $BINDINGS_TO_BUILD ; do
22143   case "$a_binding" in
22144   ocaml)
22145     if test "x$OCAMLC" = x ; then
22146       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22147 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22148       binding_prereqs_failed=1
22149     fi
22150     if test "x$OCAMLDEP" = x ; then
22151       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22152 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22153       binding_prereqs_failed=1
22154     fi
22155     if test "x$OCAMLOPT" = x ; then
22156       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22157 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22158           fi
22159     if test "x$with_ocaml_libdir" != xauto ; then
22160       OCAML_LIBDIR=$with_ocaml_libdir
22161
22162     else
22163       ocaml_stdlib="`"$OCAMLC" -where`"
22164       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22165       then
22166         # ocaml stdlib is beneath our prefix; use stdlib
22167         OCAML_LIBDIR=$ocaml_stdlib
22168
22169       else
22170         # ocaml stdlib is outside our prefix; use libdir/ocaml
22171         OCAML_LIBDIR=${prefix}/lib/ocaml
22172
22173       fi
22174     fi
22175     ;;
22176   esac
22177 done
22178 if test "$binding_prereqs_failed" = 1 ; then
22179   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22180 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22181    { (exit 1); exit 1; }; }
22182 fi
22183
22184 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22185 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22186 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22187   echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189    ac_ext=cpp
22190 ac_cpp='$CXXCPP $CPPFLAGS'
22191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22194
22195   oldcxxflags="$CXXFLAGS"
22196   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22197   cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22204 int
22205 main ()
22206 {
22207 X<int>().f();
22208   ;
22209   return 0;
22210 }
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216   *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219   (eval "$ac_compile") 2>conftest.er1
22220   ac_status=$?
22221   grep -v '^ *+' conftest.er1 >conftest.err
22222   rm -f conftest.er1
22223   cat conftest.err >&5
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } &&
22226          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22227   { (case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_try") 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); }; } &&
22236          { ac_try='test -s conftest.$ac_objext'
22237   { (case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_try") 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); }; }; then
22246   llvm_cv_cxx_visibility_inlines_hidden=yes
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251         llvm_cv_cxx_visibility_inlines_hidden=no
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255   CXXFLAGS="$oldcxxflags"
22256   ac_ext=c
22257 ac_cpp='$CPP $CPPFLAGS'
22258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22261
22262
22263 fi
22264 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22265 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22266 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22267   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22268
22269 else
22270   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22271
22272 fi
22273
22274
22275 if test "$llvm_cv_link_use_r" = "yes" ; then
22276   RPATH="-Wl,-R"
22277 else
22278   RPATH="-Wl,-rpath"
22279 fi
22280
22281
22282 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22283   RDYNAMIC="-rdynamic"
22284 else
22285   RDYNAMIC=""
22286 fi
22287
22288
22289
22290 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22291
22292
22293
22294
22295
22296
22297 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22298
22299 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22300
22301 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22302
22303 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22304
22305 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22306
22307
22308 ac_config_files="$ac_config_files Makefile.config"
22309
22310
22311 ac_config_files="$ac_config_files llvm.spec"
22312
22313
22314 ac_config_files="$ac_config_files docs/doxygen.cfg"
22315
22316
22317 if test "${clang_src_root}" = ""; then
22318   clang_src_root="$srcdir/tools/clang"
22319 fi
22320 if test -f ${clang_src_root}/README.txt; then
22321     configh="include/clang/Config/config.h"
22322   doxy="docs/doxygen.cfg"
22323   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22324
22325   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22326
22327 fi
22328
22329 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22330
22331
22332 test "x$program_prefix" = "xNONE" && program_prefix=""
22333
22334
22335
22336 ac_config_commands="$ac_config_commands setup"
22337
22338 ac_config_commands="$ac_config_commands Makefile"
22339
22340
22341 ac_config_commands="$ac_config_commands Makefile.common"
22342
22343
22344 ac_config_commands="$ac_config_commands examples/Makefile"
22345
22346
22347 ac_config_commands="$ac_config_commands lib/Makefile"
22348
22349
22350 ac_config_commands="$ac_config_commands test/Makefile"
22351
22352
22353 ac_config_commands="$ac_config_commands test/Makefile.tests"
22354
22355
22356 ac_config_commands="$ac_config_commands unittests/Makefile"
22357
22358
22359 ac_config_commands="$ac_config_commands tools/Makefile"
22360
22361
22362 ac_config_commands="$ac_config_commands utils/Makefile"
22363
22364
22365 ac_config_commands="$ac_config_commands projects/Makefile"
22366
22367
22368 ac_config_commands="$ac_config_commands bindings/Makefile"
22369
22370
22371 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22372
22373
22374
22375 cat >confcache <<\_ACEOF
22376 # This file is a shell script that caches the results of configure
22377 # tests run on this system so they can be shared between configure
22378 # scripts and configure runs, see configure's option --config-cache.
22379 # It is not useful on other systems.  If it contains results you don't
22380 # want to keep, you may remove or edit it.
22381 #
22382 # config.status only pays attention to the cache file if you give it
22383 # the --recheck option to rerun configure.
22384 #
22385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22387 # following values.
22388
22389 _ACEOF
22390
22391 # The following way of writing the cache mishandles newlines in values,
22392 # but we know of no workaround that is simple, portable, and efficient.
22393 # So, we kill variables containing newlines.
22394 # Ultrix sh set writes to stderr and can't be redirected directly,
22395 # and sets the high bit in the cache file unless we assign to the vars.
22396 (
22397   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22398     eval ac_val=\$$ac_var
22399     case $ac_val in #(
22400     *${as_nl}*)
22401       case $ac_var in #(
22402       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22403 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22404       esac
22405       case $ac_var in #(
22406       _ | IFS | as_nl) ;; #(
22407       *) $as_unset $ac_var ;;
22408       esac ;;
22409     esac
22410   done
22411
22412   (set) 2>&1 |
22413     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22414     *${as_nl}ac_space=\ *)
22415       # `set' does not quote correctly, so add quotes (double-quote
22416       # substitution turns \\\\ into \\, and sed turns \\ into \).
22417       sed -n \
22418         "s/'/'\\\\''/g;
22419           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22420       ;; #(
22421     *)
22422       # `set' quotes correctly as required by POSIX, so do not add quotes.
22423       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22424       ;;
22425     esac |
22426     sort
22427 ) |
22428   sed '
22429      /^ac_cv_env_/b end
22430      t clear
22431      :clear
22432      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22433      t end
22434      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22435      :end' >>confcache
22436 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22437   if test -w "$cache_file"; then
22438     test "x$cache_file" != "x/dev/null" &&
22439       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22440 echo "$as_me: updating cache $cache_file" >&6;}
22441     cat confcache >$cache_file
22442   else
22443     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22444 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22445   fi
22446 fi
22447 rm -f confcache
22448
22449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22450 # Let make expand exec_prefix.
22451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22452
22453 DEFS=-DHAVE_CONFIG_H
22454
22455 ac_libobjs=
22456 ac_ltlibobjs=
22457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22458   # 1. Remove the extension, and $U if already installed.
22459   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22460   ac_i=`echo "$ac_i" | sed "$ac_script"`
22461   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22462   #    will be set to the directory where LIBOBJS objects are built.
22463   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22464   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22465 done
22466 LIBOBJS=$ac_libobjs
22467
22468 LTLIBOBJS=$ac_ltlibobjs
22469
22470
22471 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22472   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22473 Usually this means the macro was only invoked conditionally." >&5
22474 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22475 Usually this means the macro was only invoked conditionally." >&2;}
22476    { (exit 1); exit 1; }; }
22477 fi
22478 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22479   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22480 Usually this means the macro was only invoked conditionally." >&5
22481 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22482 Usually this means the macro was only invoked conditionally." >&2;}
22483    { (exit 1); exit 1; }; }
22484 fi
22485
22486 : ${CONFIG_STATUS=./config.status}
22487 ac_clean_files_save=$ac_clean_files
22488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22489 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22491 cat >$CONFIG_STATUS <<_ACEOF
22492 #! $SHELL
22493 # Generated by $as_me.
22494 # Run this file to recreate the current configuration.
22495 # Compiler output produced by configure, useful for debugging
22496 # configure, is in config.log if it exists.
22497
22498 debug=false
22499 ac_cs_recheck=false
22500 ac_cs_silent=false
22501 SHELL=\${CONFIG_SHELL-$SHELL}
22502 _ACEOF
22503
22504 cat >>$CONFIG_STATUS <<\_ACEOF
22505 ## --------------------- ##
22506 ## M4sh Initialization.  ##
22507 ## --------------------- ##
22508
22509 # Be Bourne compatible
22510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22511   emulate sh
22512   NULLCMD=:
22513   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22514   # is contrary to our usage.  Disable this feature.
22515   alias -g '${1+"$@"}'='"$@"'
22516   setopt NO_GLOB_SUBST
22517 else
22518   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22519 fi
22520 BIN_SH=xpg4; export BIN_SH # for Tru64
22521 DUALCASE=1; export DUALCASE # for MKS sh
22522
22523
22524 # PATH needs CR
22525 # Avoid depending upon Character Ranges.
22526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22529 as_cr_digits='0123456789'
22530 as_cr_alnum=$as_cr_Letters$as_cr_digits
22531
22532 # The user is always right.
22533 if test "${PATH_SEPARATOR+set}" != set; then
22534   echo "#! /bin/sh" >conf$$.sh
22535   echo  "exit 0"   >>conf$$.sh
22536   chmod +x conf$$.sh
22537   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22538     PATH_SEPARATOR=';'
22539   else
22540     PATH_SEPARATOR=:
22541   fi
22542   rm -f conf$$.sh
22543 fi
22544
22545 # Support unset when possible.
22546 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22547   as_unset=unset
22548 else
22549   as_unset=false
22550 fi
22551
22552
22553 # IFS
22554 # We need space, tab and new line, in precisely that order.  Quoting is
22555 # there to prevent editors from complaining about space-tab.
22556 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22557 # splitting by setting IFS to empty value.)
22558 as_nl='
22559 '
22560 IFS=" ""        $as_nl"
22561
22562 # Find who we are.  Look in the path if we contain no directory separator.
22563 case $0 in
22564   *[\\/]* ) as_myself=$0 ;;
22565   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22566 for as_dir in $PATH
22567 do
22568   IFS=$as_save_IFS
22569   test -z "$as_dir" && as_dir=.
22570   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22571 done
22572 IFS=$as_save_IFS
22573
22574      ;;
22575 esac
22576 # We did not find ourselves, most probably we were run as `sh COMMAND'
22577 # in which case we are not to be found in the path.
22578 if test "x$as_myself" = x; then
22579   as_myself=$0
22580 fi
22581 if test ! -f "$as_myself"; then
22582   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22583   { (exit 1); exit 1; }
22584 fi
22585
22586 # Work around bugs in pre-3.0 UWIN ksh.
22587 for as_var in ENV MAIL MAILPATH
22588 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22589 done
22590 PS1='$ '
22591 PS2='> '
22592 PS4='+ '
22593
22594 # NLS nuisances.
22595 for as_var in \
22596   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22597   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22598   LC_TELEPHONE LC_TIME
22599 do
22600   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22601     eval $as_var=C; export $as_var
22602   else
22603     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22604   fi
22605 done
22606
22607 # Required to use basename.
22608 if expr a : '\(a\)' >/dev/null 2>&1 &&
22609    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22610   as_expr=expr
22611 else
22612   as_expr=false
22613 fi
22614
22615 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22616   as_basename=basename
22617 else
22618   as_basename=false
22619 fi
22620
22621
22622 # Name of the executable.
22623 as_me=`$as_basename -- "$0" ||
22624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22625          X"$0" : 'X\(//\)$' \| \
22626          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22627 echo X/"$0" |
22628     sed '/^.*\/\([^/][^/]*\)\/*$/{
22629             s//\1/
22630             q
22631           }
22632           /^X\/\(\/\/\)$/{
22633             s//\1/
22634             q
22635           }
22636           /^X\/\(\/\).*/{
22637             s//\1/
22638             q
22639           }
22640           s/.*/./; q'`
22641
22642 # CDPATH.
22643 $as_unset CDPATH
22644
22645
22646
22647   as_lineno_1=$LINENO
22648   as_lineno_2=$LINENO
22649   test "x$as_lineno_1" != "x$as_lineno_2" &&
22650   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22651
22652   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22653   # uniformly replaced by the line number.  The first 'sed' inserts a
22654   # line-number line after each line using $LINENO; the second 'sed'
22655   # does the real work.  The second script uses 'N' to pair each
22656   # line-number line with the line containing $LINENO, and appends
22657   # trailing '-' during substitution so that $LINENO is not a special
22658   # case at line end.
22659   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22660   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22661   # E. McMahon (1931-1989) for sed's syntax.  :-)
22662   sed -n '
22663     p
22664     /[$]LINENO/=
22665   ' <$as_myself |
22666     sed '
22667       s/[$]LINENO.*/&-/
22668       t lineno
22669       b
22670       :lineno
22671       N
22672       :loop
22673       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22674       t loop
22675       s/-\n.*//
22676     ' >$as_me.lineno &&
22677   chmod +x "$as_me.lineno" ||
22678     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22679    { (exit 1); exit 1; }; }
22680
22681   # Don't try to exec as it changes $[0], causing all sort of problems
22682   # (the dirname of $[0] is not the place where we might find the
22683   # original and so on.  Autoconf is especially sensitive to this).
22684   . "./$as_me.lineno"
22685   # Exit status is that of the last command.
22686   exit
22687 }
22688
22689
22690 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22691   as_dirname=dirname
22692 else
22693   as_dirname=false
22694 fi
22695
22696 ECHO_C= ECHO_N= ECHO_T=
22697 case `echo -n x` in
22698 -n*)
22699   case `echo 'x\c'` in
22700   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22701   *)   ECHO_C='\c';;
22702   esac;;
22703 *)
22704   ECHO_N='-n';;
22705 esac
22706
22707 if expr a : '\(a\)' >/dev/null 2>&1 &&
22708    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22709   as_expr=expr
22710 else
22711   as_expr=false
22712 fi
22713
22714 rm -f conf$$ conf$$.exe conf$$.file
22715 if test -d conf$$.dir; then
22716   rm -f conf$$.dir/conf$$.file
22717 else
22718   rm -f conf$$.dir
22719   mkdir conf$$.dir
22720 fi
22721 echo >conf$$.file
22722 if ln -s conf$$.file conf$$ 2>/dev/null; then
22723   as_ln_s='ln -s'
22724   # ... but there are two gotchas:
22725   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22726   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22727   # In both cases, we have to default to `cp -p'.
22728   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22729     as_ln_s='cp -p'
22730 elif ln conf$$.file conf$$ 2>/dev/null; then
22731   as_ln_s=ln
22732 else
22733   as_ln_s='cp -p'
22734 fi
22735 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22736 rmdir conf$$.dir 2>/dev/null
22737
22738 if mkdir -p . 2>/dev/null; then
22739   as_mkdir_p=:
22740 else
22741   test -d ./-p && rmdir ./-p
22742   as_mkdir_p=false
22743 fi
22744
22745 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22746 # systems may use methods other than mode bits to determine executability.
22747 cat >conf$$.file <<_ASEOF
22748 #! /bin/sh
22749 exit 0
22750 _ASEOF
22751 chmod +x conf$$.file
22752 if test -x conf$$.file >/dev/null 2>&1; then
22753   as_executable_p="test -x"
22754 else
22755   as_executable_p=:
22756 fi
22757 rm -f conf$$.file
22758
22759 # Sed expression to map a string onto a valid CPP name.
22760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22761
22762 # Sed expression to map a string onto a valid variable name.
22763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22764
22765
22766 exec 6>&1
22767
22768 # Save the log message, to keep $[0] and so on meaningful, and to
22769 # report actual input values of CONFIG_FILES etc. instead of their
22770 # values after options handling.
22771 ac_log="
22772 This file was extended by LLVM $as_me 3.5svn, which was
22773 generated by GNU Autoconf 2.60.  Invocation command line was
22774
22775   CONFIG_FILES    = $CONFIG_FILES
22776   CONFIG_HEADERS  = $CONFIG_HEADERS
22777   CONFIG_LINKS    = $CONFIG_LINKS
22778   CONFIG_COMMANDS = $CONFIG_COMMANDS
22779   $ $0 $@
22780
22781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22782 "
22783
22784 _ACEOF
22785
22786 cat >>$CONFIG_STATUS <<_ACEOF
22787 # Files that config.status was made for.
22788 config_files="$ac_config_files"
22789 config_headers="$ac_config_headers"
22790 config_commands="$ac_config_commands"
22791
22792 _ACEOF
22793
22794 cat >>$CONFIG_STATUS <<\_ACEOF
22795 ac_cs_usage="\
22796 \`$as_me' instantiates files from templates according to the
22797 current configuration.
22798
22799 Usage: $0 [OPTIONS] [FILE]...
22800
22801   -h, --help       print this help, then exit
22802   -V, --version    print version number, then exit
22803   -q, --quiet      do not print progress messages
22804   -d, --debug      don't remove temporary files
22805       --recheck    update $as_me by reconfiguring in the same conditions
22806   --file=FILE[:TEMPLATE]
22807                    instantiate the configuration file FILE
22808   --header=FILE[:TEMPLATE]
22809                    instantiate the configuration header FILE
22810
22811 Configuration files:
22812 $config_files
22813
22814 Configuration headers:
22815 $config_headers
22816
22817 Configuration commands:
22818 $config_commands
22819
22820 Report bugs to <bug-autoconf@gnu.org>."
22821
22822 _ACEOF
22823 cat >>$CONFIG_STATUS <<_ACEOF
22824 ac_cs_version="\\
22825 LLVM config.status 3.5svn
22826 configured by $0, generated by GNU Autoconf 2.60,
22827   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22828
22829 Copyright (C) 2006 Free Software Foundation, Inc.
22830 This config.status script is free software; the Free Software Foundation
22831 gives unlimited permission to copy, distribute and modify it."
22832
22833 ac_pwd='$ac_pwd'
22834 srcdir='$srcdir'
22835 INSTALL='$INSTALL'
22836 _ACEOF
22837
22838 cat >>$CONFIG_STATUS <<\_ACEOF
22839 # If no file are specified by the user, then we need to provide default
22840 # value.  By we need to know if files were specified by the user.
22841 ac_need_defaults=:
22842 while test $# != 0
22843 do
22844   case $1 in
22845   --*=*)
22846     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22847     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22848     ac_shift=:
22849     ;;
22850   *)
22851     ac_option=$1
22852     ac_optarg=$2
22853     ac_shift=shift
22854     ;;
22855   esac
22856
22857   case $ac_option in
22858   # Handling of the options.
22859   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22860     ac_cs_recheck=: ;;
22861   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22862     echo "$ac_cs_version"; exit ;;
22863   --debug | --debu | --deb | --de | --d | -d )
22864     debug=: ;;
22865   --file | --fil | --fi | --f )
22866     $ac_shift
22867     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22868     ac_need_defaults=false;;
22869   --header | --heade | --head | --hea )
22870     $ac_shift
22871     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22872     ac_need_defaults=false;;
22873   --he | --h)
22874     # Conflict between --help and --header
22875     { echo "$as_me: error: ambiguous option: $1
22876 Try \`$0 --help' for more information." >&2
22877    { (exit 1); exit 1; }; };;
22878   --help | --hel | -h )
22879     echo "$ac_cs_usage"; exit ;;
22880   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22881   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22882     ac_cs_silent=: ;;
22883
22884   # This is an error.
22885   -*) { echo "$as_me: error: unrecognized option: $1
22886 Try \`$0 --help' for more information." >&2
22887    { (exit 1); exit 1; }; } ;;
22888
22889   *) ac_config_targets="$ac_config_targets $1"
22890      ac_need_defaults=false ;;
22891
22892   esac
22893   shift
22894 done
22895
22896 ac_configure_extra_args=
22897
22898 if $ac_cs_silent; then
22899   exec 6>/dev/null
22900   ac_configure_extra_args="$ac_configure_extra_args --silent"
22901 fi
22902
22903 _ACEOF
22904 cat >>$CONFIG_STATUS <<_ACEOF
22905 if \$ac_cs_recheck; then
22906   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22907   CONFIG_SHELL=$SHELL
22908   export CONFIG_SHELL
22909   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22910 fi
22911
22912 _ACEOF
22913 cat >>$CONFIG_STATUS <<\_ACEOF
22914 exec 5>>config.log
22915 {
22916   echo
22917   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22918 ## Running $as_me. ##
22919 _ASBOX
22920   echo "$ac_log"
22921 } >&5
22922
22923 _ACEOF
22924 cat >>$CONFIG_STATUS <<_ACEOF
22925 #
22926 # INIT-COMMANDS
22927 #
22928 llvm_src="${srcdir}"
22929
22930 _ACEOF
22931
22932 cat >>$CONFIG_STATUS <<\_ACEOF
22933
22934 # Handling of arguments.
22935 for ac_config_target in $ac_config_targets
22936 do
22937   case $ac_config_target in
22938     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22939     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22940     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22941     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22942     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22943     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22944     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22945     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22946     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22947     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22948     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22949     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22950     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22951     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22952     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22953     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22954     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22955     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22956     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22957     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22958     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22959     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22960     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22961     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22962     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22963     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22964
22965   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22967    { (exit 1); exit 1; }; };;
22968   esac
22969 done
22970
22971
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used.  Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22978   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22979   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22980 fi
22981
22982 # Have a temporary directory for convenience.  Make it in the build tree
22983 # simply because there is no reason against having it here, and in addition,
22984 # creating and moving files from /tmp can sometimes cause problems.
22985 # Hook for its removal unless debugging.
22986 # Note that there is a small window in which the directory will not be cleaned:
22987 # after its creation but before its name has been assigned to `$tmp'.
22988 $debug ||
22989 {
22990   tmp=
22991   trap 'exit_status=$?
22992   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22993 ' 0
22994   trap '{ (exit 1); exit 1; }' 1 2 13 15
22995 }
22996 # Create a (secure) tmp directory for tmp files.
22997
22998 {
22999   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23000   test -n "$tmp" && test -d "$tmp"
23001 }  ||
23002 {
23003   tmp=./conf$$-$RANDOM
23004   (umask 077 && mkdir "$tmp")
23005 } ||
23006 {
23007    echo "$me: cannot create a temporary directory in ." >&2
23008    { (exit 1); exit 1; }
23009 }
23010
23011 #
23012 # Set up the sed scripts for CONFIG_FILES section.
23013 #
23014
23015 # No need to generate the scripts if there are no CONFIG_FILES.
23016 # This happens for instance when ./config.status config.h
23017 if test -n "$CONFIG_FILES"; then
23018
23019 _ACEOF
23020
23021
23022
23023 ac_delim='%!_!# '
23024 for ac_last_try in false false false false false :; do
23025   cat >conf$$subs.sed <<_ACEOF
23026 SHELL!$SHELL$ac_delim
23027 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23028 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23029 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23030 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23031 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23032 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23033 exec_prefix!$exec_prefix$ac_delim
23034 prefix!$prefix$ac_delim
23035 program_transform_name!$program_transform_name$ac_delim
23036 bindir!$bindir$ac_delim
23037 sbindir!$sbindir$ac_delim
23038 libexecdir!$libexecdir$ac_delim
23039 datarootdir!$datarootdir$ac_delim
23040 datadir!$datadir$ac_delim
23041 sysconfdir!$sysconfdir$ac_delim
23042 sharedstatedir!$sharedstatedir$ac_delim
23043 localstatedir!$localstatedir$ac_delim
23044 includedir!$includedir$ac_delim
23045 oldincludedir!$oldincludedir$ac_delim
23046 docdir!$docdir$ac_delim
23047 infodir!$infodir$ac_delim
23048 htmldir!$htmldir$ac_delim
23049 dvidir!$dvidir$ac_delim
23050 pdfdir!$pdfdir$ac_delim
23051 psdir!$psdir$ac_delim
23052 libdir!$libdir$ac_delim
23053 localedir!$localedir$ac_delim
23054 mandir!$mandir$ac_delim
23055 DEFS!$DEFS$ac_delim
23056 ECHO_C!$ECHO_C$ac_delim
23057 ECHO_N!$ECHO_N$ac_delim
23058 ECHO_T!$ECHO_T$ac_delim
23059 LIBS!$LIBS$ac_delim
23060 build_alias!$build_alias$ac_delim
23061 host_alias!$host_alias$ac_delim
23062 target_alias!$target_alias$ac_delim
23063 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23064 CC!$CC$ac_delim
23065 CFLAGS!$CFLAGS$ac_delim
23066 LDFLAGS!$LDFLAGS$ac_delim
23067 CPPFLAGS!$CPPFLAGS$ac_delim
23068 ac_ct_CC!$ac_ct_CC$ac_delim
23069 EXEEXT!$EXEEXT$ac_delim
23070 OBJEXT!$OBJEXT$ac_delim
23071 CXX!$CXX$ac_delim
23072 CXXFLAGS!$CXXFLAGS$ac_delim
23073 ac_ct_CXX!$ac_ct_CXX$ac_delim
23074 CPP!$CPP$ac_delim
23075 subdirs!$subdirs$ac_delim
23076 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23077 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23078 build!$build$ac_delim
23079 build_cpu!$build_cpu$ac_delim
23080 build_vendor!$build_vendor$ac_delim
23081 build_os!$build_os$ac_delim
23082 host!$host$ac_delim
23083 host_cpu!$host_cpu$ac_delim
23084 host_vendor!$host_vendor$ac_delim
23085 host_os!$host_os$ac_delim
23086 target!$target$ac_delim
23087 target_cpu!$target_cpu$ac_delim
23088 target_vendor!$target_vendor$ac_delim
23089 target_os!$target_os$ac_delim
23090 OS!$OS$ac_delim
23091 HOST_OS!$HOST_OS$ac_delim
23092 TARGET_OS!$TARGET_OS$ac_delim
23093 LINKALL!$LINKALL$ac_delim
23094 NOLINKALL!$NOLINKALL$ac_delim
23095 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23096 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23097 ARCH!$ARCH$ac_delim
23098 HOST_ARCH!$HOST_ARCH$ac_delim
23099 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23100 BUILD_CC!$BUILD_CC$ac_delim
23101 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23102 BUILD_CXX!$BUILD_CXX$ac_delim
23103 CVSBUILD!$CVSBUILD$ac_delim
23104 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23105 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23106 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23107 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23108 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23109 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23110 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23111 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23112 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23113 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23114 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23115 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23116 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23117 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23118 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23119 JIT!$JIT$ac_delim
23120 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23121 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23122 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23123 _ACEOF
23124
23125   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23126     break
23127   elif $ac_last_try; then
23128     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23129 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23130    { (exit 1); exit 1; }; }
23131   else
23132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23133   fi
23134 done
23135
23136 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23137 if test -n "$ac_eof"; then
23138   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23139   ac_eof=`expr $ac_eof + 1`
23140 fi
23141
23142 cat >>$CONFIG_STATUS <<_ACEOF
23143 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23145 _ACEOF
23146 sed '
23147 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23148 s/^/s,@/; s/!/@,|#_!!_#|/
23149 :n
23150 t n
23151 s/'"$ac_delim"'$/,g/; t
23152 s/$/\\/; p
23153 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23154 ' >>$CONFIG_STATUS <conf$$subs.sed
23155 rm -f conf$$subs.sed
23156 cat >>$CONFIG_STATUS <<_ACEOF
23157 CEOF$ac_eof
23158 _ACEOF
23159
23160
23161 ac_delim='%!_!# '
23162 for ac_last_try in false false false false false :; do
23163   cat >conf$$subs.sed <<_ACEOF
23164 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23165 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23166 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23167 ENABLE_PIC!$ENABLE_PIC$ac_delim
23168 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23169 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23170 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23171 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23172 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23173 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23174 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23175 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23176 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23177 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23178 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23179 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23180 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23181 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23182 NM!$NM$ac_delim
23183 ifGNUmake!$ifGNUmake$ac_delim
23184 LN_S!$LN_S$ac_delim
23185 CMP!$CMP$ac_delim
23186 CP!$CP$ac_delim
23187 DATE!$DATE$ac_delim
23188 FIND!$FIND$ac_delim
23189 GREP!$GREP$ac_delim
23190 MKDIR!$MKDIR$ac_delim
23191 MV!$MV$ac_delim
23192 RANLIB!$RANLIB$ac_delim
23193 AR!$AR$ac_delim
23194 RM!$RM$ac_delim
23195 SED!$SED$ac_delim
23196 TAR!$TAR$ac_delim
23197 BINPWD!$BINPWD$ac_delim
23198 GRAPHVIZ!$GRAPHVIZ$ac_delim
23199 DOT!$DOT$ac_delim
23200 FDP!$FDP$ac_delim
23201 NEATO!$NEATO$ac_delim
23202 TWOPI!$TWOPI$ac_delim
23203 CIRCO!$CIRCO$ac_delim
23204 GV!$GV$ac_delim
23205 DOTTY!$DOTTY$ac_delim
23206 XDOT!$XDOT$ac_delim
23207 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23208 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23209 INSTALL_DATA!$INSTALL_DATA$ac_delim
23210 BZIP2!$BZIP2$ac_delim
23211 CAT!$CAT$ac_delim
23212 DOXYGEN!$DOXYGEN$ac_delim
23213 GROFF!$GROFF$ac_delim
23214 GZIPBIN!$GZIPBIN$ac_delim
23215 PDFROFF!$PDFROFF$ac_delim
23216 ZIP!$ZIP$ac_delim
23217 OCAMLC!$OCAMLC$ac_delim
23218 OCAMLOPT!$OCAMLOPT$ac_delim
23219 OCAMLDEP!$OCAMLDEP$ac_delim
23220 OCAMLDOC!$OCAMLDOC$ac_delim
23221 GAS!$GAS$ac_delim
23222 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23223 EGREP!$EGREP$ac_delim
23224 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23225 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23226 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23227 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23228 LIBADD_DL!$LIBADD_DL$ac_delim
23229 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23230 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23231 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23232 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23233 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23234 PYTHON!$PYTHON$ac_delim
23235 USE_UDIS86!$USE_UDIS86$ac_delim
23236 USE_OPROFILE!$USE_OPROFILE$ac_delim
23237 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23238 XML2CONFIG!$XML2CONFIG$ac_delim
23239 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23240 LIBXML2_INC!$LIBXML2_INC$ac_delim
23241 CXXCPP!$CXXCPP$ac_delim
23242 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23243 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23244 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23245 MMAP_FILE!$MMAP_FILE$ac_delim
23246 SHLIBEXT!$SHLIBEXT$ac_delim
23247 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23248 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23249 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23250 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23251 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23252 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23253 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23254 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23255 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23256 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23257 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23258 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23259 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23260 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23261 _ACEOF
23262
23263   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23264     break
23265   elif $ac_last_try; then
23266     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23267 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23268    { (exit 1); exit 1; }; }
23269   else
23270     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23271   fi
23272 done
23273
23274 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23275 if test -n "$ac_eof"; then
23276   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23277   ac_eof=`expr $ac_eof + 1`
23278 fi
23279
23280 cat >>$CONFIG_STATUS <<_ACEOF
23281 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23283 _ACEOF
23284 sed '
23285 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23286 s/^/s,@/; s/!/@,|#_!!_#|/
23287 :n
23288 t n
23289 s/'"$ac_delim"'$/,g/; t
23290 s/$/\\/; p
23291 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23292 ' >>$CONFIG_STATUS <conf$$subs.sed
23293 rm -f conf$$subs.sed
23294 cat >>$CONFIG_STATUS <<_ACEOF
23295 CEOF$ac_eof
23296 _ACEOF
23297
23298
23299 ac_delim='%!_!# '
23300 for ac_last_try in false false false false false :; do
23301   cat >conf$$subs.sed <<_ACEOF
23302 RPATH!$RPATH$ac_delim
23303 RDYNAMIC!$RDYNAMIC$ac_delim
23304 program_prefix!$program_prefix$ac_delim
23305 LIBOBJS!$LIBOBJS$ac_delim
23306 LTLIBOBJS!$LTLIBOBJS$ac_delim
23307 _ACEOF
23308
23309   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23310     break
23311   elif $ac_last_try; then
23312     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23314    { (exit 1); exit 1; }; }
23315   else
23316     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23317   fi
23318 done
23319
23320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23321 if test -n "$ac_eof"; then
23322   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23323   ac_eof=`expr $ac_eof + 1`
23324 fi
23325
23326 cat >>$CONFIG_STATUS <<_ACEOF
23327 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23329 _ACEOF
23330 sed '
23331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23332 s/^/s,@/; s/!/@,|#_!!_#|/
23333 :n
23334 t n
23335 s/'"$ac_delim"'$/,g/; t
23336 s/$/\\/; p
23337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23338 ' >>$CONFIG_STATUS <conf$$subs.sed
23339 rm -f conf$$subs.sed
23340 cat >>$CONFIG_STATUS <<_ACEOF
23341 :end
23342 s/|#_!!_#|//g
23343 CEOF$ac_eof
23344 _ACEOF
23345
23346
23347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23349 # trailing colons and then remove the whole line if VPATH becomes empty
23350 # (actually we leave an empty line to preserve line numbers).
23351 if test "x$srcdir" = x.; then
23352   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23353 s/:*\$(srcdir):*/:/
23354 s/:*\${srcdir}:*/:/
23355 s/:*@srcdir@:*/:/
23356 s/^\([^=]*=[     ]*\):*/\1/
23357 s/:*$//
23358 s/^[^=]*=[       ]*$//
23359 }'
23360 fi
23361
23362 cat >>$CONFIG_STATUS <<\_ACEOF
23363 fi # test -n "$CONFIG_FILES"
23364
23365
23366 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23367 do
23368   case $ac_tag in
23369   :[FHLC]) ac_mode=$ac_tag; continue;;
23370   esac
23371   case $ac_mode$ac_tag in
23372   :[FHL]*:*);;
23373   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23374 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23375    { (exit 1); exit 1; }; };;
23376   :[FH]-) ac_tag=-:-;;
23377   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23378   esac
23379   ac_save_IFS=$IFS
23380   IFS=:
23381   set x $ac_tag
23382   IFS=$ac_save_IFS
23383   shift
23384   ac_file=$1
23385   shift
23386
23387   case $ac_mode in
23388   :L) ac_source=$1;;
23389   :[FH])
23390     ac_file_inputs=
23391     for ac_f
23392     do
23393       case $ac_f in
23394       -) ac_f="$tmp/stdin";;
23395       *) # Look for the file first in the build tree, then in the source tree
23396          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23397          # because $ac_f cannot contain `:'.
23398          test -f "$ac_f" ||
23399            case $ac_f in
23400            [\\/$]*) false;;
23401            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23402            esac ||
23403            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23404 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23405    { (exit 1); exit 1; }; };;
23406       esac
23407       ac_file_inputs="$ac_file_inputs $ac_f"
23408     done
23409
23410     # Let's still pretend it is `configure' which instantiates (i.e., don't
23411     # use $as_me), people would be surprised to read:
23412     #    /* config.h.  Generated by config.status.  */
23413     configure_input="Generated from "`IFS=:
23414           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23415     if test x"$ac_file" != x-; then
23416       configure_input="$ac_file.  $configure_input"
23417       { echo "$as_me:$LINENO: creating $ac_file" >&5
23418 echo "$as_me: creating $ac_file" >&6;}
23419     fi
23420
23421     case $ac_tag in
23422     *:-:* | *:-) cat >"$tmp/stdin";;
23423     esac
23424     ;;
23425   esac
23426
23427   ac_dir=`$as_dirname -- "$ac_file" ||
23428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23429          X"$ac_file" : 'X\(//\)[^/]' \| \
23430          X"$ac_file" : 'X\(//\)$' \| \
23431          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23432 echo X"$ac_file" |
23433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23434             s//\1/
23435             q
23436           }
23437           /^X\(\/\/\)[^/].*/{
23438             s//\1/
23439             q
23440           }
23441           /^X\(\/\/\)$/{
23442             s//\1/
23443             q
23444           }
23445           /^X\(\/\).*/{
23446             s//\1/
23447             q
23448           }
23449           s/.*/./; q'`
23450   { as_dir="$ac_dir"
23451   case $as_dir in #(
23452   -*) as_dir=./$as_dir;;
23453   esac
23454   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23455     as_dirs=
23456     while :; do
23457       case $as_dir in #(
23458       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23459       *) as_qdir=$as_dir;;
23460       esac
23461       as_dirs="'$as_qdir' $as_dirs"
23462       as_dir=`$as_dirname -- "$as_dir" ||
23463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23464          X"$as_dir" : 'X\(//\)[^/]' \| \
23465          X"$as_dir" : 'X\(//\)$' \| \
23466          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23467 echo X"$as_dir" |
23468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23469             s//\1/
23470             q
23471           }
23472           /^X\(\/\/\)[^/].*/{
23473             s//\1/
23474             q
23475           }
23476           /^X\(\/\/\)$/{
23477             s//\1/
23478             q
23479           }
23480           /^X\(\/\).*/{
23481             s//\1/
23482             q
23483           }
23484           s/.*/./; q'`
23485       test -d "$as_dir" && break
23486     done
23487     test -z "$as_dirs" || eval "mkdir $as_dirs"
23488   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23489 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23490    { (exit 1); exit 1; }; }; }
23491   ac_builddir=.
23492
23493 case "$ac_dir" in
23494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23495 *)
23496   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23497   # A ".." for each directory in $ac_dir_suffix.
23498   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23499   case $ac_top_builddir_sub in
23500   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23501   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23502   esac ;;
23503 esac
23504 ac_abs_top_builddir=$ac_pwd
23505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23506 # for backward compatibility:
23507 ac_top_builddir=$ac_top_build_prefix
23508
23509 case $srcdir in
23510   .)  # We are building in place.
23511     ac_srcdir=.
23512     ac_top_srcdir=$ac_top_builddir_sub
23513     ac_abs_top_srcdir=$ac_pwd ;;
23514   [\\/]* | ?:[\\/]* )  # Absolute name.
23515     ac_srcdir=$srcdir$ac_dir_suffix;
23516     ac_top_srcdir=$srcdir
23517     ac_abs_top_srcdir=$srcdir ;;
23518   *) # Relative name.
23519     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23520     ac_top_srcdir=$ac_top_build_prefix$srcdir
23521     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23522 esac
23523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23524
23525
23526   case $ac_mode in
23527   :F)
23528   #
23529   # CONFIG_FILE
23530   #
23531
23532   case $INSTALL in
23533   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23534   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23535   esac
23536 _ACEOF
23537
23538 cat >>$CONFIG_STATUS <<\_ACEOF
23539 # If the template does not know about datarootdir, expand it.
23540 # FIXME: This hack should be removed a few years after 2.60.
23541 ac_datarootdir_hack=; ac_datarootdir_seen=
23542
23543 case `sed -n '/datarootdir/ {
23544   p
23545   q
23546 }
23547 /@datadir@/p
23548 /@docdir@/p
23549 /@infodir@/p
23550 /@localedir@/p
23551 /@mandir@/p
23552 ' $ac_file_inputs` in
23553 *datarootdir*) ac_datarootdir_seen=yes;;
23554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23555   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23556 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23557 _ACEOF
23558 cat >>$CONFIG_STATUS <<_ACEOF
23559   ac_datarootdir_hack='
23560   s&@datadir@&$datadir&g
23561   s&@docdir@&$docdir&g
23562   s&@infodir@&$infodir&g
23563   s&@localedir@&$localedir&g
23564   s&@mandir@&$mandir&g
23565     s&\\\${datarootdir}&$datarootdir&g' ;;
23566 esac
23567 _ACEOF
23568
23569 # Neutralize VPATH when `$srcdir' = `.'.
23570 # Shell code in configure.ac might set extrasub.
23571 # FIXME: do we really want to maintain this feature?
23572 cat >>$CONFIG_STATUS <<_ACEOF
23573   sed "$ac_vpsub
23574 $extrasub
23575 _ACEOF
23576 cat >>$CONFIG_STATUS <<\_ACEOF
23577 :t
23578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23579 s&@configure_input@&$configure_input&;t t
23580 s&@top_builddir@&$ac_top_builddir_sub&;t t
23581 s&@srcdir@&$ac_srcdir&;t t
23582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23583 s&@top_srcdir@&$ac_top_srcdir&;t t
23584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23585 s&@builddir@&$ac_builddir&;t t
23586 s&@abs_builddir@&$ac_abs_builddir&;t t
23587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23588 s&@INSTALL@&$ac_INSTALL&;t t
23589 $ac_datarootdir_hack
23590 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23591
23592 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23593   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23594   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23595   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23596 which seems to be undefined.  Please make sure it is defined." >&5
23597 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23598 which seems to be undefined.  Please make sure it is defined." >&2;}
23599
23600   rm -f "$tmp/stdin"
23601   case $ac_file in
23602   -) cat "$tmp/out"; rm -f "$tmp/out";;
23603   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23604   esac
23605  ;;
23606   :H)
23607   #
23608   # CONFIG_HEADER
23609   #
23610 _ACEOF
23611
23612 # Transform confdefs.h into a sed script `conftest.defines', that
23613 # substitutes the proper values into config.h.in to produce config.h.
23614 rm -f conftest.defines conftest.tail
23615 # First, append a space to every undef/define line, to ease matching.
23616 echo 's/$/ /' >conftest.defines
23617 # Then, protect against being on the right side of a sed subst, or in
23618 # an unquoted here document, in config.status.  If some macros were
23619 # called several times there might be several #defines for the same
23620 # symbol, which is useless.  But do not sort them, since the last
23621 # AC_DEFINE must be honored.
23622 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23623 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23624 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23625 # PARAMS is the parameter list in the macro definition--in most cases, it's
23626 # just an empty string.
23627 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23628 ac_dB='\\)[      (].*,\\1define\\2'
23629 ac_dC=' '
23630 ac_dD=' ,'
23631
23632 uniq confdefs.h |
23633   sed -n '
23634         t rset
23635         :rset
23636         s/^[     ]*#[    ]*define[       ][      ]*//
23637         t ok
23638         d
23639         :ok
23640         s/[\\&,]/\\&/g
23641         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23642         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23643   ' >>conftest.defines
23644
23645 # Remove the space that was appended to ease matching.
23646 # Then replace #undef with comments.  This is necessary, for
23647 # example, in the case of _POSIX_SOURCE, which is predefined and required
23648 # on some systems where configure will not decide to define it.
23649 # (The regexp can be short, since the line contains either #define or #undef.)
23650 echo 's/ $//
23651 s,^[     #]*u.*,/* & */,' >>conftest.defines
23652
23653 # Break up conftest.defines:
23654 ac_max_sed_lines=50
23655
23656 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23657 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23658 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23659 # et cetera.
23660 ac_in='$ac_file_inputs'
23661 ac_out='"$tmp/out1"'
23662 ac_nxt='"$tmp/out2"'
23663
23664 while :
23665 do
23666   # Write a here document:
23667     cat >>$CONFIG_STATUS <<_ACEOF
23668     # First, check the format of the line:
23669     cat >"\$tmp/defines.sed" <<\\CEOF
23670 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23671 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23672 b
23673 :def
23674 _ACEOF
23675   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23676   echo 'CEOF
23677     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23678   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23679   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23680   grep . conftest.tail >/dev/null || break
23681   rm -f conftest.defines
23682   mv conftest.tail conftest.defines
23683 done
23684 rm -f conftest.defines conftest.tail
23685
23686 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23687 cat >>$CONFIG_STATUS <<\_ACEOF
23688   if test x"$ac_file" != x-; then
23689     echo "/* $configure_input  */" >"$tmp/config.h"
23690     cat "$ac_result" >>"$tmp/config.h"
23691     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23692       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23693 echo "$as_me: $ac_file is unchanged" >&6;}
23694     else
23695       rm -f $ac_file
23696       mv "$tmp/config.h" $ac_file
23697     fi
23698   else
23699     echo "/* $configure_input  */"
23700     cat "$ac_result"
23701   fi
23702   rm -f "$tmp/out12"
23703  ;;
23704
23705   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23706 echo "$as_me: executing $ac_file commands" >&6;}
23707  ;;
23708   esac
23709
23710
23711   case $ac_file$ac_mode in
23712     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23713    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23714     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23715    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23716     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23717    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23718     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23719    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23720     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23721    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23722     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23723    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23724     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23725    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23726     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23727    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23728     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23729    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23730     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23731    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23732     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23733    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23734     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23735    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23736
23737   esac
23738 done # for ac_tag
23739
23740
23741 { (exit 0); exit 0; }
23742 _ACEOF
23743 chmod +x $CONFIG_STATUS
23744 ac_clean_files=$ac_clean_files_save
23745
23746
23747 # configure is writing to config.log, and then calls config.status.
23748 # config.status does its own redirection, appending to config.log.
23749 # Unfortunately, on DOS this fails, as config.log is still kept open
23750 # by configure, so config.status won't be able to write to it; its
23751 # output is simply discarded.  So we exec the FD to /dev/null,
23752 # effectively closing config.log, so it can be properly (re)opened and
23753 # appended to by config.status.  When coming back to configure, we
23754 # need to make the FD available again.
23755 if test "$no_create" != yes; then
23756   ac_cs_success=:
23757   ac_config_status_args=
23758   test "$silent" = yes &&
23759     ac_config_status_args="$ac_config_status_args --quiet"
23760   exec 5>/dev/null
23761   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23762   exec 5>>config.log
23763   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23764   # would make configure fail if this is the last instruction.
23765   $ac_cs_success || { (exit 1); exit 1; }
23766 fi
23767
23768 #
23769 # CONFIG_SUBDIRS section.
23770 #
23771 if test "$no_recursion" != yes; then
23772
23773   # Remove --cache-file and --srcdir arguments so they do not pile up.
23774   ac_sub_configure_args=
23775   ac_prev=
23776   eval "set x $ac_configure_args"
23777   shift
23778   for ac_arg
23779   do
23780     if test -n "$ac_prev"; then
23781       ac_prev=
23782       continue
23783     fi
23784     case $ac_arg in
23785     -cache-file | --cache-file | --cache-fil | --cache-fi \
23786     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23787       ac_prev=cache_file ;;
23788     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23789     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23790     | --c=*)
23791       ;;
23792     --config-cache | -C)
23793       ;;
23794     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23795       ac_prev=srcdir ;;
23796     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23797       ;;
23798     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23799       ac_prev=prefix ;;
23800     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23801       ;;
23802     *)
23803       case $ac_arg in
23804       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23805       esac
23806       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23807     esac
23808   done
23809
23810   # Always prepend --prefix to ensure using the same prefix
23811   # in subdir configurations.
23812   ac_arg="--prefix=$prefix"
23813   case $ac_arg in
23814   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23815   esac
23816   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23817
23818   ac_popdir=`pwd`
23819   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23820
23821     # Do not complain, so a configure script can configure whichever
23822     # parts of a large source tree are present.
23823     test -d "$srcdir/$ac_dir" || continue
23824
23825     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23826     echo "$as_me:$LINENO: $ac_msg" >&5
23827     echo "$ac_msg" >&6
23828     { as_dir="$ac_dir"
23829   case $as_dir in #(
23830   -*) as_dir=./$as_dir;;
23831   esac
23832   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23833     as_dirs=
23834     while :; do
23835       case $as_dir in #(
23836       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23837       *) as_qdir=$as_dir;;
23838       esac
23839       as_dirs="'$as_qdir' $as_dirs"
23840       as_dir=`$as_dirname -- "$as_dir" ||
23841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23842          X"$as_dir" : 'X\(//\)[^/]' \| \
23843          X"$as_dir" : 'X\(//\)$' \| \
23844          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23845 echo X"$as_dir" |
23846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23847             s//\1/
23848             q
23849           }
23850           /^X\(\/\/\)[^/].*/{
23851             s//\1/
23852             q
23853           }
23854           /^X\(\/\/\)$/{
23855             s//\1/
23856             q
23857           }
23858           /^X\(\/\).*/{
23859             s//\1/
23860             q
23861           }
23862           s/.*/./; q'`
23863       test -d "$as_dir" && break
23864     done
23865     test -z "$as_dirs" || eval "mkdir $as_dirs"
23866   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23867 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23868    { (exit 1); exit 1; }; }; }
23869     ac_builddir=.
23870
23871 case "$ac_dir" in
23872 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23873 *)
23874   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23875   # A ".." for each directory in $ac_dir_suffix.
23876   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23877   case $ac_top_builddir_sub in
23878   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23879   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23880   esac ;;
23881 esac
23882 ac_abs_top_builddir=$ac_pwd
23883 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23884 # for backward compatibility:
23885 ac_top_builddir=$ac_top_build_prefix
23886
23887 case $srcdir in
23888   .)  # We are building in place.
23889     ac_srcdir=.
23890     ac_top_srcdir=$ac_top_builddir_sub
23891     ac_abs_top_srcdir=$ac_pwd ;;
23892   [\\/]* | ?:[\\/]* )  # Absolute name.
23893     ac_srcdir=$srcdir$ac_dir_suffix;
23894     ac_top_srcdir=$srcdir
23895     ac_abs_top_srcdir=$srcdir ;;
23896   *) # Relative name.
23897     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23898     ac_top_srcdir=$ac_top_build_prefix$srcdir
23899     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23900 esac
23901 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23902
23903
23904     cd "$ac_dir"
23905
23906     # Check for guested configure; otherwise get Cygnus style configure.
23907     if test -f "$ac_srcdir/configure.gnu"; then
23908       ac_sub_configure=$ac_srcdir/configure.gnu
23909     elif test -f "$ac_srcdir/configure"; then
23910       ac_sub_configure=$ac_srcdir/configure
23911     elif test -f "$ac_srcdir/configure.in"; then
23912       # This should be Cygnus configure.
23913       ac_sub_configure=$ac_aux_dir/configure
23914     else
23915       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23916 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23917       ac_sub_configure=
23918     fi
23919
23920     # The recursion is here.
23921     if test -n "$ac_sub_configure"; then
23922       # Make the cache file name correct relative to the subdirectory.
23923       case $cache_file in
23924       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23925       *) # Relative name.
23926         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23927       esac
23928
23929       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23930 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23931       # The eval makes quoting arguments work.
23932       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23933            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23934         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23935 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23936    { (exit 1); exit 1; }; }
23937     fi
23938
23939     cd "$ac_popdir"
23940   done
23941 fi
23942