]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - configure
Allow SMUL_LOHI and UMUL_LOHI to be narrow to MUL on targets where MUL is Custom...
[opencl/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 ## --------------------- ##
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
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
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
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
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"
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
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
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='+ '
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
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
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
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'`
150 # CDPATH.
151 $as_unset CDPATH
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
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
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
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
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
275 (as_func_return () {
276   (exit $1)
278 as_func_success () {
279   as_func_return 0
281 as_func_failure () {
282   as_func_return 1
284 as_func_ret_success () {
285   return 0
287 as_func_ret_failure () {
288   return 1
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
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
323 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
331 _ASEOF
332 }; then
333   break
334 fi
336 fi
338       done
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
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
358 fi
360 fi
364 (eval "as_func_return () {
365   (exit \$1)
367 as_func_success () {
368   as_func_return 0
370 as_func_failure () {
371   as_func_return 1
373 as_func_ret_success () {
374   return 0
376 as_func_ret_failure () {
377   return 1
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
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
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
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" || {
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; }; }
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
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
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
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
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
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
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
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'"
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'"
541 exec 7<&0 </dev/null 6>&1
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`
549 # Initializations.
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}
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/'
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"
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'
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
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'
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
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
887   # Accept the important Cygnus configure options, so we can diagnose typos.
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
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 ;;
910   --config-cache | -C)
911     cache_file=config.cache ;;
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
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 ;;
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 ;;
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
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 ;;
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 ;;
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
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 ;;
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
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 ;;
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 ;;
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
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 ;;
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
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 ;;
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
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 ;;
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 ;;
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
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 ;;
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 ;;
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
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 ;;
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 ;;
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
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 ;;
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 ;;
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
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 ;;
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 ;;
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
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 ;;
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     ;;
1199   esac
1200 done
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
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
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
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
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
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; }; }
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
1319 # Report the --help message.
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.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
1332 Defaults for the options are specified in brackets.
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 \`..']
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]
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'.
1356 For better control, use the options below.
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
1380   cat <<\_ACEOF
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
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
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-polly          Use polly if available (default is YES)
1399   --enable-libcpp         Use libc++ if available (default is NO)
1400   --enable-compiler-version-checks
1401                           Check the version of the host compiler (default is
1402                           YES)
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
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
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
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.
1501 Report bugs to <http://llvm.org/bugs/>.
1502 _ACEOF
1503 ac_status=$?
1504 fi
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=.
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
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
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
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
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.
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.
1578 It was created by LLVM $as_me 3.5svn, which was
1579 generated by GNU Autoconf 2.60.  Invocation command line was
1581   $ $0 $@
1583 _ACEOF
1584 exec 5>>config.log
1586 cat <<_ASUNAME
1587 ## --------- ##
1588 ## Platform. ##
1589 ## --------- ##
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`
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`
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`
1608 _ASUNAME
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
1619 } >&5
1621 cat >&5 <<_ACEOF
1624 ## ----------- ##
1625 ## Core tests. ##
1626 ## ----------- ##
1628 _ACEOF
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; }
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
1689     cat <<\_ASBOX
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1693 _ASBOX
1694     echo
1695     # The following way of writing the cache mishandles newlines in values,
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
1724     echo
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
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
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
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1790 _ACEOF
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795 _ACEOF
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 _ACEOF
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1805 _ACEOF
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810 _ACEOF
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
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
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
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
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1934 _ACEOF
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 5
1939 _ACEOF
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
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
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.
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
1990 : ${CFLAGS=}
1991 : ${CXXFLAGS=}
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
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
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
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
2082   test -n "$ac_ct_CC" && break
2083 done
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
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; }; }
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); }
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.  */
2150 int
2151 main ()
2154   ;
2155   return 0;
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[^ ]*//'`
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'
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
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=
2227 else
2228   echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
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
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
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; }
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; }
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
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; }
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.  */
2338 int
2339 main ()
2342   ;
2343   return 0;
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
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
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.  */
2394 int
2395 main ()
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2401   ;
2402   return 0;
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
2444         ac_compiler_gnu=no
2445 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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.  */
2472 int
2473 main ()
2476   ;
2477   return 0;
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
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.  */
2527 int
2528 main ()
2531   ;
2532   return 0;
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
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.  */
2583 int
2584 main ()
2587   ;
2588   return 0;
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
2631 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
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;
2683   return p[i];
2685 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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];
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];
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 ()
2718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2719   ;
2720   return 0;
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
2767 fi
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
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
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
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
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
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
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
2890   test -n "$ac_ct_CXX" && break
2891 done
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
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); }
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.  */
2958 int
2959 main ()
2961 #ifndef __GNUC__
2962        choke me
2963 #endif
2965   ;
2966   return 0;
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
3008         ac_compiler_gnu=no
3009 fi
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
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.  */
3036 int
3037 main ()
3040   ;
3041   return 0;
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
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.  */
3091 int
3092 main ()
3095   ;
3096   return 0;
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
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.  */
3147 int
3148 main ()
3151   ;
3152   return 0;
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
3195 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
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
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
3297   # Broken: fails on valid input.
3298 continue
3299 fi
3301 rm -f conftest.err conftest.$ac_ext
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
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3347 rm -f conftest.err conftest.$ac_ext
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
3356     done
3357     ac_cv_prog_CPP=$CPP
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
3416   # Broken: fails on valid input.
3417 continue
3418 fi
3420 rm -f conftest.err conftest.$ac_ext
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
3461   # Passes both tests.
3462 ac_preproc_ok=:
3463 break
3464 fi
3466 rm -f conftest.err conftest.$ac_ext
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
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
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
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
3512 int
3513 main ()
3516   ;
3517   return 0;
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
3555   { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
3569 fi
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
3578 fi
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
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
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_compile") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } &&
3614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3615   { (case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_try") 2>&5
3621   ac_status=$?
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); }; } &&
3624          { ac_try='test -s conftest.$ac_objext'
3625   { (case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; }; then
3634   llvm_cv_cxx_compiler=clang
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639         cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #if ! __GNUC__
3646                                                        #error
3647                                                        #endif
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } &&
3664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665   { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; } &&
3674          { ac_try='test -s conftest.$ac_objext'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; }; then
3684   llvm_cv_cxx_compiler=gcc
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3690 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3703 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3707 if test -d ${srcdir}/projects/test-suite ; then
3708   subdirs="$subdirs projects/test-suite"
3710 fi
3712 if test -d ${srcdir}/projects/llvm-test ; then
3713   subdirs="$subdirs projects/llvm-test"
3715 fi
3717 if test -d ${srcdir}/projects/poolalloc ; then
3718   subdirs="$subdirs projects/poolalloc"
3720 fi
3722 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3723   subdirs="$subdirs projects/llvm-poolalloc"
3725 fi
3727 for i in `ls ${srcdir}/projects`
3728 do
3729   if test -d ${srcdir}/projects/${i} ; then
3730     case ${i} in
3731       sample)       subdirs="$subdirs projects/sample"
3732     ;;
3733       safecode)     subdirs="$subdirs projects/safecode"
3734  ;;
3735       compiler-rt)       ;;
3736       test-suite)     ;;
3737       llvm-test)      ;;
3738       poolalloc)      ;;
3739       llvm-poolalloc) ;;
3740       *)
3741         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3742 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3743         ;;
3744     esac
3745   fi
3746 done
3748 # Check whether --enable-polly was given.
3749 if test "${enable_polly+set}" = set; then
3750   enableval=$enable_polly;
3751 else
3752   enableval=default
3753 fi
3755 case "$enableval" in
3756   yes) ENABLE_POLLY=1
3757  ;;
3758   no)  ENABLE_POLLY=0
3759  ;;
3760   default) ENABLE_POLLY=1
3761  ;;
3762   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3763 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3764    { (exit 1); exit 1; }; } ;;
3765 esac
3768 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3769   LLVM_HAS_POLLY=1
3771   subdirs="$subdirs tools/polly"
3773 fi
3776 # Make sure we can run config.sub.
3777 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3778   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3779 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3780    { (exit 1); exit 1; }; }
3782 { echo "$as_me:$LINENO: checking build system type" >&5
3783 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3784 if test "${ac_cv_build+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_build_alias=$build_alias
3788 test "x$ac_build_alias" = x &&
3789   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3790 test "x$ac_build_alias" = x &&
3791   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3792 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3793    { (exit 1); exit 1; }; }
3794 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3795   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3796 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3797    { (exit 1); exit 1; }; }
3799 fi
3800 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3801 echo "${ECHO_T}$ac_cv_build" >&6; }
3802 case $ac_cv_build in
3803 *-*-*) ;;
3804 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3805 echo "$as_me: error: invalid value of canonical build" >&2;}
3806    { (exit 1); exit 1; }; };;
3807 esac
3808 build=$ac_cv_build
3809 ac_save_IFS=$IFS; IFS='-'
3810 set x $ac_cv_build
3811 shift
3812 build_cpu=$1
3813 build_vendor=$2
3814 shift; shift
3815 # Remember, the first character of IFS is used to create $*,
3816 # except with old shells:
3817 build_os=$*
3818 IFS=$ac_save_IFS
3819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3822 { echo "$as_me:$LINENO: checking host system type" >&5
3823 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3824 if test "${ac_cv_host+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   if test "x$host_alias" = x; then
3828   ac_cv_host=$ac_cv_build
3829 else
3830   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3831     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3832 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3833    { (exit 1); exit 1; }; }
3834 fi
3836 fi
3837 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3838 echo "${ECHO_T}$ac_cv_host" >&6; }
3839 case $ac_cv_host in
3840 *-*-*) ;;
3841 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3842 echo "$as_me: error: invalid value of canonical host" >&2;}
3843    { (exit 1); exit 1; }; };;
3844 esac
3845 host=$ac_cv_host
3846 ac_save_IFS=$IFS; IFS='-'
3847 set x $ac_cv_host
3848 shift
3849 host_cpu=$1
3850 host_vendor=$2
3851 shift; shift
3852 # Remember, the first character of IFS is used to create $*,
3853 # except with old shells:
3854 host_os=$*
3855 IFS=$ac_save_IFS
3856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3859 { echo "$as_me:$LINENO: checking target system type" >&5
3860 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3861 if test "${ac_cv_target+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   if test "x$target_alias" = x; then
3865   ac_cv_target=$ac_cv_host
3866 else
3867   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3868     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3870    { (exit 1); exit 1; }; }
3871 fi
3873 fi
3874 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3875 echo "${ECHO_T}$ac_cv_target" >&6; }
3876 case $ac_cv_target in
3877 *-*-*) ;;
3878 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3879 echo "$as_me: error: invalid value of canonical target" >&2;}
3880    { (exit 1); exit 1; }; };;
3881 esac
3882 target=$ac_cv_target
3883 ac_save_IFS=$IFS; IFS='-'
3884 set x $ac_cv_target
3885 shift
3886 target_cpu=$1
3887 target_vendor=$2
3888 shift; shift
3889 # Remember, the first character of IFS is used to create $*,
3890 # except with old shells:
3891 target_os=$*
3892 IFS=$ac_save_IFS
3893 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3896 # The aliases save the names the user supplied, while $host etc.
3897 # will get canonicalized.
3898 test -n "$target_alias" &&
3899   test "$program_prefix$program_suffix$program_transform_name" = \
3900     NONENONEs,x,x, &&
3901   program_prefix=${target_alias}-
3903 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3904 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3905 if test "${llvm_cv_os_type+set}" = set; then
3906   echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908   case $host in
3909   *-*-aix*)
3910     llvm_cv_link_all_option="-Wl,--whole-archive"
3911     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3912     llvm_cv_os_type="AIX"
3913     llvm_cv_platform_type="Unix" ;;
3914   *-*-irix*)
3915     llvm_cv_link_all_option="-Wl,--whole-archive"
3916     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3917     llvm_cv_os_type="IRIX"
3918     llvm_cv_platform_type="Unix" ;;
3919   *-*-cygwin*)
3920     llvm_cv_link_all_option="-Wl,--whole-archive"
3921     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922     llvm_cv_os_type="Cygwin"
3923     llvm_cv_platform_type="Unix" ;;
3924   *-*-darwin*)
3925     llvm_cv_link_all_option="-Wl,-all_load"
3926     llvm_cv_no_link_all_option="-Wl,-noall_load"
3927     llvm_cv_os_type="Darwin"
3928     llvm_cv_platform_type="Unix" ;;
3929   *-*-minix*)
3930     llvm_cv_link_all_option="-Wl,-all_load"
3931     llvm_cv_no_link_all_option="-Wl,-noall_load"
3932     llvm_cv_os_type="Minix"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-freebsd*)
3935     llvm_cv_link_all_option="-Wl,--whole-archive"
3936     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937     llvm_cv_os_type="FreeBSD"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-kfreebsd-gnu)
3940     llvm_cv_link_all_option="-Wl,--whole-archive"
3941     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942     llvm_cv_os_type="GNU/kFreeBSD"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-openbsd*)
3945     llvm_cv_link_all_option="-Wl,--whole-archive"
3946     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947     llvm_cv_os_type="OpenBSD"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-netbsd*)
3950     llvm_cv_link_all_option="-Wl,--whole-archive"
3951     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952     llvm_cv_os_type="NetBSD"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-dragonfly*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="DragonFly"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-hpux*)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="HP-UX"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-interix*)
3965     llvm_cv_link_all_option="-Wl,--whole-archive"
3966     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967     llvm_cv_os_type="Interix"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-linux*)
3970     llvm_cv_link_all_option="-Wl,--whole-archive"
3971     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972     llvm_cv_os_type="Linux"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-gnu*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="GNU"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-solaris*)
3980     llvm_cv_link_all_option="-Wl,-z,allextract"
3981     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3982     llvm_cv_os_type="SunOS"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-auroraux*)
3985     llvm_cv_link_all_option="-Wl,-z,allextract"
3986     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3987     llvm_cv_os_type="AuroraUX"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-win32*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="Win32"
3993     llvm_cv_platform_type="Win32" ;;
3994   *-*-mingw*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="MingW"
3998     llvm_cv_platform_type="Win32" ;;
3999   *-*-haiku*)
4000     llvm_cv_link_all_option="-Wl,--whole-archive"
4001     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002     llvm_cv_os_type="Haiku"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-unknown-eabi*)
4005     llvm_cv_link_all_option="-Wl,--whole-archive"
4006     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007     llvm_cv_os_type="Freestanding"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-unknown-elf*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Freestanding"
4013     llvm_cv_platform_type="Unix" ;;
4014   *)
4015     llvm_cv_link_all_option=""
4016     llvm_cv_no_link_all_option=""
4017     llvm_cv_os_type="Unknown"
4018     llvm_cv_platform_type="Unknown" ;;
4019 esac
4020 fi
4021 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4022 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4024 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4025 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4026 if test "${llvm_cv_target_os_type+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   case $target in
4030   *-*-aix*)
4031     llvm_cv_target_os_type="AIX" ;;
4032   *-*-irix*)
4033     llvm_cv_target_os_type="IRIX" ;;
4034   *-*-cygwin*)
4035     llvm_cv_target_os_type="Cygwin" ;;
4036   *-*-darwin*)
4037     llvm_cv_target_os_type="Darwin" ;;
4038   *-*-minix*)
4039     llvm_cv_target_os_type="Minix" ;;
4040   *-*-freebsd*)
4041     llvm_cv_target_os_type="FreeBSD" ;;
4042   *-*-kfreebsd-gnu)
4043     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4044   *-*-openbsd*)
4045     llvm_cv_target_os_type="OpenBSD" ;;
4046   *-*-netbsd*)
4047     llvm_cv_target_os_type="NetBSD" ;;
4048   *-*-dragonfly*)
4049     llvm_cv_target_os_type="DragonFly" ;;
4050   *-*-hpux*)
4051     llvm_cv_target_os_type="HP-UX" ;;
4052   *-*-interix*)
4053     llvm_cv_target_os_type="Interix" ;;
4054   *-*-linux*)
4055     llvm_cv_target_os_type="Linux" ;;
4056   *-*-gnu*)
4057     llvm_cv_target_os_type="GNU" ;;
4058   *-*-solaris*)
4059     llvm_cv_target_os_type="SunOS" ;;
4060   *-*-auroraux*)
4061     llvm_cv_target_os_type="AuroraUX" ;;
4062   *-*-win32*)
4063     llvm_cv_target_os_type="Win32" ;;
4064   *-*-mingw*)
4065     llvm_cv_target_os_type="MingW" ;;
4066   *-*-haiku*)
4067     llvm_cv_target_os_type="Haiku" ;;
4068   *-*-rtems*)
4069     llvm_cv_target_os_type="RTEMS" ;;
4070   *-*-nacl*)
4071     llvm_cv_target_os_type="NativeClient" ;;
4072   *-unknown-eabi*)
4073     llvm_cv_target_os_type="Freestanding" ;;
4074   *)
4075     llvm_cv_target_os_type="Unknown" ;;
4076 esac
4077 fi
4078 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4079 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4081 if test "$llvm_cv_os_type" = "Unknown" ; then
4082   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4083 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4084    { (exit 1); exit 1; }; }
4085 fi
4087 OS=$llvm_cv_os_type
4089 HOST_OS=$llvm_cv_os_type
4091 TARGET_OS=$llvm_cv_target_os_type
4094 LINKALL=$llvm_cv_link_all_option
4096 NOLINKALL=$llvm_cv_no_link_all_option
4099 case $llvm_cv_platform_type in
4100   Unix)
4102 cat >>confdefs.h <<\_ACEOF
4103 #define LLVM_ON_UNIX 1
4104 _ACEOF
4106     LLVM_ON_UNIX=1
4108     LLVM_ON_WIN32=0
4110     ;;
4111   Win32)
4113 cat >>confdefs.h <<\_ACEOF
4114 #define LLVM_ON_WIN32 1
4115 _ACEOF
4117     LLVM_ON_UNIX=0
4119     LLVM_ON_WIN32=1
4121     ;;
4122 esac
4124 { echo "$as_me:$LINENO: checking target architecture" >&5
4125 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4126 if test "${llvm_cv_target_arch+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   case $target in
4130   i?86-*)                 llvm_cv_target_arch="x86" ;;
4131   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4132   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4133   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4134   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4135   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4136   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4137   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4138   xcore-*)                llvm_cv_target_arch="XCore" ;;
4139   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4140   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4141   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4142   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4143   *)                      llvm_cv_target_arch="Unknown" ;;
4144 esac
4145 fi
4146 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4147 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4149 if test "$llvm_cv_target_arch" = "Unknown" ; then
4150   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4151 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4152 fi
4154 case "$llvm_cv_target_arch" in
4155     x86)     LLVM_NATIVE_ARCH="X86" ;;
4156     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4157     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4158 esac
4160 ARCH=$llvm_cv_target_arch
4163 case $host in
4164   i?86-*)                 host_arch="x86" ;;
4165   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4166   sparc*-*)               host_arch="Sparc" ;;
4167   powerpc*-*)             host_arch="PowerPC" ;;
4168   arm*-*)                 host_arch="ARM" ;;
4169   aarch64*-*)             host_arch="AArch64" ;;
4170   mips-* | mips64-*)      host_arch="Mips" ;;
4171   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4172   xcore-*)                host_arch="XCore" ;;
4173   msp430-*)               host_arch="MSP430" ;;
4174   hexagon-*)              host_arch="Hexagon" ;;
4175   s390x-*)                host_arch="SystemZ" ;;
4176   *)                      host_arch="Unknown" ;;
4177 esac
4179 if test "$host_arch" = "Unknown" ; then
4180   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4181 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4182 fi
4184 HOST_ARCH=$host_arch
4187 if test "$cross_compiling" = yes; then
4188   LLVM_CROSS_COMPILING=1
4191 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4192 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4193 if test "${ac_cv_build_exeext+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4197   ac_cv_build_exeext=.exe
4198 else
4199   ac_build_prefix=${build_alias}-
4201   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4202 set dummy ${ac_build_prefix}gcc; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test -n "$BUILD_CC"; then
4209   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216   for ac_exec_ext in '' $ac_executable_extensions; do
4217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4218     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4226 fi
4227 fi
4228 BUILD_CC=$ac_cv_prog_BUILD_CC
4229 if test -n "$BUILD_CC"; then
4230   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4231 echo "${ECHO_T}$BUILD_CC" >&6; }
4232 else
4233   { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4235 fi
4238   if test -z "$BUILD_CC"; then
4239      # Extract the first word of "gcc", so it can be a program name with args.
4240 set dummy gcc; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$BUILD_CC"; then
4247   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254   for ac_exec_ext in '' $ac_executable_extensions; do
4255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4256     ac_cv_prog_BUILD_CC="gcc"
4257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4264 fi
4265 fi
4266 BUILD_CC=$ac_cv_prog_BUILD_CC
4267 if test -n "$BUILD_CC"; then
4268   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4269 echo "${ECHO_T}$BUILD_CC" >&6; }
4270 else
4271   { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273 fi
4276      if test -z "$BUILD_CC"; then
4277        # Extract the first word of "cc", so it can be a program name with args.
4278 set dummy cc; ac_word=$2
4279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4281 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$BUILD_CC"; then
4285   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4286 else
4287   ac_prog_rejected=no
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4296        ac_prog_rejected=yes
4297        continue
4298      fi
4299     ac_cv_prog_BUILD_CC="cc"
4300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4307 if test $ac_prog_rejected = yes; then
4308   # We found a bogon in the path, so make sure we never use it.
4309   set dummy $ac_cv_prog_BUILD_CC
4310   shift
4311   if test $# != 0; then
4312     # We chose a different compiler from the bogus one.
4313     # However, it has the same basename, so the bogon will be chosen
4314     # first if we set BUILD_CC to just the basename; use the full file name.
4315     shift
4316     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4317   fi
4318 fi
4319 fi
4320 fi
4321 BUILD_CC=$ac_cv_prog_BUILD_CC
4322 if test -n "$BUILD_CC"; then
4323   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4324 echo "${ECHO_T}$BUILD_CC" >&6; }
4325 else
4326   { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4328 fi
4331      fi
4332   fi
4333   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4334 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4335    { (exit 1); exit 1; }; }
4336   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4337   rm -f conftest*
4338   echo 'int main () { return 0; }' > conftest.$ac_ext
4339   ac_cv_build_exeext=
4340   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4341   (eval $ac_build_link) 2>&5
4342   ac_status=$?
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); }; then
4345     for file in conftest.*; do
4346       case $file in
4347       *.c | *.o | *.obj | *.dSYM) ;;
4348       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4349       esac
4350     done
4351   else
4352     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4353 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4354    { (exit 1); exit 1; }; }
4355   fi
4356   rm -f conftest*
4357   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4358 fi
4359 fi
4361 BUILD_EXEEXT=""
4362 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4363 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4364 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4365 ac_build_exeext=$BUILD_EXEEXT
4367   ac_build_prefix=${build_alias}-
4368   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4369 set dummy ${ac_build_prefix}g++; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   if test -n "$BUILD_CXX"; then
4376   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4393 fi
4394 fi
4395 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4396 if test -n "$BUILD_CXX"; then
4397   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4398 echo "${ECHO_T}$BUILD_CXX" >&6; }
4399 else
4400   { echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6; }
4402 fi
4405   if test -z "$BUILD_CXX"; then
4406      # Extract the first word of "g++", so it can be a program name with args.
4407 set dummy g++; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   if test -n "$BUILD_CXX"; then
4414   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421   for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_prog_BUILD_CXX="g++"
4424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4431 fi
4432 fi
4433 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4434 if test -n "$BUILD_CXX"; then
4435   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4436 echo "${ECHO_T}$BUILD_CXX" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440 fi
4443      if test -z "$BUILD_CXX"; then
4444        # Extract the first word of "c++", so it can be a program name with args.
4445 set dummy c++; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   if test -n "$BUILD_CXX"; then
4452   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4453 else
4454   ac_prog_rejected=no
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4463        ac_prog_rejected=yes
4464        continue
4465      fi
4466     ac_cv_prog_BUILD_CXX="c++"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4474 if test $ac_prog_rejected = yes; then
4475   # We found a bogon in the path, so make sure we never use it.
4476   set dummy $ac_cv_prog_BUILD_CXX
4477   shift
4478   if test $# != 0; then
4479     # We chose a different compiler from the bogus one.
4480     # However, it has the same basename, so the bogon will be chosen
4481     # first if we set BUILD_CXX to just the basename; use the full file name.
4482     shift
4483     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4484   fi
4485 fi
4486 fi
4487 fi
4488 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4489 if test -n "$BUILD_CXX"; then
4490   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4491 echo "${ECHO_T}$BUILD_CXX" >&6; }
4492 else
4493   { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 fi
4498      fi
4499   fi
4500 else
4501   LLVM_CROSS_COMPILING=0
4503 fi
4505 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4506   cvsbuild="yes"
4507   optimize="no"
4508   CVSBUILD=CVSBUILD=1
4510 else
4511   cvsbuild="no"
4512   optimize="yes"
4513 fi
4516 # Check whether --enable-libcpp was given.
4517 if test "${enable_libcpp+set}" = set; then
4518   enableval=$enable_libcpp;
4519 else
4520   enableval=default
4521 fi
4523 case "$enableval" in
4524   yes) ENABLE_LIBCPP=1
4525  ;;
4526   no)  ENABLE_LIBCPP=0
4527  ;;
4528   default) ENABLE_LIBCPP=0
4529 ;;
4530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4531 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4532    { (exit 1); exit 1; }; } ;;
4533 esac
4535 # Check whether --enable-compiler-version-checks was given.
4536 if test "${enable_compiler_version_checks+set}" = set; then
4537   enableval=$enable_compiler_version_checks;
4538 else
4539   enableval=default
4540 fi
4542 case "$enableval" in
4543   no)
4544     ;;
4545   yes|default)
4546     ac_ext=cpp
4547 ac_cpp='$CXXCPP $CPPFLAGS'
4548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552     case "$llvm_cv_cxx_compiler" in
4553     clang)
4554       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4555 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4556       cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h.  */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h.  */
4563 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4564 #error This version of Clang is too old to build LLVM
4565 #endif
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (ac_try="$ac_compile"
4570 case "(($ac_try" in
4571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572   *) ac_try_echo=$ac_try;;
4573 esac
4574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575   (eval "$ac_compile") 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } &&
4582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4583   { (case "(($ac_try" in
4584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585   *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588   (eval "$ac_try") 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; } &&
4592          { ac_try='test -s conftest.$ac_objext'
4593   { (case "(($ac_try" in
4594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595   *) ac_try_echo=$ac_try;;
4596 esac
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598   (eval "$ac_try") 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; }; then
4602   { echo "$as_me:$LINENO: result: yes" >&5
4603 echo "${ECHO_T}yes" >&6; }
4604 else
4605   echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4608         { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610            { { echo "$as_me:$LINENO: error:
4611 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4612 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4613 bypass these sanity checks." >&5
4614 echo "$as_me: error:
4615 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4616 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4617 bypass these sanity checks." >&2;}
4618    { (exit 1); exit 1; }; }
4619 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4624         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4625 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4626         llvm_cv_old_cxxflags="$CXXFLAGS"
4627         CXXFLAGS="$CXXFLAGS -std=c++0x"
4628         cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4635 #include <atomic>
4636 std::atomic<float> x(0.0f);
4637 int main() { return (float)x; }
4639 _ACEOF
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (ac_try="$ac_link"
4642 case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647   (eval "$ac_link") 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4655   { (case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660   (eval "$ac_try") 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest$ac_exeext'
4665   { (case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_try") 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   { echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6; }
4676 else
4677   echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680         { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682              { { echo "$as_me:$LINENO: error:
4683 We detected a missing feature in the standard C++ library that was known to be
4684 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4685 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4686 than 4.7. You will need to update your system and ensure Clang uses the newer
4687 standard library.
4689 If this error is incorrect or you need to force things to work, you may pass
4690 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4691 echo "$as_me: error:
4692 We detected a missing feature in the standard C++ library that was known to be
4693 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4694 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4695 than 4.7. You will need to update your system and ensure Clang uses the newer
4696 standard library.
4698 If this error is incorrect or you need to force things to work, you may pass
4699 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4700    { (exit 1); exit 1; }; }
4701 fi
4703 rm -f core conftest.err conftest.$ac_objext \
4704       conftest$ac_exeext conftest.$ac_ext
4705         CXXFLAGS="$llvm_cv_old_cxxflags"
4706       fi
4707       ;;
4708     gcc)
4709       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4710 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4711       cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4718 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4719 #error This version of GCC is too old to build LLVM
4720 #endif
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4725 case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_compile") 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4738   { (case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743   (eval "$ac_try") 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; } &&
4747          { ac_try='test -s conftest.$ac_objext'
4748   { (case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_try") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; }; then
4757   { echo "$as_me:$LINENO: result: yes" >&5
4758 echo "${ECHO_T}yes" >&6; }
4759 else
4760   echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763         { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4765            { { echo "$as_me:$LINENO: error:
4766 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4767 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4768 bypass these sanity checks." >&5
4769 echo "$as_me: error:
4770 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4771 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4772 bypass these sanity checks." >&2;}
4773    { (exit 1); exit 1; }; }
4774 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777       ;;
4778     unknown)
4779       ;;
4780     esac
4781     ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787     ;;
4788   *)
4789     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4790 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4791    { (exit 1); exit 1; }; }
4792     ;;
4793 esac
4795 # Check whether --enable-cxx11 was given.
4796 if test "${enable_cxx11+set}" = set; then
4797   enableval=$enable_cxx11;
4798 else
4799   enableval=default
4800 fi
4802 case "$enableval" in
4803   yes) ENABLE_CXX11=1
4804  ;;
4805   no)  ENABLE_CXX11=0
4806  ;;
4807   default) ENABLE_CXX11=0
4808 ;;
4809   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4810 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4811    { (exit 1); exit 1; }; } ;;
4812 esac
4814 # Check whether --enable-split-dwarf was given.
4815 if test "${enable_split_dwarf+set}" = set; then
4816   enableval=$enable_split_dwarf;
4817 else
4818   enableval=default
4819 fi
4821 case "$enableval" in
4822   yes) ENABLE_SPLIT_DWARF=1
4823  ;;
4824   no)  ENABLE_SPLIT_DWARF=0
4825  ;;
4826   default) ENABLE_SPLIT_DWARF=0
4827 ;;
4828   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4829 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4830    { (exit 1); exit 1; }; } ;;
4831 esac
4833 clang_arcmt="yes"
4834 # Check whether --enable-clang-arcmt was given.
4835 if test "${enable_clang_arcmt+set}" = set; then
4836   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4837 else
4838   enableval="yes"
4839 fi
4841 case "$enableval" in
4842   yes) ENABLE_CLANG_ARCMT=1
4843  ;;
4844   no)  ENABLE_CLANG_ARCMT=0
4845  ;;
4846   default) ENABLE_CLANG_ARCMT=1
4847 ;;
4848   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4849 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4850    { (exit 1); exit 1; }; } ;;
4851 esac
4853 clang_static_analyzer="yes"
4854 # Check whether --enable-clang-static-analyzer was given.
4855 if test "${enable_clang_static_analyzer+set}" = set; then
4856   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4857 else
4858   enableval="yes"
4859 fi
4861 case "$enableval" in
4862   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4863  ;;
4864   no)
4865     if test ${clang_arcmt} != "no" ; then
4866       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4867 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4868    { (exit 1); exit 1; }; }
4869     fi
4870     ENABLE_CLANG_STATIC_ANALYZER=0
4872     ;;
4873   default) ENABLE_CLANG_STATIC_ANALYZER=1
4874 ;;
4875   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4877    { (exit 1); exit 1; }; } ;;
4878 esac
4880 # Check whether --enable-clang-rewriter was given.
4881 if test "${enable_clang_rewriter+set}" = set; then
4882   enableval=$enable_clang_rewriter;
4883 else
4884   enableval="yes"
4885 fi
4887 case "$enableval" in
4888   yes) ENABLE_CLANG_REWRITER=1
4889  ;;
4890   no)
4891     if test ${clang_arcmt} != "no" ; then
4892       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4893 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4894    { (exit 1); exit 1; }; }
4895     fi
4896     if test ${clang_static_analyzer} != "no" ; then
4897       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4898 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4899    { (exit 1); exit 1; }; }
4900     fi
4901     ENABLE_CLANG_REWRITER=0
4903     ;;
4904   default) ENABLE_CLANG_REWRITER=1
4905 ;;
4906   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4907 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4908    { (exit 1); exit 1; }; } ;;
4909 esac
4911 # Check whether --enable-optimized was given.
4912 if test "${enable_optimized+set}" = set; then
4913   enableval=$enable_optimized;
4914 else
4915   enableval=$optimize
4916 fi
4918 if test ${enableval} = "no" ; then
4919   ENABLE_OPTIMIZED=
4921 else
4922   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4924 fi
4926 # Check whether --enable-profiling was given.
4927 if test "${enable_profiling+set}" = set; then
4928   enableval=$enable_profiling;
4929 else
4930   enableval="no"
4931 fi
4933 if test ${enableval} = "no" ; then
4934   ENABLE_PROFILING=
4936 else
4937   ENABLE_PROFILING=ENABLE_PROFILING=1
4939 fi
4941 # Check whether --enable-assertions was given.
4942 if test "${enable_assertions+set}" = set; then
4943   enableval=$enable_assertions;
4944 else
4945   enableval="yes"
4946 fi
4948 if test ${enableval} = "yes" ; then
4949   DISABLE_ASSERTIONS=
4951 else
4952   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4954 fi
4956 # Check whether --enable-werror was given.
4957 if test "${enable_werror+set}" = set; then
4958   enableval=$enable_werror;
4959 else
4960   enableval="no"
4961 fi
4963 case "$enableval" in
4964   yes) ENABLE_WERROR=1
4965  ;;
4966   no)  ENABLE_WERROR=0
4967  ;;
4968   default) ENABLE_WERROR=0
4969 ;;
4970   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4971 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4972    { (exit 1); exit 1; }; } ;;
4973 esac
4975 # Check whether --enable-expensive-checks was given.
4976 if test "${enable_expensive_checks+set}" = set; then
4977   enableval=$enable_expensive_checks;
4978 else
4979   enableval="no"
4980 fi
4982 if test ${enableval} = "yes" ; then
4983   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4985   EXPENSIVE_CHECKS=yes
4987 else
4988   ENABLE_EXPENSIVE_CHECKS=
4990   EXPENSIVE_CHECKS=no
4992 fi
4994 # Check whether --enable-debug-runtime was given.
4995 if test "${enable_debug_runtime+set}" = set; then
4996   enableval=$enable_debug_runtime;
4997 else
4998   enableval=no
4999 fi
5001 if test ${enableval} = "no" ; then
5002   DEBUG_RUNTIME=
5004 else
5005   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5007 fi
5009 # Check whether --enable-debug-symbols was given.
5010 if test "${enable_debug_symbols+set}" = set; then
5011   enableval=$enable_debug_symbols;
5012 else
5013   enableval=no
5014 fi
5016 if test ${enableval} = "no" ; then
5017   DEBUG_SYMBOLS=
5019 else
5020   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5022 fi
5024 # Check whether --enable-keep-symbols was given.
5025 if test "${enable_keep_symbols+set}" = set; then
5026   enableval=$enable_keep_symbols;
5027 else
5028   enableval=no
5029 fi
5031 if test ${enableval} = "no" ; then
5032   KEEP_SYMBOLS=
5034 else
5035   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5037 fi
5039 # Check whether --enable-jit was given.
5040 if test "${enable_jit+set}" = set; then
5041   enableval=$enable_jit;
5042 else
5043   enableval=default
5044 fi
5046 if test ${enableval} = "no"
5047 then
5048   JIT=
5050 else
5051   case "$llvm_cv_target_arch" in
5052     x86)         TARGET_HAS_JIT=1
5053  ;;
5054     Sparc)       TARGET_HAS_JIT=0
5055  ;;
5056     PowerPC)     TARGET_HAS_JIT=1
5057  ;;
5058     x86_64)      TARGET_HAS_JIT=1
5059  ;;
5060     ARM)         TARGET_HAS_JIT=1
5061  ;;
5062     AArch64)     TARGET_HAS_JIT=0
5063  ;;
5064     Mips)        TARGET_HAS_JIT=1
5065  ;;
5066     XCore)       TARGET_HAS_JIT=0
5067  ;;
5068     MSP430)      TARGET_HAS_JIT=0
5069  ;;
5070     Hexagon)     TARGET_HAS_JIT=0
5071  ;;
5072     NVPTX)       TARGET_HAS_JIT=0
5073  ;;
5074     SystemZ)     TARGET_HAS_JIT=1
5075  ;;
5076     *)           TARGET_HAS_JIT=0
5077  ;;
5078   esac
5079 fi
5081 # Check whether --enable-docs was given.
5082 if test "${enable_docs+set}" = set; then
5083   enableval=$enable_docs;
5084 else
5085   enableval=default
5086 fi
5088 case "$enableval" in
5089   yes) ENABLE_DOCS=1
5090  ;;
5091   no)  ENABLE_DOCS=0
5092  ;;
5093   default) ENABLE_DOCS=1
5094  ;;
5095   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5096 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5097    { (exit 1); exit 1; }; } ;;
5098 esac
5100 # Check whether --enable-doxygen was given.
5101 if test "${enable_doxygen+set}" = set; then
5102   enableval=$enable_doxygen;
5103 else
5104   enableval=default
5105 fi
5107 case "$enableval" in
5108   yes) ENABLE_DOXYGEN=1
5109  ;;
5110   no)  ENABLE_DOXYGEN=0
5111  ;;
5112   default) ENABLE_DOXYGEN=0
5113  ;;
5114   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5115 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5116    { (exit 1); exit 1; }; } ;;
5117 esac
5119 # Check whether --enable-threads was given.
5120 if test "${enable_threads+set}" = set; then
5121   enableval=$enable_threads;
5122 else
5123   enableval=default
5124 fi
5126 case "$enableval" in
5127   yes) LLVM_ENABLE_THREADS=1
5128  ;;
5129   no)  LLVM_ENABLE_THREADS=0
5130  ;;
5131   default) LLVM_ENABLE_THREADS=1
5132  ;;
5133   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5135    { (exit 1); exit 1; }; } ;;
5136 esac
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5140 _ACEOF
5143 # Check whether --enable-pthreads was given.
5144 if test "${enable_pthreads+set}" = set; then
5145   enableval=$enable_pthreads;
5146 else
5147   enableval=default
5148 fi
5150 case "$enableval" in
5151   yes) ENABLE_PTHREADS=1
5152  ;;
5153   no)  ENABLE_PTHREADS=0
5154  ;;
5155   default) ENABLE_PTHREADS=1
5156  ;;
5157   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160 esac
5162 # Check whether --enable-zlib was given.
5163 if test "${enable_zlib+set}" = set; then
5164   enableval=$enable_zlib;
5165 else
5166   enableval=default
5167 fi
5169 case "$enableval" in
5170   yes) LLVM_ENABLE_ZLIB=1
5171  ;;
5172   no)  LLVM_ENABLE_ZLIB=0
5173  ;;
5174   default) LLVM_ENABLE_ZLIB=1
5175  ;;
5176   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5178    { (exit 1); exit 1; }; } ;;
5179 esac
5181 cat >>confdefs.h <<_ACEOF
5182 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5183 _ACEOF
5186 # Check whether --enable-pic was given.
5187 if test "${enable_pic+set}" = set; then
5188   enableval=$enable_pic;
5189 else
5190   enableval=default
5191 fi
5193 case "$enableval" in
5194   yes) ENABLE_PIC=1
5195  ;;
5196   no)  ENABLE_PIC=0
5197  ;;
5198   default) ENABLE_PIC=1
5199  ;;
5200   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5202    { (exit 1); exit 1; }; } ;;
5203 esac
5205 cat >>confdefs.h <<_ACEOF
5206 #define ENABLE_PIC $ENABLE_PIC
5207 _ACEOF
5210 # Check whether --enable-shared was given.
5211 if test "${enable_shared+set}" = set; then
5212   enableval=$enable_shared;
5213 else
5214   enableval=default
5215 fi
5217 case "$enableval" in
5218   yes) ENABLE_SHARED=1
5219  ;;
5220   no)  ENABLE_SHARED=0
5221  ;;
5222   default) ENABLE_SHARED=0
5223  ;;
5224   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5229 # Check whether --enable-embed-stdcxx was given.
5230 if test "${enable_embed_stdcxx+set}" = set; then
5231   enableval=$enable_embed_stdcxx;
5232 else
5233   enableval=default
5234 fi
5236 case "$enableval" in
5237   yes) ENABLE_EMBED_STDCXX=1
5238  ;;
5239   no)  ENABLE_EMBED_STDCXX=0
5240  ;;
5241   default) ENABLE_EMBED_STDCXX=0
5242  ;;
5243   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5245    { (exit 1); exit 1; }; } ;;
5246 esac
5248 # Check whether --enable-timestamps was given.
5249 if test "${enable_timestamps+set}" = set; then
5250   enableval=$enable_timestamps;
5251 else
5252   enableval=default
5253 fi
5255 case "$enableval" in
5256   yes) ENABLE_TIMESTAMPS=1
5257  ;;
5258   no)  ENABLE_TIMESTAMPS=0
5259  ;;
5260   default) ENABLE_TIMESTAMPS=1
5261  ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5267 cat >>confdefs.h <<_ACEOF
5268 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5269 _ACEOF
5272 # Check whether --enable-backtraces was given.
5273 if test "${enable_backtraces+set}" = set; then
5274   enableval=$enable_backtraces; case "$enableval" in
5275     yes) llvm_cv_enable_backtraces="yes" ;;
5276     no)  llvm_cv_enable_backtraces="no"  ;;
5277     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5278 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5279    { (exit 1); exit 1; }; } ;;
5280   esac
5281 else
5282   llvm_cv_enable_backtraces="yes"
5283 fi
5285 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5287 cat >>confdefs.h <<\_ACEOF
5288 #define ENABLE_BACKTRACES 1
5289 _ACEOF
5291 fi
5293 # Check whether --enable-crash-overrides was given.
5294 if test "${enable_crash_overrides+set}" = set; then
5295   enableval=$enable_crash_overrides; case "$enableval" in
5296     yes) llvm_cv_enable_crash_overrides="yes" ;;
5297     no)  llvm_cv_enable_crash_overrides="no"  ;;
5298     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301   esac
5302 else
5303   llvm_cv_enable_crash_overrides="yes"
5304 fi
5306 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define ENABLE_CRASH_OVERRIDES 1
5310 _ACEOF
5312 fi
5314 TARGETS_TO_BUILD=""
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317   enableval=$enable_targets;
5318 else
5319   enableval=all
5320 fi
5322 if test "$enableval" = host-only ; then
5323   enableval=host
5324 fi
5325 case "$enableval" in
5326   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5327   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5328       case "$a_target" in
5329         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5342         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5344         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5345         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5346         host) case "$llvm_cv_target_arch" in
5347             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5350             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5351             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5355             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5356             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5357             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5358             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5359             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5360 echo "$as_me: error: Can not set target to build" >&2;}
5361    { (exit 1); exit 1; }; } ;;
5362           esac ;;
5363         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5364 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5365    { (exit 1); exit 1; }; } ;;
5366       esac
5367   done
5368   ;;
5369 esac
5371 # Check whether --enable-experimental-targets was given.
5372 if test "${enable_experimental_targets+set}" = set; then
5373   enableval=$enable_experimental_targets;
5374 else
5375   enableval=disable
5376 fi
5379 if test ${enableval} != "disable"
5380 then
5381   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5382 fi
5384 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5387 for a_target in $TARGETS_TO_BUILD; do
5388   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5392 _ACEOF
5394     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5395     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5396     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5397     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5398     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5399       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5400     fi
5401     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5403     fi
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5407 _ACEOF
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5412 _ACEOF
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5417 _ACEOF
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5422 _ACEOF
5424     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426 cat >>confdefs.h <<_ACEOF
5427 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5428 _ACEOF
5430     fi
5431     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5435 _ACEOF
5437     fi
5438   fi
5439 done
5441 LLVM_ENUM_TARGETS=""
5442 LLVM_ENUM_ASM_PRINTERS=""
5443 LLVM_ENUM_ASM_PARSERS=""
5444 LLVM_ENUM_DISASSEMBLERS=""
5445 for target_to_build in $TARGETS_TO_BUILD; do
5446   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5447   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5448     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5449   fi
5450   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5451     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5452   fi
5453   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5454     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5455   fi
5456 done
5463 # Check whether --with-optimize-option was given.
5464 if test "${with_optimize_option+set}" = set; then
5465   withval=$with_optimize_option;
5466 else
5467   withval=default
5468 fi
5470 { echo "$as_me:$LINENO: checking optimization flags" >&5
5471 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5472 case "$withval" in
5473   default)
5474     case "$llvm_cv_os_type" in
5475     FreeBSD) optimize_option=-O2 ;;
5476     MingW) optimize_option=-O2 ;;
5477     *)     optimize_option=-O3 ;;
5478     esac ;;
5479   *) optimize_option="$withval" ;;
5480 esac
5481 OPTIMIZE_OPTION=$optimize_option
5483 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5484 echo "${ECHO_T}$optimize_option" >&6; }
5487 # Check whether --with-extra-options was given.
5488 if test "${with_extra_options+set}" = set; then
5489   withval=$with_extra_options;
5490 else
5491   withval=default
5492 fi
5494 case "$withval" in
5495   default) EXTRA_OPTIONS= ;;
5496   *) EXTRA_OPTIONS=$withval ;;
5497 esac
5498 EXTRA_OPTIONS=$EXTRA_OPTIONS
5502 # Check whether --with-extra-ld-options was given.
5503 if test "${with_extra_ld_options+set}" = set; then
5504   withval=$with_extra_ld_options;
5505 else
5506   withval=default
5507 fi
5509 case "$withval" in
5510   default) EXTRA_LD_OPTIONS= ;;
5511   *) EXTRA_LD_OPTIONS=$withval ;;
5512 esac
5513 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5516 # Check whether --enable-bindings was given.
5517 if test "${enable_bindings+set}" = set; then
5518   enableval=$enable_bindings;
5519 else
5520   enableval=default
5521 fi
5523 BINDINGS_TO_BUILD=""
5524 case "$enableval" in
5525   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5526   all ) BINDINGS_TO_BUILD="ocaml" ;;
5527   none | no) BINDINGS_TO_BUILD="" ;;
5528   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5529       case "$a_binding" in
5530         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5531         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5532 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534       esac
5535   done
5536   ;;
5537 esac
5540 # Check whether --with-ocaml-libdir was given.
5541 if test "${with_ocaml_libdir+set}" = set; then
5542   withval=$with_ocaml_libdir;
5543 else
5544   withval=auto
5545 fi
5547 case "$withval" in
5548   auto) with_ocaml_libdir="$withval" ;;
5549   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5550   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5551 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5552    { (exit 1); exit 1; }; } ;;
5553 esac
5556 # Check whether --with-clang-srcdir was given.
5557 if test "${with_clang_srcdir+set}" = set; then
5558   withval=$with_clang_srcdir;
5559 else
5560   withval="-"
5561 fi
5563 case "$withval" in
5564   -) clang_src_root="" ;;
5565   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5566   *) clang_src_root="$ac_pwd/$withval" ;;
5567 esac
5568 CLANG_SRC_ROOT=$clang_src_root
5572 # Check whether --with-clang-resource-dir was given.
5573 if test "${with_clang_resource_dir+set}" = set; then
5574   withval=$with_clang_resource_dir;
5575 else
5576   withval=""
5577 fi
5580 cat >>confdefs.h <<_ACEOF
5581 #define CLANG_RESOURCE_DIR "$withval"
5582 _ACEOF
5586 # Check whether --with-c-include-dirs was given.
5587 if test "${with_c_include_dirs+set}" = set; then
5588   withval=$with_c_include_dirs;
5589 else
5590   withval=""
5591 fi
5594 cat >>confdefs.h <<_ACEOF
5595 #define C_INCLUDE_DIRS "$withval"
5596 _ACEOF
5599 # Clang normally uses the system c++ headers and libraries. With this option,
5600 # clang will use the ones provided by a gcc installation instead. This option should
5601 # be passed the same value that was used with --prefix when configuring gcc.
5603 # Check whether --with-gcc-toolchain was given.
5604 if test "${with_gcc_toolchain+set}" = set; then
5605   withval=$with_gcc_toolchain;
5606 else
5607   withval=""
5608 fi
5611 cat >>confdefs.h <<_ACEOF
5612 #define GCC_INSTALL_PREFIX "$withval"
5613 _ACEOF
5617 # Check whether --with-default-sysroot was given.
5618 if test "${with_default_sysroot+set}" = set; then
5619   withval=$with_default_sysroot;
5620 else
5621   withval=""
5622 fi
5625 cat >>confdefs.h <<_ACEOF
5626 #define DEFAULT_SYSROOT "$withval"
5627 _ACEOF
5631 # Check whether --with-binutils-include was given.
5632 if test "${with_binutils_include+set}" = set; then
5633   withval=$with_binutils_include;
5634 else
5635   withval=default
5636 fi
5638 case "$withval" in
5639   default) WITH_BINUTILS_INCDIR=default ;;
5640   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5641   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5642 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5643    { (exit 1); exit 1; }; } ;;
5644 esac
5645 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5646   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5648   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5649      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5650      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5651 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5652    { (exit 1); exit 1; }; };
5653   fi
5654 fi
5657 # Check whether --with-bug-report-url was given.
5658 if test "${with_bug_report_url+set}" = set; then
5659   withval=$with_bug_report_url;
5660 else
5661   withval="http://llvm.org/bugs/"
5662 fi
5665 cat >>confdefs.h <<_ACEOF
5666 #define BUG_REPORT_URL "$withval"
5667 _ACEOF
5670 # Check whether --enable-terminfo was given.
5671 if test "${enable_terminfo+set}" = set; then
5672   enableval=$enable_terminfo; case "$enableval" in
5673     yes) llvm_cv_enable_terminfo="yes" ;;
5674     no)  llvm_cv_enable_terminfo="no"  ;;
5675     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5676 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5677    { (exit 1); exit 1; }; } ;;
5678   esac
5679 else
5680   llvm_cv_enable_terminfo="yes"
5681 fi
5684 # Check whether --enable-libffi was given.
5685 if test "${enable_libffi+set}" = set; then
5686   enableval=$enable_libffi; case "$enableval" in
5687     yes) llvm_cv_enable_libffi="yes" ;;
5688     no)  llvm_cv_enable_libffi="no"  ;;
5689     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5690 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5691    { (exit 1); exit 1; }; } ;;
5692   esac
5693 else
5694   llvm_cv_enable_libffi=no
5695 fi
5699 # Check whether --with-internal-prefix was given.
5700 if test "${with_internal_prefix+set}" = set; then
5701   withval=$with_internal_prefix;
5702 else
5703   withval=""
5704 fi
5706 INTERNAL_PREFIX=$withval
5710 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5711 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5712 if test "${lt_cv_path_NM+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   if test -n "$NM"; then
5716   # Let the user override the test.
5717   lt_cv_path_NM="$NM"
5718 else
5719   lt_nm_to_check="${ac_tool_prefix}nm"
5720   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5721     lt_nm_to_check="$lt_nm_to_check nm"
5722   fi
5723   for lt_tmp_nm in $lt_nm_to_check; do
5724     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5725     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5726       IFS="$lt_save_ifs"
5727       test -z "$ac_dir" && ac_dir=.
5728       tmp_nm="$ac_dir/$lt_tmp_nm"
5729       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5730         # Check to see if the nm accepts a BSD-compat flag.
5731         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5732         #   nm: unknown option "B" ignored
5733         # Tru64's nm complains that /dev/null is an invalid object file
5734         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5735         */dev/null* | *'Invalid file or object type'*)
5736           lt_cv_path_NM="$tmp_nm -B"
5737           break
5738           ;;
5739         *)
5740           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5741           */dev/null*)
5742             lt_cv_path_NM="$tmp_nm -p"
5743             break
5744             ;;
5745           *)
5746             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5747             continue # so that we can try to find one that supports BSD flags
5748             ;;
5749           esac
5750           ;;
5751         esac
5752       fi
5753     done
5754     IFS="$lt_save_ifs"
5755   done
5756   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5757 fi
5758 fi
5759 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5760 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5761 NM="$lt_cv_path_NM"
5765 { echo "$as_me:$LINENO: checking for GNU make" >&5
5766 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5767 if test "${llvm_cv_gnu_make_command+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   llvm_cv_gnu_make_command=''
5771  for a in "$MAKE" make gmake gnumake ; do
5772   if test -z "$a" ; then continue ; fi ;
5773   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5774   then
5775    llvm_cv_gnu_make_command=$a ;
5776    break;
5777   fi
5778  done
5779 fi
5780 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5781 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5782  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5783    ifGNUmake='' ;
5784  else
5785    ifGNUmake='#' ;
5786    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5787 echo "${ECHO_T}\"Not found\"" >&6; };
5788  fi
5791 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5792 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5793 LN_S=$as_ln_s
5794 if test "$LN_S" = "ln -s"; then
5795   { echo "$as_me:$LINENO: result: yes" >&5
5796 echo "${ECHO_T}yes" >&6; }
5797 else
5798   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5799 echo "${ECHO_T}no, using $LN_S" >&6; }
5800 fi
5802 # Extract the first word of "cmp", so it can be a program name with args.
5803 set dummy cmp; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_path_CMP+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809   case $CMP in
5810   [\\/]* | ?:[\\/]*)
5811   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5812   ;;
5813   *)
5814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5829   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5830   ;;
5831 esac
5832 fi
5833 CMP=$ac_cv_path_CMP
5834 if test -n "$CMP"; then
5835   { echo "$as_me:$LINENO: result: $CMP" >&5
5836 echo "${ECHO_T}$CMP" >&6; }
5837 else
5838   { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5840 fi
5843 # Extract the first word of "cp", so it can be a program name with args.
5844 set dummy cp; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_path_CP+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850   case $CP in
5851   [\\/]* | ?:[\\/]*)
5852   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5853   ;;
5854   *)
5855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860   for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5870   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5871   ;;
5872 esac
5873 fi
5874 CP=$ac_cv_path_CP
5875 if test -n "$CP"; then
5876   { echo "$as_me:$LINENO: result: $CP" >&5
5877 echo "${ECHO_T}$CP" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5881 fi
5884 # Extract the first word of "date", so it can be a program name with args.
5885 set dummy date; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_DATE+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   case $DATE in
5892   [\\/]* | ?:[\\/]*)
5893   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5894   ;;
5895   *)
5896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5911   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5912   ;;
5913 esac
5914 fi
5915 DATE=$ac_cv_path_DATE
5916 if test -n "$DATE"; then
5917   { echo "$as_me:$LINENO: result: $DATE" >&5
5918 echo "${ECHO_T}$DATE" >&6; }
5919 else
5920   { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5922 fi
5925 # Extract the first word of "find", so it can be a program name with args.
5926 set dummy find; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_FIND+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   case $FIND in
5933   [\\/]* | ?:[\\/]*)
5934   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5935   ;;
5936   *)
5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5952   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5953   ;;
5954 esac
5955 fi
5956 FIND=$ac_cv_path_FIND
5957 if test -n "$FIND"; then
5958   { echo "$as_me:$LINENO: result: $FIND" >&5
5959 echo "${ECHO_T}$FIND" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5963 fi
5966 # Extract the first word of "grep", so it can be a program name with args.
5967 set dummy grep; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_GREP+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   case $GREP in
5974   [\\/]* | ?:[\\/]*)
5975   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5976   ;;
5977   *)
5978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983   for ac_exec_ext in '' $ac_executable_extensions; do
5984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5993   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5994   ;;
5995 esac
5996 fi
5997 GREP=$ac_cv_path_GREP
5998 if test -n "$GREP"; then
5999   { echo "$as_me:$LINENO: result: $GREP" >&5
6000 echo "${ECHO_T}$GREP" >&6; }
6001 else
6002   { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6004 fi
6007 # Extract the first word of "mkdir", so it can be a program name with args.
6008 set dummy mkdir; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MKDIR+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   case $MKDIR in
6015   [\\/]* | ?:[\\/]*)
6016   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6017   ;;
6018   *)
6019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024   for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6034   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6035   ;;
6036 esac
6037 fi
6038 MKDIR=$ac_cv_path_MKDIR
6039 if test -n "$MKDIR"; then
6040   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6041 echo "${ECHO_T}$MKDIR" >&6; }
6042 else
6043   { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6048 # Extract the first word of "mv", so it can be a program name with args.
6049 set dummy mv; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_path_MV+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   case $MV in
6056   [\\/]* | ?:[\\/]*)
6057   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6058   ;;
6059   *)
6060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_exec_ext in '' $ac_executable_extensions; do
6066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6075   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6076   ;;
6077 esac
6078 fi
6079 MV=$ac_cv_path_MV
6080 if test -n "$MV"; then
6081   { echo "$as_me:$LINENO: result: $MV" >&5
6082 echo "${ECHO_T}$MV" >&6; }
6083 else
6084   { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6086 fi
6089 if test -n "$ac_tool_prefix"; then
6090   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   if test -n "$RANLIB"; then
6098   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6115 fi
6116 fi
6117 RANLIB=$ac_cv_prog_RANLIB
6118 if test -n "$RANLIB"; then
6119   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6120 echo "${ECHO_T}$RANLIB" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6124 fi
6127 fi
6128 if test -z "$ac_cv_prog_RANLIB"; then
6129   ac_ct_RANLIB=$RANLIB
6130   # Extract the first word of "ranlib", so it can be a program name with args.
6131 set dummy ranlib; ac_word=$2
6132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   if test -n "$ac_ct_RANLIB"; then
6138   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145   for ac_exec_ext in '' $ac_executable_extensions; do
6146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6147     ac_cv_prog_ac_ct_RANLIB="ranlib"
6148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6155 fi
6156 fi
6157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6158 if test -n "$ac_ct_RANLIB"; then
6159   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6160 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6161 else
6162   { echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6; }
6164 fi
6166   if test "x$ac_ct_RANLIB" = x; then
6167     RANLIB=":"
6168   else
6169     case $cross_compiling:$ac_tool_warned in
6170 yes:)
6171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6172 whose name does not start with the host triplet.  If you think this
6173 configuration is useful to you, please write to autoconf@gnu.org." >&5
6174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6175 whose name does not start with the host triplet.  If you think this
6176 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179     RANLIB=$ac_ct_RANLIB
6180   fi
6181 else
6182   RANLIB="$ac_cv_prog_RANLIB"
6183 fi
6185 if test -n "$ac_tool_prefix"; then
6186   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}ar; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_AR+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   if test -n "$AR"; then
6194   ac_cv_prog_AR="$AR" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_prog_AR="${ac_tool_prefix}ar"
6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6211 fi
6212 fi
6213 AR=$ac_cv_prog_AR
6214 if test -n "$AR"; then
6215   { echo "$as_me:$LINENO: result: $AR" >&5
6216 echo "${ECHO_T}$AR" >&6; }
6217 else
6218   { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 fi
6223 fi
6224 if test -z "$ac_cv_prog_AR"; then
6225   ac_ct_AR=$AR
6226   # Extract the first word of "ar", so it can be a program name with args.
6227 set dummy ar; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   if test -n "$ac_ct_AR"; then
6234   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6235 else
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_prog_ac_ct_AR="ar"
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
6251 fi
6252 fi
6253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6254 if test -n "$ac_ct_AR"; then
6255   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6256 echo "${ECHO_T}$ac_ct_AR" >&6; }
6257 else
6258   { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6260 fi
6262   if test "x$ac_ct_AR" = x; then
6263     AR="false"
6264   else
6265     case $cross_compiling:$ac_tool_warned in
6266 yes:)
6267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6268 whose name does not start with the host triplet.  If you think this
6269 configuration is useful to you, please write to autoconf@gnu.org." >&5
6270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6271 whose name does not start with the host triplet.  If you think this
6272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275     AR=$ac_ct_AR
6276   fi
6277 else
6278   AR="$ac_cv_prog_AR"
6279 fi
6281 # Extract the first word of "rm", so it can be a program name with args.
6282 set dummy rm; ac_word=$2
6283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285 if test "${ac_cv_path_RM+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   case $RM in
6289   [\\/]* | ?:[\\/]*)
6290   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6291   ;;
6292   *)
6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298   for ac_exec_ext in '' $ac_executable_extensions; do
6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6308   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6309   ;;
6310 esac
6311 fi
6312 RM=$ac_cv_path_RM
6313 if test -n "$RM"; then
6314   { echo "$as_me:$LINENO: result: $RM" >&5
6315 echo "${ECHO_T}$RM" >&6; }
6316 else
6317   { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6319 fi
6322 # Extract the first word of "sed", so it can be a program name with args.
6323 set dummy sed; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_SED+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   case $SED in
6330   [\\/]* | ?:[\\/]*)
6331   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6332   ;;
6333   *)
6334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337   IFS=$as_save_IFS
6338   test -z "$as_dir" && as_dir=.
6339   for ac_exec_ext in '' $ac_executable_extensions; do
6340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343     break 2
6344   fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6349   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6350   ;;
6351 esac
6352 fi
6353 SED=$ac_cv_path_SED
6354 if test -n "$SED"; then
6355   { echo "$as_me:$LINENO: result: $SED" >&5
6356 echo "${ECHO_T}$SED" >&6; }
6357 else
6358   { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6360 fi
6363 # Extract the first word of "tar", so it can be a program name with args.
6364 set dummy tar; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_TAR+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   case $TAR in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380   for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6390   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6391   ;;
6392 esac
6393 fi
6394 TAR=$ac_cv_path_TAR
6395 if test -n "$TAR"; then
6396   { echo "$as_me:$LINENO: result: $TAR" >&5
6397 echo "${ECHO_T}$TAR" >&6; }
6398 else
6399   { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6404 # Extract the first word of "pwd", so it can be a program name with args.
6405 set dummy pwd; ac_word=$2
6406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6408 if test "${ac_cv_path_BINPWD+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   case $BINPWD in
6412   [\\/]* | ?:[\\/]*)
6413   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6414   ;;
6415   *)
6416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421   for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6431   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6432   ;;
6433 esac
6434 fi
6435 BINPWD=$ac_cv_path_BINPWD
6436 if test -n "$BINPWD"; then
6437   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6438 echo "${ECHO_T}$BINPWD" >&6; }
6439 else
6440   { echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6; }
6442 fi
6446 # Extract the first word of "Graphviz", so it can be a program name with args.
6447 set dummy Graphviz; ac_word=$2
6448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6450 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   case $GRAPHVIZ in
6454   [\\/]* | ?:[\\/]*)
6455   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6456   ;;
6457   *)
6458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463   for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470 done
6471 IFS=$as_save_IFS
6473   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6474   ;;
6475 esac
6476 fi
6477 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6478 if test -n "$GRAPHVIZ"; then
6479   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6480 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6481 else
6482   { echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6; }
6484 fi
6487 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6489 cat >>confdefs.h <<\_ACEOF
6490 #define HAVE_GRAPHVIZ 1
6491 _ACEOF
6493     if test "$llvm_cv_os_type" = "MingW" ; then
6494     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6495   fi
6497 cat >>confdefs.h <<_ACEOF
6498 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6499 _ACEOF
6501 fi
6502 # Extract the first word of "dot", so it can be a program name with args.
6503 set dummy dot; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_path_DOT+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   case $DOT in
6510   [\\/]* | ?:[\\/]*)
6511   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6512   ;;
6513   *)
6514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517   IFS=$as_save_IFS
6518   test -z "$as_dir" && as_dir=.
6519   for ac_exec_ext in '' $ac_executable_extensions; do
6520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6521     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523     break 2
6524   fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6529   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6530   ;;
6531 esac
6532 fi
6533 DOT=$ac_cv_path_DOT
6534 if test -n "$DOT"; then
6535   { echo "$as_me:$LINENO: result: $DOT" >&5
6536 echo "${ECHO_T}$DOT" >&6; }
6537 else
6538   { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6540 fi
6543 if test "$DOT" != "echo dot" ; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_DOT 1
6547 _ACEOF
6549     if test "$llvm_cv_os_type" = "MingW" ; then
6550     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6551   fi
6553 cat >>confdefs.h <<_ACEOF
6554 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6555 _ACEOF
6557 fi
6558 # Extract the first word of "fdp", so it can be a program name with args.
6559 set dummy fdp; ac_word=$2
6560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562 if test "${ac_cv_path_FDP+set}" = set; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   case $FDP in
6566   [\\/]* | ?:[\\/]*)
6567   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6568   ;;
6569   *)
6570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573   IFS=$as_save_IFS
6574   test -z "$as_dir" && as_dir=.
6575   for ac_exec_ext in '' $ac_executable_extensions; do
6576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6577     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579     break 2
6580   fi
6581 done
6582 done
6583 IFS=$as_save_IFS
6585   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6586   ;;
6587 esac
6588 fi
6589 FDP=$ac_cv_path_FDP
6590 if test -n "$FDP"; then
6591   { echo "$as_me:$LINENO: result: $FDP" >&5
6592 echo "${ECHO_T}$FDP" >&6; }
6593 else
6594   { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6596 fi
6599 if test "$FDP" != "echo fdp" ; then
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_FDP 1
6603 _ACEOF
6605     if test "$llvm_cv_os_type" = "MingW" ; then
6606     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6607   fi
6609 cat >>confdefs.h <<_ACEOF
6610 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6611 _ACEOF
6613 fi
6614 # Extract the first word of "neato", so it can be a program name with args.
6615 set dummy neato; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_NEATO+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   case $NEATO in
6622   [\\/]* | ?:[\\/]*)
6623   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6624   ;;
6625   *)
6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6641   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6642   ;;
6643 esac
6644 fi
6645 NEATO=$ac_cv_path_NEATO
6646 if test -n "$NEATO"; then
6647   { echo "$as_me:$LINENO: result: $NEATO" >&5
6648 echo "${ECHO_T}$NEATO" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6652 fi
6655 if test "$NEATO" != "echo neato" ; then
6657 cat >>confdefs.h <<\_ACEOF
6658 #define HAVE_NEATO 1
6659 _ACEOF
6661     if test "$llvm_cv_os_type" = "MingW" ; then
6662     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6663   fi
6665 cat >>confdefs.h <<_ACEOF
6666 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6667 _ACEOF
6669 fi
6670 # Extract the first word of "twopi", so it can be a program name with args.
6671 set dummy twopi; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_path_TWOPI+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   case $TWOPI in
6678   [\\/]* | ?:[\\/]*)
6679   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6680   ;;
6681   *)
6682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687   for ac_exec_ext in '' $ac_executable_extensions; do
6688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6689     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694 done
6695 IFS=$as_save_IFS
6697   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6698   ;;
6699 esac
6700 fi
6701 TWOPI=$ac_cv_path_TWOPI
6702 if test -n "$TWOPI"; then
6703   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6704 echo "${ECHO_T}$TWOPI" >&6; }
6705 else
6706   { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6708 fi
6711 if test "$TWOPI" != "echo twopi" ; then
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_TWOPI 1
6715 _ACEOF
6717     if test "$llvm_cv_os_type" = "MingW" ; then
6718     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6719   fi
6721 cat >>confdefs.h <<_ACEOF
6722 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6723 _ACEOF
6725 fi
6726 # Extract the first word of "circo", so it can be a program name with args.
6727 set dummy circo; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_CIRCO+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $CIRCO in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6753   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6754   ;;
6755 esac
6756 fi
6757 CIRCO=$ac_cv_path_CIRCO
6758 if test -n "$CIRCO"; then
6759   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6760 echo "${ECHO_T}$CIRCO" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6767 if test "$CIRCO" != "echo circo" ; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_CIRCO 1
6771 _ACEOF
6773     if test "$llvm_cv_os_type" = "MingW" ; then
6774     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6775   fi
6777 cat >>confdefs.h <<_ACEOF
6778 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6779 _ACEOF
6781 fi
6782 for ac_prog in gv gsview32
6783 do
6784   # Extract the first word of "$ac_prog", so it can be a program name with args.
6785 set dummy $ac_prog; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_GV+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   case $GV in
6792   [\\/]* | ?:[\\/]*)
6793   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6794   ;;
6795   *)
6796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6811   ;;
6812 esac
6813 fi
6814 GV=$ac_cv_path_GV
6815 if test -n "$GV"; then
6816   { echo "$as_me:$LINENO: result: $GV" >&5
6817 echo "${ECHO_T}$GV" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6824   test -n "$GV" && break
6825 done
6826 test -n "$GV" || GV="echo gv"
6828 if test "$GV" != "echo gv" ; then
6830 cat >>confdefs.h <<\_ACEOF
6831 #define HAVE_GV 1
6832 _ACEOF
6834     if test "$llvm_cv_os_type" = "MingW" ; then
6835     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6836   fi
6838 cat >>confdefs.h <<_ACEOF
6839 #define LLVM_PATH_GV "$GV${EXEEXT}"
6840 _ACEOF
6842 fi
6843 # Extract the first word of "dotty", so it can be a program name with args.
6844 set dummy dotty; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_DOTTY+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   case $DOTTY in
6851   [\\/]* | ?:[\\/]*)
6852   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6853   ;;
6854   *)
6855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858   IFS=$as_save_IFS
6859   test -z "$as_dir" && as_dir=.
6860   for ac_exec_ext in '' $ac_executable_extensions; do
6861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864     break 2
6865   fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6870   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6871   ;;
6872 esac
6873 fi
6874 DOTTY=$ac_cv_path_DOTTY
6875 if test -n "$DOTTY"; then
6876   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6877 echo "${ECHO_T}$DOTTY" >&6; }
6878 else
6879   { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6881 fi
6884 if test "$DOTTY" != "echo dotty" ; then
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_DOTTY 1
6888 _ACEOF
6890     if test "$llvm_cv_os_type" = "MingW" ; then
6891     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6892   fi
6894 cat >>confdefs.h <<_ACEOF
6895 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6896 _ACEOF
6898 fi
6899 for ac_prog in xdot xdot.py
6900 do
6901   # Extract the first word of "$ac_prog", so it can be a program name with args.
6902 set dummy $ac_prog; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_XDOT+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   case $XDOT in
6909   [\\/]* | ?:[\\/]*)
6910   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6911   ;;
6912   *)
6913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916   IFS=$as_save_IFS
6917   test -z "$as_dir" && as_dir=.
6918   for ac_exec_ext in '' $ac_executable_extensions; do
6919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6920     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922     break 2
6923   fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6928   ;;
6929 esac
6930 fi
6931 XDOT=$ac_cv_path_XDOT
6932 if test -n "$XDOT"; then
6933   { echo "$as_me:$LINENO: result: $XDOT" >&5
6934 echo "${ECHO_T}$XDOT" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6941   test -n "$XDOT" && break
6942 done
6943 test -n "$XDOT" || XDOT="echo xdot"
6945 if test "$XDOT" != "echo xdot" ; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_XDOT 1
6949 _ACEOF
6951     if test "$llvm_cv_os_type" = "MingW" ; then
6952     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6953   fi
6955 cat >>confdefs.h <<_ACEOF
6956 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6957 _ACEOF
6959 fi
6961 # Find a good install program.  We prefer a C program (faster),
6962 # so one script is as good as another.  But avoid the broken or
6963 # incompatible versions:
6964 # SysV /etc/install, /usr/sbin/install
6965 # SunOS /usr/etc/install
6966 # IRIX /sbin/install
6967 # AIX /bin/install
6968 # AmigaOS /C/install, which installs bootblocks on floppy discs
6969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6972 # OS/2's system install, which has a completely different semantic
6973 # ./install, which can be erroneously created by make from ./install.sh.
6974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6976 if test -z "$INSTALL"; then
6977 if test "${ac_cv_path_install+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983   IFS=$as_save_IFS
6984   test -z "$as_dir" && as_dir=.
6985   # Account for people who put trailing slashes in PATH elements.
6986 case $as_dir/ in
6987   ./ | .// | /cC/* | \
6988   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6989   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6990   /usr/ucb/* ) ;;
6991   *)
6992     # OSF1 and SCO ODT 3.0 have their own names for install.
6993     # Don't use installbsd from OSF since it installs stuff as root
6994     # by default.
6995     for ac_prog in ginstall scoinst install; do
6996       for ac_exec_ext in '' $ac_executable_extensions; do
6997         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6998           if test $ac_prog = install &&
6999             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7000             # AIX install.  It has an incompatible calling convention.
7001             :
7002           elif test $ac_prog = install &&
7003             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7004             # program-specific install script used by HP pwplus--don't use.
7005             :
7006           else
7007             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7008             break 3
7009           fi
7010         fi
7011       done
7012     done
7013     ;;
7014 esac
7015 done
7016 IFS=$as_save_IFS
7019 fi
7020   if test "${ac_cv_path_install+set}" = set; then
7021     INSTALL=$ac_cv_path_install
7022   else
7023     # As a last resort, use the slow shell script.  Don't cache a
7024     # value for INSTALL within a source directory, because that will
7025     # break other packages using the cache if that directory is
7026     # removed, or if the value is a relative name.
7027     INSTALL=$ac_install_sh
7028   fi
7029 fi
7030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7031 echo "${ECHO_T}$INSTALL" >&6; }
7033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7034 # It thinks the first close brace ends the variable substitution.
7035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7041 case "$INSTALL" in
7042  [\\/$]* | ?:[\\/]* ) ;;
7043  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7044 esac
7046 # Extract the first word of "bzip2", so it can be a program name with args.
7047 set dummy bzip2; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_BZIP2+set}" = set; then
7051   echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053   case $BZIP2 in
7054   [\\/]* | ?:[\\/]*)
7055   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7056   ;;
7057   *)
7058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061   IFS=$as_save_IFS
7062   test -z "$as_dir" && as_dir=.
7063   for ac_exec_ext in '' $ac_executable_extensions; do
7064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067     break 2
7068   fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7073   ;;
7074 esac
7075 fi
7076 BZIP2=$ac_cv_path_BZIP2
7077 if test -n "$BZIP2"; then
7078   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7079 echo "${ECHO_T}$BZIP2" >&6; }
7080 else
7081   { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083 fi
7086 # Extract the first word of "cat", so it can be a program name with args.
7087 set dummy cat; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_CAT+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   case $CAT in
7094   [\\/]* | ?:[\\/]*)
7095   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7096   ;;
7097   *)
7098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103   for ac_exec_ext in '' $ac_executable_extensions; do
7104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7113   ;;
7114 esac
7115 fi
7116 CAT=$ac_cv_path_CAT
7117 if test -n "$CAT"; then
7118   { echo "$as_me:$LINENO: result: $CAT" >&5
7119 echo "${ECHO_T}$CAT" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123 fi
7126 # Extract the first word of "doxygen", so it can be a program name with args.
7127 set dummy doxygen; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   case $DOXYGEN in
7134   [\\/]* | ?:[\\/]*)
7135   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7136   ;;
7137   *)
7138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143   for ac_exec_ext in '' $ac_executable_extensions; do
7144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7153   ;;
7154 esac
7155 fi
7156 DOXYGEN=$ac_cv_path_DOXYGEN
7157 if test -n "$DOXYGEN"; then
7158   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7159 echo "${ECHO_T}$DOXYGEN" >&6; }
7160 else
7161   { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7163 fi
7166 # Extract the first word of "groff", so it can be a program name with args.
7167 set dummy groff; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_GROFF+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   case $GROFF in
7174   [\\/]* | ?:[\\/]*)
7175   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7176   ;;
7177   *)
7178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7180 do
7181   IFS=$as_save_IFS
7182   test -z "$as_dir" && as_dir=.
7183   for ac_exec_ext in '' $ac_executable_extensions; do
7184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187     break 2
7188   fi
7189 done
7190 done
7191 IFS=$as_save_IFS
7193   ;;
7194 esac
7195 fi
7196 GROFF=$ac_cv_path_GROFF
7197 if test -n "$GROFF"; then
7198   { echo "$as_me:$LINENO: result: $GROFF" >&5
7199 echo "${ECHO_T}$GROFF" >&6; }
7200 else
7201   { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7206 # Extract the first word of "gzip", so it can be a program name with args.
7207 set dummy gzip; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   case $GZIPBIN in
7214   [\\/]* | ?:[\\/]*)
7215   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7216   ;;
7217   *)
7218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223   for ac_exec_ext in '' $ac_executable_extensions; do
7224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7233   ;;
7234 esac
7235 fi
7236 GZIPBIN=$ac_cv_path_GZIPBIN
7237 if test -n "$GZIPBIN"; then
7238   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7239 echo "${ECHO_T}$GZIPBIN" >&6; }
7240 else
7241   { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7243 fi
7246 # Extract the first word of "pdfroff", so it can be a program name with args.
7247 set dummy pdfroff; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_PDFROFF+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   case $PDFROFF in
7254   [\\/]* | ?:[\\/]*)
7255   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7256   ;;
7257   *)
7258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263   for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7273   ;;
7274 esac
7275 fi
7276 PDFROFF=$ac_cv_path_PDFROFF
7277 if test -n "$PDFROFF"; then
7278   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7279 echo "${ECHO_T}$PDFROFF" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7286 # Extract the first word of "zip", so it can be a program name with args.
7287 set dummy zip; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_ZIP+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   case $ZIP in
7294   [\\/]* | ?:[\\/]*)
7295   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7296   ;;
7297   *)
7298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7313   ;;
7314 esac
7315 fi
7316 ZIP=$ac_cv_path_ZIP
7317 if test -n "$ZIP"; then
7318   { echo "$as_me:$LINENO: result: $ZIP" >&5
7319 echo "${ECHO_T}$ZIP" >&6; }
7320 else
7321   { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7323 fi
7326 for ac_prog in ocamlc
7327 do
7328   # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332 if test "${ac_cv_path_OCAMLC+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   case $OCAMLC in
7336   [\\/]* | ?:[\\/]*)
7337   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7338   ;;
7339   *)
7340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345   for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352 done
7353 IFS=$as_save_IFS
7355   ;;
7356 esac
7357 fi
7358 OCAMLC=$ac_cv_path_OCAMLC
7359 if test -n "$OCAMLC"; then
7360   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7361 echo "${ECHO_T}$OCAMLC" >&6; }
7362 else
7363   { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7365 fi
7368   test -n "$OCAMLC" && break
7369 done
7371 for ac_prog in ocamlopt
7372 do
7373   # Extract the first word of "$ac_prog", so it can be a program name with args.
7374 set dummy $ac_prog; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   case $OCAMLOPT in
7381   [\\/]* | ?:[\\/]*)
7382   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7383   ;;
7384   *)
7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390   for ac_exec_ext in '' $ac_executable_extensions; do
7391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7400   ;;
7401 esac
7402 fi
7403 OCAMLOPT=$ac_cv_path_OCAMLOPT
7404 if test -n "$OCAMLOPT"; then
7405   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7406 echo "${ECHO_T}$OCAMLOPT" >&6; }
7407 else
7408   { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7410 fi
7413   test -n "$OCAMLOPT" && break
7414 done
7416 for ac_prog in ocamldep
7417 do
7418   # Extract the first word of "$ac_prog", so it can be a program name with args.
7419 set dummy $ac_prog; ac_word=$2
7420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   case $OCAMLDEP in
7426   [\\/]* | ?:[\\/]*)
7427   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7428   ;;
7429   *)
7430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7437     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7445   ;;
7446 esac
7447 fi
7448 OCAMLDEP=$ac_cv_path_OCAMLDEP
7449 if test -n "$OCAMLDEP"; then
7450   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7451 echo "${ECHO_T}$OCAMLDEP" >&6; }
7452 else
7453   { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7455 fi
7458   test -n "$OCAMLDEP" && break
7459 done
7461 for ac_prog in ocamldoc
7462 do
7463   # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy $ac_prog; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   case $OCAMLDOC in
7471   [\\/]* | ?:[\\/]*)
7472   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7473   ;;
7474   *)
7475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7490   ;;
7491 esac
7492 fi
7493 OCAMLDOC=$ac_cv_path_OCAMLDOC
7494 if test -n "$OCAMLDOC"; then
7495   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7496 echo "${ECHO_T}$OCAMLDOC" >&6; }
7497 else
7498   { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7500 fi
7503   test -n "$OCAMLDOC" && break
7504 done
7506 for ac_prog in gas as
7507 do
7508   # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy $ac_prog; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_path_GAS+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   case $GAS in
7516   [\\/]* | ?:[\\/]*)
7517   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7518   ;;
7519   *)
7520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525   for ac_exec_ext in '' $ac_executable_extensions; do
7526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532 done
7533 IFS=$as_save_IFS
7535   ;;
7536 esac
7537 fi
7538 GAS=$ac_cv_path_GAS
7539 if test -n "$GAS"; then
7540   { echo "$as_me:$LINENO: result: $GAS" >&5
7541 echo "${ECHO_T}$GAS" >&6; }
7542 else
7543   { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7545 fi
7548   test -n "$GAS" && break
7549 done
7552 { echo "$as_me:$LINENO: checking for linker version" >&5
7553 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7554 if test "${llvm_cv_link_version+set}" = set; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7558    version_string="$(ld -v 2>&1 | head -1)"
7560    # Check for ld64.
7561    if (echo "$version_string" | grep -q "ld64"); then
7562      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7563    else
7564      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7565    fi
7567 fi
7568 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7569 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7571 cat >>confdefs.h <<_ACEOF
7572 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7573 _ACEOF
7578 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7579 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7580 if test "${llvm_cv_link_use_r+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583    ac_ext=c
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7589   oldcflags="$CFLAGS"
7590   CFLAGS="$CFLAGS -Wl,-R."
7591   cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7598 int
7599 main ()
7602   ;
7603   return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (ac_try="$ac_link"
7608 case "(($ac_try" in
7609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610   *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613   (eval "$ac_link") 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } &&
7620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7621   { (case "(($ac_try" in
7622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623   *) ac_try_echo=$ac_try;;
7624 esac
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626   (eval "$ac_try") 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }; } &&
7630          { ac_try='test -s conftest$ac_exeext'
7631   { (case "(($ac_try" in
7632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633   *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636   (eval "$ac_try") 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; }; then
7640   llvm_cv_link_use_r=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645         llvm_cv_link_use_r=no
7646 fi
7648 rm -f core conftest.err conftest.$ac_objext \
7649       conftest$ac_exeext conftest.$ac_ext
7650   CFLAGS="$oldcflags"
7651   ac_ext=c
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 fi
7659 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7660 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7661 if test "$llvm_cv_link_use_r" = yes ; then
7663 cat >>confdefs.h <<\_ACEOF
7664 #define HAVE_LINK_R 1
7665 _ACEOF
7667   fi
7670 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7671 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7672 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675    ac_ext=c
7676 ac_cpp='$CPP $CPPFLAGS'
7677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681   oldcflags="$CFLAGS"
7682   CFLAGS="$CFLAGS -rdynamic"
7683   cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7690 int
7691 main ()
7694   ;
7695   return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (ac_try="$ac_link"
7700 case "(($ac_try" in
7701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702   *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705   (eval "$ac_link") 2>conftest.er1
7706   ac_status=$?
7707   grep -v '^ *+' conftest.er1 >conftest.err
7708   rm -f conftest.er1
7709   cat conftest.err >&5
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); } &&
7712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7713   { (case "(($ac_try" in
7714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715   *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718   (eval "$ac_try") 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; } &&
7722          { ac_try='test -s conftest$ac_exeext'
7723   { (case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_try") 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; }; then
7732   llvm_cv_link_use_export_dynamic=yes
7733 else
7734   echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7737         llvm_cv_link_use_export_dynamic=no
7738 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741       conftest$ac_exeext conftest.$ac_ext
7742   CFLAGS="$oldcflags"
7743   ac_ext=c
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 fi
7751 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7752 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7753 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_LINK_EXPORT_DYNAMIC 1
7757 _ACEOF
7759   fi
7762 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7763 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7764 if test "${llvm_cv_link_use_version_script+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767    ac_ext=c
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773   oldcflags="$CFLAGS"
7775   # The following code is from the autoconf manual,
7776   # "11.13: Limitations of Usual Tools".
7777   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7778   # Use mktemp if possible; otherwise fall back on mkdir,
7779   # with $RANDOM to make collisions less likely.
7780   : ${TMPDIR=/tmp}
7781   {
7782     tmp=`
7783       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7784     ` &&
7785     test -n "$tmp" && test -d "$tmp"
7786   } || {
7787     tmp=$TMPDIR/foo$$-$RANDOM
7788     (umask 077 && mkdir "$tmp")
7789   } || exit $?
7791   echo "{" > "$tmp/export.map"
7792   echo "  global: main;" >> "$tmp/export.map"
7793   echo "  local: *;" >> "$tmp/export.map"
7794   echo "};" >> "$tmp/export.map"
7796   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7797   cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7804 int
7805 main ()
7808   ;
7809   return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7814 case "(($ac_try" in
7815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816   *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819   (eval "$ac_link") 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7827   { (case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_try") 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; } &&
7836          { ac_try='test -s conftest$ac_exeext'
7837   { (case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_try") 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   llvm_cv_link_use_version_script=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851         llvm_cv_link_use_version_script=no
7852 fi
7854 rm -f core conftest.err conftest.$ac_objext \
7855       conftest$ac_exeext conftest.$ac_ext
7856   rm "$tmp/export.map"
7857   rmdir "$tmp"
7858   CFLAGS="$oldcflags"
7859   ac_ext=c
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866 fi
7867 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7868 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7869 if test "$llvm_cv_link_use_version_script" = yes ; then
7870   HAVE_LINK_VERSION_SCRIPT=1
7872   fi
7877 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7878 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7879 if test "${ac_cv_c_const+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h.  */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h.  */
7889 int
7890 main ()
7892 /* FIXME: Include the comments suggested by Paul. */
7893 #ifndef __cplusplus
7894   /* Ultrix mips cc rejects this.  */
7895   typedef int charset[2];
7896   const charset x;
7897   /* SunOS 4.1.1 cc rejects this.  */
7898   char const *const *ccp;
7899   char **p;
7900   /* NEC SVR4.0.2 mips cc rejects this.  */
7901   struct point {int x, y;};
7902   static struct point const zero = {0,0};
7903   /* AIX XL C 1.02.0.0 rejects this.
7904      It does not let you subtract one const X* pointer from another in
7905      an arm of an if-expression whose if-part is not a constant
7906      expression */
7907   const char *g = "string";
7908   ccp = &g + (g ? g-g : 0);
7909   /* HPUX 7.0 cc rejects these. */
7910   ++ccp;
7911   p = (char**) ccp;
7912   ccp = (char const *const *) p;
7913   { /* SCO 3.2v4 cc rejects this.  */
7914     char *t;
7915     char const *s = 0 ? (char *) 0 : (char const *) 0;
7917     *t++ = 0;
7918     if (s) return 0;
7919   }
7920   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7921     int x[] = {25, 17};
7922     const int *foo = &x[0];
7923     ++foo;
7924   }
7925   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7926     typedef const int *iptr;
7927     iptr p = 0;
7928     ++p;
7929   }
7930   { /* AIX XL C 1.02.0.0 rejects this saying
7931        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7932     struct s { int j; const int *ap[3]; };
7933     struct s *b; b->j = 5;
7934   }
7935   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7936     const int foo = 10;
7937     if (!foo) return 0;
7938   }
7939   return !x[0] && !zero.x;
7940 #endif
7942   ;
7943   return 0;
7945 _ACEOF
7946 rm -f conftest.$ac_objext
7947 if { (ac_try="$ac_compile"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_compile") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } &&
7960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; } &&
7970          { ac_try='test -s conftest.$ac_objext'
7971   { (case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_try") 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; }; then
7980   ac_cv_c_const=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985         ac_cv_c_const=no
7986 fi
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7991 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7992 if test $ac_cv_c_const = no; then
7994 cat >>confdefs.h <<\_ACEOF
7995 #define const
7996 _ACEOF
7998 fi
8001 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8002 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_GREP+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   # Extract the first word of "grep ggrep" to use in msg output
8007 if test -z "$GREP"; then
8008 set dummy grep ggrep; ac_prog_name=$2
8009 if test "${ac_cv_path_GREP+set}" = set; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   ac_path_GREP_found=false
8013 # Loop through the user's path and test for each of PROGNAME-LIST
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019   for ac_prog in grep ggrep; do
8020   for ac_exec_ext in '' $ac_executable_extensions; do
8021     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8022     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8023     # Check for GNU ac_path_GREP and select it if it is found.
8024   # Check for GNU $ac_path_GREP
8025 case `"$ac_path_GREP" --version 2>&1` in
8026 *GNU*)
8027   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8028 *)
8029   ac_count=0
8030   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8031   while :
8032   do
8033     cat "conftest.in" "conftest.in" >"conftest.tmp"
8034     mv "conftest.tmp" "conftest.in"
8035     cp "conftest.in" "conftest.nl"
8036     echo 'GREP' >> "conftest.nl"
8037     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8038     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8039     ac_count=`expr $ac_count + 1`
8040     if test $ac_count -gt ${ac_path_GREP_max-0}; then
8041       # Best one so far, save it but keep looking for a better one
8042       ac_cv_path_GREP="$ac_path_GREP"
8043       ac_path_GREP_max=$ac_count
8044     fi
8045     # 10*(2^10) chars as input seems more than enough
8046     test $ac_count -gt 10 && break
8047   done
8048   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8049 esac
8052     $ac_path_GREP_found && break 3
8053   done
8054 done
8056 done
8057 IFS=$as_save_IFS
8060 fi
8062 GREP="$ac_cv_path_GREP"
8063 if test -z "$GREP"; then
8064   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8065 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8066    { (exit 1); exit 1; }; }
8067 fi
8069 else
8070   ac_cv_path_GREP=$GREP
8071 fi
8074 fi
8075 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8076 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8077  GREP="$ac_cv_path_GREP"
8080 { echo "$as_me:$LINENO: checking for egrep" >&5
8081 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8082 if test "${ac_cv_path_EGREP+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8086    then ac_cv_path_EGREP="$GREP -E"
8087    else
8088      # Extract the first word of "egrep" to use in msg output
8089 if test -z "$EGREP"; then
8090 set dummy egrep; ac_prog_name=$2
8091 if test "${ac_cv_path_EGREP+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   ac_path_EGREP_found=false
8095 # Loop through the user's path and test for each of PROGNAME-LIST
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101   for ac_prog in egrep; do
8102   for ac_exec_ext in '' $ac_executable_extensions; do
8103     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8104     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8105     # Check for GNU ac_path_EGREP and select it if it is found.
8106   # Check for GNU $ac_path_EGREP
8107 case `"$ac_path_EGREP" --version 2>&1` in
8108 *GNU*)
8109   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8110 *)
8111   ac_count=0
8112   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8113   while :
8114   do
8115     cat "conftest.in" "conftest.in" >"conftest.tmp"
8116     mv "conftest.tmp" "conftest.in"
8117     cp "conftest.in" "conftest.nl"
8118     echo 'EGREP' >> "conftest.nl"
8119     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8120     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8121     ac_count=`expr $ac_count + 1`
8122     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8123       # Best one so far, save it but keep looking for a better one
8124       ac_cv_path_EGREP="$ac_path_EGREP"
8125       ac_path_EGREP_max=$ac_count
8126     fi
8127     # 10*(2^10) chars as input seems more than enough
8128     test $ac_count -gt 10 && break
8129   done
8130   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8131 esac
8134     $ac_path_EGREP_found && break 3
8135   done
8136 done
8138 done
8139 IFS=$as_save_IFS
8142 fi
8144 EGREP="$ac_cv_path_EGREP"
8145 if test -z "$EGREP"; then
8146   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8147 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8148    { (exit 1); exit 1; }; }
8149 fi
8151 else
8152   ac_cv_path_EGREP=$EGREP
8153 fi
8156    fi
8157 fi
8158 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8159 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8160  EGREP="$ac_cv_path_EGREP"
8163 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8165 if test "${ac_cv_header_stdc+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 #include <stdlib.h>
8175 #include <stdarg.h>
8176 #include <string.h>
8177 #include <float.h>
8179 int
8180 main ()
8183   ;
8184   return 0;
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (ac_try="$ac_compile"
8189 case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_compile") 2>conftest.er1
8195   ac_status=$?
8196   grep -v '^ *+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } &&
8201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8202   { (case "(($ac_try" in
8203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204   *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207   (eval "$ac_try") 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; } &&
8211          { ac_try='test -s conftest.$ac_objext'
8212   { (case "(($ac_try" in
8213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214   *) ac_try_echo=$ac_try;;
8215 esac
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217   (eval "$ac_try") 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   ac_cv_header_stdc=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226         ac_cv_header_stdc=no
8227 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 if test $ac_cv_header_stdc = yes; then
8232   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8233   cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h.  */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h.  */
8239 #include <string.h>
8241 _ACEOF
8242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243   $EGREP "memchr" >/dev/null 2>&1; then
8244   :
8245 else
8246   ac_cv_header_stdc=no
8247 fi
8248 rm -f conftest*
8250 fi
8252 if test $ac_cv_header_stdc = yes; then
8253   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 #include <stdlib.h>
8262 _ACEOF
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264   $EGREP "free" >/dev/null 2>&1; then
8265   :
8266 else
8267   ac_cv_header_stdc=no
8268 fi
8269 rm -f conftest*
8271 fi
8273 if test $ac_cv_header_stdc = yes; then
8274   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8275   if test "$cross_compiling" = yes; then
8276   :
8277 else
8278   cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284 #include <ctype.h>
8285 #include <stdlib.h>
8286 #if ((' ' & 0x0FF) == 0x020)
8287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8289 #else
8290 # define ISLOWER(c) \
8291                    (('a' <= (c) && (c) <= 'i') \
8292                      || ('j' <= (c) && (c) <= 'r') \
8293                      || ('s' <= (c) && (c) <= 'z'))
8294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8295 #endif
8297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8298 int
8299 main ()
8301   int i;
8302   for (i = 0; i < 256; i++)
8303     if (XOR (islower (i), ISLOWER (i))
8304         || toupper (i) != TOUPPER (i))
8305       return 2;
8306   return 0;
8308 _ACEOF
8309 rm -f conftest$ac_exeext
8310 if { (ac_try="$ac_link"
8311 case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_link") 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8320   { (case "(($ac_try" in
8321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322   *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325   (eval "$ac_try") 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   :
8330 else
8331   echo "$as_me: program exited with status $ac_status" >&5
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ( exit $ac_status )
8336 ac_cv_header_stdc=no
8337 fi
8338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8339 fi
8342 fi
8343 fi
8344 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8345 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8346 if test $ac_cv_header_stdc = yes; then
8348 cat >>confdefs.h <<\_ACEOF
8349 #define STDC_HEADERS 1
8350 _ACEOF
8352 fi
8359 ac_header_dirent=no
8360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8361   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8362 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8363 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373 #include <sys/types.h>
8374 #include <$ac_hdr>
8376 int
8377 main ()
8379 if ((DIR *) 0)
8380 return 0;
8381   ;
8382   return 0;
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_compile") 2>conftest.er1
8393   ac_status=$?
8394   grep -v '^ *+' conftest.er1 >conftest.err
8395   rm -f conftest.er1
8396   cat conftest.err >&5
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); } &&
8399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest.$ac_objext'
8410   { (case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_try") 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   eval "$as_ac_Header=yes"
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424         eval "$as_ac_Header=no"
8425 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 ac_res=`eval echo '${'$as_ac_Header'}'`
8430                { echo "$as_me:$LINENO: result: $ac_res" >&5
8431 echo "${ECHO_T}$ac_res" >&6; }
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433   cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8435 _ACEOF
8437 ac_header_dirent=$ac_hdr; break
8438 fi
8440 done
8441 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8442 if test $ac_header_dirent = dirent.h; then
8443   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8444 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8445 if test "${ac_cv_search_opendir+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   ac_func_search_save_LIBS=$LIBS
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8456 /* Override any GCC internal prototype to avoid an error.
8457    Use char because int might match the return type of a GCC
8458    builtin and then its argument prototype would still apply.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char opendir ();
8463 int
8464 main ()
8466 return opendir ();
8467   ;
8468   return 0;
8470 _ACEOF
8471 for ac_lib in '' dir; do
8472   if test -z "$ac_lib"; then
8473     ac_res="none required"
8474   else
8475     ac_res=-l$ac_lib
8476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8477   fi
8478   rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485   (eval "$ac_link") 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; } &&
8502          { ac_try='test -s conftest$ac_exeext'
8503   { (case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508   (eval "$ac_try") 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512   ac_cv_search_opendir=$ac_res
8513 else
8514   echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8518 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521       conftest$ac_exeext
8522   if test "${ac_cv_search_opendir+set}" = set; then
8523   break
8524 fi
8525 done
8526 if test "${ac_cv_search_opendir+set}" = set; then
8527   :
8528 else
8529   ac_cv_search_opendir=no
8530 fi
8531 rm conftest.$ac_ext
8532 LIBS=$ac_func_search_save_LIBS
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8536 ac_res=$ac_cv_search_opendir
8537 if test "$ac_res" != no; then
8538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8540 fi
8542 else
8543   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8544 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8545 if test "${ac_cv_search_opendir+set}" = set; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8556 /* Override any GCC internal prototype to avoid an error.
8557    Use char because int might match the return type of a GCC
8558    builtin and then its argument prototype would still apply.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 char opendir ();
8563 int
8564 main ()
8566 return opendir ();
8567   ;
8568   return 0;
8570 _ACEOF
8571 for ac_lib in '' x; do
8572   if test -z "$ac_lib"; then
8573     ac_res="none required"
8574   else
8575     ac_res=-l$ac_lib
8576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8577   fi
8578   rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_link") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593   { (case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_try") 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; } &&
8602          { ac_try='test -s conftest$ac_exeext'
8603   { (case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_try") 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_search_opendir=$ac_res
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8618 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext
8622   if test "${ac_cv_search_opendir+set}" = set; then
8623   break
8624 fi
8625 done
8626 if test "${ac_cv_search_opendir+set}" = set; then
8627   :
8628 else
8629   ac_cv_search_opendir=no
8630 fi
8631 rm conftest.$ac_ext
8632 LIBS=$ac_func_search_save_LIBS
8633 fi
8634 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8635 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8636 ac_res=$ac_cv_search_opendir
8637 if test "$ac_res" != no; then
8638   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8640 fi
8642 fi
8644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8655                   inttypes.h stdint.h unistd.h
8656 do
8657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h.  */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h.  */
8669 $ac_includes_default
8671 #include <$ac_header>
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (ac_try="$ac_compile"
8675 case "(($ac_try" in
8676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677   *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680   (eval "$ac_compile") 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688   { (case "(($ac_try" in
8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690   *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693   (eval "$ac_try") 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; } &&
8697          { ac_try='test -s conftest.$ac_objext'
8698   { (case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703   (eval "$ac_try") 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; }; then
8707   eval "$as_ac_Header=yes"
8708 else
8709   echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8712         eval "$as_ac_Header=no"
8713 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 ac_res=`eval echo '${'$as_ac_Header'}'`
8718                { echo "$as_me:$LINENO: result: $ac_res" >&5
8719 echo "${ECHO_T}$ac_res" >&6; }
8720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8721   cat >>confdefs.h <<_ACEOF
8722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723 _ACEOF
8725 fi
8727 done
8731 for ac_header in dlfcn.h
8732 do
8733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 fi
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741                { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8743 else
8744   # Is the header compilable?
8745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 $ac_includes_default
8754 #include <$ac_header>
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8758 case "(($ac_try" in
8759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760   *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763   (eval "$ac_compile") 2>conftest.er1
8764   ac_status=$?
8765   grep -v '^ *+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } &&
8770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8771   { (case "(($ac_try" in
8772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773   *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776   (eval "$ac_try") 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; } &&
8780          { ac_try='test -s conftest.$ac_objext'
8781   { (case "(($ac_try" in
8782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783   *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786   (eval "$ac_try") 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_header_compiler=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795         ac_header_compiler=no
8796 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8800 echo "${ECHO_T}$ac_header_compiler" >&6; }
8802 # Is the header present?
8803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h.  */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h.  */
8811 #include <$ac_header>
8812 _ACEOF
8813 if { (ac_try="$ac_cpp conftest.$ac_ext"
8814 case "(($ac_try" in
8815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816   *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } >/dev/null; then
8826   if test -s conftest.err; then
8827     ac_cpp_err=$ac_c_preproc_warn_flag
8828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8829   else
8830     ac_cpp_err=
8831   fi
8832 else
8833   ac_cpp_err=yes
8834 fi
8835 if test -z "$ac_cpp_err"; then
8836   ac_header_preproc=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841   ac_header_preproc=no
8842 fi
8844 rm -f conftest.err conftest.$ac_ext
8845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8846 echo "${ECHO_T}$ac_header_preproc" >&6; }
8848 # So?  What about this header?
8849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8850   yes:no: )
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8855     ac_header_preproc=yes
8856     ;;
8857   no:yes:* )
8858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8870     ( cat <<\_ASBOX
8871 ## ------------------------------------ ##
8872 ## Report this to http://llvm.org/bugs/ ##
8873 ## ------------------------------------ ##
8874 _ASBOX
8875      ) | sed "s/^/$as_me: WARNING:     /" >&2
8876     ;;
8877 esac
8878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881   echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883   eval "$as_ac_Header=\$ac_header_preproc"
8884 fi
8885 ac_res=`eval echo '${'$as_ac_Header'}'`
8886                { echo "$as_me:$LINENO: result: $ac_res" >&5
8887 echo "${ECHO_T}$ac_res" >&6; }
8889 fi
8890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8891   cat >>confdefs.h <<_ACEOF
8892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8893 _ACEOF
8895 fi
8897 done
8899 # Check whether --enable-ltdl-install was given.
8900 if test "${enable_ltdl_install+set}" = set; then
8901   enableval=$enable_ltdl_install;
8902 fi
8907 if test x"${enable_ltdl_install-no}" != xno; then
8908   INSTALL_LTDL_TRUE=
8909   INSTALL_LTDL_FALSE='#'
8910 else
8911   INSTALL_LTDL_TRUE='#'
8912   INSTALL_LTDL_FALSE=
8913 fi
8917 if test x"${enable_ltdl_convenience-no}" != xno; then
8918   CONVENIENCE_LTDL_TRUE=
8919   CONVENIENCE_LTDL_FALSE='#'
8920 else
8921   CONVENIENCE_LTDL_TRUE='#'
8922   CONVENIENCE_LTDL_FALSE=
8923 fi
8926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8928 library_names_spec=
8929 libname_spec='lib$name'
8930 soname_spec=
8931 shrext_cmds=".so"
8932 postinstall_cmds=
8933 postuninstall_cmds=
8934 finish_cmds=
8935 finish_eval=
8936 shlibpath_var=
8937 shlibpath_overrides_runpath=unknown
8938 version_type=none
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8941 if test "$GCC" = yes; then
8942   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8943   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8944     # if the path contains ";" then we assume it to be the separator
8945     # otherwise default to the standard path separator (i.e. ":") - it is
8946     # assumed that no part of a normal pathname contains ";" but that should
8947     # okay in the real world where ";" in dirpaths is itself problematic.
8948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8949   else
8950     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8951   fi
8952 else
8953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8954 fi
8955 need_lib_prefix=unknown
8956 hardcode_into_libs=no
8958 # when you set need_version to no, make sure it does not cause -set_version
8959 # flags to be left without arguments
8960 need_version=unknown
8962 case $host_os in
8963 aix3*)
8964   version_type=linux
8965   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8966   shlibpath_var=LIBPATH
8968   # AIX 3 has no versioning support, so we append a major version to the name.
8969   soname_spec='${libname}${release}${shared_ext}$major'
8970   ;;
8972 aix4* | aix5*)
8973   version_type=linux
8974   need_lib_prefix=no
8975   need_version=no
8976   hardcode_into_libs=yes
8977   if test "$host_cpu" = ia64; then
8978     # AIX 5 supports IA64
8979     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8980     shlibpath_var=LD_LIBRARY_PATH
8981   else
8982     # With GCC up to 2.95.x, collect2 would create an import file
8983     # for dependence libraries.  The import file would start with
8984     # the line `#! .'.  This would cause the generated library to
8985     # depend on `.', always an invalid library.  This was fixed in
8986     # development snapshots of GCC prior to 3.0.
8987     case $host_os in
8988       aix4 | aix4.[01] | aix4.[01].*)
8989       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8990            echo ' yes '
8991            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8992         :
8993       else
8994         can_build_shared=no
8995       fi
8996       ;;
8997     esac
8998     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8999     # soname into executable. Probably we can add versioning support to
9000     # collect2, so additional links can be useful in future.
9001     if test "$aix_use_runtimelinking" = yes; then
9002       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9003       # instead of lib<name>.a to let people know that these are not
9004       # typical AIX shared libraries.
9005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006     else
9007       # We preserve .a as extension for shared libraries through AIX4.2
9008       # and later when we are not doing run time linking.
9009       library_names_spec='${libname}${release}.a $libname.a'
9010       soname_spec='${libname}${release}${shared_ext}$major'
9011     fi
9012     shlibpath_var=LIBPATH
9013   fi
9014   ;;
9016 amigaos*)
9017   library_names_spec='$libname.ixlibrary $libname.a'
9018   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9019   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'
9020   ;;
9022 beos*)
9023   library_names_spec='${libname}${shared_ext}'
9024   dynamic_linker="$host_os ld.so"
9025   shlibpath_var=LIBRARY_PATH
9026   ;;
9028 bsdi[45]*)
9029   version_type=linux
9030   need_version=no
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032   soname_spec='${libname}${release}${shared_ext}$major'
9033   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9036   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9037   # the default ld.so.conf also contains /usr/contrib/lib and
9038   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9039   # libtool to hard-code these into programs
9040   ;;
9042 cygwin* | mingw* | pw32*)
9043   version_type=windows
9044   shrext_cmds=".dll"
9045   need_version=no
9046   need_lib_prefix=no
9048   case $GCC,$host_os in
9049   yes,cygwin* | yes,mingw* | yes,pw32*)
9050     library_names_spec='$libname.dll.a'
9051     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9052     postinstall_cmds='base_file=`basename \${file}`~
9053       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9054       dldir=$destdir/`dirname \$dlpath`~
9055       test -d \$dldir || mkdir -p \$dldir~
9056       $install_prog $dir/$dlname \$dldir/$dlname~
9057       chmod a+x \$dldir/$dlname'
9058     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9059       dlpath=$dir/\$dldll~
9060        $rm \$dlpath'
9061     shlibpath_overrides_runpath=yes
9063     case $host_os in
9064     cygwin*)
9065       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9066       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9067       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9068       ;;
9069     mingw*)
9070       # MinGW DLLs use traditional 'lib' prefix
9071       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9072       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9073       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9074         # It is most probably a Windows format PATH printed by
9075         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9076         # path with ; separators, and with drive letters. We can handle the
9077         # drive letters (cygwin fileutils understands them), so leave them,
9078         # especially as we might pass files found there to a mingw objdump,
9079         # which wouldn't understand a cygwinified path. Ahh.
9080         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9081       else
9082         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9083       fi
9084       ;;
9085     pw32*)
9086       # pw32 DLLs use 'pw' prefix rather than 'lib'
9087       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9088       ;;
9089     esac
9090     ;;
9092   *)
9093     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9094     ;;
9095   esac
9096   dynamic_linker='Win32 ld.exe'
9097   # FIXME: first we should search . and the directory the executable is in
9098   shlibpath_var=PATH
9099   ;;
9101 darwin* | rhapsody*)
9102   dynamic_linker="$host_os dyld"
9103   version_type=darwin
9104   need_lib_prefix=no
9105   need_version=no
9106   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9107   soname_spec='${libname}${release}${major}$shared_ext'
9108   shlibpath_overrides_runpath=yes
9109   shlibpath_var=DYLD_LIBRARY_PATH
9110   shrext_cmds='.dylib'
9111   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9112   if test "$GCC" = yes; then
9113     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"`
9114   else
9115     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9116   fi
9117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9118   ;;
9120 dgux*)
9121   version_type=linux
9122   need_lib_prefix=no
9123   need_version=no
9124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9125   soname_spec='${libname}${release}${shared_ext}$major'
9126   shlibpath_var=LD_LIBRARY_PATH
9127   ;;
9129 freebsd1.*)
9130   dynamic_linker=no
9131   ;;
9133 kfreebsd*-gnu)
9134   version_type=linux
9135   need_lib_prefix=no
9136   need_version=no
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   shlibpath_overrides_runpath=no
9141   hardcode_into_libs=yes
9142   dynamic_linker='GNU ld.so'
9143   ;;
9145 freebsd* | dragonfly*)
9146   # DragonFly does not have aout.  When/if they implement a new
9147   # versioning mechanism, adjust this.
9148   if test -x /usr/bin/objformat; then
9149     objformat=`/usr/bin/objformat`
9150   else
9151     case $host_os in
9152     freebsd[123].*) objformat=aout ;;
9153     *) objformat=elf ;;
9154     esac
9155   fi
9156   version_type=freebsd-$objformat
9157   case $version_type in
9158     freebsd-elf*)
9159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9160       need_version=no
9161       need_lib_prefix=no
9162       ;;
9163     freebsd-*)
9164       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9165       need_version=yes
9166       ;;
9167   esac
9168   shlibpath_var=LD_LIBRARY_PATH
9169   case $host_os in
9170   freebsd2.*)
9171     shlibpath_overrides_runpath=yes
9172     ;;
9173   freebsd3.[01]* | freebsdelf3.[01]*)
9174     shlibpath_overrides_runpath=yes
9175     hardcode_into_libs=yes
9176     ;;
9177   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9178   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9179     shlibpath_overrides_runpath=no
9180     hardcode_into_libs=yes
9181     ;;
9182   freebsd*) # from 4.6 on
9183     shlibpath_overrides_runpath=yes
9184     hardcode_into_libs=yes
9185     ;;
9186   esac
9187   ;;
9189 gnu*)
9190   version_type=linux
9191   need_lib_prefix=no
9192   need_version=no
9193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9194   soname_spec='${libname}${release}${shared_ext}$major'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   hardcode_into_libs=yes
9197   ;;
9199 hpux9* | hpux10* | hpux11*)
9200   # Give a soname corresponding to the major version so that dld.sl refuses to
9201   # link against other versions.
9202   version_type=sunos
9203   need_lib_prefix=no
9204   need_version=no
9205   case $host_cpu in
9206   ia64*)
9207     shrext_cmds='.so'
9208     hardcode_into_libs=yes
9209     dynamic_linker="$host_os dld.so"
9210     shlibpath_var=LD_LIBRARY_PATH
9211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213     soname_spec='${libname}${release}${shared_ext}$major'
9214     if test "X$HPUX_IA64_MODE" = X32; then
9215       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9216     else
9217       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9218     fi
9219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9220     ;;
9221    hppa*64*)
9222      shrext_cmds='.sl'
9223      hardcode_into_libs=yes
9224      dynamic_linker="$host_os dld.sl"
9225      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9226      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228      soname_spec='${libname}${release}${shared_ext}$major'
9229      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9230      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9231      ;;
9232    *)
9233     shrext_cmds='.sl'
9234     dynamic_linker="$host_os dld.sl"
9235     shlibpath_var=SHLIB_PATH
9236     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238     soname_spec='${libname}${release}${shared_ext}$major'
9239     ;;
9240   esac
9241   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9242   postinstall_cmds='chmod 555 $lib'
9243   ;;
9245 interix3*)
9246   version_type=linux
9247   need_lib_prefix=no
9248   need_version=no
9249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9250   soname_spec='${libname}${release}${shared_ext}$major'
9251   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   shlibpath_overrides_runpath=no
9254   hardcode_into_libs=yes
9255   ;;
9257 irix5* | irix6* | nonstopux*)
9258   case $host_os in
9259     nonstopux*) version_type=nonstopux ;;
9260     *)
9261         if test "$lt_cv_prog_gnu_ld" = yes; then
9262                 version_type=linux
9263         else
9264                 version_type=irix
9265         fi ;;
9266   esac
9267   need_lib_prefix=no
9268   need_version=no
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9271   case $host_os in
9272   irix5* | nonstopux*)
9273     libsuff= shlibsuff=
9274     ;;
9275   *)
9276     case $LD in # libtool.m4 will add one of these switches to LD
9277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9278       libsuff= shlibsuff= libmagic=32-bit;;
9279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9280       libsuff=32 shlibsuff=N32 libmagic=N32;;
9281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9283     *) libsuff= shlibsuff= libmagic=never-match;;
9284     esac
9285     ;;
9286   esac
9287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9288   shlibpath_overrides_runpath=no
9289   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9290   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9291   hardcode_into_libs=yes
9292   ;;
9294 # No shared lib support for Linux oldld, aout, or coff.
9295 linux*oldld* | linux*aout* | linux*coff*)
9296   dynamic_linker=no
9297   ;;
9299 # This must be Linux ELF.
9300 linux*)
9301   version_type=linux
9302   need_lib_prefix=no
9303   need_version=no
9304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   shlibpath_overrides_runpath=no
9309   # This implies no fast_install, which is unacceptable.
9310   # Some rework will be needed to allow for fast_install
9311   # before this can be enabled.
9312   hardcode_into_libs=yes
9314   # Append ld.so.conf contents to the search path
9315   if test -f /etc/ld.so.conf; then
9316     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' ' '`
9317     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9318   fi
9320   # We used to test for /lib/ld.so.1 and disable shared libraries on
9321   # powerpc, because MkLinux only supported shared libraries with the
9322   # GNU dynamic linker.  Since this was broken with cross compilers,
9323   # most powerpc-linux boxes support dynamic linking these days and
9324   # people can always --disable-shared, the test was removed, and we
9325   # assume the GNU/Linux dynamic linker is in use.
9326   dynamic_linker='GNU/Linux ld.so'
9327   ;;
9329 knetbsd*-gnu)
9330   version_type=linux
9331   need_lib_prefix=no
9332   need_version=no
9333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9334   soname_spec='${libname}${release}${shared_ext}$major'
9335   shlibpath_var=LD_LIBRARY_PATH
9336   shlibpath_overrides_runpath=no
9337   hardcode_into_libs=yes
9338   dynamic_linker='GNU ld.so'
9339   ;;
9341 netbsd*)
9342   version_type=sunos
9343   need_lib_prefix=no
9344   need_version=no
9345   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9347     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9348     dynamic_linker='NetBSD (a.out) ld.so'
9349   else
9350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9351     soname_spec='${libname}${release}${shared_ext}$major'
9352     dynamic_linker='NetBSD ld.elf_so'
9353   fi
9354   shlibpath_var=LD_LIBRARY_PATH
9355   shlibpath_overrides_runpath=yes
9356   hardcode_into_libs=yes
9357   ;;
9359 newsos6)
9360   version_type=linux
9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362   shlibpath_var=LD_LIBRARY_PATH
9363   shlibpath_overrides_runpath=yes
9364   ;;
9366 nto-qnx*)
9367   version_type=linux
9368   need_lib_prefix=no
9369   need_version=no
9370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371   soname_spec='${libname}${release}${shared_ext}$major'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   shlibpath_overrides_runpath=yes
9374   ;;
9376 openbsd* | bitrig*)
9377   version_type=sunos
9378   sys_lib_dlsearch_path_spec="/usr/lib"
9379   need_lib_prefix=no
9380   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9381   case $host_os in
9382     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9383     *)                         need_version=no  ;;
9384   esac
9385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9387   shlibpath_var=LD_LIBRARY_PATH
9388   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9389     case $host_os in
9390       openbsd2.[89] | openbsd2.[89].*)
9391         shlibpath_overrides_runpath=no
9392         ;;
9393       *)
9394         shlibpath_overrides_runpath=yes
9395         ;;
9396       esac
9397   else
9398     shlibpath_overrides_runpath=yes
9399   fi
9400   ;;
9402 os2*)
9403   libname_spec='$name'
9404   shrext_cmds=".dll"
9405   need_lib_prefix=no
9406   library_names_spec='$libname${shared_ext} $libname.a'
9407   dynamic_linker='OS/2 ld.exe'
9408   shlibpath_var=LIBPATH
9409   ;;
9411 osf3* | osf4* | osf5*)
9412   version_type=osf
9413   need_lib_prefix=no
9414   need_version=no
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9419   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9420   ;;
9422 solaris*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   shlibpath_var=LD_LIBRARY_PATH
9429   shlibpath_overrides_runpath=yes
9430   hardcode_into_libs=yes
9431   # ldd complains unless libraries are executable
9432   postinstall_cmds='chmod +x $lib'
9433   ;;
9435 sunos4*)
9436   version_type=sunos
9437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9438   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9439   shlibpath_var=LD_LIBRARY_PATH
9440   shlibpath_overrides_runpath=yes
9441   if test "$with_gnu_ld" = yes; then
9442     need_lib_prefix=no
9443   fi
9444   need_version=yes
9445   ;;
9447 sysv4 | sysv4.3*)
9448   version_type=linux
9449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450   soname_spec='${libname}${release}${shared_ext}$major'
9451   shlibpath_var=LD_LIBRARY_PATH
9452   case $host_vendor in
9453     sni)
9454       shlibpath_overrides_runpath=no
9455       need_lib_prefix=no
9456       export_dynamic_flag_spec='${wl}-Blargedynsym'
9457       runpath_var=LD_RUN_PATH
9458       ;;
9459     siemens)
9460       need_lib_prefix=no
9461       ;;
9462     motorola)
9463       need_lib_prefix=no
9464       need_version=no
9465       shlibpath_overrides_runpath=no
9466       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9467       ;;
9468   esac
9469   ;;
9471 sysv4*MP*)
9472   if test -d /usr/nec ;then
9473     version_type=linux
9474     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9475     soname_spec='$libname${shared_ext}.$major'
9476     shlibpath_var=LD_LIBRARY_PATH
9477   fi
9478   ;;
9480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9481   version_type=freebsd-elf
9482   need_lib_prefix=no
9483   need_version=no
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   hardcode_into_libs=yes
9488   if test "$with_gnu_ld" = yes; then
9489     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9490     shlibpath_overrides_runpath=no
9491   else
9492     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9493     shlibpath_overrides_runpath=yes
9494     case $host_os in
9495       sco3.2v5*)
9496         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9497         ;;
9498     esac
9499   fi
9500   sys_lib_dlsearch_path_spec='/usr/lib'
9501   ;;
9503 uts4*)
9504   version_type=linux
9505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506   soname_spec='${libname}${release}${shared_ext}$major'
9507   shlibpath_var=LD_LIBRARY_PATH
9508   ;;
9510 *)
9511   dynamic_linker=no
9512   ;;
9513 esac
9514 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9515 echo "${ECHO_T}$dynamic_linker" >&6; }
9516 test "$dynamic_linker" = no && can_build_shared=no
9518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9519 if test "$GCC" = yes; then
9520   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9521 fi
9524 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9525 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9526 if test "${libltdl_cv_shlibext+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9530 module=yes
9531 eval libltdl_cv_shlibext=$shrext_cmds
9533 fi
9534 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9535 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9536 if test -n "$libltdl_cv_shlibext"; then
9538 cat >>confdefs.h <<_ACEOF
9539 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9540 _ACEOF
9542 fi
9545 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9546 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9547 if test "${libltdl_cv_sys_search_path+set}" = set; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9551 fi
9552 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9553 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9554 if test -n "$libltdl_cv_sys_search_path"; then
9555   sys_search_path=
9556   for dir in $libltdl_cv_sys_search_path; do
9557     if test -z "$sys_search_path"; then
9558       sys_search_path="$dir"
9559     else
9560       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9561     fi
9562   done
9564 cat >>confdefs.h <<_ACEOF
9565 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9566 _ACEOF
9568 fi
9570 { echo "$as_me:$LINENO: checking for objdir" >&5
9571 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9572 if test "${libltdl_cv_objdir+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   libltdl_cv_objdir="$objdir"
9576   if test -n "$objdir"; then
9577     :
9578   else
9579     rm -f .libs 2>/dev/null
9580     mkdir .libs 2>/dev/null
9581     if test -d .libs; then
9582       libltdl_cv_objdir=.libs
9583     else
9584       # MS-DOS does not allow filenames that begin with a dot.
9585       libltdl_cv_objdir=_libs
9586     fi
9587   rmdir .libs 2>/dev/null
9588   fi
9590 fi
9591 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9592 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9594 cat >>confdefs.h <<_ACEOF
9595 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9596 _ACEOF
9603 # Check for command to grab the raw symbol name followed by C symbol from nm.
9604 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9605 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9606 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9610 # These are sane defaults that work on at least a few old systems.
9611 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9613 # Character class describing NM global symbol codes.
9614 symcode='[BCDEGRST]'
9616 # Regexp to match symbols that can be accessed directly from C.
9617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9619 # Transform an extracted symbol line into a proper C declaration
9620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9622 # Transform an extracted symbol line into symbol name and symbol address
9623 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'"
9625 # Define system-specific variables.
9626 case $host_os in
9627 aix*)
9628   symcode='[BCDT]'
9629   ;;
9630 cygwin* | mingw* | pw32*)
9631   symcode='[ABCDGISTW]'
9632   ;;
9633 hpux*) # Its linker distinguishes data from code symbols
9634   if test "$host_cpu" = ia64; then
9635     symcode='[ABCDEGRST]'
9636   fi
9637   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9638   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'"
9639   ;;
9640 linux*)
9641   if test "$host_cpu" = ia64; then
9642     symcode='[ABCDGIRSTW]'
9643     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9644     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'"
9645   fi
9646   ;;
9647 irix* | nonstopux*)
9648   symcode='[BCDEGRST]'
9649   ;;
9650 osf*)
9651   symcode='[BCDEGQRST]'
9652   ;;
9653 solaris*)
9654   symcode='[BDRT]'
9655   ;;
9656 sco3.2v5*)
9657   symcode='[DT]'
9658   ;;
9659 sysv4.2uw2*)
9660   symcode='[DT]'
9661   ;;
9662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9663   symcode='[ABDT]'
9664   ;;
9665 sysv4)
9666   symcode='[DFNSTU]'
9667   ;;
9668 esac
9670 # Handle CRLF in mingw tool chain
9671 opt_cr=
9672 case $build_os in
9673 mingw*)
9674   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9675   ;;
9676 esac
9678 # If we're using GNU nm, then use its standard symbol codes.
9679 case `$NM -V 2>&1` in
9680 *GNU* | *'with BFD'*)
9681   symcode='[ABCDGIRSTW]' ;;
9682 esac
9684 # Try without a prefix undercore, then with it.
9685 for ac_symprfx in "" "_"; do
9687   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9688   symxfrm="\\1 $ac_symprfx\\2 \\2"
9690   # Write the raw and C identifiers.
9691   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9693   # Check to see that the pipe works correctly.
9694   pipe_works=no
9696   rm -f conftest*
9697   cat > conftest.$ac_ext <<EOF
9698 #ifdef __cplusplus
9699 extern "C" {
9700 #endif
9701 char nm_test_var;
9702 void nm_test_func(){}
9703 #ifdef __cplusplus
9705 #endif
9706 int main(){nm_test_var='a';nm_test_func();return(0);}
9707 EOF
9709   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710   (eval $ac_compile) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; then
9714     # Now try to grab the symbols.
9715     nlist=conftest.nm
9716     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9717   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } && test -s "$nlist"; then
9721       # Try sorting and uniquifying the output.
9722       if sort "$nlist" | uniq > "$nlist"T; then
9723         mv -f "$nlist"T "$nlist"
9724       else
9725         rm -f "$nlist"T
9726       fi
9728       # Make sure that we snagged all the symbols we need.
9729       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9730         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9731           cat <<EOF > conftest.$ac_ext
9732 #ifdef __cplusplus
9733 extern "C" {
9734 #endif
9736 EOF
9737           # Now generate the symbol file.
9738           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9740           cat <<EOF >> conftest.$ac_ext
9741 #if defined (__STDC__) && __STDC__
9742 # define lt_ptr_t void *
9743 #else
9744 # define lt_ptr_t char *
9745 # define const
9746 #endif
9748 /* The mapping between symbol names and symbols. */
9749 const struct {
9750   const char *name;
9751   lt_ptr_t address;
9753 lt_preloaded_symbols[] =
9755 EOF
9756           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9757           cat <<\EOF >> conftest.$ac_ext
9758   {0, (lt_ptr_t) 0}
9759 };
9761 #ifdef __cplusplus
9763 #endif
9764 EOF
9765           # Now try linking the two files.
9766           mv conftest.$ac_objext conftstm.$ac_objext
9767           lt_save_LIBS="$LIBS"
9768           lt_save_CFLAGS="$CFLAGS"
9769           LIBS="conftstm.$ac_objext"
9770           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9771           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772   (eval $ac_link) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9776             pipe_works=yes
9777           fi
9778           LIBS="$lt_save_LIBS"
9779           CFLAGS="$lt_save_CFLAGS"
9780         else
9781           echo "cannot find nm_test_func in $nlist" >&5
9782         fi
9783       else
9784         echo "cannot find nm_test_var in $nlist" >&5
9785       fi
9786     else
9787       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9788     fi
9789   else
9790     echo "$progname: failed program was:" >&5
9791     cat conftest.$ac_ext >&5
9792   fi
9793   rm -f conftest* conftst*
9795   # Do not use the global_symbol_pipe unless it works.
9796   if test "$pipe_works" = yes; then
9797     break
9798   else
9799     lt_cv_sys_global_symbol_pipe=
9800   fi
9801 done
9803 fi
9805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9806   lt_cv_sys_global_symbol_to_cdecl=
9807 fi
9808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9809   { echo "$as_me:$LINENO: result: failed" >&5
9810 echo "${ECHO_T}failed" >&6; }
9811 else
9812   { echo "$as_me:$LINENO: result: ok" >&5
9813 echo "${ECHO_T}ok" >&6; }
9814 fi
9817 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9818 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9819 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9823     libltdl_cv_preloaded_symbols=yes
9824   else
9825     libltdl_cv_preloaded_symbols=no
9826   fi
9828 fi
9829 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9830 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9831 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9833 cat >>confdefs.h <<\_ACEOF
9834 #define HAVE_PRELOADED_SYMBOLS 1
9835 _ACEOF
9837 fi
9839 LIBADD_DL=
9841 ac_ext=c
9842 ac_cpp='$CPP $CPPFLAGS'
9843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9848 { echo "$as_me:$LINENO: checking for shl_load" >&5
9849 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9850 if test "${ac_cv_func_shl_load+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9861 #define shl_load innocuous_shl_load
9863 /* System header to define __stub macros and hopefully few prototypes,
9864     which can conflict with char shl_load (); below.
9865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9866     <limits.h> exists even on freestanding compilers.  */
9868 #ifdef __STDC__
9869 # include <limits.h>
9870 #else
9871 # include <assert.h>
9872 #endif
9874 #undef shl_load
9876 /* Override any GCC internal prototype to avoid an error.
9877    Use char because int might match the return type of a GCC
9878    builtin and then its argument prototype would still apply.  */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 char shl_load ();
9883 /* The GNU C library defines this for functions which it implements
9884     to always fail with ENOSYS.  Some functions are actually named
9885     something starting with __ and the normal name is an alias.  */
9886 #if defined __stub_shl_load || defined __stub___shl_load
9887 choke me
9888 #endif
9890 int
9891 main ()
9893 return shl_load ();
9894   ;
9895   return 0;
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9900 case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_link") 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913   { (case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_try") 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; } &&
9922          { ac_try='test -s conftest$ac_exeext'
9923   { (case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_try") 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; }; then
9932   ac_cv_func_shl_load=yes
9933 else
9934   echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937         ac_cv_func_shl_load=no
9938 fi
9940 rm -f core conftest.err conftest.$ac_objext \
9941       conftest$ac_exeext conftest.$ac_ext
9942 fi
9943 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9944 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9945 if test $ac_cv_func_shl_load = yes; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_SHL_LOAD 1
9949 _ACEOF
9951 else
9952   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9953 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-ldld  $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9966 /* Override any GCC internal prototype to avoid an error.
9967    Use char because int might match the return type of a GCC
9968    builtin and then its argument prototype would still apply.  */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char shl_load ();
9973 int
9974 main ()
9976 return shl_load ();
9977   ;
9978   return 0;
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9983 case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_link") 2>conftest.er1
9989   ac_status=$?
9990   grep -v '^ *+' conftest.er1 >conftest.err
9991   rm -f conftest.er1
9992   cat conftest.err >&5
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9996   { (case "(($ac_try" in
9997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998   *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001   (eval "$ac_try") 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; } &&
10005          { ac_try='test -s conftest$ac_exeext'
10006   { (case "(($ac_try" in
10007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008   *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011   (eval "$ac_try") 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; }; then
10015   ac_cv_lib_dld_shl_load=yes
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020         ac_cv_lib_dld_shl_load=no
10023 rm -f core conftest.err conftest.$ac_objext \
10024       conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10028 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10029 if test $ac_cv_lib_dld_shl_load = yes; then
10031 cat >>confdefs.h <<\_ACEOF
10032 #define HAVE_SHL_LOAD 1
10033 _ACEOF
10035         LIBADD_DL="$LIBADD_DL -ldld"
10036 else
10037   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10038 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10039 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042   ac_check_lib_save_LIBS=$LIBS
10043 LIBS="-ldl  $LIBS"
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10051 /* Override any GCC internal prototype to avoid an error.
10052    Use char because int might match the return type of a GCC
10053    builtin and then its argument prototype would still apply.  */
10054 #ifdef __cplusplus
10055 extern "C"
10056 #endif
10057 char dlopen ();
10058 int
10059 main ()
10061 return dlopen ();
10062   ;
10063   return 0;
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_link") 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } &&
10080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10081   { (case "(($ac_try" in
10082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083   *) ac_try_echo=$ac_try;;
10084 esac
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086   (eval "$ac_try") 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); }; } &&
10090          { ac_try='test -s conftest$ac_exeext'
10091   { (case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_try") 2>&5
10097   ac_status=$?
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); }; }; then
10100   ac_cv_lib_dl_dlopen=yes
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105         ac_cv_lib_dl_dlopen=no
10108 rm -f core conftest.err conftest.$ac_objext \
10109       conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10112 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10113 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10114 if test $ac_cv_lib_dl_dlopen = yes; then
10116 cat >>confdefs.h <<\_ACEOF
10117 #define HAVE_LIBDL 1
10118 _ACEOF
10120                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 #if HAVE_DLFCN_H
10129 #  include <dlfcn.h>
10130 #endif
10132 int
10133 main ()
10135 dlopen(0, 0);
10136   ;
10137   return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (ac_try="$ac_link"
10142 case "(($ac_try" in
10143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144   *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147   (eval "$ac_link") 2>conftest.er1
10148   ac_status=$?
10149   grep -v '^ *+' conftest.er1 >conftest.err
10150   rm -f conftest.er1
10151   cat conftest.err >&5
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); } &&
10154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10155   { (case "(($ac_try" in
10156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157   *) ac_try_echo=$ac_try;;
10158 esac
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160   (eval "$ac_try") 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_try") 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; }; then
10175 cat >>confdefs.h <<\_ACEOF
10176 #define HAVE_LIBDL 1
10177 _ACEOF
10178  libltdl_cv_func_dlopen="yes"
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-lsvld  $LIBS"
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10197 /* Override any GCC internal prototype to avoid an error.
10198    Use char because int might match the return type of a GCC
10199    builtin and then its argument prototype would still apply.  */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 char dlopen ();
10204 int
10205 main ()
10207 return dlopen ();
10208   ;
10209   return 0;
10211 _ACEOF
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_link") 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } &&
10226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10227   { (case "(($ac_try" in
10228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229   *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232   (eval "$ac_try") 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; } &&
10236          { ac_try='test -s conftest$ac_exeext'
10237   { (case "(($ac_try" in
10238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239   *) ac_try_echo=$ac_try;;
10240 esac
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242   (eval "$ac_try") 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; }; then
10246   ac_cv_lib_svld_dlopen=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251         ac_cv_lib_svld_dlopen=no
10254 rm -f core conftest.err conftest.$ac_objext \
10255       conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10259 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10260 if test $ac_cv_lib_svld_dlopen = yes; then
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_LIBDL 1
10264 _ACEOF
10266                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10267 else
10268   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10269 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-ldld  $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h.  */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h.  */
10282 /* Override any GCC internal prototype to avoid an error.
10283    Use char because int might match the return type of a GCC
10284    builtin and then its argument prototype would still apply.  */
10285 #ifdef __cplusplus
10286 extern "C"
10287 #endif
10288 char dld_link ();
10289 int
10290 main ()
10292 return dld_link ();
10293   ;
10294   return 0;
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301   *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304   (eval "$ac_link") 2>conftest.er1
10305   ac_status=$?
10306   grep -v '^ *+' conftest.er1 >conftest.err
10307   rm -f conftest.er1
10308   cat conftest.err >&5
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); } &&
10311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10312   { (case "(($ac_try" in
10313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314   *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317   (eval "$ac_try") 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); }; } &&
10321          { ac_try='test -s conftest$ac_exeext'
10322   { (case "(($ac_try" in
10323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324   *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327   (eval "$ac_try") 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_cv_lib_dld_dld_link=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336         ac_cv_lib_dld_dld_link=no
10339 rm -f core conftest.err conftest.$ac_objext \
10340       conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10343 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10344 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10345 if test $ac_cv_lib_dld_dld_link = yes; then
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_DLD 1
10349 _ACEOF
10351                 LIBADD_DL="$LIBADD_DL -ldld"
10352 else
10353   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10354 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10355 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h.  */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h.  */
10364 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10366 #define _dyld_func_lookup innocuous__dyld_func_lookup
10368 /* System header to define __stub macros and hopefully few prototypes,
10369     which can conflict with char _dyld_func_lookup (); below.
10370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371     <limits.h> exists even on freestanding compilers.  */
10373 #ifdef __STDC__
10374 # include <limits.h>
10375 #else
10376 # include <assert.h>
10377 #endif
10379 #undef _dyld_func_lookup
10381 /* Override any GCC internal prototype to avoid an error.
10382    Use char because int might match the return type of a GCC
10383    builtin and then its argument prototype would still apply.  */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char _dyld_func_lookup ();
10388 /* The GNU C library defines this for functions which it implements
10389     to always fail with ENOSYS.  Some functions are actually named
10390     something starting with __ and the normal name is an alias.  */
10391 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10392 choke me
10393 #endif
10395 int
10396 main ()
10398 return _dyld_func_lookup ();
10399   ;
10400   return 0;
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (ac_try="$ac_link"
10405 case "(($ac_try" in
10406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407   *) ac_try_echo=$ac_try;;
10408 esac
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410   (eval "$ac_link") 2>conftest.er1
10411   ac_status=$?
10412   grep -v '^ *+' conftest.er1 >conftest.err
10413   rm -f conftest.er1
10414   cat conftest.err >&5
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } &&
10417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10418   { (case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423   (eval "$ac_try") 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (case "(($ac_try" in
10429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430   *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433   (eval "$ac_try") 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); }; }; then
10437   ac_cv_func__dyld_func_lookup=yes
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442         ac_cv_func__dyld_func_lookup=no
10445 rm -f core conftest.err conftest.$ac_objext \
10446       conftest$ac_exeext conftest.$ac_ext
10448 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10449 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10450 if test $ac_cv_func__dyld_func_lookup = yes; then
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_DYLD 1
10454 _ACEOF
10467 rm -f core conftest.err conftest.$ac_objext \
10468       conftest$ac_exeext conftest.$ac_ext
10479 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10480 then
10481   lt_save_LIBS="$LIBS"
10482   LIBS="$LIBS $LIBADD_DL"
10484 for ac_func in dlerror
10486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h.  */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h.  */
10498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10500 #define $ac_func innocuous_$ac_func
10502 /* System header to define __stub macros and hopefully few prototypes,
10503     which can conflict with char $ac_func (); below.
10504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10505     <limits.h> exists even on freestanding compilers.  */
10507 #ifdef __STDC__
10508 # include <limits.h>
10509 #else
10510 # include <assert.h>
10511 #endif
10513 #undef $ac_func
10515 /* Override any GCC internal prototype to avoid an error.
10516    Use char because int might match the return type of a GCC
10517    builtin and then its argument prototype would still apply.  */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char $ac_func ();
10522 /* The GNU C library defines this for functions which it implements
10523     to always fail with ENOSYS.  Some functions are actually named
10524     something starting with __ and the normal name is an alias.  */
10525 #if defined __stub_$ac_func || defined __stub___$ac_func
10526 choke me
10527 #endif
10529 int
10530 main ()
10532 return $ac_func ();
10533   ;
10534   return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (ac_try="$ac_link"
10539 case "(($ac_try" in
10540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541   *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544   (eval "$ac_link") 2>conftest.er1
10545   ac_status=$?
10546   grep -v '^ *+' conftest.er1 >conftest.err
10547   rm -f conftest.er1
10548   cat conftest.err >&5
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } &&
10551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10552   { (case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557   (eval "$ac_try") 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; } &&
10561          { ac_try='test -s conftest$ac_exeext'
10562   { (case "(($ac_try" in
10563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564   *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567   (eval "$ac_try") 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; }; then
10571   eval "$as_ac_var=yes"
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576         eval "$as_ac_var=no"
10579 rm -f core conftest.err conftest.$ac_objext \
10580       conftest$ac_exeext conftest.$ac_ext
10582 ac_res=`eval echo '${'$as_ac_var'}'`
10583                { echo "$as_me:$LINENO: result: $ac_res" >&5
10584 echo "${ECHO_T}$ac_res" >&6; }
10585 if test `eval echo '${'$as_ac_var'}'` = yes; then
10586   cat >>confdefs.h <<_ACEOF
10587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10588 _ACEOF
10591 done
10593   LIBS="$lt_save_LIBS"
10595 ac_ext=c
10596 ac_cpp='$CPP $CPPFLAGS'
10597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10604 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10605 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10606   echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608   ac_cv_sys_symbol_underscore=no
10609   cat > conftest.$ac_ext <<EOF
10610 void nm_test_func(){}
10611 int main(){nm_test_func;return 0;}
10612 EOF
10613   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614   (eval $ac_compile) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; then
10618     # Now try to grab the symbols.
10619     ac_nlist=conftest.nm
10620     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10621   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } && test -s "$ac_nlist"; then
10625       # See whether the symbols have a leading underscore.
10626       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10627         ac_cv_sys_symbol_underscore=yes
10628       else
10629         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10630           :
10631         else
10632           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10633         fi
10634       fi
10635     else
10636       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10637     fi
10638   else
10639     echo "configure: failed program was:" >&5
10640     cat conftest.c >&5
10641   fi
10642   rm -rf conftest*
10645 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10646 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10649 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10650   if test x"$libltdl_cv_func_dlopen" = xyes ||
10651      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10652         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10653 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10654 if test "${libltdl_cv_need_uscore+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   libltdl_cv_need_uscore=unknown
10658           save_LIBS="$LIBS"
10659           LIBS="$LIBS $LIBADD_DL"
10660           if test "$cross_compiling" = yes; then :
10661   libltdl_cv_need_uscore=cross
10662 else
10663   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10664   lt_status=$lt_dlunknown
10665   cat > conftest.$ac_ext <<EOF
10666 #line 10666 "configure"
10667 #include "confdefs.h"
10669 #if HAVE_DLFCN_H
10670 #include <dlfcn.h>
10671 #endif
10673 #include <stdio.h>
10675 #ifdef RTLD_GLOBAL
10676 #  define LT_DLGLOBAL           RTLD_GLOBAL
10677 #else
10678 #  ifdef DL_GLOBAL
10679 #    define LT_DLGLOBAL         DL_GLOBAL
10680 #  else
10681 #    define LT_DLGLOBAL         0
10682 #  endif
10683 #endif
10685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10686    find out it does not work in some platform. */
10687 #ifndef LT_DLLAZY_OR_NOW
10688 #  ifdef RTLD_LAZY
10689 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10690 #  else
10691 #    ifdef DL_LAZY
10692 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10693 #    else
10694 #      ifdef RTLD_NOW
10695 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10696 #      else
10697 #        ifdef DL_NOW
10698 #          define LT_DLLAZY_OR_NOW      DL_NOW
10699 #        else
10700 #          define LT_DLLAZY_OR_NOW      0
10701 #        endif
10702 #      endif
10703 #    endif
10704 #  endif
10705 #endif
10707 #ifdef __cplusplus
10708 extern "C" void exit (int);
10709 #endif
10711 void fnord() { int i=42;}
10712 int main ()
10714   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10715   int status = $lt_dlunknown;
10717   if (self)
10718     {
10719       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10720       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10721       /* dlclose (self); */
10722     }
10723   else
10724     puts (dlerror ());
10726     exit (status);
10728 EOF
10729   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10730   (eval $ac_link) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10734     (./conftest; exit; ) >&5 2>/dev/null
10735     lt_status=$?
10736     case x$lt_status in
10737       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10738       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10739       x$lt_dlunknown|x*)  ;;
10740     esac
10741   else :
10742     # compilation failed
10744   fi
10746 rm -fr conftest*
10748           LIBS="$save_LIBS"
10751 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10752 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10753   fi
10756 if test x"$libltdl_cv_need_uscore" = xyes; then
10758 cat >>confdefs.h <<\_ACEOF
10759 #define NEED_USCORE 1
10760 _ACEOF
10765 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10766 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10767 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770   # PORTME does your system automatically load deplibs for dlopen?
10771   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10772   # For now, we just catch OSes we know something about -- in the
10773   # future, we'll try test this programmatically.
10774   libltdl_cv_sys_dlopen_deplibs=unknown
10775   case "$host_os" in
10776   aix3*|aix4.1.*|aix4.2.*)
10777     # Unknown whether this is true for these versions of AIX, but
10778     # we want this `case' here to explicitly catch those versions.
10779     libltdl_cv_sys_dlopen_deplibs=unknown
10780     ;;
10781   aix[45]*)
10782     libltdl_cv_sys_dlopen_deplibs=yes
10783     ;;
10784   darwin*)
10785     # Assuming the user has installed a libdl from somewhere, this is true
10786     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10787     libltdl_cv_sys_dlopen_deplibs=yes
10788     ;;
10789   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10790     # GNU and its variants, using gnu ld.so (Glibc)
10791     libltdl_cv_sys_dlopen_deplibs=yes
10792     ;;
10793   hpux10*|hpux11*)
10794     libltdl_cv_sys_dlopen_deplibs=yes
10795     ;;
10796   interix*)
10797     libltdl_cv_sys_dlopen_deplibs=yes
10798     ;;
10799   irix[12345]*|irix6.[01]*)
10800     # Catch all versions of IRIX before 6.2, and indicate that we don't
10801     # know how it worked for any of those versions.
10802     libltdl_cv_sys_dlopen_deplibs=unknown
10803     ;;
10804   irix*)
10805     # The case above catches anything before 6.2, and it's known that
10806     # at 6.2 and later dlopen does load deplibs.
10807     libltdl_cv_sys_dlopen_deplibs=yes
10808     ;;
10809   netbsd*)
10810     libltdl_cv_sys_dlopen_deplibs=yes
10811     ;;
10812   openbsd*)
10813     libltdl_cv_sys_dlopen_deplibs=yes
10814     ;;
10815   osf[1234]*)
10816     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10817     # it did *not* use an RPATH in a shared library to find objects the
10818     # library depends on, so we explicitly say `no'.
10819     libltdl_cv_sys_dlopen_deplibs=no
10820     ;;
10821   osf5.0|osf5.0a|osf5.1)
10822     # dlopen *does* load deplibs and with the right loader patch applied
10823     # it even uses RPATH in a shared library to search for shared objects
10824     # that the library depends on, but there's no easy way to know if that
10825     # patch is installed.  Since this is the case, all we can really
10826     # say is unknown -- it depends on the patch being installed.  If
10827     # it is, this changes to `yes'.  Without it, it would be `no'.
10828     libltdl_cv_sys_dlopen_deplibs=unknown
10829     ;;
10830   osf*)
10831     # the two cases above should catch all versions of osf <= 5.1.  Read
10832     # the comments above for what we know about them.
10833     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10834     # is used to find them so we can finally say `yes'.
10835     libltdl_cv_sys_dlopen_deplibs=yes
10836     ;;
10837   solaris*)
10838     libltdl_cv_sys_dlopen_deplibs=yes
10839     ;;
10840   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10841     libltdl_cv_sys_dlopen_deplibs=yes
10842     ;;
10843   esac
10846 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10847 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10848 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10850 cat >>confdefs.h <<\_ACEOF
10851 #define LTDL_DLOPEN_DEPLIBS 1
10852 _ACEOF
10857 for ac_header in argz.h
10859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10864   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867                { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10869 else
10870   # Is the header compilable?
10871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879 $ac_includes_default
10880 #include <$ac_header>
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (ac_try="$ac_compile"
10884 case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_compile") 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10897   { (case "(($ac_try" in
10898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899   *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902   (eval "$ac_try") 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; } &&
10906          { ac_try='test -s conftest.$ac_objext'
10907   { (case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_try") 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; }; then
10916   ac_header_compiler=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921         ac_header_compiler=no
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10926 echo "${ECHO_T}$ac_header_compiler" >&6; }
10928 # Is the header present?
10929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h.  */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h.  */
10937 #include <$ac_header>
10938 _ACEOF
10939 if { (ac_try="$ac_cpp conftest.$ac_ext"
10940 case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10946   ac_status=$?
10947   grep -v '^ *+' conftest.er1 >conftest.err
10948   rm -f conftest.er1
10949   cat conftest.err >&5
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); } >/dev/null; then
10952   if test -s conftest.err; then
10953     ac_cpp_err=$ac_c_preproc_warn_flag
10954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10955   else
10956     ac_cpp_err=
10957   fi
10958 else
10959   ac_cpp_err=yes
10961 if test -z "$ac_cpp_err"; then
10962   ac_header_preproc=yes
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967   ac_header_preproc=no
10970 rm -f conftest.err conftest.$ac_ext
10971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10972 echo "${ECHO_T}$ac_header_preproc" >&6; }
10974 # So?  What about this header?
10975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10976   yes:no: )
10977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10981     ac_header_preproc=yes
10982     ;;
10983   no:yes:* )
10984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10996     ( cat <<\_ASBOX
10997 ## ------------------------------------ ##
10998 ## Report this to http://llvm.org/bugs/ ##
10999 ## ------------------------------------ ##
11000 _ASBOX
11001      ) | sed "s/^/$as_me: WARNING:     /" >&2
11002     ;;
11003 esac
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   eval "$as_ac_Header=\$ac_header_preproc"
11011 ac_res=`eval echo '${'$as_ac_Header'}'`
11012                { echo "$as_me:$LINENO: result: $ac_res" >&5
11013 echo "${ECHO_T}$ac_res" >&6; }
11016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11017   cat >>confdefs.h <<_ACEOF
11018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11019 _ACEOF
11023 done
11026 { echo "$as_me:$LINENO: checking for error_t" >&5
11027 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11028 if test "${ac_cv_type_error_t+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037 #if HAVE_ARGZ_H
11038 #  include <argz.h>
11039 #endif
11041 typedef error_t ac__type_new_;
11042 int
11043 main ()
11045 if ((ac__type_new_ *) 0)
11046   return 0;
11047 if (sizeof (ac__type_new_))
11048   return 0;
11049   ;
11050   return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (ac_try="$ac_compile"
11055 case "(($ac_try" in
11056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057   *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060   (eval "$ac_compile") 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } &&
11067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068   { (case "(($ac_try" in
11069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070   *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073   (eval "$ac_try") 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; } &&
11077          { ac_try='test -s conftest.$ac_objext'
11078   { (case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083   (eval "$ac_try") 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; }; then
11087   ac_cv_type_error_t=yes
11088 else
11089   echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092         ac_cv_type_error_t=no
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11098 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11099 if test $ac_cv_type_error_t = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define HAVE_ERROR_T 1
11103 _ACEOF
11106 else
11108 cat >>confdefs.h <<\_ACEOF
11109 #define error_t int
11110 _ACEOF
11120 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11136 #define $ac_func innocuous_$ac_func
11138 /* System header to define __stub macros and hopefully few prototypes,
11139     which can conflict with char $ac_func (); below.
11140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11141     <limits.h> exists even on freestanding compilers.  */
11143 #ifdef __STDC__
11144 # include <limits.h>
11145 #else
11146 # include <assert.h>
11147 #endif
11149 #undef $ac_func
11151 /* Override any GCC internal prototype to avoid an error.
11152    Use char because int might match the return type of a GCC
11153    builtin and then its argument prototype would still apply.  */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char $ac_func ();
11158 /* The GNU C library defines this for functions which it implements
11159     to always fail with ENOSYS.  Some functions are actually named
11160     something starting with __ and the normal name is an alias.  */
11161 #if defined __stub_$ac_func || defined __stub___$ac_func
11162 choke me
11163 #endif
11165 int
11166 main ()
11168 return $ac_func ();
11169   ;
11170   return 0;
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (ac_try="$ac_link"
11175 case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_link") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; } &&
11197          { ac_try='test -s conftest$ac_exeext'
11198   { (case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_try") 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   eval "$as_ac_var=yes"
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212         eval "$as_ac_var=no"
11215 rm -f core conftest.err conftest.$ac_objext \
11216       conftest$ac_exeext conftest.$ac_ext
11218 ac_res=`eval echo '${'$as_ac_var'}'`
11219                { echo "$as_me:$LINENO: result: $ac_res" >&5
11220 echo "${ECHO_T}$ac_res" >&6; }
11221 if test `eval echo '${'$as_ac_var'}'` = yes; then
11222   cat >>confdefs.h <<_ACEOF
11223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 _ACEOF
11227 done
11251 for ac_header in errno.h malloc.h memory.h unistd.h
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261                { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 else
11264   # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 $ac_includes_default
11274 #include <$ac_header>
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_compile") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291   { (case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_try") 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; } &&
11300          { ac_try='test -s conftest.$ac_objext'
11301   { (case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_try") 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_header_compiler=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315         ac_header_compiler=no
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 #include <$ac_header>
11332 _ACEOF
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } >/dev/null; then
11346   if test -s conftest.err; then
11347     ac_cpp_err=$ac_c_preproc_warn_flag
11348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349   else
11350     ac_cpp_err=
11351   fi
11352 else
11353   ac_cpp_err=yes
11355 if test -z "$ac_cpp_err"; then
11356   ac_header_preproc=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361   ac_header_preproc=no
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11368 # So?  What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370   yes:no: )
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375     ac_header_preproc=yes
11376     ;;
11377   no:yes:* )
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390     ( cat <<\_ASBOX
11391 ## ------------------------------------ ##
11392 ## Report this to http://llvm.org/bugs/ ##
11393 ## ------------------------------------ ##
11394 _ASBOX
11395      ) | sed "s/^/$as_me: WARNING:     /" >&2
11396     ;;
11397 esac
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   eval "$as_ac_Header=\$ac_header_preproc"
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11413 _ACEOF
11417 done
11420 for ac_header in mach-o/dyld.h
11422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 ac_res=`eval echo '${'$as_ac_Header'}'`
11430                { echo "$as_me:$LINENO: result: $ac_res" >&5
11431 echo "${ECHO_T}$ac_res" >&6; }
11432 else
11433   # Is the header compilable?
11434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 $ac_includes_default
11443 #include <$ac_header>
11444 _ACEOF
11445 rm -f conftest.$ac_objext
11446 if { (ac_try="$ac_compile"
11447 case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452   (eval "$ac_compile") 2>conftest.er1
11453   ac_status=$?
11454   grep -v '^ *+' conftest.er1 >conftest.err
11455   rm -f conftest.er1
11456   cat conftest.err >&5
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11460   { (case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465   (eval "$ac_try") 2>&5
11466   ac_status=$?
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); }; } &&
11469          { ac_try='test -s conftest.$ac_objext'
11470   { (case "(($ac_try" in
11471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472   *) ac_try_echo=$ac_try;;
11473 esac
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475   (eval "$ac_try") 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_header_compiler=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484         ac_header_compiler=no
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11489 echo "${ECHO_T}$ac_header_compiler" >&6; }
11491 # Is the header present?
11492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500 #include <$ac_header>
11501 _ACEOF
11502 if { (ac_try="$ac_cpp conftest.$ac_ext"
11503 case "(($ac_try" in
11504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505   *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11509   ac_status=$?
11510   grep -v '^ *+' conftest.er1 >conftest.err
11511   rm -f conftest.er1
11512   cat conftest.err >&5
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } >/dev/null; then
11515   if test -s conftest.err; then
11516     ac_cpp_err=$ac_c_preproc_warn_flag
11517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11518   else
11519     ac_cpp_err=
11520   fi
11521 else
11522   ac_cpp_err=yes
11524 if test -z "$ac_cpp_err"; then
11525   ac_header_preproc=yes
11526 else
11527   echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530   ac_header_preproc=no
11533 rm -f conftest.err conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11535 echo "${ECHO_T}$ac_header_preproc" >&6; }
11537 # So?  What about this header?
11538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11539   yes:no: )
11540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11544     ac_header_preproc=yes
11545     ;;
11546   no:yes:* )
11547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11559     ( cat <<\_ASBOX
11560 ## ------------------------------------ ##
11561 ## Report this to http://llvm.org/bugs/ ##
11562 ## ------------------------------------ ##
11563 _ASBOX
11564      ) | sed "s/^/$as_me: WARNING:     /" >&2
11565     ;;
11566 esac
11567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570   echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572   eval "$as_ac_Header=\$ac_header_preproc"
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575                { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11580   cat >>confdefs.h <<_ACEOF
11581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11582 _ACEOF
11586 done
11592 for ac_func in closedir opendir readdir
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611     which can conflict with char $ac_func (); below.
11612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613     <limits.h> exists even on freestanding compilers.  */
11615 #ifdef __STDC__
11616 # include <limits.h>
11617 #else
11618 # include <assert.h>
11619 #endif
11621 #undef $ac_func
11623 /* Override any GCC internal prototype to avoid an error.
11624    Use char because int might match the return type of a GCC
11625    builtin and then its argument prototype would still apply.  */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char $ac_func ();
11630 /* The GNU C library defines this for functions which it implements
11631     to always fail with ENOSYS.  Some functions are actually named
11632     something starting with __ and the normal name is an alias.  */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11634 choke me
11635 #endif
11637 int
11638 main ()
11640 return $ac_func ();
11641   ;
11642   return 0;
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649   *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652   (eval "$ac_link") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660   { (case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_try") 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; } &&
11669          { ac_try='test -s conftest$ac_exeext'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   eval "$as_ac_var=yes"
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684         eval "$as_ac_var=no"
11687 rm -f core conftest.err conftest.$ac_objext \
11688       conftest$ac_exeext conftest.$ac_ext
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691                { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694   cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11696 _ACEOF
11699 done
11703 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11704 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11706 ICC=no
11707 IXX=no
11708 case $CC in
11709   icc*|icpc*)
11710     ICC=yes
11711     IXX=yes
11712     ;;
11713    *)
11714     ;;
11715 esac
11717 if test "$GCC" != "yes" && test "$ICC" != "yes"
11718 then
11719   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11720 echo "$as_me: error: gcc|icc required but not found" >&2;}
11721    { (exit 1); exit 1; }; }
11724 if test "$GXX" != "yes" && test "$IXX" != "yes"
11725 then
11726   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11727 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11728    { (exit 1); exit 1; }; }
11731 if test "$GCC" = "yes"
11732 then
11733   cat >conftest.$ac_ext <<_ACEOF
11735   /* confdefs.h.  */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h.  */
11741     #if !defined(__GNUC__) || __GNUC__ < 3
11742     #error Unsupported GCC version
11743     #endif
11746 _ACEOF
11747 rm -f conftest.$ac_objext
11748 if { (ac_try="$ac_compile"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_compile") 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762   { (case "(($ac_try" in
11763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764   *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767   (eval "$ac_try") 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; } &&
11771          { ac_try='test -s conftest.$ac_objext'
11772   { (case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_try") 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   :
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11787 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11788    { (exit 1); exit 1; }; }
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 if test -z "$llvm_cv_gnu_make_command"
11795 then
11796   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11797 echo "$as_me: error: GNU Make required but not found" >&2;}
11798    { (exit 1); exit 1; }; }
11801 { echo "$as_me:$LINENO: result: ok" >&5
11802 echo "${ECHO_T}ok" >&6; }
11804 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11805 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11806 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11808 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11810 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11813 NO_UNINITIALIZED=
11814 NO_MAYBE_UNINITIALIZED=
11815 if test "$GXX" = "yes"
11816 then
11817   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11819         if test -z "$NO_MAYBE_UNINITIALIZED"
11820   then
11821     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11823   fi
11825 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11826 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11829 # Check whether --with-python was given.
11830 if test "${with_python+set}" = set; then
11831   withval=$with_python; PYTHON="$withval"
11835 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11836   { echo "$as_me:$LINENO: checking for python" >&5
11837 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11838   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11839 echo "${ECHO_T}user defined: $with_python" >&6; }
11840 else
11841   if test -n "$PYTHON" ; then
11842     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11843 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11844   fi
11846   # Extract the first word of "python python2 python26", so it can be a program name with args.
11847 set dummy python python2 python26; ac_word=$2
11848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11850 if test "${ac_cv_path_PYTHON+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   case $PYTHON in
11854   [\\/]* | ?:[\\/]*)
11855   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11856   ;;
11857   *)
11858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863   for ac_exec_ext in '' $ac_executable_extensions; do
11864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11865     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11867     break 2
11868   fi
11869 done
11870 done
11871 IFS=$as_save_IFS
11873   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11874 echo "${ECHO_T}not found" >&6; }
11875                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11876 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11877    { (exit 1); exit 1; }; }"
11878   ;;
11879 esac
11881 PYTHON=$ac_cv_path_PYTHON
11882 if test -n "$PYTHON"; then
11883   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11884 echo "${ECHO_T}$PYTHON" >&6; }
11885 else
11886   { echo "$as_me:$LINENO: result: no" >&5
11887 echo "${ECHO_T}no" >&6; }
11893 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11894 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11895 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11896 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11897 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11898 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11899 if test "$ac_python_version_major" -gt "2" || \
11900    (test "$ac_python_version_major" -eq "2" && \
11901     test "$ac_python_version_minor" -ge "5") ; then
11902   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11903 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11904 else
11905   { echo "$as_me:$LINENO: result: not found" >&5
11906 echo "${ECHO_T}not found" >&6; }
11907   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11908 See \`config.log' for more details." >&5
11909 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11910 See \`config.log' for more details." >&2;}
11911    { (exit 1); exit 1; }; }
11916 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11917 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11918 if test "${ac_cv_lib_m_sin+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-lm  $LIBS"
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h.  */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h.  */
11930 /* Override any GCC internal prototype to avoid an error.
11931    Use char because int might match the return type of a GCC
11932    builtin and then its argument prototype would still apply.  */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char sin ();
11937 int
11938 main ()
11940 return sin ();
11941   ;
11942   return 0;
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_link") 2>conftest.er1
11953   ac_status=$?
11954   grep -v '^ *+' conftest.er1 >conftest.err
11955   rm -f conftest.er1
11956   cat conftest.err >&5
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } &&
11959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960   { (case "(($ac_try" in
11961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962   *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965   (eval "$ac_try") 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; } &&
11969          { ac_try='test -s conftest$ac_exeext'
11970   { (case "(($ac_try" in
11971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972   *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975   (eval "$ac_try") 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_lib_m_sin=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984         ac_cv_lib_m_sin=no
11987 rm -f core conftest.err conftest.$ac_objext \
11988       conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11992 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11993 if test $ac_cv_lib_m_sin = yes; then
11994   cat >>confdefs.h <<_ACEOF
11995 #define HAVE_LIBM 1
11996 _ACEOF
11998   LIBS="-lm $LIBS"
12002 if test "$llvm_cv_os_type" = "MingW" ; then
12004 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12005 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12006 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-limagehlp  $LIBS"
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12019 int
12020 main ()
12022 return main ();
12023   ;
12024   return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_link") 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042   { (case "(($ac_try" in
12043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044   *) ac_try_echo=$ac_try;;
12045 esac
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047   (eval "$ac_try") 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; } &&
12051          { ac_try='test -s conftest$ac_exeext'
12052   { (case "(($ac_try" in
12053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054   *) ac_try_echo=$ac_try;;
12055 esac
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057   (eval "$ac_try") 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; }; then
12061   ac_cv_lib_imagehlp_main=yes
12062 else
12063   echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066         ac_cv_lib_imagehlp_main=no
12069 rm -f core conftest.err conftest.$ac_objext \
12070       conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12074 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12075 if test $ac_cv_lib_imagehlp_main = yes; then
12076   cat >>confdefs.h <<_ACEOF
12077 #define HAVE_LIBIMAGEHLP 1
12078 _ACEOF
12080   LIBS="-limagehlp $LIBS"
12085 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12086 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12087 if test "${ac_cv_lib_psapi_main+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lpsapi  $LIBS"
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12100 int
12101 main ()
12103 return main ();
12104   ;
12105   return 0;
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_link") 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123   { (case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_try") 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; } &&
12132          { ac_try='test -s conftest$ac_exeext'
12133   { (case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_try") 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; }; then
12142   ac_cv_lib_psapi_main=yes
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147         ac_cv_lib_psapi_main=no
12150 rm -f core conftest.err conftest.$ac_objext \
12151       conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12154 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12155 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12156 if test $ac_cv_lib_psapi_main = yes; then
12157   cat >>confdefs.h <<_ACEOF
12158 #define HAVE_LIBPSAPI 1
12159 _ACEOF
12161   LIBS="-lpsapi $LIBS"
12166 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12167 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12168 if test "${ac_cv_lib_shell32_main+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   ac_check_lib_save_LIBS=$LIBS
12172 LIBS="-lshell32  $LIBS"
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12181 int
12182 main ()
12184 return main ();
12185   ;
12186   return 0;
12188 _ACEOF
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (ac_try="$ac_link"
12191 case "(($ac_try" in
12192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193   *) ac_try_echo=$ac_try;;
12194 esac
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196   (eval "$ac_link") 2>conftest.er1
12197   ac_status=$?
12198   grep -v '^ *+' conftest.er1 >conftest.err
12199   rm -f conftest.er1
12200   cat conftest.err >&5
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); } &&
12203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204   { (case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_try") 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; } &&
12213          { ac_try='test -s conftest$ac_exeext'
12214   { (case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_try") 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; }; then
12223   ac_cv_lib_shell32_main=yes
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12228         ac_cv_lib_shell32_main=no
12231 rm -f core conftest.err conftest.$ac_objext \
12232       conftest$ac_exeext conftest.$ac_ext
12233 LIBS=$ac_check_lib_save_LIBS
12235 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12236 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12237 if test $ac_cv_lib_shell32_main = yes; then
12238   cat >>confdefs.h <<_ACEOF
12239 #define HAVE_LIBSHELL32 1
12240 _ACEOF
12242   LIBS="-lshell32 $LIBS"
12248 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12249 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12250 if test "${ac_cv_search_dlopen+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   ac_func_search_save_LIBS=$LIBS
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12261 /* Override any GCC internal prototype to avoid an error.
12262    Use char because int might match the return type of a GCC
12263    builtin and then its argument prototype would still apply.  */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char dlopen ();
12268 int
12269 main ()
12271 return dlopen ();
12272   ;
12273   return 0;
12275 _ACEOF
12276 for ac_lib in '' dl; do
12277   if test -z "$ac_lib"; then
12278     ac_res="none required"
12279   else
12280     ac_res=-l$ac_lib
12281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12282   fi
12283   rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287   *) ac_try_echo=$ac_try;;
12288 esac
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290   (eval "$ac_link") 2>conftest.er1
12291   ac_status=$?
12292   grep -v '^ *+' conftest.er1 >conftest.err
12293   rm -f conftest.er1
12294   cat conftest.err >&5
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } &&
12297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298   { (case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_try") 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; } &&
12307          { ac_try='test -s conftest$ac_exeext'
12308   { (case "(($ac_try" in
12309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310   *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313   (eval "$ac_try") 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   ac_cv_search_dlopen=$ac_res
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12325 rm -f core conftest.err conftest.$ac_objext \
12326       conftest$ac_exeext
12327   if test "${ac_cv_search_dlopen+set}" = set; then
12328   break
12330 done
12331 if test "${ac_cv_search_dlopen+set}" = set; then
12332   :
12333 else
12334   ac_cv_search_dlopen=no
12336 rm conftest.$ac_ext
12337 LIBS=$ac_func_search_save_LIBS
12339 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12340 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12341 ac_res=$ac_cv_search_dlopen
12342 if test "$ac_res" != no; then
12343   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12345 cat >>confdefs.h <<\_ACEOF
12346 #define HAVE_DLOPEN 1
12347 _ACEOF
12349 else
12350   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12351 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12355 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12356 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12357 if test "${ac_cv_search_clock_gettime+set}" = set; then
12358   echo $ECHO_N "(cached) $ECHO_C" >&6
12359 else
12360   ac_func_search_save_LIBS=$LIBS
12361 cat >conftest.$ac_ext <<_ACEOF
12362 /* confdefs.h.  */
12363 _ACEOF
12364 cat confdefs.h >>conftest.$ac_ext
12365 cat >>conftest.$ac_ext <<_ACEOF
12366 /* end confdefs.h.  */
12368 /* Override any GCC internal prototype to avoid an error.
12369    Use char because int might match the return type of a GCC
12370    builtin and then its argument prototype would still apply.  */
12371 #ifdef __cplusplus
12372 extern "C"
12373 #endif
12374 char clock_gettime ();
12375 int
12376 main ()
12378 return clock_gettime ();
12379   ;
12380   return 0;
12382 _ACEOF
12383 for ac_lib in '' rt; do
12384   if test -z "$ac_lib"; then
12385     ac_res="none required"
12386   else
12387     ac_res=-l$ac_lib
12388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12389   fi
12390   rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397   (eval "$ac_link") 2>conftest.er1
12398   ac_status=$?
12399   grep -v '^ *+' conftest.er1 >conftest.err
12400   rm -f conftest.er1
12401   cat conftest.err >&5
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12405   { (case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_try") 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; } &&
12414          { ac_try='test -s conftest$ac_exeext'
12415   { (case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_try") 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_cv_search_clock_gettime=$ac_res
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12432 rm -f core conftest.err conftest.$ac_objext \
12433       conftest$ac_exeext
12434   if test "${ac_cv_search_clock_gettime+set}" = set; then
12435   break
12437 done
12438 if test "${ac_cv_search_clock_gettime+set}" = set; then
12439   :
12440 else
12441   ac_cv_search_clock_gettime=no
12443 rm conftest.$ac_ext
12444 LIBS=$ac_func_search_save_LIBS
12446 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12447 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12448 ac_res=$ac_cv_search_clock_gettime
12449 if test "$ac_res" != no; then
12450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12455 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12456     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12457 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12458 if test "${ac_cv_search_setupterm+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   ac_func_search_save_LIBS=$LIBS
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h.  */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h.  */
12469 /* Override any GCC internal prototype to avoid an error.
12470    Use char because int might match the return type of a GCC
12471    builtin and then its argument prototype would still apply.  */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char setupterm ();
12476 int
12477 main ()
12479 return setupterm ();
12480   ;
12481   return 0;
12483 _ACEOF
12484 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12485   if test -z "$ac_lib"; then
12486     ac_res="none required"
12487   else
12488     ac_res=-l$ac_lib
12489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12490   fi
12491   rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (ac_try="$ac_link"
12493 case "(($ac_try" in
12494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495   *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498   (eval "$ac_link") 2>conftest.er1
12499   ac_status=$?
12500   grep -v '^ *+' conftest.er1 >conftest.err
12501   rm -f conftest.er1
12502   cat conftest.err >&5
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); } &&
12505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12506   { (case "(($ac_try" in
12507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508   *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511   (eval "$ac_try") 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }; } &&
12515          { ac_try='test -s conftest$ac_exeext'
12516   { (case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521   (eval "$ac_try") 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; }; then
12525   ac_cv_search_setupterm=$ac_res
12526 else
12527   echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12533 rm -f core conftest.err conftest.$ac_objext \
12534       conftest$ac_exeext
12535   if test "${ac_cv_search_setupterm+set}" = set; then
12536   break
12538 done
12539 if test "${ac_cv_search_setupterm+set}" = set; then
12540   :
12541 else
12542   ac_cv_search_setupterm=no
12544 rm conftest.$ac_ext
12545 LIBS=$ac_func_search_save_LIBS
12547 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12548 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12549 ac_res=$ac_cv_search_setupterm
12550 if test "$ac_res" != no; then
12551   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12553 cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_TERMINFO 1
12555 _ACEOF
12561 if test "$llvm_cv_enable_libffi" = "yes" ; then
12562   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12563 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12564 if test "${ac_cv_search_ffi_call+set}" = set; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567   ac_func_search_save_LIBS=$LIBS
12568 cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12575 /* Override any GCC internal prototype to avoid an error.
12576    Use char because int might match the return type of a GCC
12577    builtin and then its argument prototype would still apply.  */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 char ffi_call ();
12582 int
12583 main ()
12585 return ffi_call ();
12586   ;
12587   return 0;
12589 _ACEOF
12590 for ac_lib in '' ffi; do
12591   if test -z "$ac_lib"; then
12592     ac_res="none required"
12593   else
12594     ac_res=-l$ac_lib
12595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12596   fi
12597   rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (ac_try="$ac_link"
12599 case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_link") 2>conftest.er1
12605   ac_status=$?
12606   grep -v '^ *+' conftest.er1 >conftest.err
12607   rm -f conftest.er1
12608   cat conftest.err >&5
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); } &&
12611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12612   { (case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_try") 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; } &&
12621          { ac_try='test -s conftest$ac_exeext'
12622   { (case "(($ac_try" in
12623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624   *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627   (eval "$ac_try") 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   ac_cv_search_ffi_call=$ac_res
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12639 rm -f core conftest.err conftest.$ac_objext \
12640       conftest$ac_exeext
12641   if test "${ac_cv_search_ffi_call+set}" = set; then
12642   break
12644 done
12645 if test "${ac_cv_search_ffi_call+set}" = set; then
12646   :
12647 else
12648   ac_cv_search_ffi_call=no
12650 rm conftest.$ac_ext
12651 LIBS=$ac_func_search_save_LIBS
12653 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12654 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12655 ac_res=$ac_cv_search_ffi_call
12656 if test "$ac_res" != no; then
12657   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12659 cat >>confdefs.h <<\_ACEOF
12660 #define HAVE_FFI_CALL 1
12661 _ACEOF
12663 else
12664   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12665 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12666    { (exit 1); exit 1; }; }
12671 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12672 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12673 if test "${ac_cv_search_mallinfo+set}" = set; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   ac_func_search_save_LIBS=$LIBS
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12684 /* Override any GCC internal prototype to avoid an error.
12685    Use char because int might match the return type of a GCC
12686    builtin and then its argument prototype would still apply.  */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 char mallinfo ();
12691 int
12692 main ()
12694 return mallinfo ();
12695   ;
12696   return 0;
12698 _ACEOF
12699 for ac_lib in '' malloc; do
12700   if test -z "$ac_lib"; then
12701     ac_res="none required"
12702   else
12703     ac_res=-l$ac_lib
12704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12705   fi
12706   rm -f conftest.$ac_objext conftest$ac_exeext
12707 if { (ac_try="$ac_link"
12708 case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713   (eval "$ac_link") 2>conftest.er1
12714   ac_status=$?
12715   grep -v '^ *+' conftest.er1 >conftest.err
12716   rm -f conftest.er1
12717   cat conftest.err >&5
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721   { (case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_try") 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; } &&
12730          { ac_try='test -s conftest$ac_exeext'
12731   { (case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_try") 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_search_mallinfo=$ac_res
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12748 rm -f core conftest.err conftest.$ac_objext \
12749       conftest$ac_exeext
12750   if test "${ac_cv_search_mallinfo+set}" = set; then
12751   break
12753 done
12754 if test "${ac_cv_search_mallinfo+set}" = set; then
12755   :
12756 else
12757   ac_cv_search_mallinfo=no
12759 rm conftest.$ac_ext
12760 LIBS=$ac_func_search_save_LIBS
12762 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12763 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12764 ac_res=$ac_cv_search_mallinfo
12765 if test "$ac_res" != no; then
12766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12768 cat >>confdefs.h <<\_ACEOF
12769 #define HAVE_MALLINFO 1
12770 _ACEOF
12775 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12777 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12778 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12779 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lpthread  $LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h.  */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h.  */
12791 /* Override any GCC internal prototype to avoid an error.
12792    Use char because int might match the return type of a GCC
12793    builtin and then its argument prototype would still apply.  */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char pthread_mutex_init ();
12798 int
12799 main ()
12801 return pthread_mutex_init ();
12802   ;
12803   return 0;
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810   *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813   (eval "$ac_link") 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12821   { (case "(($ac_try" in
12822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823   *) ac_try_echo=$ac_try;;
12824 esac
12825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12826   (eval "$ac_try") 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; } &&
12830          { ac_try='test -s conftest$ac_exeext'
12831   { (case "(($ac_try" in
12832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833   *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836   (eval "$ac_try") 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   ac_cv_lib_pthread_pthread_mutex_init=yes
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845         ac_cv_lib_pthread_pthread_mutex_init=no
12848 rm -f core conftest.err conftest.$ac_objext \
12849       conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12853 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12854 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12855   cat >>confdefs.h <<_ACEOF
12856 #define HAVE_LIBPTHREAD 1
12857 _ACEOF
12859   LIBS="-lpthread $LIBS"
12863   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12864 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12865 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   ac_func_search_save_LIBS=$LIBS
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12876 /* Override any GCC internal prototype to avoid an error.
12877    Use char because int might match the return type of a GCC
12878    builtin and then its argument prototype would still apply.  */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 char pthread_mutex_lock ();
12883 int
12884 main ()
12886 return pthread_mutex_lock ();
12887   ;
12888   return 0;
12890 _ACEOF
12891 for ac_lib in '' pthread; do
12892   if test -z "$ac_lib"; then
12893     ac_res="none required"
12894   else
12895     ac_res=-l$ac_lib
12896     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12897   fi
12898   rm -f conftest.$ac_objext conftest$ac_exeext
12899 if { (ac_try="$ac_link"
12900 case "(($ac_try" in
12901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902   *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905   (eval "$ac_link") 2>conftest.er1
12906   ac_status=$?
12907   grep -v '^ *+' conftest.er1 >conftest.err
12908   rm -f conftest.er1
12909   cat conftest.err >&5
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } &&
12912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913   { (case "(($ac_try" in
12914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915   *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918   (eval "$ac_try") 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; } &&
12922          { ac_try='test -s conftest$ac_exeext'
12923   { (case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928   (eval "$ac_try") 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   ac_cv_search_pthread_mutex_lock=$ac_res
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12940 rm -f core conftest.err conftest.$ac_objext \
12941       conftest$ac_exeext
12942   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12943   break
12945 done
12946 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12947   :
12948 else
12949   ac_cv_search_pthread_mutex_lock=no
12951 rm conftest.$ac_ext
12952 LIBS=$ac_func_search_save_LIBS
12954 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12955 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12956 ac_res=$ac_cv_search_pthread_mutex_lock
12957 if test "$ac_res" != no; then
12958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_PTHREAD_MUTEX_LOCK 1
12962 _ACEOF
12966   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12967 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12968 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12969   echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971   ac_func_search_save_LIBS=$LIBS
12972 cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h.  */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h.  */
12979 /* Override any GCC internal prototype to avoid an error.
12980    Use char because int might match the return type of a GCC
12981    builtin and then its argument prototype would still apply.  */
12982 #ifdef __cplusplus
12983 extern "C"
12984 #endif
12985 char pthread_rwlock_init ();
12986 int
12987 main ()
12989 return pthread_rwlock_init ();
12990   ;
12991   return 0;
12993 _ACEOF
12994 for ac_lib in '' pthread; do
12995   if test -z "$ac_lib"; then
12996     ac_res="none required"
12997   else
12998     ac_res=-l$ac_lib
12999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13000   fi
13001   rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (ac_try="$ac_link"
13003 case "(($ac_try" in
13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005   *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008   (eval "$ac_link") 2>conftest.er1
13009   ac_status=$?
13010   grep -v '^ *+' conftest.er1 >conftest.err
13011   rm -f conftest.er1
13012   cat conftest.err >&5
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } &&
13015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13016   { (case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_try") 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; } &&
13025          { ac_try='test -s conftest$ac_exeext'
13026   { (case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031   (eval "$ac_try") 2>&5
13032   ac_status=$?
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); }; }; then
13035   ac_cv_search_pthread_rwlock_init=$ac_res
13036 else
13037   echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13043 rm -f core conftest.err conftest.$ac_objext \
13044       conftest$ac_exeext
13045   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13046   break
13048 done
13049 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13050   :
13051 else
13052   ac_cv_search_pthread_rwlock_init=no
13054 rm conftest.$ac_ext
13055 LIBS=$ac_func_search_save_LIBS
13057 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13058 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13059 ac_res=$ac_cv_search_pthread_rwlock_init
13060 if test "$ac_res" != no; then
13061   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13063 cat >>confdefs.h <<\_ACEOF
13064 #define HAVE_PTHREAD_RWLOCK_INIT 1
13065 _ACEOF
13069   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13070 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13071 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13072   echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074   ac_func_search_save_LIBS=$LIBS
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h.  */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h.  */
13082 /* Override any GCC internal prototype to avoid an error.
13083    Use char because int might match the return type of a GCC
13084    builtin and then its argument prototype would still apply.  */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 char pthread_getspecific ();
13089 int
13090 main ()
13092 return pthread_getspecific ();
13093   ;
13094   return 0;
13096 _ACEOF
13097 for ac_lib in '' pthread; do
13098   if test -z "$ac_lib"; then
13099     ac_res="none required"
13100   else
13101     ac_res=-l$ac_lib
13102     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13103   fi
13104   rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_link") 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119   { (case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_try") 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; } &&
13128          { ac_try='test -s conftest$ac_exeext'
13129   { (case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_cv_search_pthread_getspecific=$ac_res
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13146 rm -f core conftest.err conftest.$ac_objext \
13147       conftest$ac_exeext
13148   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13149   break
13151 done
13152 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13153   :
13154 else
13155   ac_cv_search_pthread_getspecific=no
13157 rm conftest.$ac_ext
13158 LIBS=$ac_func_search_save_LIBS
13160 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13161 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13162 ac_res=$ac_cv_search_pthread_getspecific
13163 if test "$ac_res" != no; then
13164   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13166 cat >>confdefs.h <<\_ACEOF
13167 #define HAVE_PTHREAD_GETSPECIFIC 1
13168 _ACEOF
13174 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13176 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13177 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13178 if test "${ac_cv_lib_z_compress2+set}" = set; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-lz  $LIBS"
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13190 /* Override any GCC internal prototype to avoid an error.
13191    Use char because int might match the return type of a GCC
13192    builtin and then its argument prototype would still apply.  */
13193 #ifdef __cplusplus
13194 extern "C"
13195 #endif
13196 char compress2 ();
13197 int
13198 main ()
13200 return compress2 ();
13201   ;
13202   return 0;
13204 _ACEOF
13205 rm -f conftest.$ac_objext conftest$ac_exeext
13206 if { (ac_try="$ac_link"
13207 case "(($ac_try" in
13208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209   *) ac_try_echo=$ac_try;;
13210 esac
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212   (eval "$ac_link") 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } &&
13219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220   { (case "(($ac_try" in
13221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222   *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225   (eval "$ac_try") 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; } &&
13229          { ac_try='test -s conftest$ac_exeext'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_cv_lib_z_compress2=yes
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244         ac_cv_lib_z_compress2=no
13247 rm -f core conftest.err conftest.$ac_objext \
13248       conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13251 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13252 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13253 if test $ac_cv_lib_z_compress2 = yes; then
13254   cat >>confdefs.h <<_ACEOF
13255 #define HAVE_LIBZ 1
13256 _ACEOF
13258   LIBS="-lz $LIBS"
13265 # Check whether --with-udis86 was given.
13266 if test "${with_udis86+set}" = set; then
13267   withval=$with_udis86;
13268       USE_UDIS86=1
13270       case "$withval" in
13271         /usr/lib|yes) ;;
13272         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13273       esac
13275 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13276 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13277 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13278   echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280   ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-ludis86  $LIBS"
13282 cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13289 /* Override any GCC internal prototype to avoid an error.
13290    Use char because int might match the return type of a GCC
13291    builtin and then its argument prototype would still apply.  */
13292 #ifdef __cplusplus
13293 extern "C"
13294 #endif
13295 char ud_init ();
13296 int
13297 main ()
13299 return ud_init ();
13300   ;
13301   return 0;
13303 _ACEOF
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (ac_try="$ac_link"
13306 case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311   (eval "$ac_link") 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } &&
13318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13319   { (case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_try") 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); }; } &&
13328          { ac_try='test -s conftest$ac_exeext'
13329   { (case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_try") 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; }; then
13338   ac_cv_lib_udis86_ud_init=yes
13339 else
13340   echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343         ac_cv_lib_udis86_ud_init=no
13346 rm -f core conftest.err conftest.$ac_objext \
13347       conftest$ac_exeext conftest.$ac_ext
13348 LIBS=$ac_check_lib_save_LIBS
13350 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13351 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13352 if test $ac_cv_lib_udis86_ud_init = yes; then
13353   cat >>confdefs.h <<_ACEOF
13354 #define HAVE_LIBUDIS86 1
13355 _ACEOF
13357   LIBS="-ludis86 $LIBS"
13359 else
13361         echo "Error! You need to have libudis86 around."
13362         exit -1
13367 else
13368   USE_UDIS86=0
13373 cat >>confdefs.h <<_ACEOF
13374 #define USE_UDIS86 $USE_UDIS86
13375 _ACEOF
13379 # Check whether --with-oprofile was given.
13380 if test "${with_oprofile+set}" = set; then
13381   withval=$with_oprofile;
13382       USE_OPROFILE=1
13384       case "$withval" in
13385         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13386         no) llvm_cv_oppath=
13387             USE_OPROFILE=0
13388  ;;
13389         *) llvm_cv_oppath="${withval}/lib/oprofile"
13390            CPPFLAGS="-I${withval}/include";;
13391       esac
13392       case $llvm_cv_os_type in
13393         Linux)
13394           if test -n "$llvm_cv_oppath" ; then
13395             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13396                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13397 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13398 if test "${ac_cv_search_bfd_init+set}" = set; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   ac_func_search_save_LIBS=$LIBS
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13409 /* Override any GCC internal prototype to avoid an error.
13410    Use char because int might match the return type of a GCC
13411    builtin and then its argument prototype would still apply.  */
13412 #ifdef __cplusplus
13413 extern "C"
13414 #endif
13415 char bfd_init ();
13416 int
13417 main ()
13419 return bfd_init ();
13420   ;
13421   return 0;
13423 _ACEOF
13424 for ac_lib in '' bfd; do
13425   if test -z "$ac_lib"; then
13426     ac_res="none required"
13427   else
13428     ac_res=-l$ac_lib
13429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13430   fi
13431   rm -f conftest.$ac_objext conftest$ac_exeext
13432 if { (ac_try="$ac_link"
13433 case "(($ac_try" in
13434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435   *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438   (eval "$ac_link") 2>conftest.er1
13439   ac_status=$?
13440   grep -v '^ *+' conftest.er1 >conftest.err
13441   rm -f conftest.er1
13442   cat conftest.err >&5
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); } &&
13445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13446   { (case "(($ac_try" in
13447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448   *) ac_try_echo=$ac_try;;
13449 esac
13450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13451   (eval "$ac_try") 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; } &&
13455          { ac_try='test -s conftest$ac_exeext'
13456   { (case "(($ac_try" in
13457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458   *) ac_try_echo=$ac_try;;
13459 esac
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461   (eval "$ac_try") 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465   ac_cv_search_bfd_init=$ac_res
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13473 rm -f core conftest.err conftest.$ac_objext \
13474       conftest$ac_exeext
13475   if test "${ac_cv_search_bfd_init+set}" = set; then
13476   break
13478 done
13479 if test "${ac_cv_search_bfd_init+set}" = set; then
13480   :
13481 else
13482   ac_cv_search_bfd_init=no
13484 rm conftest.$ac_ext
13485 LIBS=$ac_func_search_save_LIBS
13487 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13488 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13489 ac_res=$ac_cv_search_bfd_init
13490 if test "$ac_res" != no; then
13491   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13495             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13496 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13497 if test "${ac_cv_search_op_open_agent+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   ac_func_search_save_LIBS=$LIBS
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13508 /* Override any GCC internal prototype to avoid an error.
13509    Use char because int might match the return type of a GCC
13510    builtin and then its argument prototype would still apply.  */
13511 #ifdef __cplusplus
13512 extern "C"
13513 #endif
13514 char op_open_agent ();
13515 int
13516 main ()
13518 return op_open_agent ();
13519   ;
13520   return 0;
13522 _ACEOF
13523 for ac_lib in '' opagent; do
13524   if test -z "$ac_lib"; then
13525     ac_res="none required"
13526   else
13527     ac_res=-l$ac_lib
13528     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13529   fi
13530   rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (ac_try="$ac_link"
13532 case "(($ac_try" in
13533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534   *) ac_try_echo=$ac_try;;
13535 esac
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537   (eval "$ac_link") 2>conftest.er1
13538   ac_status=$?
13539   grep -v '^ *+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } &&
13544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13545   { (case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_try") 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest$ac_exeext'
13555   { (case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_try") 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; }; then
13564   ac_cv_search_op_open_agent=$ac_res
13565 else
13566   echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13572 rm -f core conftest.err conftest.$ac_objext \
13573       conftest$ac_exeext
13574   if test "${ac_cv_search_op_open_agent+set}" = set; then
13575   break
13577 done
13578 if test "${ac_cv_search_op_open_agent+set}" = set; then
13579   :
13580 else
13581   ac_cv_search_op_open_agent=no
13583 rm conftest.$ac_ext
13584 LIBS=$ac_func_search_save_LIBS
13586 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13587 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13588 ac_res=$ac_cv_search_op_open_agent
13589 if test "$ac_res" != no; then
13590   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13592 else
13594               echo "Error! You need to have libopagent around."
13595               exit -1
13599             if test "${ac_cv_header_opagent_h+set}" = set; then
13600   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13601 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13602 if test "${ac_cv_header_opagent_h+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13605 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13606 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13607 else
13608   # Is the header compilable?
13609 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13610 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h.  */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h.  */
13617 $ac_includes_default
13618 #include <opagent.h>
13619 _ACEOF
13620 rm -f conftest.$ac_objext
13621 if { (ac_try="$ac_compile"
13622 case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_compile") 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } &&
13634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635   { (case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_try") 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; } &&
13644          { ac_try='test -s conftest.$ac_objext'
13645   { (case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_try") 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_header_compiler=yes
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659         ac_header_compiler=no
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13664 echo "${ECHO_T}$ac_header_compiler" >&6; }
13666 # Is the header present?
13667 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13668 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675 #include <opagent.h>
13676 _ACEOF
13677 if { (ac_try="$ac_cpp conftest.$ac_ext"
13678 case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } >/dev/null; then
13690   if test -s conftest.err; then
13691     ac_cpp_err=$ac_c_preproc_warn_flag
13692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13693   else
13694     ac_cpp_err=
13695   fi
13696 else
13697   ac_cpp_err=yes
13699 if test -z "$ac_cpp_err"; then
13700   ac_header_preproc=yes
13701 else
13702   echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705   ac_header_preproc=no
13708 rm -f conftest.err conftest.$ac_ext
13709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13710 echo "${ECHO_T}$ac_header_preproc" >&6; }
13712 # So?  What about this header?
13713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13714   yes:no: )
13715     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13716 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13717     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13718 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13719     ac_header_preproc=yes
13720     ;;
13721   no:yes:* )
13722     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13723 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13724     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13725 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13726     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13727 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13728     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13729 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13730     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13731 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13732     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13733 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13734     ( cat <<\_ASBOX
13735 ## ------------------------------------ ##
13736 ## Report this to http://llvm.org/bugs/ ##
13737 ## ------------------------------------ ##
13738 _ASBOX
13739      ) | sed "s/^/$as_me: WARNING:     /" >&2
13740     ;;
13741 esac
13742 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13743 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13744 if test "${ac_cv_header_opagent_h+set}" = set; then
13745   echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747   ac_cv_header_opagent_h=$ac_header_preproc
13749 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13750 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13753 if test $ac_cv_header_opagent_h = yes; then
13754   :
13755 else
13757               echo "Error! You need to have opagent.h around."
13758               exit -1
13763           fi ;;
13764         *)
13765           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13766 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13767    { (exit 1); exit 1; }; } ;;
13768       esac
13770 else
13772       USE_OPROFILE=0
13778 cat >>confdefs.h <<_ACEOF
13779 #define LLVM_USE_OPROFILE $USE_OPROFILE
13780 _ACEOF
13784 # Check whether --with-intel-jitevents was given.
13785 if test "${with_intel_jitevents+set}" = set; then
13786   withval=$with_intel_jitevents;
13787        case "$withval" in
13788           yes) USE_INTEL_JITEVENTS=1
13790           no)  USE_INTEL_JITEVENTS=0
13792           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13793 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13794    { (exit 1); exit 1; }; };;
13795        esac
13797       case $llvm_cv_os_type in
13798         Linux|Win32|Cygwin|MingW) ;;
13799         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13800 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13801    { (exit 1); exit 1; }; };;
13802       esac
13804       case "$llvm_cv_target_arch" in
13805         x86|x86_64) ;;
13806         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13807 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13808    { (exit 1); exit 1; }; };;
13809       esac
13811 else
13813       USE_INTEL_JITEVENTS=0
13819 cat >>confdefs.h <<_ACEOF
13820 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13821 _ACEOF
13824 for ac_prog in xml2-config
13826   # Extract the first word of "$ac_prog", so it can be a program name with args.
13827 set dummy $ac_prog; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833   if test -n "$XML2CONFIG"; then
13834   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13835 else
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13839   IFS=$as_save_IFS
13840   test -z "$as_dir" && as_dir=.
13841   for ac_exec_ext in '' $ac_executable_extensions; do
13842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13843     ac_cv_prog_XML2CONFIG="$ac_prog"
13844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13845     break 2
13846   fi
13847 done
13848 done
13849 IFS=$as_save_IFS
13853 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13854 if test -n "$XML2CONFIG"; then
13855   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13856 echo "${ECHO_T}$XML2CONFIG" >&6; }
13857 else
13858   { echo "$as_me:$LINENO: result: no" >&5
13859 echo "${ECHO_T}no" >&6; }
13863   test -n "$XML2CONFIG" && break
13864 done
13867 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13868 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13869 if test "x$XML2CONFIG" = "x"; then
13870  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13871 echo "${ECHO_T}xml2-config not found" >&6; }
13872 else
13873  LIBXML2_INC=`$XML2CONFIG --cflags`
13874  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13875 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13876  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13877 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13878 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13879   echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881   ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-lxml2  $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13890 /* Override any GCC internal prototype to avoid an error.
13891    Use char because int might match the return type of a GCC
13892    builtin and then its argument prototype would still apply.  */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char xmlReadFile ();
13897 int
13898 main ()
13900 return xmlReadFile ();
13901   ;
13902   return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (ac_try="$ac_link"
13907 case "(($ac_try" in
13908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909   *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912   (eval "$ac_link") 2>conftest.er1
13913   ac_status=$?
13914   grep -v '^ *+' conftest.er1 >conftest.err
13915   rm -f conftest.er1
13916   cat conftest.err >&5
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); } &&
13919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13920   { (case "(($ac_try" in
13921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922   *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925   (eval "$ac_try") 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; } &&
13929          { ac_try='test -s conftest$ac_exeext'
13930   { (case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_try") 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }; then
13939   ac_cv_lib_xml2_xmlReadFile=yes
13940 else
13941   echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944         ac_cv_lib_xml2_xmlReadFile=no
13947 rm -f core conftest.err conftest.$ac_objext \
13948       conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13951 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13952 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13953 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13955 cat >>confdefs.h <<\_ACEOF
13956 #define CLANG_HAVE_LIBXML 1
13957 _ACEOF
13959                                 LIBXML2_LIBS="-lxml2"
13972 ac_header_dirent=no
13973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13974   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13975 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   cat >conftest.$ac_ext <<_ACEOF
13981 /* confdefs.h.  */
13982 _ACEOF
13983 cat confdefs.h >>conftest.$ac_ext
13984 cat >>conftest.$ac_ext <<_ACEOF
13985 /* end confdefs.h.  */
13986 #include <sys/types.h>
13987 #include <$ac_hdr>
13989 int
13990 main ()
13992 if ((DIR *) 0)
13993 return 0;
13994   ;
13995   return 0;
13997 _ACEOF
13998 rm -f conftest.$ac_objext
13999 if { (ac_try="$ac_compile"
14000 case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005   (eval "$ac_compile") 2>conftest.er1
14006   ac_status=$?
14007   grep -v '^ *+' conftest.er1 >conftest.err
14008   rm -f conftest.er1
14009   cat conftest.err >&5
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } &&
14012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013   { (case "(($ac_try" in
14014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015   *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018   (eval "$ac_try") 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; } &&
14022          { ac_try='test -s conftest.$ac_objext'
14023   { (case "(($ac_try" in
14024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025   *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028   (eval "$ac_try") 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   eval "$as_ac_Header=yes"
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037         eval "$as_ac_Header=no"
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 ac_res=`eval echo '${'$as_ac_Header'}'`
14043                { echo "$as_me:$LINENO: result: $ac_res" >&5
14044 echo "${ECHO_T}$ac_res" >&6; }
14045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14046   cat >>confdefs.h <<_ACEOF
14047 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14048 _ACEOF
14050 ac_header_dirent=$ac_hdr; break
14053 done
14054 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14055 if test $ac_header_dirent = dirent.h; then
14056   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14057 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14058 if test "${ac_cv_search_opendir+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   ac_func_search_save_LIBS=$LIBS
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14069 /* Override any GCC internal prototype to avoid an error.
14070    Use char because int might match the return type of a GCC
14071    builtin and then its argument prototype would still apply.  */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 char opendir ();
14076 int
14077 main ()
14079 return opendir ();
14080   ;
14081   return 0;
14083 _ACEOF
14084 for ac_lib in '' dir; do
14085   if test -z "$ac_lib"; then
14086     ac_res="none required"
14087   else
14088     ac_res=-l$ac_lib
14089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14090   fi
14091   rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (ac_try="$ac_link"
14093 case "(($ac_try" in
14094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095   *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098   (eval "$ac_link") 2>conftest.er1
14099   ac_status=$?
14100   grep -v '^ *+' conftest.er1 >conftest.err
14101   rm -f conftest.er1
14102   cat conftest.err >&5
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); } &&
14105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14106   { (case "(($ac_try" in
14107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108   *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111   (eval "$ac_try") 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; } &&
14115          { ac_try='test -s conftest$ac_exeext'
14116   { (case "(($ac_try" in
14117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118   *) ac_try_echo=$ac_try;;
14119 esac
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121   (eval "$ac_try") 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; }; then
14125   ac_cv_search_opendir=$ac_res
14126 else
14127   echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14133 rm -f core conftest.err conftest.$ac_objext \
14134       conftest$ac_exeext
14135   if test "${ac_cv_search_opendir+set}" = set; then
14136   break
14138 done
14139 if test "${ac_cv_search_opendir+set}" = set; then
14140   :
14141 else
14142   ac_cv_search_opendir=no
14144 rm conftest.$ac_ext
14145 LIBS=$ac_func_search_save_LIBS
14147 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14148 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14149 ac_res=$ac_cv_search_opendir
14150 if test "$ac_res" != no; then
14151   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14155 else
14156   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14158 if test "${ac_cv_search_opendir+set}" = set; then
14159   echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161   ac_func_search_save_LIBS=$LIBS
14162 cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h.  */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h.  */
14169 /* Override any GCC internal prototype to avoid an error.
14170    Use char because int might match the return type of a GCC
14171    builtin and then its argument prototype would still apply.  */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 char opendir ();
14176 int
14177 main ()
14179 return opendir ();
14180   ;
14181   return 0;
14183 _ACEOF
14184 for ac_lib in '' x; do
14185   if test -z "$ac_lib"; then
14186     ac_res="none required"
14187   else
14188     ac_res=-l$ac_lib
14189     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14190   fi
14191   rm -f conftest.$ac_objext conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198   (eval "$ac_link") 2>conftest.er1
14199   ac_status=$?
14200   grep -v '^ *+' conftest.er1 >conftest.err
14201   rm -f conftest.er1
14202   cat conftest.err >&5
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); } &&
14205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14206   { (case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_try") 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; } &&
14215          { ac_try='test -s conftest$ac_exeext'
14216   { (case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221   (eval "$ac_try") 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; }; then
14225   ac_cv_search_opendir=$ac_res
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14233 rm -f core conftest.err conftest.$ac_objext \
14234       conftest$ac_exeext
14235   if test "${ac_cv_search_opendir+set}" = set; then
14236   break
14238 done
14239 if test "${ac_cv_search_opendir+set}" = set; then
14240   :
14241 else
14242   ac_cv_search_opendir=no
14244 rm conftest.$ac_ext
14245 LIBS=$ac_func_search_save_LIBS
14247 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14248 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14249 ac_res=$ac_cv_search_opendir
14250 if test "$ac_res" != no; then
14251   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14257 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14258 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14259 if test "${ac_cv_header_mmap_anon+set}" = set; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262    ac_ext=c
14263 ac_cpp='$CPP $CPPFLAGS'
14264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14268   cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h.  */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h.  */
14274 #include <sys/mman.h>
14275 #include <unistd.h>
14276 #include <fcntl.h>
14277 int
14278 main ()
14280 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14281   ;
14282   return 0;
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_compile") 2>conftest.er1
14293   ac_status=$?
14294   grep -v '^ *+' conftest.er1 >conftest.err
14295   rm -f conftest.er1
14296   cat conftest.err >&5
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); } &&
14299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14300   { (case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_try") 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; } &&
14309          { ac_try='test -s conftest.$ac_objext'
14310   { (case "(($ac_try" in
14311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312   *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315   (eval "$ac_try") 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; }; then
14319   ac_cv_header_mmap_anon=yes
14320 else
14321   echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324         ac_cv_header_mmap_anon=no
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328   ac_ext=c
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14337 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14338 if test "$ac_cv_header_mmap_anon" = yes; then
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_MMAP_ANONYMOUS 1
14342 _ACEOF
14346 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14347 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14348 if test "${ac_cv_header_stat_broken+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357 #include <sys/types.h>
14358 #include <sys/stat.h>
14360 #if defined S_ISBLK && defined S_IFDIR
14361 # if S_ISBLK (S_IFDIR)
14362 You lose.
14363 # endif
14364 #endif
14366 #if defined S_ISBLK && defined S_IFCHR
14367 # if S_ISBLK (S_IFCHR)
14368 You lose.
14369 # endif
14370 #endif
14372 #if defined S_ISLNK && defined S_IFREG
14373 # if S_ISLNK (S_IFREG)
14374 You lose.
14375 # endif
14376 #endif
14378 #if defined S_ISSOCK && defined S_IFREG
14379 # if S_ISSOCK (S_IFREG)
14380 You lose.
14381 # endif
14382 #endif
14384 _ACEOF
14385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14386   $EGREP "You lose" >/dev/null 2>&1; then
14387   ac_cv_header_stat_broken=yes
14388 else
14389   ac_cv_header_stat_broken=no
14391 rm -f conftest*
14394 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14395 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14396 if test $ac_cv_header_stat_broken = yes; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define STAT_MACROS_BROKEN 1
14400 _ACEOF
14404 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14405 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14406 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415 #include <sys/types.h>
14416 #include <sys/wait.h>
14417 #ifndef WEXITSTATUS
14418 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14419 #endif
14420 #ifndef WIFEXITED
14421 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14422 #endif
14424 int
14425 main ()
14427   int s;
14428   wait (&s);
14429   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14430   ;
14431   return 0;
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441   (eval "$ac_compile") 2>conftest.er1
14442   ac_status=$?
14443   grep -v '^ *+' conftest.er1 >conftest.err
14444   rm -f conftest.er1
14445   cat conftest.err >&5
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); } &&
14448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449   { (case "(($ac_try" in
14450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451   *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454   (eval "$ac_try") 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; } &&
14458          { ac_try='test -s conftest.$ac_objext'
14459   { (case "(($ac_try" in
14460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461   *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464   (eval "$ac_try") 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_cv_header_sys_wait_h=yes
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473         ac_cv_header_sys_wait_h=no
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14479 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14480 if test $ac_cv_header_sys_wait_h = yes; then
14482 cat >>confdefs.h <<\_ACEOF
14483 #define HAVE_SYS_WAIT_H 1
14484 _ACEOF
14488 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14489 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14490 if test "${ac_cv_header_time+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493   cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 #include <sys/types.h>
14500 #include <sys/time.h>
14501 #include <time.h>
14503 int
14504 main ()
14506 if ((struct tm *) 0)
14507 return 0;
14508   ;
14509   return 0;
14511 _ACEOF
14512 rm -f conftest.$ac_objext
14513 if { (ac_try="$ac_compile"
14514 case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_compile") 2>conftest.er1
14520   ac_status=$?
14521   grep -v '^ *+' conftest.er1 >conftest.err
14522   rm -f conftest.er1
14523   cat conftest.err >&5
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14527   { (case "(($ac_try" in
14528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529   *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532   (eval "$ac_try") 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; } &&
14536          { ac_try='test -s conftest.$ac_objext'
14537   { (case "(($ac_try" in
14538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539   *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542   (eval "$ac_try") 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; }; then
14546   ac_cv_header_time=yes
14547 else
14548   echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551         ac_cv_header_time=no
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14557 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14558 if test $ac_cv_header_time = yes; then
14560 cat >>confdefs.h <<\_ACEOF
14561 #define TIME_WITH_SYS_TIME 1
14562 _ACEOF
14567 ac_ext=cpp
14568 ac_cpp='$CXXCPP $CPPFLAGS'
14569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14573 ac_ext=cpp
14574 ac_cpp='$CXXCPP $CPPFLAGS'
14575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14578 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14579 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14580 if test -z "$CXXCPP"; then
14581   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584       # Double quotes because CXXCPP needs to be expanded
14585     for CXXCPP in "$CXX -E" "/lib/cpp"
14586     do
14587       ac_preproc_ok=false
14588 for ac_cxx_preproc_warn_flag in '' yes
14590   # Use a header file that comes with gcc, so configuring glibc
14591   # with a fresh cross-compiler works.
14592   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14593   # <limits.h> exists even on freestanding compilers.
14594   # On the NeXT, cc -E runs the code through the compiler's parser,
14595   # not just through cpp. "Syntax error" is here to catch this case.
14596   cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602 #ifdef __STDC__
14603 # include <limits.h>
14604 #else
14605 # include <assert.h>
14606 #endif
14607                      Syntax error
14608 _ACEOF
14609 if { (ac_try="$ac_cpp conftest.$ac_ext"
14610 case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } >/dev/null; then
14622   if test -s conftest.err; then
14623     ac_cpp_err=$ac_cxx_preproc_warn_flag
14624     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14625   else
14626     ac_cpp_err=
14627   fi
14628 else
14629   ac_cpp_err=yes
14631 if test -z "$ac_cpp_err"; then
14632   :
14633 else
14634   echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637   # Broken: fails on valid input.
14638 continue
14641 rm -f conftest.err conftest.$ac_ext
14643   # OK, works on sane cases.  Now check whether nonexistent headers
14644   # can be detected and how.
14645   cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 #include <ac_nonexistent.h>
14652 _ACEOF
14653 if { (ac_try="$ac_cpp conftest.$ac_ext"
14654 case "(($ac_try" in
14655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656   *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } >/dev/null; then
14666   if test -s conftest.err; then
14667     ac_cpp_err=$ac_cxx_preproc_warn_flag
14668     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14669   else
14670     ac_cpp_err=
14671   fi
14672 else
14673   ac_cpp_err=yes
14675 if test -z "$ac_cpp_err"; then
14676   # Broken: success on invalid input.
14677 continue
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682   # Passes both tests.
14683 ac_preproc_ok=:
14684 break
14687 rm -f conftest.err conftest.$ac_ext
14689 done
14690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14691 rm -f conftest.err conftest.$ac_ext
14692 if $ac_preproc_ok; then
14693   break
14696     done
14697     ac_cv_prog_CXXCPP=$CXXCPP
14700   CXXCPP=$ac_cv_prog_CXXCPP
14701 else
14702   ac_cv_prog_CXXCPP=$CXXCPP
14704 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14705 echo "${ECHO_T}$CXXCPP" >&6; }
14706 ac_preproc_ok=false
14707 for ac_cxx_preproc_warn_flag in '' yes
14709   # Use a header file that comes with gcc, so configuring glibc
14710   # with a fresh cross-compiler works.
14711   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712   # <limits.h> exists even on freestanding compilers.
14713   # On the NeXT, cc -E runs the code through the compiler's parser,
14714   # not just through cpp. "Syntax error" is here to catch this case.
14715   cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h.  */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h.  */
14721 #ifdef __STDC__
14722 # include <limits.h>
14723 #else
14724 # include <assert.h>
14725 #endif
14726                      Syntax error
14727 _ACEOF
14728 if { (ac_try="$ac_cpp conftest.$ac_ext"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735   ac_status=$?
14736   grep -v '^ *+' conftest.er1 >conftest.err
14737   rm -f conftest.er1
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } >/dev/null; then
14741   if test -s conftest.err; then
14742     ac_cpp_err=$ac_cxx_preproc_warn_flag
14743     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14744   else
14745     ac_cpp_err=
14746   fi
14747 else
14748   ac_cpp_err=yes
14750 if test -z "$ac_cpp_err"; then
14751   :
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756   # Broken: fails on valid input.
14757 continue
14760 rm -f conftest.err conftest.$ac_ext
14762   # OK, works on sane cases.  Now check whether nonexistent headers
14763   # can be detected and how.
14764   cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 #include <ac_nonexistent.h>
14771 _ACEOF
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } >/dev/null; then
14785   if test -s conftest.err; then
14786     ac_cpp_err=$ac_cxx_preproc_warn_flag
14787     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14788   else
14789     ac_cpp_err=
14790   fi
14791 else
14792   ac_cpp_err=yes
14794 if test -z "$ac_cpp_err"; then
14795   # Broken: success on invalid input.
14796 continue
14797 else
14798   echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801   # Passes both tests.
14802 ac_preproc_ok=:
14803 break
14806 rm -f conftest.err conftest.$ac_ext
14808 done
14809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14810 rm -f conftest.err conftest.$ac_ext
14811 if $ac_preproc_ok; then
14812   :
14813 else
14814   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14815 See \`config.log' for more details." >&5
14816 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14817 See \`config.log' for more details." >&2;}
14818    { (exit 1); exit 1; }; }
14821 ac_ext=cpp
14822 ac_cpp='$CXXCPP $CPPFLAGS'
14823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14829 for ac_header in cxxabi.h
14831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 ac_res=`eval echo '${'$as_ac_Header'}'`
14839                { echo "$as_me:$LINENO: result: $ac_res" >&5
14840 echo "${ECHO_T}$ac_res" >&6; }
14841 else
14842   # Is the header compilable?
14843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h.  */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h.  */
14851 $ac_includes_default
14852 #include <$ac_header>
14853 _ACEOF
14854 rm -f conftest.$ac_objext
14855 if { (ac_try="$ac_compile"
14856 case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_compile") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14869   { (case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874   (eval "$ac_try") 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; } &&
14878          { ac_try='test -s conftest.$ac_objext'
14879   { (case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_try") 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   ac_header_compiler=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893         ac_header_compiler=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h.  */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h.  */
14909 #include <$ac_header>
14910 _ACEOF
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914   *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918   ac_status=$?
14919   grep -v '^ *+' conftest.er1 >conftest.err
14920   rm -f conftest.er1
14921   cat conftest.err >&5
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } >/dev/null; then
14924   if test -s conftest.err; then
14925     ac_cpp_err=$ac_cxx_preproc_warn_flag
14926     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14927   else
14928     ac_cpp_err=
14929   fi
14930 else
14931   ac_cpp_err=yes
14933 if test -z "$ac_cpp_err"; then
14934   ac_header_preproc=yes
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939   ac_header_preproc=no
14942 rm -f conftest.err conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14944 echo "${ECHO_T}$ac_header_preproc" >&6; }
14946 # So?  What about this header?
14947 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14948   yes:no: )
14949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14953     ac_header_preproc=yes
14954     ;;
14955   no:yes:* )
14956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14968     ( cat <<\_ASBOX
14969 ## ------------------------------------ ##
14970 ## Report this to http://llvm.org/bugs/ ##
14971 ## ------------------------------------ ##
14972 _ASBOX
14973      ) | sed "s/^/$as_me: WARNING:     /" >&2
14974     ;;
14975 esac
14976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   eval "$as_ac_Header=\$ac_header_preproc"
14983 ac_res=`eval echo '${'$as_ac_Header'}'`
14984                { echo "$as_me:$LINENO: result: $ac_res" >&5
14985 echo "${ECHO_T}$ac_res" >&6; }
14988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14989   cat >>confdefs.h <<_ACEOF
14990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14991 _ACEOF
14995 done
14997 ac_ext=c
14998 ac_cpp='$CPP $CPPFLAGS'
14999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15015   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 ac_res=`eval echo '${'$as_ac_Header'}'`
15018                { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 echo "${ECHO_T}$ac_res" >&6; }
15020 else
15021   # Is the header compilable?
15022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15024 cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030 $ac_includes_default
15031 #include <$ac_header>
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040   (eval "$ac_compile") 2>conftest.er1
15041   ac_status=$?
15042   grep -v '^ *+' conftest.er1 >conftest.err
15043   rm -f conftest.er1
15044   cat conftest.err >&5
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); } &&
15047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048   { (case "(($ac_try" in
15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050   *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053   (eval "$ac_try") 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (case "(($ac_try" in
15059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060   *) ac_try_echo=$ac_try;;
15061 esac
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063   (eval "$ac_try") 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }; }; then
15067   ac_header_compiler=yes
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072         ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h.  */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h.  */
15088 #include <$ac_header>
15089 _ACEOF
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097   ac_status=$?
15098   grep -v '^ *+' conftest.er1 >conftest.err
15099   rm -f conftest.er1
15100   cat conftest.err >&5
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); } >/dev/null; then
15103   if test -s conftest.err; then
15104     ac_cpp_err=$ac_c_preproc_warn_flag
15105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15106   else
15107     ac_cpp_err=
15108   fi
15109 else
15110   ac_cpp_err=yes
15112 if test -z "$ac_cpp_err"; then
15113   ac_header_preproc=yes
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118   ac_header_preproc=no
15121 rm -f conftest.err conftest.$ac_ext
15122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15123 echo "${ECHO_T}$ac_header_preproc" >&6; }
15125 # So?  What about this header?
15126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15127   yes:no: )
15128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15132     ac_header_preproc=yes
15133     ;;
15134   no:yes:* )
15135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15147     ( cat <<\_ASBOX
15148 ## ------------------------------------ ##
15149 ## Report this to http://llvm.org/bugs/ ##
15150 ## ------------------------------------ ##
15151 _ASBOX
15152      ) | sed "s/^/$as_me: WARNING:     /" >&2
15153     ;;
15154 esac
15155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160   eval "$as_ac_Header=\$ac_header_preproc"
15162 ac_res=`eval echo '${'$as_ac_Header'}'`
15163                { echo "$as_me:$LINENO: result: $ac_res" >&5
15164 echo "${ECHO_T}$ac_res" >&6; }
15167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15168   cat >>confdefs.h <<_ACEOF
15169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15170 _ACEOF
15174 done
15182 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15189   echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_res=`eval echo '${'$as_ac_Header'}'`
15192                { echo "$as_me:$LINENO: result: $ac_res" >&5
15193 echo "${ECHO_T}$ac_res" >&6; }
15194 else
15195   # Is the header compilable?
15196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204 $ac_includes_default
15205 #include <$ac_header>
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (ac_try="$ac_compile"
15209 case "(($ac_try" in
15210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211   *) ac_try_echo=$ac_try;;
15212 esac
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214   (eval "$ac_compile") 2>conftest.er1
15215   ac_status=$?
15216   grep -v '^ *+' conftest.er1 >conftest.err
15217   rm -f conftest.er1
15218   cat conftest.err >&5
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222   { (case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_try") 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; } &&
15231          { ac_try='test -s conftest.$ac_objext'
15232   { (case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_try") 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }; then
15241   ac_header_compiler=yes
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246         ac_header_compiler=no
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251 echo "${ECHO_T}$ac_header_compiler" >&6; }
15253 # Is the header present?
15254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262 #include <$ac_header>
15263 _ACEOF
15264 if { (ac_try="$ac_cpp conftest.$ac_ext"
15265 case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15271   ac_status=$?
15272   grep -v '^ *+' conftest.er1 >conftest.err
15273   rm -f conftest.er1
15274   cat conftest.err >&5
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } >/dev/null; then
15277   if test -s conftest.err; then
15278     ac_cpp_err=$ac_c_preproc_warn_flag
15279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15280   else
15281     ac_cpp_err=
15282   fi
15283 else
15284   ac_cpp_err=yes
15286 if test -z "$ac_cpp_err"; then
15287   ac_header_preproc=yes
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292   ac_header_preproc=no
15295 rm -f conftest.err conftest.$ac_ext
15296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15297 echo "${ECHO_T}$ac_header_preproc" >&6; }
15299 # So?  What about this header?
15300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15301   yes:no: )
15302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15306     ac_header_preproc=yes
15307     ;;
15308   no:yes:* )
15309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15321     ( cat <<\_ASBOX
15322 ## ------------------------------------ ##
15323 ## Report this to http://llvm.org/bugs/ ##
15324 ## ------------------------------------ ##
15325 _ASBOX
15326      ) | sed "s/^/$as_me: WARNING:     /" >&2
15327     ;;
15328 esac
15329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   eval "$as_ac_Header=\$ac_header_preproc"
15336 ac_res=`eval echo '${'$as_ac_Header'}'`
15337                { echo "$as_me:$LINENO: result: $ac_res" >&5
15338 echo "${ECHO_T}$ac_res" >&6; }
15341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15342   cat >>confdefs.h <<_ACEOF
15343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15344 _ACEOF
15348 done
15351 for ac_header in utime.h
15353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15358   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 ac_res=`eval echo '${'$as_ac_Header'}'`
15361                { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 else
15364   # Is the header compilable?
15365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h.  */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h.  */
15373 $ac_includes_default
15374 #include <$ac_header>
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (ac_try="$ac_compile"
15378 case "(($ac_try" in
15379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380   *) ac_try_echo=$ac_try;;
15381 esac
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383   (eval "$ac_compile") 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15391   { (case "(($ac_try" in
15392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393   *) ac_try_echo=$ac_try;;
15394 esac
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396   (eval "$ac_try") 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; } &&
15400          { ac_try='test -s conftest.$ac_objext'
15401   { (case "(($ac_try" in
15402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403   *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406   (eval "$ac_try") 2>&5
15407   ac_status=$?
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); }; }; then
15410   ac_header_compiler=yes
15411 else
15412   echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415         ac_header_compiler=no
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420 echo "${ECHO_T}$ac_header_compiler" >&6; }
15422 # Is the header present?
15423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431 #include <$ac_header>
15432 _ACEOF
15433 if { (ac_try="$ac_cpp conftest.$ac_ext"
15434 case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15440   ac_status=$?
15441   grep -v '^ *+' conftest.er1 >conftest.err
15442   rm -f conftest.er1
15443   cat conftest.err >&5
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); } >/dev/null; then
15446   if test -s conftest.err; then
15447     ac_cpp_err=$ac_c_preproc_warn_flag
15448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15449   else
15450     ac_cpp_err=
15451   fi
15452 else
15453   ac_cpp_err=yes
15455 if test -z "$ac_cpp_err"; then
15456   ac_header_preproc=yes
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461   ac_header_preproc=no
15464 rm -f conftest.err conftest.$ac_ext
15465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15466 echo "${ECHO_T}$ac_header_preproc" >&6; }
15468 # So?  What about this header?
15469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15470   yes:no: )
15471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15475     ac_header_preproc=yes
15476     ;;
15477   no:yes:* )
15478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15490     ( cat <<\_ASBOX
15491 ## ------------------------------------ ##
15492 ## Report this to http://llvm.org/bugs/ ##
15493 ## ------------------------------------ ##
15494 _ASBOX
15495      ) | sed "s/^/$as_me: WARNING:     /" >&2
15496     ;;
15497 esac
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503   eval "$as_ac_Header=\$ac_header_preproc"
15505 ac_res=`eval echo '${'$as_ac_Header'}'`
15506                { echo "$as_me:$LINENO: result: $ac_res" >&5
15507 echo "${ECHO_T}$ac_res" >&6; }
15510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15511   cat >>confdefs.h <<_ACEOF
15512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15513 _ACEOF
15517 done
15524 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534                { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15536 else
15537   # Is the header compilable?
15538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15540 cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546 $ac_includes_default
15547 #include <$ac_header>
15548 _ACEOF
15549 rm -f conftest.$ac_objext
15550 if { (ac_try="$ac_compile"
15551 case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_compile") 2>conftest.er1
15557   ac_status=$?
15558   grep -v '^ *+' conftest.er1 >conftest.err
15559   rm -f conftest.er1
15560   cat conftest.err >&5
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); } &&
15563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15564   { (case "(($ac_try" in
15565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566   *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569   (eval "$ac_try") 2>&5
15570   ac_status=$?
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); }; } &&
15573          { ac_try='test -s conftest.$ac_objext'
15574   { (case "(($ac_try" in
15575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576   *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579   (eval "$ac_try") 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); }; }; then
15583   ac_header_compiler=yes
15584 else
15585   echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15588         ac_header_compiler=no
15591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15593 echo "${ECHO_T}$ac_header_compiler" >&6; }
15595 # Is the header present?
15596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 #include <$ac_header>
15605 _ACEOF
15606 if { (ac_try="$ac_cpp conftest.$ac_ext"
15607 case "(($ac_try" in
15608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609   *) ac_try_echo=$ac_try;;
15610 esac
15611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15613   ac_status=$?
15614   grep -v '^ *+' conftest.er1 >conftest.err
15615   rm -f conftest.er1
15616   cat conftest.err >&5
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } >/dev/null; then
15619   if test -s conftest.err; then
15620     ac_cpp_err=$ac_c_preproc_warn_flag
15621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15622   else
15623     ac_cpp_err=
15624   fi
15625 else
15626   ac_cpp_err=yes
15628 if test -z "$ac_cpp_err"; then
15629   ac_header_preproc=yes
15630 else
15631   echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634   ac_header_preproc=no
15637 rm -f conftest.err conftest.$ac_ext
15638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15639 echo "${ECHO_T}$ac_header_preproc" >&6; }
15641 # So?  What about this header?
15642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15643   yes:no: )
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15648     ac_header_preproc=yes
15649     ;;
15650   no:yes:* )
15651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15663     ( cat <<\_ASBOX
15664 ## ------------------------------------ ##
15665 ## Report this to http://llvm.org/bugs/ ##
15666 ## ------------------------------------ ##
15667 _ASBOX
15668      ) | sed "s/^/$as_me: WARNING:     /" >&2
15669     ;;
15670 esac
15671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676   eval "$as_ac_Header=\$ac_header_preproc"
15678 ac_res=`eval echo '${'$as_ac_Header'}'`
15679                { echo "$as_me:$LINENO: result: $ac_res" >&5
15680 echo "${ECHO_T}$ac_res" >&6; }
15683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15684   cat >>confdefs.h <<_ACEOF
15685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15686 _ACEOF
15690 done
15695 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702   echo $ECHO_N "(cached) $ECHO_C" >&6
15704 ac_res=`eval echo '${'$as_ac_Header'}'`
15705                { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15707 else
15708   # Is the header compilable?
15709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 $ac_includes_default
15718 #include <$ac_header>
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727   (eval "$ac_compile") 2>conftest.er1
15728   ac_status=$?
15729   grep -v '^ *+' conftest.er1 >conftest.err
15730   rm -f conftest.er1
15731   cat conftest.err >&5
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } &&
15734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735   { (case "(($ac_try" in
15736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737   *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740   (eval "$ac_try") 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; } &&
15744          { ac_try='test -s conftest.$ac_objext'
15745   { (case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_try") 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; }; then
15754   ac_header_compiler=yes
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759         ac_header_compiler=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6; }
15766 # Is the header present?
15767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775 #include <$ac_header>
15776 _ACEOF
15777 if { (ac_try="$ac_cpp conftest.$ac_ext"
15778 case "(($ac_try" in
15779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780   *) ac_try_echo=$ac_try;;
15781 esac
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784   ac_status=$?
15785   grep -v '^ *+' conftest.er1 >conftest.err
15786   rm -f conftest.er1
15787   cat conftest.err >&5
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); } >/dev/null; then
15790   if test -s conftest.err; then
15791     ac_cpp_err=$ac_c_preproc_warn_flag
15792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793   else
15794     ac_cpp_err=
15795   fi
15796 else
15797   ac_cpp_err=yes
15799 if test -z "$ac_cpp_err"; then
15800   ac_header_preproc=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805   ac_header_preproc=no
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15812 # So?  What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814   yes:no: )
15815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819     ac_header_preproc=yes
15820     ;;
15821   no:yes:* )
15822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834     ( cat <<\_ASBOX
15835 ## ------------------------------------ ##
15836 ## Report this to http://llvm.org/bugs/ ##
15837 ## ------------------------------------ ##
15838 _ASBOX
15839      ) | sed "s/^/$as_me: WARNING:     /" >&2
15840     ;;
15841 esac
15842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845   echo $ECHO_N "(cached) $ECHO_C" >&6
15846 else
15847   eval "$as_ac_Header=\$ac_header_preproc"
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850                { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855   cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15857 _ACEOF
15861 done
15864 for ac_header in valgrind/valgrind.h
15866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15871   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 ac_res=`eval echo '${'$as_ac_Header'}'`
15874                { echo "$as_me:$LINENO: result: $ac_res" >&5
15875 echo "${ECHO_T}$ac_res" >&6; }
15876 else
15877   # Is the header compilable?
15878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h.  */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h.  */
15886 $ac_includes_default
15887 #include <$ac_header>
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (ac_try="$ac_compile"
15891 case "(($ac_try" in
15892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15893   *) ac_try_echo=$ac_try;;
15894 esac
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896   (eval "$ac_compile") 2>conftest.er1
15897   ac_status=$?
15898   grep -v '^ *+' conftest.er1 >conftest.err
15899   rm -f conftest.er1
15900   cat conftest.err >&5
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); } &&
15903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15904   { (case "(($ac_try" in
15905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906   *) ac_try_echo=$ac_try;;
15907 esac
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909   (eval "$ac_try") 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); }; } &&
15913          { ac_try='test -s conftest.$ac_objext'
15914   { (case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_try") 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; }; then
15923   ac_header_compiler=yes
15924 else
15925   echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928         ac_header_compiler=no
15931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15933 echo "${ECHO_T}$ac_header_compiler" >&6; }
15935 # Is the header present?
15936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944 #include <$ac_header>
15945 _ACEOF
15946 if { (ac_try="$ac_cpp conftest.$ac_ext"
15947 case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15953   ac_status=$?
15954   grep -v '^ *+' conftest.er1 >conftest.err
15955   rm -f conftest.er1
15956   cat conftest.err >&5
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } >/dev/null; then
15959   if test -s conftest.err; then
15960     ac_cpp_err=$ac_c_preproc_warn_flag
15961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15962   else
15963     ac_cpp_err=
15964   fi
15965 else
15966   ac_cpp_err=yes
15968 if test -z "$ac_cpp_err"; then
15969   ac_header_preproc=yes
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974   ac_header_preproc=no
15977 rm -f conftest.err conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15979 echo "${ECHO_T}$ac_header_preproc" >&6; }
15981 # So?  What about this header?
15982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15983   yes:no: )
15984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15988     ac_header_preproc=yes
15989     ;;
15990   no:yes:* )
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16003     ( cat <<\_ASBOX
16004 ## ------------------------------------ ##
16005 ## Report this to http://llvm.org/bugs/ ##
16006 ## ------------------------------------ ##
16007 _ASBOX
16008      ) | sed "s/^/$as_me: WARNING:     /" >&2
16009     ;;
16010 esac
16011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014   echo $ECHO_N "(cached) $ECHO_C" >&6
16015 else
16016   eval "$as_ac_Header=\$ac_header_preproc"
16018 ac_res=`eval echo '${'$as_ac_Header'}'`
16019                { echo "$as_me:$LINENO: result: $ac_res" >&5
16020 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16024   cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16026 _ACEOF
16030 done
16033 for ac_header in fenv.h
16035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040   echo $ECHO_N "(cached) $ECHO_C" >&6
16042 ac_res=`eval echo '${'$as_ac_Header'}'`
16043                { echo "$as_me:$LINENO: result: $ac_res" >&5
16044 echo "${ECHO_T}$ac_res" >&6; }
16045 else
16046   # Is the header compilable?
16047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055 $ac_includes_default
16056 #include <$ac_header>
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_compile") 2>conftest.er1
16066   ac_status=$?
16067   grep -v '^ *+' conftest.er1 >conftest.err
16068   rm -f conftest.er1
16069   cat conftest.err >&5
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } &&
16072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073   { (case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_try") 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; } &&
16082          { ac_try='test -s conftest.$ac_objext'
16083   { (case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088   (eval "$ac_try") 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   ac_header_compiler=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097         ac_header_compiler=no
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102 echo "${ECHO_T}$ac_header_compiler" >&6; }
16104 # Is the header present?
16105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h.  */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h.  */
16113 #include <$ac_header>
16114 _ACEOF
16115 if { (ac_try="$ac_cpp conftest.$ac_ext"
16116 case "(($ac_try" in
16117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118   *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16122   ac_status=$?
16123   grep -v '^ *+' conftest.er1 >conftest.err
16124   rm -f conftest.er1
16125   cat conftest.err >&5
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); } >/dev/null; then
16128   if test -s conftest.err; then
16129     ac_cpp_err=$ac_c_preproc_warn_flag
16130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16131   else
16132     ac_cpp_err=
16133   fi
16134 else
16135   ac_cpp_err=yes
16137 if test -z "$ac_cpp_err"; then
16138   ac_header_preproc=yes
16139 else
16140   echo "$as_me: failed program was:" >&5
16141 sed 's/^/| /' conftest.$ac_ext >&5
16143   ac_header_preproc=no
16146 rm -f conftest.err conftest.$ac_ext
16147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148 echo "${ECHO_T}$ac_header_preproc" >&6; }
16150 # So?  What about this header?
16151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16152   yes:no: )
16153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16157     ac_header_preproc=yes
16158     ;;
16159   no:yes:* )
16160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16172     ( cat <<\_ASBOX
16173 ## ------------------------------------ ##
16174 ## Report this to http://llvm.org/bugs/ ##
16175 ## ------------------------------------ ##
16176 _ASBOX
16177      ) | sed "s/^/$as_me: WARNING:     /" >&2
16178     ;;
16179 esac
16180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   eval "$as_ac_Header=\$ac_header_preproc"
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188                { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16193   cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16195 _ACEOF
16199 done
16201 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16202 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16203 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h.  */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h.  */
16212 #include <fenv.h>
16214 int
16215 main ()
16217 #ifndef FE_ALL_EXCEPT
16218   char *p = (char *) FE_ALL_EXCEPT;
16219   return !p;
16220 #endif
16222   ;
16223   return 0;
16225 _ACEOF
16226 rm -f conftest.$ac_objext
16227 if { (ac_try="$ac_compile"
16228 case "(($ac_try" in
16229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230   *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233   (eval "$ac_compile") 2>conftest.er1
16234   ac_status=$?
16235   grep -v '^ *+' conftest.er1 >conftest.err
16236   rm -f conftest.er1
16237   cat conftest.err >&5
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); } &&
16240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16241   { (case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_try") 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; } &&
16250          { ac_try='test -s conftest.$ac_objext'
16251   { (case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_try") 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265         ac_cv_have_decl_FE_ALL_EXCEPT=no
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16271 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16272 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16274 cat >>confdefs.h <<_ACEOF
16275 #define HAVE_DECL_FE_ALL_EXCEPT 1
16276 _ACEOF
16279 else
16280   cat >>confdefs.h <<_ACEOF
16281 #define HAVE_DECL_FE_ALL_EXCEPT 0
16282 _ACEOF
16286 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16287 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16288 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16289   echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291   cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h.  */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h.  */
16297 #include <fenv.h>
16299 int
16300 main ()
16302 #ifndef FE_INEXACT
16303   char *p = (char *) FE_INEXACT;
16304   return !p;
16305 #endif
16307   ;
16308   return 0;
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (ac_try="$ac_compile"
16313 case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_compile") 2>conftest.er1
16319   ac_status=$?
16320   grep -v '^ *+' conftest.er1 >conftest.err
16321   rm -f conftest.er1
16322   cat conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } &&
16325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326   { (case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_try") 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; } &&
16335          { ac_try='test -s conftest.$ac_objext'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; }; then
16345   ac_cv_have_decl_FE_INEXACT=yes
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16350         ac_cv_have_decl_FE_INEXACT=no
16353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16356 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16357 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define HAVE_DECL_FE_INEXACT 1
16361 _ACEOF
16364 else
16365   cat >>confdefs.h <<_ACEOF
16366 #define HAVE_DECL_FE_INEXACT 0
16367 _ACEOF
16373 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16375 for ac_header in pthread.h
16377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 ac_res=`eval echo '${'$as_ac_Header'}'`
16385                { echo "$as_me:$LINENO: result: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16387 else
16388   # Is the header compilable?
16389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 $ac_includes_default
16398 #include <$ac_header>
16399 _ACEOF
16400 rm -f conftest.$ac_objext
16401 if { (ac_try="$ac_compile"
16402 case "(($ac_try" in
16403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404   *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407   (eval "$ac_compile") 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } &&
16414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415   { (case "(($ac_try" in
16416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417   *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420   (eval "$ac_try") 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); }; } &&
16424          { ac_try='test -s conftest.$ac_objext'
16425   { (case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_try") 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   ac_header_compiler=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439         ac_header_compiler=no
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444 echo "${ECHO_T}$ac_header_compiler" >&6; }
16446 # Is the header present?
16447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455 #include <$ac_header>
16456 _ACEOF
16457 if { (ac_try="$ac_cpp conftest.$ac_ext"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } >/dev/null; then
16470   if test -s conftest.err; then
16471     ac_cpp_err=$ac_c_preproc_warn_flag
16472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16473   else
16474     ac_cpp_err=
16475   fi
16476 else
16477   ac_cpp_err=yes
16479 if test -z "$ac_cpp_err"; then
16480   ac_header_preproc=yes
16481 else
16482   echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485   ac_header_preproc=no
16488 rm -f conftest.err conftest.$ac_ext
16489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16490 echo "${ECHO_T}$ac_header_preproc" >&6; }
16492 # So?  What about this header?
16493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16494   yes:no: )
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16499     ac_header_preproc=yes
16500     ;;
16501   no:yes:* )
16502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16514     ( cat <<\_ASBOX
16515 ## ------------------------------------ ##
16516 ## Report this to http://llvm.org/bugs/ ##
16517 ## ------------------------------------ ##
16518 _ASBOX
16519      ) | sed "s/^/$as_me: WARNING:     /" >&2
16520     ;;
16521 esac
16522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   eval "$as_ac_Header=\$ac_header_preproc"
16529 ac_res=`eval echo '${'$as_ac_Header'}'`
16530                { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16535   cat >>confdefs.h <<_ACEOF
16536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16537 _ACEOF
16538  HAVE_PTHREAD=1
16540 else
16541   HAVE_PTHREAD=0
16545 done
16547 else
16548   HAVE_PTHREAD=0
16551 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16553 for ac_header in zlib.h
16555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16557   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16562 ac_res=`eval echo '${'$as_ac_Header'}'`
16563                { echo "$as_me:$LINENO: result: $ac_res" >&5
16564 echo "${ECHO_T}$ac_res" >&6; }
16565 else
16566   # Is the header compilable?
16567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h.  */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h.  */
16575 $ac_includes_default
16576 #include <$ac_header>
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_compile") 2>conftest.er1
16586   ac_status=$?
16587   grep -v '^ *+' conftest.er1 >conftest.err
16588   rm -f conftest.er1
16589   cat conftest.err >&5
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); } &&
16592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593   { (case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_try") 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); }; } &&
16602          { ac_try='test -s conftest.$ac_objext'
16603   { (case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608   (eval "$ac_try") 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_header_compiler=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617         ac_header_compiler=no
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16622 echo "${ECHO_T}$ac_header_compiler" >&6; }
16624 # Is the header present?
16625 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633 #include <$ac_header>
16634 _ACEOF
16635 if { (ac_try="$ac_cpp conftest.$ac_ext"
16636 case "(($ac_try" in
16637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638   *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } >/dev/null; then
16648   if test -s conftest.err; then
16649     ac_cpp_err=$ac_c_preproc_warn_flag
16650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16651   else
16652     ac_cpp_err=
16653   fi
16654 else
16655   ac_cpp_err=yes
16657 if test -z "$ac_cpp_err"; then
16658   ac_header_preproc=yes
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663   ac_header_preproc=no
16666 rm -f conftest.err conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16668 echo "${ECHO_T}$ac_header_preproc" >&6; }
16670 # So?  What about this header?
16671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16672   yes:no: )
16673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16677     ac_header_preproc=yes
16678     ;;
16679   no:yes:* )
16680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16682     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16683 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16684     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16686     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16687 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16690     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16692     ( cat <<\_ASBOX
16693 ## ------------------------------------ ##
16694 ## Report this to http://llvm.org/bugs/ ##
16695 ## ------------------------------------ ##
16696 _ASBOX
16697      ) | sed "s/^/$as_me: WARNING:     /" >&2
16698     ;;
16699 esac
16700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   eval "$as_ac_Header=\$ac_header_preproc"
16707 ac_res=`eval echo '${'$as_ac_Header'}'`
16708                { echo "$as_me:$LINENO: result: $ac_res" >&5
16709 echo "${ECHO_T}$ac_res" >&6; }
16712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16713   cat >>confdefs.h <<_ACEOF
16714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16715 _ACEOF
16716  HAVE_LIBZ=1
16718 else
16719   HAVE_LIBZ=0
16723 done
16725 else
16726   HAVE_LIBZ=0
16730 if test "$llvm_cv_enable_libffi" = "yes" ; then
16733 for ac_header in ffi.h ffi/ffi.h
16735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16737   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16740   echo $ECHO_N "(cached) $ECHO_C" >&6
16742 ac_res=`eval echo '${'$as_ac_Header'}'`
16743                { echo "$as_me:$LINENO: result: $ac_res" >&5
16744 echo "${ECHO_T}$ac_res" >&6; }
16745 else
16746   # Is the header compilable?
16747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 $ac_includes_default
16756 #include <$ac_header>
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (ac_try="$ac_compile"
16760 case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_compile") 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773   { (case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_try") 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest.$ac_objext'
16783   { (case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_try") 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792   ac_header_compiler=yes
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797         ac_header_compiler=no
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16802 echo "${ECHO_T}$ac_header_compiler" >&6; }
16804 # Is the header present?
16805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 #include <$ac_header>
16814 _ACEOF
16815 if { (ac_try="$ac_cpp conftest.$ac_ext"
16816 case "(($ac_try" in
16817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818   *) ac_try_echo=$ac_try;;
16819 esac
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16822   ac_status=$?
16823   grep -v '^ *+' conftest.er1 >conftest.err
16824   rm -f conftest.er1
16825   cat conftest.err >&5
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } >/dev/null; then
16828   if test -s conftest.err; then
16829     ac_cpp_err=$ac_c_preproc_warn_flag
16830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16831   else
16832     ac_cpp_err=
16833   fi
16834 else
16835   ac_cpp_err=yes
16837 if test -z "$ac_cpp_err"; then
16838   ac_header_preproc=yes
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843   ac_header_preproc=no
16846 rm -f conftest.err conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16848 echo "${ECHO_T}$ac_header_preproc" >&6; }
16850 # So?  What about this header?
16851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16852   yes:no: )
16853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16857     ac_header_preproc=yes
16858     ;;
16859   no:yes:* )
16860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16872     ( cat <<\_ASBOX
16873 ## ------------------------------------ ##
16874 ## Report this to http://llvm.org/bugs/ ##
16875 ## ------------------------------------ ##
16876 _ASBOX
16877      ) | sed "s/^/$as_me: WARNING:     /" >&2
16878     ;;
16879 esac
16880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885   eval "$as_ac_Header=\$ac_header_preproc"
16887 ac_res=`eval echo '${'$as_ac_Header'}'`
16888                { echo "$as_me:$LINENO: result: $ac_res" >&5
16889 echo "${ECHO_T}$ac_res" >&6; }
16892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16893   cat >>confdefs.h <<_ACEOF
16894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16895 _ACEOF
16899 done
16904 for ac_header in CrashReporterClient.h
16906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 ac_res=`eval echo '${'$as_ac_Header'}'`
16914                { echo "$as_me:$LINENO: result: $ac_res" >&5
16915 echo "${ECHO_T}$ac_res" >&6; }
16916 else
16917   # Is the header compilable?
16918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16920 cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h.  */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h.  */
16926 $ac_includes_default
16927 #include <$ac_header>
16928 _ACEOF
16929 rm -f conftest.$ac_objext
16930 if { (ac_try="$ac_compile"
16931 case "(($ac_try" in
16932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933   *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936   (eval "$ac_compile") 2>conftest.er1
16937   ac_status=$?
16938   grep -v '^ *+' conftest.er1 >conftest.err
16939   rm -f conftest.er1
16940   cat conftest.err >&5
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; } &&
16953          { ac_try='test -s conftest.$ac_objext'
16954   { (case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_try") 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; }; then
16963   ac_header_compiler=yes
16964 else
16965   echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968         ac_header_compiler=no
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16973 echo "${ECHO_T}$ac_header_compiler" >&6; }
16975 # Is the header present?
16976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16978 cat >conftest.$ac_ext <<_ACEOF
16979 /* confdefs.h.  */
16980 _ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h.  */
16984 #include <$ac_header>
16985 _ACEOF
16986 if { (ac_try="$ac_cpp conftest.$ac_ext"
16987 case "(($ac_try" in
16988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989   *) ac_try_echo=$ac_try;;
16990 esac
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16993   ac_status=$?
16994   grep -v '^ *+' conftest.er1 >conftest.err
16995   rm -f conftest.er1
16996   cat conftest.err >&5
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); } >/dev/null; then
16999   if test -s conftest.err; then
17000     ac_cpp_err=$ac_c_preproc_warn_flag
17001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17002   else
17003     ac_cpp_err=
17004   fi
17005 else
17006   ac_cpp_err=yes
17008 if test -z "$ac_cpp_err"; then
17009   ac_header_preproc=yes
17010 else
17011   echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17014   ac_header_preproc=no
17017 rm -f conftest.err conftest.$ac_ext
17018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17019 echo "${ECHO_T}$ac_header_preproc" >&6; }
17021 # So?  What about this header?
17022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17023   yes:no: )
17024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17028     ac_header_preproc=yes
17029     ;;
17030   no:yes:* )
17031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17043     ( cat <<\_ASBOX
17044 ## ------------------------------------ ##
17045 ## Report this to http://llvm.org/bugs/ ##
17046 ## ------------------------------------ ##
17047 _ASBOX
17048      ) | sed "s/^/$as_me: WARNING:     /" >&2
17049     ;;
17050 esac
17051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17054   echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056   eval "$as_ac_Header=\$ac_header_preproc"
17058 ac_res=`eval echo '${'$as_ac_Header'}'`
17059                { echo "$as_me:$LINENO: result: $ac_res" >&5
17060 echo "${ECHO_T}$ac_res" >&6; }
17063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17064   cat >>confdefs.h <<_ACEOF
17065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17066 _ACEOF
17070 done
17073 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17074 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17077   /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17083     extern const char *__crashreporter_info__;
17084     int main() {
17085       __crashreporter_info__ = "test";
17086       return 0;
17087     }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_link") 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106   { (case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_try") 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; } &&
17115          { ac_try='test -s conftest$ac_exeext'
17116   { (case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_try") 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17126   { echo "$as_me:$LINENO: result: yes" >&5
17127 echo "${ECHO_T}yes" >&6; }
17129 cat >>confdefs.h <<\_ACEOF
17130 #define HAVE_CRASHREPORTER_INFO 1
17131 _ACEOF
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17139   { echo "$as_me:$LINENO: result: no" >&5
17140 echo "${ECHO_T}no" >&6; }
17142 cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_CRASHREPORTER_INFO 0
17144 _ACEOF
17149 rm -f core conftest.err conftest.$ac_objext \
17150       conftest$ac_exeext conftest.$ac_ext
17154   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17155 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17156 if test "${ac_cv_huge_val_sanity+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17160     ac_ext=cpp
17161 ac_cpp='$CXXCPP $CPPFLAGS'
17162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17166     ac_save_CXXFLAGS=$CXXFLAGS
17167     CXXFLAGS="$CXXFLAGS -pedantic"
17168     if test "$cross_compiling" = yes; then
17169   ac_cv_huge_val_sanity=yes
17170 else
17171   cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177 #include <math.h>
17178 int
17179 main ()
17181 double x = HUGE_VAL; return x != x;
17182   ;
17183   return 0;
17185 _ACEOF
17186 rm -f conftest$ac_exeext
17187 if { (ac_try="$ac_link"
17188 case "(($ac_try" in
17189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190   *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193   (eval "$ac_link") 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17197   { (case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_try") 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; }; then
17206   ac_cv_huge_val_sanity=yes
17207 else
17208   echo "$as_me: program exited with status $ac_status" >&5
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 ( exit $ac_status )
17213 ac_cv_huge_val_sanity=no
17215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17219     CXXFLAGS=$ac_save_CXXFLAGS
17220     ac_ext=c
17221 ac_cpp='$CPP $CPPFLAGS'
17222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17228 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17229 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17230   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17233 { echo "$as_me:$LINENO: checking for pid_t" >&5
17234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17235 if test "${ac_cv_type_pid_t+set}" = set; then
17236   echo $ECHO_N "(cached) $ECHO_C" >&6
17237 else
17238   cat >conftest.$ac_ext <<_ACEOF
17239 /* confdefs.h.  */
17240 _ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h.  */
17244 $ac_includes_default
17245 typedef pid_t ac__type_new_;
17246 int
17247 main ()
17249 if ((ac__type_new_ *) 0)
17250   return 0;
17251 if (sizeof (ac__type_new_))
17252   return 0;
17253   ;
17254   return 0;
17256 _ACEOF
17257 rm -f conftest.$ac_objext
17258 if { (ac_try="$ac_compile"
17259 case "(($ac_try" in
17260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261   *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264   (eval "$ac_compile") 2>conftest.er1
17265   ac_status=$?
17266   grep -v '^ *+' conftest.er1 >conftest.err
17267   rm -f conftest.er1
17268   cat conftest.err >&5
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); } &&
17271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17272   { (case "(($ac_try" in
17273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274   *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277   (eval "$ac_try") 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; } &&
17281          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }; }; then
17291   ac_cv_type_pid_t=yes
17292 else
17293   echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296         ac_cv_type_pid_t=no
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17302 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17303 if test $ac_cv_type_pid_t = yes; then
17304   :
17305 else
17307 cat >>confdefs.h <<_ACEOF
17308 #define pid_t int
17309 _ACEOF
17313 { echo "$as_me:$LINENO: checking for size_t" >&5
17314 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17315 if test "${ac_cv_type_size_t+set}" = set; then
17316   echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318   cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324 $ac_includes_default
17325 typedef size_t ac__type_new_;
17326 int
17327 main ()
17329 if ((ac__type_new_ *) 0)
17330   return 0;
17331 if (sizeof (ac__type_new_))
17332   return 0;
17333   ;
17334   return 0;
17336 _ACEOF
17337 rm -f conftest.$ac_objext
17338 if { (ac_try="$ac_compile"
17339 case "(($ac_try" in
17340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341   *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344   (eval "$ac_compile") 2>conftest.er1
17345   ac_status=$?
17346   grep -v '^ *+' conftest.er1 >conftest.err
17347   rm -f conftest.er1
17348   cat conftest.err >&5
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); } &&
17351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17352   { (case "(($ac_try" in
17353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354   *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357   (eval "$ac_try") 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; } &&
17361          { ac_try='test -s conftest.$ac_objext'
17362   { (case "(($ac_try" in
17363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364   *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367   (eval "$ac_try") 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371   ac_cv_type_size_t=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376         ac_cv_type_size_t=no
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17382 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17383 if test $ac_cv_type_size_t = yes; then
17384   :
17385 else
17387 cat >>confdefs.h <<_ACEOF
17388 #define size_t unsigned int
17389 _ACEOF
17394 cat >>confdefs.h <<_ACEOF
17395 #define RETSIGTYPE void
17396 _ACEOF
17398 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17400 if test "${ac_cv_struct_tm+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409 #include <sys/types.h>
17410 #include <time.h>
17412 int
17413 main ()
17415 struct tm *tp; tp->tm_sec;
17416   ;
17417   return 0;
17419 _ACEOF
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_compile") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } &&
17434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435   { (case "(($ac_try" in
17436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437   *) ac_try_echo=$ac_try;;
17438 esac
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440   (eval "$ac_try") 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; } &&
17444          { ac_try='test -s conftest.$ac_objext'
17445   { (case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_try") 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; }; then
17454   ac_cv_struct_tm=time.h
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459         ac_cv_struct_tm=sys/time.h
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17465 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17466 if test $ac_cv_struct_tm = sys/time.h; then
17468 cat >>confdefs.h <<\_ACEOF
17469 #define TM_IN_SYS_TIME 1
17470 _ACEOF
17474 { echo "$as_me:$LINENO: checking for int64_t" >&5
17475 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17476 if test "${ac_cv_type_int64_t+set}" = set; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485 $ac_includes_default
17486 typedef int64_t ac__type_new_;
17487 int
17488 main ()
17490 if ((ac__type_new_ *) 0)
17491   return 0;
17492 if (sizeof (ac__type_new_))
17493   return 0;
17494   ;
17495   return 0;
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_compile") 2>conftest.er1
17506   ac_status=$?
17507   grep -v '^ *+' conftest.er1 >conftest.err
17508   rm -f conftest.er1
17509   cat conftest.err >&5
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); } &&
17512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513   { (case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_try") 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; } &&
17522          { ac_try='test -s conftest.$ac_objext'
17523   { (case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_try") 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; }; then
17532   ac_cv_type_int64_t=yes
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537         ac_cv_type_int64_t=no
17540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17542 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17543 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17544 if test $ac_cv_type_int64_t = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define HAVE_INT64_T 1
17548 _ACEOF
17551 else
17552   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17553 echo "$as_me: error: Type int64_t required but not found" >&2;}
17554    { (exit 1); exit 1; }; }
17557 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17558 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17559 if test "${ac_cv_type_uint64_t+set}" = set; then
17560   echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562   cat >conftest.$ac_ext <<_ACEOF
17563 /* confdefs.h.  */
17564 _ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h.  */
17568 $ac_includes_default
17569 typedef uint64_t ac__type_new_;
17570 int
17571 main ()
17573 if ((ac__type_new_ *) 0)
17574   return 0;
17575 if (sizeof (ac__type_new_))
17576   return 0;
17577   ;
17578   return 0;
17580 _ACEOF
17581 rm -f conftest.$ac_objext
17582 if { (ac_try="$ac_compile"
17583 case "(($ac_try" in
17584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585   *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588   (eval "$ac_compile") 2>conftest.er1
17589   ac_status=$?
17590   grep -v '^ *+' conftest.er1 >conftest.err
17591   rm -f conftest.er1
17592   cat conftest.err >&5
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596   { (case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_try") 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; } &&
17605          { ac_try='test -s conftest.$ac_objext'
17606   { (case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_try") 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   ac_cv_type_uint64_t=yes
17616 else
17617   echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620         ac_cv_type_uint64_t=no
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17626 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17627 if test $ac_cv_type_uint64_t = yes; then
17629 cat >>confdefs.h <<_ACEOF
17630 #define HAVE_UINT64_T 1
17631 _ACEOF
17634 else
17635   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17636 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17637 if test "${ac_cv_type_u_int64_t+set}" = set; then
17638   echo $ECHO_N "(cached) $ECHO_C" >&6
17639 else
17640   cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646 $ac_includes_default
17647 typedef u_int64_t ac__type_new_;
17648 int
17649 main ()
17651 if ((ac__type_new_ *) 0)
17652   return 0;
17653 if (sizeof (ac__type_new_))
17654   return 0;
17655   ;
17656   return 0;
17658 _ACEOF
17659 rm -f conftest.$ac_objext
17660 if { (ac_try="$ac_compile"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_compile") 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674   { (case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_try") 2>&5
17680   ac_status=$?
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); }; } &&
17683          { ac_try='test -s conftest.$ac_objext'
17684   { (case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_try") 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; }; then
17693   ac_cv_type_u_int64_t=yes
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698         ac_cv_type_u_int64_t=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17704 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17705 if test $ac_cv_type_u_int64_t = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_U_INT64_T 1
17709 _ACEOF
17712 else
17713   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17714 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17715    { (exit 1); exit 1; }; }
17729 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737   cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17745 #define $ac_func innocuous_$ac_func
17747 /* System header to define __stub macros and hopefully few prototypes,
17748     which can conflict with char $ac_func (); below.
17749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17750     <limits.h> exists even on freestanding compilers.  */
17752 #ifdef __STDC__
17753 # include <limits.h>
17754 #else
17755 # include <assert.h>
17756 #endif
17758 #undef $ac_func
17760 /* Override any GCC internal prototype to avoid an error.
17761    Use char because int might match the return type of a GCC
17762    builtin and then its argument prototype would still apply.  */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char $ac_func ();
17767 /* The GNU C library defines this for functions which it implements
17768     to always fail with ENOSYS.  Some functions are actually named
17769     something starting with __ and the normal name is an alias.  */
17770 #if defined __stub_$ac_func || defined __stub___$ac_func
17771 choke me
17772 #endif
17774 int
17775 main ()
17777 return $ac_func ();
17778   ;
17779   return 0;
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_link") 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } &&
17796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797   { (case "(($ac_try" in
17798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799   *) ac_try_echo=$ac_try;;
17800 esac
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802   (eval "$ac_try") 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); }; } &&
17806          { ac_try='test -s conftest$ac_exeext'
17807   { (case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812   (eval "$ac_try") 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; }; then
17816   eval "$as_ac_var=yes"
17817 else
17818   echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17821         eval "$as_ac_var=no"
17824 rm -f core conftest.err conftest.$ac_objext \
17825       conftest$ac_exeext conftest.$ac_ext
17827 ac_res=`eval echo '${'$as_ac_var'}'`
17828                { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17830 if test `eval echo '${'$as_ac_var'}'` = yes; then
17831   cat >>confdefs.h <<_ACEOF
17832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17833 _ACEOF
17836 done
17842 for ac_func in powf fmodf strtof round
17844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850   cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17858 #define $ac_func innocuous_$ac_func
17860 /* System header to define __stub macros and hopefully few prototypes,
17861     which can conflict with char $ac_func (); below.
17862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17863     <limits.h> exists even on freestanding compilers.  */
17865 #ifdef __STDC__
17866 # include <limits.h>
17867 #else
17868 # include <assert.h>
17869 #endif
17871 #undef $ac_func
17873 /* Override any GCC internal prototype to avoid an error.
17874    Use char because int might match the return type of a GCC
17875    builtin and then its argument prototype would still apply.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 char $ac_func ();
17880 /* The GNU C library defines this for functions which it implements
17881     to always fail with ENOSYS.  Some functions are actually named
17882     something starting with __ and the normal name is an alias.  */
17883 #if defined __stub_$ac_func || defined __stub___$ac_func
17884 choke me
17885 #endif
17887 int
17888 main ()
17890 return $ac_func ();
17891   ;
17892   return 0;
17894 _ACEOF
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_link") 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910   { (case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_try") 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; } &&
17919          { ac_try='test -s conftest$ac_exeext'
17920   { (case "(($ac_try" in
17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922   *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925   (eval "$ac_try") 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; }; then
17929   eval "$as_ac_var=yes"
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934         eval "$as_ac_var=no"
17937 rm -f core conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17940 ac_res=`eval echo '${'$as_ac_var'}'`
17941                { echo "$as_me:$LINENO: result: $ac_res" >&5
17942 echo "${ECHO_T}$ac_res" >&6; }
17943 if test `eval echo '${'$as_ac_var'}'` = yes; then
17944   cat >>confdefs.h <<_ACEOF
17945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17946 _ACEOF
17949 done
17956 for ac_func in log log2 log10 exp exp2
17958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17972 #define $ac_func innocuous_$ac_func
17974 /* System header to define __stub macros and hopefully few prototypes,
17975     which can conflict with char $ac_func (); below.
17976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977     <limits.h> exists even on freestanding compilers.  */
17979 #ifdef __STDC__
17980 # include <limits.h>
17981 #else
17982 # include <assert.h>
17983 #endif
17985 #undef $ac_func
17987 /* Override any GCC internal prototype to avoid an error.
17988    Use char because int might match the return type of a GCC
17989    builtin and then its argument prototype would still apply.  */
17990 #ifdef __cplusplus
17991 extern "C"
17992 #endif
17993 char $ac_func ();
17994 /* The GNU C library defines this for functions which it implements
17995     to always fail with ENOSYS.  Some functions are actually named
17996     something starting with __ and the normal name is an alias.  */
17997 #if defined __stub_$ac_func || defined __stub___$ac_func
17998 choke me
17999 #endif
18001 int
18002 main ()
18004 return $ac_func ();
18005   ;
18006   return 0;
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_link") 2>conftest.er1
18017   ac_status=$?
18018   grep -v '^ *+' conftest.er1 >conftest.err
18019   rm -f conftest.er1
18020   cat conftest.err >&5
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); } &&
18023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024   { (case "(($ac_try" in
18025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026   *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029   (eval "$ac_try") 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest$ac_exeext'
18034   { (case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_try") 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; }; then
18043   eval "$as_ac_var=yes"
18044 else
18045   echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048         eval "$as_ac_var=no"
18051 rm -f core conftest.err conftest.$ac_objext \
18052       conftest$ac_exeext conftest.$ac_ext
18054 ac_res=`eval echo '${'$as_ac_var'}'`
18055                { echo "$as_me:$LINENO: result: $ac_res" >&5
18056 echo "${ECHO_T}$ac_res" >&6; }
18057 if test `eval echo '${'$as_ac_var'}'` = yes; then
18058   cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18060 _ACEOF
18063 done
18070 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18076   echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078   cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18086 #define $ac_func innocuous_$ac_func
18088 /* System header to define __stub macros and hopefully few prototypes,
18089     which can conflict with char $ac_func (); below.
18090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091     <limits.h> exists even on freestanding compilers.  */
18093 #ifdef __STDC__
18094 # include <limits.h>
18095 #else
18096 # include <assert.h>
18097 #endif
18099 #undef $ac_func
18101 /* Override any GCC internal prototype to avoid an error.
18102    Use char because int might match the return type of a GCC
18103    builtin and then its argument prototype would still apply.  */
18104 #ifdef __cplusplus
18105 extern "C"
18106 #endif
18107 char $ac_func ();
18108 /* The GNU C library defines this for functions which it implements
18109     to always fail with ENOSYS.  Some functions are actually named
18110     something starting with __ and the normal name is an alias.  */
18111 #if defined __stub_$ac_func || defined __stub___$ac_func
18112 choke me
18113 #endif
18115 int
18116 main ()
18118 return $ac_func ();
18119   ;
18120   return 0;
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_link") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } &&
18137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138   { (case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_try") 2>&5
18144   ac_status=$?
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); }; } &&
18147          { ac_try='test -s conftest$ac_exeext'
18148   { (case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_try") 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); }; }; then
18157   eval "$as_ac_var=yes"
18158 else
18159   echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18162         eval "$as_ac_var=no"
18165 rm -f core conftest.err conftest.$ac_objext \
18166       conftest$ac_exeext conftest.$ac_ext
18168 ac_res=`eval echo '${'$as_ac_var'}'`
18169                { echo "$as_me:$LINENO: result: $ac_res" >&5
18170 echo "${ECHO_T}$ac_res" >&6; }
18171 if test `eval echo '${'$as_ac_var'}'` = yes; then
18172   cat >>confdefs.h <<_ACEOF
18173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18174 _ACEOF
18177 done
18182 for ac_func in isatty mkdtemp mkstemp
18184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190   cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18198 #define $ac_func innocuous_$ac_func
18200 /* System header to define __stub macros and hopefully few prototypes,
18201     which can conflict with char $ac_func (); below.
18202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18203     <limits.h> exists even on freestanding compilers.  */
18205 #ifdef __STDC__
18206 # include <limits.h>
18207 #else
18208 # include <assert.h>
18209 #endif
18211 #undef $ac_func
18213 /* Override any GCC internal prototype to avoid an error.
18214    Use char because int might match the return type of a GCC
18215    builtin and then its argument prototype would still apply.  */
18216 #ifdef __cplusplus
18217 extern "C"
18218 #endif
18219 char $ac_func ();
18220 /* The GNU C library defines this for functions which it implements
18221     to always fail with ENOSYS.  Some functions are actually named
18222     something starting with __ and the normal name is an alias.  */
18223 #if defined __stub_$ac_func || defined __stub___$ac_func
18224 choke me
18225 #endif
18227 int
18228 main ()
18230 return $ac_func ();
18231   ;
18232   return 0;
18234 _ACEOF
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (ac_try="$ac_link"
18237 case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_link") 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18250   { (case "(($ac_try" in
18251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252   *) ac_try_echo=$ac_try;;
18253 esac
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255   (eval "$ac_try") 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); }; } &&
18259          { ac_try='test -s conftest$ac_exeext'
18260   { (case "(($ac_try" in
18261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262   *) ac_try_echo=$ac_try;;
18263 esac
18264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18265   (eval "$ac_try") 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; }; then
18269   eval "$as_ac_var=yes"
18270 else
18271   echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18274         eval "$as_ac_var=no"
18277 rm -f core conftest.err conftest.$ac_objext \
18278       conftest$ac_exeext conftest.$ac_ext
18280 ac_res=`eval echo '${'$as_ac_var'}'`
18281                { echo "$as_me:$LINENO: result: $ac_res" >&5
18282 echo "${ECHO_T}$ac_res" >&6; }
18283 if test `eval echo '${'$as_ac_var'}'` = yes; then
18284   cat >>confdefs.h <<_ACEOF
18285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18286 _ACEOF
18289 done
18297 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18303   echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305   cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h.  */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h.  */
18311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18313 #define $ac_func innocuous_$ac_func
18315 /* System header to define __stub macros and hopefully few prototypes,
18316     which can conflict with char $ac_func (); below.
18317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18318     <limits.h> exists even on freestanding compilers.  */
18320 #ifdef __STDC__
18321 # include <limits.h>
18322 #else
18323 # include <assert.h>
18324 #endif
18326 #undef $ac_func
18328 /* Override any GCC internal prototype to avoid an error.
18329    Use char because int might match the return type of a GCC
18330    builtin and then its argument prototype would still apply.  */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char $ac_func ();
18335 /* The GNU C library defines this for functions which it implements
18336     to always fail with ENOSYS.  Some functions are actually named
18337     something starting with __ and the normal name is an alias.  */
18338 #if defined __stub_$ac_func || defined __stub___$ac_func
18339 choke me
18340 #endif
18342 int
18343 main ()
18345 return $ac_func ();
18346   ;
18347   return 0;
18349 _ACEOF
18350 rm -f conftest.$ac_objext conftest$ac_exeext
18351 if { (ac_try="$ac_link"
18352 case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_link") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } &&
18364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365   { (case "(($ac_try" in
18366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367   *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370   (eval "$ac_try") 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; } &&
18374          { ac_try='test -s conftest$ac_exeext'
18375   { (case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_try") 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; }; then
18384   eval "$as_ac_var=yes"
18385 else
18386   echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389         eval "$as_ac_var=no"
18392 rm -f core conftest.err conftest.$ac_objext \
18393       conftest$ac_exeext conftest.$ac_ext
18395 ac_res=`eval echo '${'$as_ac_var'}'`
18396                { echo "$as_me:$LINENO: result: $ac_res" >&5
18397 echo "${ECHO_T}$ac_res" >&6; }
18398 if test `eval echo '${'$as_ac_var'}'` = yes; then
18399   cat >>confdefs.h <<_ACEOF
18400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18401 _ACEOF
18404 done
18410 for ac_func in strerror strerror_r setenv arc4random
18412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18416   echo $ECHO_N "(cached) $ECHO_C" >&6
18417 else
18418   cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h.  */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h.  */
18424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18426 #define $ac_func innocuous_$ac_func
18428 /* System header to define __stub macros and hopefully few prototypes,
18429     which can conflict with char $ac_func (); below.
18430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18431     <limits.h> exists even on freestanding compilers.  */
18433 #ifdef __STDC__
18434 # include <limits.h>
18435 #else
18436 # include <assert.h>
18437 #endif
18439 #undef $ac_func
18441 /* Override any GCC internal prototype to avoid an error.
18442    Use char because int might match the return type of a GCC
18443    builtin and then its argument prototype would still apply.  */
18444 #ifdef __cplusplus
18445 extern "C"
18446 #endif
18447 char $ac_func ();
18448 /* The GNU C library defines this for functions which it implements
18449     to always fail with ENOSYS.  Some functions are actually named
18450     something starting with __ and the normal name is an alias.  */
18451 #if defined __stub_$ac_func || defined __stub___$ac_func
18452 choke me
18453 #endif
18455 int
18456 main ()
18458 return $ac_func ();
18459   ;
18460   return 0;
18462 _ACEOF
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (ac_try="$ac_link"
18465 case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_link") 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } &&
18477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18478   { (case "(($ac_try" in
18479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480   *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483   (eval "$ac_try") 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); }; } &&
18487          { ac_try='test -s conftest$ac_exeext'
18488   { (case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_try") 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); }; }; then
18497   eval "$as_ac_var=yes"
18498 else
18499   echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502         eval "$as_ac_var=no"
18505 rm -f core conftest.err conftest.$ac_objext \
18506       conftest$ac_exeext conftest.$ac_ext
18508 ac_res=`eval echo '${'$as_ac_var'}'`
18509                { echo "$as_me:$LINENO: result: $ac_res" >&5
18510 echo "${ECHO_T}$ac_res" >&6; }
18511 if test `eval echo '${'$as_ac_var'}'` = yes; then
18512   cat >>confdefs.h <<_ACEOF
18513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18514 _ACEOF
18517 done
18523 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18529   echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531   cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18539 #define $ac_func innocuous_$ac_func
18541 /* System header to define __stub macros and hopefully few prototypes,
18542     which can conflict with char $ac_func (); below.
18543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18544     <limits.h> exists even on freestanding compilers.  */
18546 #ifdef __STDC__
18547 # include <limits.h>
18548 #else
18549 # include <assert.h>
18550 #endif
18552 #undef $ac_func
18554 /* Override any GCC internal prototype to avoid an error.
18555    Use char because int might match the return type of a GCC
18556    builtin and then its argument prototype would still apply.  */
18557 #ifdef __cplusplus
18558 extern "C"
18559 #endif
18560 char $ac_func ();
18561 /* The GNU C library defines this for functions which it implements
18562     to always fail with ENOSYS.  Some functions are actually named
18563     something starting with __ and the normal name is an alias.  */
18564 #if defined __stub_$ac_func || defined __stub___$ac_func
18565 choke me
18566 #endif
18568 int
18569 main ()
18571 return $ac_func ();
18572   ;
18573   return 0;
18575 _ACEOF
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (ac_try="$ac_link"
18578 case "(($ac_try" in
18579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580   *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583   (eval "$ac_link") 2>conftest.er1
18584   ac_status=$?
18585   grep -v '^ *+' conftest.er1 >conftest.err
18586   rm -f conftest.er1
18587   cat conftest.err >&5
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); } &&
18590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18591   { (case "(($ac_try" in
18592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593   *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596   (eval "$ac_try") 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; } &&
18600          { ac_try='test -s conftest$ac_exeext'
18601   { (case "(($ac_try" in
18602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603   *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606   (eval "$ac_try") 2>&5
18607   ac_status=$?
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); }; }; then
18610   eval "$as_ac_var=yes"
18611 else
18612   echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615         eval "$as_ac_var=no"
18618 rm -f core conftest.err conftest.$ac_objext \
18619       conftest$ac_exeext conftest.$ac_ext
18621 ac_res=`eval echo '${'$as_ac_var'}'`
18622                { echo "$as_me:$LINENO: result: $ac_res" >&5
18623 echo "${ECHO_T}$ac_res" >&6; }
18624 if test `eval echo '${'$as_ac_var'}'` = yes; then
18625   cat >>confdefs.h <<_ACEOF
18626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18627 _ACEOF
18630 done
18637 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18653 #define $ac_func innocuous_$ac_func
18655 /* System header to define __stub macros and hopefully few prototypes,
18656     which can conflict with char $ac_func (); below.
18657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18658     <limits.h> exists even on freestanding compilers.  */
18660 #ifdef __STDC__
18661 # include <limits.h>
18662 #else
18663 # include <assert.h>
18664 #endif
18666 #undef $ac_func
18668 /* Override any GCC internal prototype to avoid an error.
18669    Use char because int might match the return type of a GCC
18670    builtin and then its argument prototype would still apply.  */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char $ac_func ();
18675 /* The GNU C library defines this for functions which it implements
18676     to always fail with ENOSYS.  Some functions are actually named
18677     something starting with __ and the normal name is an alias.  */
18678 #if defined __stub_$ac_func || defined __stub___$ac_func
18679 choke me
18680 #endif
18682 int
18683 main ()
18685 return $ac_func ();
18686   ;
18687   return 0;
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_link") 2>conftest.er1
18698   ac_status=$?
18699   grep -v '^ *+' conftest.er1 >conftest.err
18700   rm -f conftest.er1
18701   cat conftest.err >&5
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } &&
18704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705   { (case "(($ac_try" in
18706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707   *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710   (eval "$ac_try") 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; } &&
18714          { ac_try='test -s conftest$ac_exeext'
18715   { (case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_try") 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; }; then
18724   eval "$as_ac_var=yes"
18725 else
18726   echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729         eval "$as_ac_var=no"
18732 rm -f core conftest.err conftest.$ac_objext \
18733       conftest$ac_exeext conftest.$ac_ext
18735 ac_res=`eval echo '${'$as_ac_var'}'`
18736                { echo "$as_me:$LINENO: result: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18738 if test `eval echo '${'$as_ac_var'}'` = yes; then
18739   cat >>confdefs.h <<_ACEOF
18740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18741 _ACEOF
18744 done
18748 for ac_func in futimes futimens
18750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18764 #define $ac_func innocuous_$ac_func
18766 /* System header to define __stub macros and hopefully few prototypes,
18767     which can conflict with char $ac_func (); below.
18768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18769     <limits.h> exists even on freestanding compilers.  */
18771 #ifdef __STDC__
18772 # include <limits.h>
18773 #else
18774 # include <assert.h>
18775 #endif
18777 #undef $ac_func
18779 /* Override any GCC internal prototype to avoid an error.
18780    Use char because int might match the return type of a GCC
18781    builtin and then its argument prototype would still apply.  */
18782 #ifdef __cplusplus
18783 extern "C"
18784 #endif
18785 char $ac_func ();
18786 /* The GNU C library defines this for functions which it implements
18787     to always fail with ENOSYS.  Some functions are actually named
18788     something starting with __ and the normal name is an alias.  */
18789 #if defined __stub_$ac_func || defined __stub___$ac_func
18790 choke me
18791 #endif
18793 int
18794 main ()
18796 return $ac_func ();
18797   ;
18798   return 0;
18800 _ACEOF
18801 rm -f conftest.$ac_objext conftest$ac_exeext
18802 if { (ac_try="$ac_link"
18803 case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_link") 2>conftest.er1
18809   ac_status=$?
18810   grep -v '^ *+' conftest.er1 >conftest.err
18811   rm -f conftest.er1
18812   cat conftest.err >&5
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); } &&
18815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18816   { (case "(($ac_try" in
18817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818   *) ac_try_echo=$ac_try;;
18819 esac
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821   (eval "$ac_try") 2>&5
18822   ac_status=$?
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); }; } &&
18825          { ac_try='test -s conftest$ac_exeext'
18826   { (case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_try") 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); }; }; then
18835   eval "$as_ac_var=yes"
18836 else
18837   echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840         eval "$as_ac_var=no"
18843 rm -f core conftest.err conftest.$ac_objext \
18844       conftest$ac_exeext conftest.$ac_ext
18846 ac_res=`eval echo '${'$as_ac_var'}'`
18847                { echo "$as_me:$LINENO: result: $ac_res" >&5
18848 echo "${ECHO_T}$ac_res" >&6; }
18849 if test `eval echo '${'$as_ac_var'}'` = yes; then
18850   cat >>confdefs.h <<_ACEOF
18851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 _ACEOF
18855 done
18857 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18858 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18859 if test "${llvm_cv_c_printf_a+set}" = set; then
18860   echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
18862   ac_ext=c
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868  if test "$cross_compiling" = yes; then
18869   llvmac_cv_c_printf_a=no
18870 else
18871   cat >conftest.$ac_ext <<_ACEOF
18873   /* confdefs.h.  */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h.  */
18879 #include <stdio.h>
18880 #include <stdlib.h>
18882 int
18883 main ()
18886 volatile double A, B;
18887 char Buffer[100];
18888 A = 1;
18889 A /= 10.0;
18890 sprintf(Buffer, "%a", A);
18891 B = atof(Buffer);
18892 if (A != B)
18893   return (1);
18894 if (A != 0x1.999999999999ap-4)
18895   return (1);
18896 return (0);
18897   ;
18898   return 0;
18900 _ACEOF
18901 rm -f conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908   (eval "$ac_link") 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18912   { (case "(($ac_try" in
18913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914   *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917   (eval "$ac_try") 2>&5
18918   ac_status=$?
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); }; }; then
18921   llvm_cv_c_printf_a=yes
18922 else
18923   echo "$as_me: program exited with status $ac_status" >&5
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 ( exit $ac_status )
18928 llvmac_cv_c_printf_a=no
18930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18934  ac_ext=c
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18941 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18942 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18943  if test "$llvm_cv_c_printf_a" = "yes"; then
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_PRINTF_A 1
18947 _ACEOF
18949  fi
18953   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18954 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18955 if test "${ac_cv_func_rand48+set}" = set; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18959     ac_ext=cpp
18960 ac_cpp='$CXXCPP $CPPFLAGS'
18961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18965     cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971 #include <stdlib.h>
18972 int
18973 main ()
18975 srand48(0);lrand48();drand48();
18976   ;
18977   return 0;
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_compile") 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } &&
18994          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18995   { (case "(($ac_try" in
18996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997   *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000   (eval "$ac_try") 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; } &&
19004          { ac_try='test -s conftest.$ac_objext'
19005   { (case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_try") 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; }; then
19014   ac_cv_func_rand48=yes
19015 else
19016   echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019         ac_cv_func_rand48=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023     ac_ext=c
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19031 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19032 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19034 if test "$ac_cv_func_rand48" = "yes" ; then
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_RAND48 1
19038 _ACEOF
19043 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19044 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19045 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054 $ac_includes_default
19055 int
19056 main ()
19058 #ifndef strerror_s
19059   char *p = (char *) strerror_s;
19060   return !p;
19061 #endif
19063   ;
19064   return 0;
19066 _ACEOF
19067 rm -f conftest.$ac_objext
19068 if { (ac_try="$ac_compile"
19069 case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_compile") 2>conftest.er1
19075   ac_status=$?
19076   grep -v '^ *+' conftest.er1 >conftest.err
19077   rm -f conftest.er1
19078   cat conftest.err >&5
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); } &&
19081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082   { (case "(($ac_try" in
19083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084   *) ac_try_echo=$ac_try;;
19085 esac
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087   (eval "$ac_try") 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest.$ac_objext'
19092   { (case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_try") 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; }; then
19101   ac_cv_have_decl_strerror_s=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106         ac_cv_have_decl_strerror_s=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19112 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19113 if test $ac_cv_have_decl_strerror_s = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define HAVE_DECL_STRERROR_S 1
19117 _ACEOF
19120 else
19121   cat >>confdefs.h <<_ACEOF
19122 #define HAVE_DECL_STRERROR_S 0
19123 _ACEOF
19130 if test "$llvm_cv_os_type" = "MingW" ; then
19131   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19132 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19133 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19134   echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136   ac_check_lib_save_LIBS=$LIBS
19137 LIBS="-lgcc  $LIBS"
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19145 /* Override any GCC internal prototype to avoid an error.
19146    Use char because int might match the return type of a GCC
19147    builtin and then its argument prototype would still apply.  */
19148 #ifdef __cplusplus
19149 extern "C"
19150 #endif
19151 char _alloca ();
19152 int
19153 main ()
19155 return _alloca ();
19156   ;
19157   return 0;
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164   *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167   (eval "$ac_link") 2>conftest.er1
19168   ac_status=$?
19169   grep -v '^ *+' conftest.er1 >conftest.err
19170   rm -f conftest.er1
19171   cat conftest.err >&5
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19175   { (case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_try") 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; } &&
19184          { ac_try='test -s conftest$ac_exeext'
19185   { (case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_try") 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; }; then
19194   ac_cv_lib_gcc__alloca=yes
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199         ac_cv_lib_gcc__alloca=no
19202 rm -f core conftest.err conftest.$ac_objext \
19203       conftest$ac_exeext conftest.$ac_ext
19204 LIBS=$ac_check_lib_save_LIBS
19206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19207 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19208 if test $ac_cv_lib_gcc__alloca = yes; then
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE__ALLOCA 1
19212 _ACEOF
19216   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19217 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19218 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   ac_check_lib_save_LIBS=$LIBS
19222 LIBS="-lgcc  $LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19230 /* Override any GCC internal prototype to avoid an error.
19231    Use char because int might match the return type of a GCC
19232    builtin and then its argument prototype would still apply.  */
19233 #ifdef __cplusplus
19234 extern "C"
19235 #endif
19236 char __alloca ();
19237 int
19238 main ()
19240 return __alloca ();
19241   ;
19242   return 0;
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249   *) ac_try_echo=$ac_try;;
19250 esac
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252   (eval "$ac_link") 2>conftest.er1
19253   ac_status=$?
19254   grep -v '^ *+' conftest.er1 >conftest.err
19255   rm -f conftest.er1
19256   cat conftest.err >&5
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); } &&
19259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19260   { (case "(($ac_try" in
19261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262   *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265   (eval "$ac_try") 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; } &&
19269          { ac_try='test -s conftest$ac_exeext'
19270   { (case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_try") 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; }; then
19279   ac_cv_lib_gcc___alloca=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284         ac_cv_lib_gcc___alloca=no
19287 rm -f core conftest.err conftest.$ac_objext \
19288       conftest$ac_exeext conftest.$ac_ext
19289 LIBS=$ac_check_lib_save_LIBS
19291 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19292 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19293 if test $ac_cv_lib_gcc___alloca = yes; then
19295 cat >>confdefs.h <<\_ACEOF
19296 #define HAVE___ALLOCA 1
19297 _ACEOF
19301   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19302 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19303 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   ac_check_lib_save_LIBS=$LIBS
19307 LIBS="-lgcc  $LIBS"
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h.  */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h.  */
19315 /* Override any GCC internal prototype to avoid an error.
19316    Use char because int might match the return type of a GCC
19317    builtin and then its argument prototype would still apply.  */
19318 #ifdef __cplusplus
19319 extern "C"
19320 #endif
19321 char __chkstk ();
19322 int
19323 main ()
19325 return __chkstk ();
19326   ;
19327   return 0;
19329 _ACEOF
19330 rm -f conftest.$ac_objext conftest$ac_exeext
19331 if { (ac_try="$ac_link"
19332 case "(($ac_try" in
19333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334   *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337   (eval "$ac_link") 2>conftest.er1
19338   ac_status=$?
19339   grep -v '^ *+' conftest.er1 >conftest.err
19340   rm -f conftest.er1
19341   cat conftest.err >&5
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); } &&
19344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19345   { (case "(($ac_try" in
19346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347   *) ac_try_echo=$ac_try;;
19348 esac
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350   (eval "$ac_try") 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; } &&
19354          { ac_try='test -s conftest$ac_exeext'
19355   { (case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_try") 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; }; then
19364   ac_cv_lib_gcc___chkstk=yes
19365 else
19366   echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19369         ac_cv_lib_gcc___chkstk=no
19372 rm -f core conftest.err conftest.$ac_objext \
19373       conftest$ac_exeext conftest.$ac_ext
19374 LIBS=$ac_check_lib_save_LIBS
19376 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19377 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19378 if test $ac_cv_lib_gcc___chkstk = yes; then
19380 cat >>confdefs.h <<\_ACEOF
19381 #define HAVE___CHKSTK 1
19382 _ACEOF
19386   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19387 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19388 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19389   echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391   ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lgcc  $LIBS"
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h.  */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h.  */
19400 /* Override any GCC internal prototype to avoid an error.
19401    Use char because int might match the return type of a GCC
19402    builtin and then its argument prototype would still apply.  */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char ___chkstk ();
19407 int
19408 main ()
19410 return ___chkstk ();
19411   ;
19412   return 0;
19414 _ACEOF
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419   *) ac_try_echo=$ac_try;;
19420 esac
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422   (eval "$ac_link") 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19430   { (case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_try") 2>&5
19436   ac_status=$?
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); }; } &&
19439          { ac_try='test -s conftest$ac_exeext'
19440   { (case "(($ac_try" in
19441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442   *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445   (eval "$ac_try") 2>&5
19446   ac_status=$?
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); }; }; then
19449   ac_cv_lib_gcc____chkstk=yes
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454         ac_cv_lib_gcc____chkstk=no
19457 rm -f core conftest.err conftest.$ac_objext \
19458       conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19462 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19463 if test $ac_cv_lib_gcc____chkstk = yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE____CHKSTK 1
19467 _ACEOF
19472   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19473 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19474 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19475   echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477   ac_check_lib_save_LIBS=$LIBS
19478 LIBS="-lgcc  $LIBS"
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19486 /* Override any GCC internal prototype to avoid an error.
19487    Use char because int might match the return type of a GCC
19488    builtin and then its argument prototype would still apply.  */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 char __ashldi3 ();
19493 int
19494 main ()
19496 return __ashldi3 ();
19497   ;
19498   return 0;
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_link") 2>conftest.er1
19509   ac_status=$?
19510   grep -v '^ *+' conftest.er1 >conftest.err
19511   rm -f conftest.er1
19512   cat conftest.err >&5
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } &&
19515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19516   { (case "(($ac_try" in
19517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518   *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521   (eval "$ac_try") 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; } &&
19525          { ac_try='test -s conftest$ac_exeext'
19526   { (case "(($ac_try" in
19527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528   *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531   (eval "$ac_try") 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; }; then
19535   ac_cv_lib_gcc___ashldi3=yes
19536 else
19537   echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19540         ac_cv_lib_gcc___ashldi3=no
19543 rm -f core conftest.err conftest.$ac_objext \
19544       conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19548 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19549 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE___ASHLDI3 1
19553 _ACEOF
19557   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19558 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19559 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19560   echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562   ac_check_lib_save_LIBS=$LIBS
19563 LIBS="-lgcc  $LIBS"
19564 cat >conftest.$ac_ext <<_ACEOF
19565 /* confdefs.h.  */
19566 _ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h.  */
19571 /* Override any GCC internal prototype to avoid an error.
19572    Use char because int might match the return type of a GCC
19573    builtin and then its argument prototype would still apply.  */
19574 #ifdef __cplusplus
19575 extern "C"
19576 #endif
19577 char __ashrdi3 ();
19578 int
19579 main ()
19581 return __ashrdi3 ();
19582   ;
19583   return 0;
19585 _ACEOF
19586 rm -f conftest.$ac_objext conftest$ac_exeext
19587 if { (ac_try="$ac_link"
19588 case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_link") 2>conftest.er1
19594   ac_status=$?
19595   grep -v '^ *+' conftest.er1 >conftest.err
19596   rm -f conftest.er1
19597   cat conftest.err >&5
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); } &&
19600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19601   { (case "(($ac_try" in
19602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603   *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606   (eval "$ac_try") 2>&5
19607   ac_status=$?
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); }; } &&
19610          { ac_try='test -s conftest$ac_exeext'
19611   { (case "(($ac_try" in
19612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613   *) ac_try_echo=$ac_try;;
19614 esac
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616   (eval "$ac_try") 2>&5
19617   ac_status=$?
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); }; }; then
19620   ac_cv_lib_gcc___ashrdi3=yes
19621 else
19622   echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625         ac_cv_lib_gcc___ashrdi3=no
19628 rm -f core conftest.err conftest.$ac_objext \
19629       conftest$ac_exeext conftest.$ac_ext
19630 LIBS=$ac_check_lib_save_LIBS
19632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19633 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19634 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19636 cat >>confdefs.h <<\_ACEOF
19637 #define HAVE___ASHRDI3 1
19638 _ACEOF
19642   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19643 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19644 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19645   echo $ECHO_N "(cached) $ECHO_C" >&6
19646 else
19647   ac_check_lib_save_LIBS=$LIBS
19648 LIBS="-lgcc  $LIBS"
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19656 /* Override any GCC internal prototype to avoid an error.
19657    Use char because int might match the return type of a GCC
19658    builtin and then its argument prototype would still apply.  */
19659 #ifdef __cplusplus
19660 extern "C"
19661 #endif
19662 char __divdi3 ();
19663 int
19664 main ()
19666 return __divdi3 ();
19667   ;
19668   return 0;
19670 _ACEOF
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (ac_try="$ac_link"
19673 case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678   (eval "$ac_link") 2>conftest.er1
19679   ac_status=$?
19680   grep -v '^ *+' conftest.er1 >conftest.err
19681   rm -f conftest.er1
19682   cat conftest.err >&5
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } &&
19685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19686   { (case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691   (eval "$ac_try") 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; } &&
19695          { ac_try='test -s conftest$ac_exeext'
19696   { (case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_try") 2>&5
19702   ac_status=$?
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); }; }; then
19705   ac_cv_lib_gcc___divdi3=yes
19706 else
19707   echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710         ac_cv_lib_gcc___divdi3=no
19713 rm -f core conftest.err conftest.$ac_objext \
19714       conftest$ac_exeext conftest.$ac_ext
19715 LIBS=$ac_check_lib_save_LIBS
19717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19718 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19719 if test $ac_cv_lib_gcc___divdi3 = yes; then
19721 cat >>confdefs.h <<\_ACEOF
19722 #define HAVE___DIVDI3 1
19723 _ACEOF
19727   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19728 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19729 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19730   echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732   ac_check_lib_save_LIBS=$LIBS
19733 LIBS="-lgcc  $LIBS"
19734 cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19741 /* Override any GCC internal prototype to avoid an error.
19742    Use char because int might match the return type of a GCC
19743    builtin and then its argument prototype would still apply.  */
19744 #ifdef __cplusplus
19745 extern "C"
19746 #endif
19747 char __fixdfdi ();
19748 int
19749 main ()
19751 return __fixdfdi ();
19752   ;
19753   return 0;
19755 _ACEOF
19756 rm -f conftest.$ac_objext conftest$ac_exeext
19757 if { (ac_try="$ac_link"
19758 case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_link") 2>conftest.er1
19764   ac_status=$?
19765   grep -v '^ *+' conftest.er1 >conftest.err
19766   rm -f conftest.er1
19767   cat conftest.err >&5
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } &&
19770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19771   { (case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_try") 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; } &&
19780          { ac_try='test -s conftest$ac_exeext'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   ac_cv_lib_gcc___fixdfdi=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795         ac_cv_lib_gcc___fixdfdi=no
19798 rm -f core conftest.err conftest.$ac_objext \
19799       conftest$ac_exeext conftest.$ac_ext
19800 LIBS=$ac_check_lib_save_LIBS
19802 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19803 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19804 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19806 cat >>confdefs.h <<\_ACEOF
19807 #define HAVE___FIXDFDI 1
19808 _ACEOF
19812   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19813 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19814 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19815   echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817   ac_check_lib_save_LIBS=$LIBS
19818 LIBS="-lgcc  $LIBS"
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19826 /* Override any GCC internal prototype to avoid an error.
19827    Use char because int might match the return type of a GCC
19828    builtin and then its argument prototype would still apply.  */
19829 #ifdef __cplusplus
19830 extern "C"
19831 #endif
19832 char __fixsfdi ();
19833 int
19834 main ()
19836 return __fixsfdi ();
19837   ;
19838   return 0;
19840 _ACEOF
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_link") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } &&
19855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19856   { (case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_try") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; } &&
19865          { ac_try='test -s conftest$ac_exeext'
19866   { (case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_try") 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; }; then
19875   ac_cv_lib_gcc___fixsfdi=yes
19876 else
19877   echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880         ac_cv_lib_gcc___fixsfdi=no
19883 rm -f core conftest.err conftest.$ac_objext \
19884       conftest$ac_exeext conftest.$ac_ext
19885 LIBS=$ac_check_lib_save_LIBS
19887 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19888 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19889 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19891 cat >>confdefs.h <<\_ACEOF
19892 #define HAVE___FIXSFDI 1
19893 _ACEOF
19897   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19898 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19899 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19900   echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902   ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-lgcc  $LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19911 /* Override any GCC internal prototype to avoid an error.
19912    Use char because int might match the return type of a GCC
19913    builtin and then its argument prototype would still apply.  */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char __floatdidf ();
19918 int
19919 main ()
19921 return __floatdidf ();
19922   ;
19923   return 0;
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930   *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933   (eval "$ac_link") 2>conftest.er1
19934   ac_status=$?
19935   grep -v '^ *+' conftest.er1 >conftest.err
19936   rm -f conftest.er1
19937   cat conftest.err >&5
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); } &&
19940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19941   { (case "(($ac_try" in
19942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943   *) ac_try_echo=$ac_try;;
19944 esac
19945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946   (eval "$ac_try") 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; } &&
19950          { ac_try='test -s conftest$ac_exeext'
19951   { (case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_try") 2>&5
19957   ac_status=$?
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); }; }; then
19960   ac_cv_lib_gcc___floatdidf=yes
19961 else
19962   echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965         ac_cv_lib_gcc___floatdidf=no
19968 rm -f core conftest.err conftest.$ac_objext \
19969       conftest$ac_exeext conftest.$ac_ext
19970 LIBS=$ac_check_lib_save_LIBS
19972 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19973 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19974 if test $ac_cv_lib_gcc___floatdidf = yes; then
19976 cat >>confdefs.h <<\_ACEOF
19977 #define HAVE___FLOATDIDF 1
19978 _ACEOF
19982   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19983 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19984 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 else
19987   ac_check_lib_save_LIBS=$LIBS
19988 LIBS="-lgcc  $LIBS"
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h.  */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h.  */
19996 /* Override any GCC internal prototype to avoid an error.
19997    Use char because int might match the return type of a GCC
19998    builtin and then its argument prototype would still apply.  */
19999 #ifdef __cplusplus
20000 extern "C"
20001 #endif
20002 char __lshrdi3 ();
20003 int
20004 main ()
20006 return __lshrdi3 ();
20007   ;
20008   return 0;
20010 _ACEOF
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (ac_try="$ac_link"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018   (eval "$ac_link") 2>conftest.er1
20019   ac_status=$?
20020   grep -v '^ *+' conftest.er1 >conftest.err
20021   rm -f conftest.er1
20022   cat conftest.err >&5
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } &&
20025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20026   { (case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_try") 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); }; } &&
20035          { ac_try='test -s conftest$ac_exeext'
20036   { (case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_try") 2>&5
20042   ac_status=$?
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); }; }; then
20045   ac_cv_lib_gcc___lshrdi3=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050         ac_cv_lib_gcc___lshrdi3=no
20053 rm -f core conftest.err conftest.$ac_objext \
20054       conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20058 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20059 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20061 cat >>confdefs.h <<\_ACEOF
20062 #define HAVE___LSHRDI3 1
20063 _ACEOF
20067   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20068 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20069 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20070   echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072   ac_check_lib_save_LIBS=$LIBS
20073 LIBS="-lgcc  $LIBS"
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h.  */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h.  */
20081 /* Override any GCC internal prototype to avoid an error.
20082    Use char because int might match the return type of a GCC
20083    builtin and then its argument prototype would still apply.  */
20084 #ifdef __cplusplus
20085 extern "C"
20086 #endif
20087 char __moddi3 ();
20088 int
20089 main ()
20091 return __moddi3 ();
20092   ;
20093   return 0;
20095 _ACEOF
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100   *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103   (eval "$ac_link") 2>conftest.er1
20104   ac_status=$?
20105   grep -v '^ *+' conftest.er1 >conftest.err
20106   rm -f conftest.er1
20107   cat conftest.err >&5
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } &&
20110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20111   { (case "(($ac_try" in
20112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113   *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116   (eval "$ac_try") 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; } &&
20120          { ac_try='test -s conftest$ac_exeext'
20121   { (case "(($ac_try" in
20122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123   *) ac_try_echo=$ac_try;;
20124 esac
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126   (eval "$ac_try") 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; }; then
20130   ac_cv_lib_gcc___moddi3=yes
20131 else
20132   echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135         ac_cv_lib_gcc___moddi3=no
20138 rm -f core conftest.err conftest.$ac_objext \
20139       conftest$ac_exeext conftest.$ac_ext
20140 LIBS=$ac_check_lib_save_LIBS
20142 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20143 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20144 if test $ac_cv_lib_gcc___moddi3 = yes; then
20146 cat >>confdefs.h <<\_ACEOF
20147 #define HAVE___MODDI3 1
20148 _ACEOF
20152   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20153 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20154 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20155   echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157   ac_check_lib_save_LIBS=$LIBS
20158 LIBS="-lgcc  $LIBS"
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h.  */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h.  */
20166 /* Override any GCC internal prototype to avoid an error.
20167    Use char because int might match the return type of a GCC
20168    builtin and then its argument prototype would still apply.  */
20169 #ifdef __cplusplus
20170 extern "C"
20171 #endif
20172 char __udivdi3 ();
20173 int
20174 main ()
20176 return __udivdi3 ();
20177   ;
20178   return 0;
20180 _ACEOF
20181 rm -f conftest.$ac_objext conftest$ac_exeext
20182 if { (ac_try="$ac_link"
20183 case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188   (eval "$ac_link") 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20196   { (case "(($ac_try" in
20197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198   *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201   (eval "$ac_try") 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; } &&
20205          { ac_try='test -s conftest$ac_exeext'
20206   { (case "(($ac_try" in
20207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208   *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211   (eval "$ac_try") 2>&5
20212   ac_status=$?
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); }; }; then
20215   ac_cv_lib_gcc___udivdi3=yes
20216 else
20217   echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220         ac_cv_lib_gcc___udivdi3=no
20223 rm -f core conftest.err conftest.$ac_objext \
20224       conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20228 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20229 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE___UDIVDI3 1
20233 _ACEOF
20237   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20238 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20239 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 else
20242   ac_check_lib_save_LIBS=$LIBS
20243 LIBS="-lgcc  $LIBS"
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h.  */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h.  */
20251 /* Override any GCC internal prototype to avoid an error.
20252    Use char because int might match the return type of a GCC
20253    builtin and then its argument prototype would still apply.  */
20254 #ifdef __cplusplus
20255 extern "C"
20256 #endif
20257 char __umoddi3 ();
20258 int
20259 main ()
20261 return __umoddi3 ();
20262   ;
20263   return 0;
20265 _ACEOF
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_link") 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } &&
20280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20281   { (case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_try") 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); }; } &&
20290          { ac_try='test -s conftest$ac_exeext'
20291   { (case "(($ac_try" in
20292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293   *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296   (eval "$ac_try") 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); }; }; then
20300   ac_cv_lib_gcc___umoddi3=yes
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305         ac_cv_lib_gcc___umoddi3=no
20308 rm -f core conftest.err conftest.$ac_objext \
20309       conftest$ac_exeext conftest.$ac_ext
20310 LIBS=$ac_check_lib_save_LIBS
20312 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20313 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20314 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE___UMODDI3 1
20318 _ACEOF
20323   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20324 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20325 if test "${ac_cv_lib_gcc___main+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   ac_check_lib_save_LIBS=$LIBS
20329 LIBS="-lgcc  $LIBS"
20330 cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20337 /* Override any GCC internal prototype to avoid an error.
20338    Use char because int might match the return type of a GCC
20339    builtin and then its argument prototype would still apply.  */
20340 #ifdef __cplusplus
20341 extern "C"
20342 #endif
20343 char __main ();
20344 int
20345 main ()
20347 return __main ();
20348   ;
20349   return 0;
20351 _ACEOF
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (ac_try="$ac_link"
20354 case "(($ac_try" in
20355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356   *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359   (eval "$ac_link") 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } &&
20366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20367   { (case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_try") 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); }; } &&
20376          { ac_try='test -s conftest$ac_exeext'
20377   { (case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_try") 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_cv_lib_gcc___main=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391         ac_cv_lib_gcc___main=no
20394 rm -f core conftest.err conftest.$ac_objext \
20395       conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20398 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20399 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20400 if test $ac_cv_lib_gcc___main = yes; then
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE___MAIN 1
20404 _ACEOF
20408   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20409 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20410 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-lgcc  $LIBS"
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20422 /* Override any GCC internal prototype to avoid an error.
20423    Use char because int might match the return type of a GCC
20424    builtin and then its argument prototype would still apply.  */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char __cmpdi2 ();
20429 int
20430 main ()
20432 return __cmpdi2 ();
20433   ;
20434   return 0;
20436 _ACEOF
20437 rm -f conftest.$ac_objext conftest$ac_exeext
20438 if { (ac_try="$ac_link"
20439 case "(($ac_try" in
20440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441   *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444   (eval "$ac_link") 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } &&
20451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; } &&
20461          { ac_try='test -s conftest$ac_exeext'
20462   { (case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_try") 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_cv_lib_gcc___cmpdi2=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476         ac_cv_lib_gcc___cmpdi2=no
20479 rm -f core conftest.err conftest.$ac_objext \
20480       conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20484 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20485 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE___CMPDI2 1
20489 _ACEOF
20495 if test "$llvm_cv_os_type" = "MingW" ; then
20496   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20497 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20498   cat >conftest.$ac_ext <<_ACEOF
20500   /* confdefs.h.  */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h.  */
20506     #include <windows.h>
20507     #include <imagehlp.h>
20508     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20509     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_compile") 2>conftest.er1
20521   ac_status=$?
20522   grep -v '^ *+' conftest.er1 >conftest.err
20523   rm -f conftest.er1
20524   cat conftest.err >&5
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } &&
20527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20528   { (case "(($ac_try" in
20529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530   *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533   (eval "$ac_try") 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; } &&
20537          { ac_try='test -s conftest.$ac_objext'
20538   { (case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_try") 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; }; then
20548   { echo "$as_me:$LINENO: result: yes" >&5
20549 echo "${ECHO_T}yes" >&6; }
20550   llvm_cv_win32_elmcb_pcstr="PCSTR"
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20557   { echo "$as_me:$LINENO: result: no" >&5
20558 echo "${ECHO_T}no" >&6; }
20559   llvm_cv_win32_elmcb_pcstr="PSTR"
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 cat >>confdefs.h <<_ACEOF
20566 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20567 _ACEOF
20573   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20574 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20575 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20576   echo $ECHO_N "(cached) $ECHO_C" >&6
20577 else
20579     ac_ext=cpp
20580 ac_cpp='$CXXCPP $CPPFLAGS'
20581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585     cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591 #include <math.h>
20592 int
20593 main ()
20595 float f; isnan(f);
20596   ;
20597   return 0;
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_compile") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } &&
20614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20615   { (case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_try") 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; } &&
20624          { ac_try='test -s conftest.$ac_objext'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ac_cv_func_isnan_in_math_h=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639         ac_cv_func_isnan_in_math_h=no
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643     ac_ext=c
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20652 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20655 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_ISNAN_IN_MATH_H 1
20659 _ACEOF
20664   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20665 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20666 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20667   echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20670     ac_ext=cpp
20671 ac_cpp='$CXXCPP $CPPFLAGS'
20672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20676     cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h.  */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h.  */
20682 #include <cmath>
20683 int
20684 main ()
20686 float f; isnan(f);
20687   ;
20688   return 0;
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_compile") 2>conftest.er1
20699   ac_status=$?
20700   grep -v '^ *+' conftest.er1 >conftest.err
20701   rm -f conftest.er1
20702   cat conftest.err >&5
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } &&
20705          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20706   { (case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_try") 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); }; } &&
20715          { ac_try='test -s conftest.$ac_objext'
20716   { (case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_try") 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; }; then
20725   ac_cv_func_isnan_in_cmath=yes
20726 else
20727   echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730         ac_cv_func_isnan_in_cmath=no
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734     ac_ext=c
20735 ac_cpp='$CPP $CPPFLAGS'
20736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20742 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20743 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20745 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20747 cat >>confdefs.h <<\_ACEOF
20748 #define HAVE_ISNAN_IN_CMATH 1
20749 _ACEOF
20754   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20755 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20756 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20757   echo $ECHO_N "(cached) $ECHO_C" >&6
20758 else
20760     ac_ext=cpp
20761 ac_cpp='$CXXCPP $CPPFLAGS'
20762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20766     cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 #include <cmath>
20773 int
20774 main ()
20776 float f; std::isnan(f);
20777   ;
20778   return 0;
20780 _ACEOF
20781 rm -f conftest.$ac_objext
20782 if { (ac_try="$ac_compile"
20783 case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_compile") 2>conftest.er1
20789   ac_status=$?
20790   grep -v '^ *+' conftest.er1 >conftest.err
20791   rm -f conftest.er1
20792   cat conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } &&
20795          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20796   { (case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_try") 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; } &&
20805          { ac_try='test -s conftest.$ac_objext'
20806   { (case "(($ac_try" in
20807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808   *) ac_try_echo=$ac_try;;
20809 esac
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811   (eval "$ac_try") 2>&5
20812   ac_status=$?
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); }; }; then
20815   ac_cv_func_std_isnan_in_cmath=yes
20816 else
20817   echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20820         ac_cv_func_std_isnan_in_cmath=no
20823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20824     ac_ext=c
20825 ac_cpp='$CPP $CPPFLAGS'
20826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20832 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20833 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20835 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20837 cat >>confdefs.h <<\_ACEOF
20838 #define HAVE_STD_ISNAN_IN_CMATH 1
20839 _ACEOF
20846   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20847 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20848 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20849   echo $ECHO_N "(cached) $ECHO_C" >&6
20850 else
20852     ac_ext=cpp
20853 ac_cpp='$CXXCPP $CPPFLAGS'
20854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20858     cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 #include <math.h>
20865 int
20866 main ()
20868 float f; isinf(f);
20869   ;
20870   return 0;
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877   *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880   (eval "$ac_compile") 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } &&
20887          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20888   { (case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_try") 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; } &&
20897          { ac_try='test -s conftest.$ac_objext'
20898   { (case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_try") 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; }; then
20907   ac_cv_func_isinf_in_math_h=yes
20908 else
20909   echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912         ac_cv_func_isinf_in_math_h=no
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916     ac_ext=c
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20925 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20927 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_ISINF_IN_MATH_H 1
20931 _ACEOF
20936   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20937 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20938 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20942     ac_ext=cpp
20943 ac_cpp='$CXXCPP $CPPFLAGS'
20944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948     cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 #include <cmath>
20955 int
20956 main ()
20958 float f; isinf(f);
20959   ;
20960   return 0;
20962 _ACEOF
20963 rm -f conftest.$ac_objext
20964 if { (ac_try="$ac_compile"
20965 case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_compile") 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20978   { (case "(($ac_try" in
20979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980   *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983   (eval "$ac_try") 2>&5
20984   ac_status=$?
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); }; } &&
20987          { ac_try='test -s conftest.$ac_objext'
20988   { (case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_try") 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ac_cv_func_isinf_in_cmath=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002         ac_cv_func_isinf_in_cmath=no
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006     ac_ext=c
21007 ac_cpp='$CPP $CPPFLAGS'
21008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21015 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21017 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_ISINF_IN_CMATH 1
21021 _ACEOF
21026   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21027 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21028 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21029   echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21032     ac_ext=cpp
21033 ac_cpp='$CXXCPP $CPPFLAGS'
21034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21038     cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h.  */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h.  */
21044 #include <cmath>
21045 int
21046 main ()
21048 float f; std::isinf(f);
21049   ;
21050   return 0;
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_compile") 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } &&
21067          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21068   { (case "(($ac_try" in
21069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070   *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073   (eval "$ac_try") 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; } &&
21077          { ac_try='test -s conftest.$ac_objext'
21078   { (case "(($ac_try" in
21079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080   *) ac_try_echo=$ac_try;;
21081 esac
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083   (eval "$ac_try") 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); }; }; then
21087   ac_cv_func_std_isinf_in_cmath=yes
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21092         ac_cv_func_std_isinf_in_cmath=no
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096     ac_ext=c
21097 ac_cpp='$CPP $CPPFLAGS'
21098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21105 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21107 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21109 cat >>confdefs.h <<\_ACEOF
21110 #define HAVE_STD_ISINF_IN_CMATH 1
21111 _ACEOF
21116   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21117 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21118 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21119   echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21122     ac_ext=cpp
21123 ac_cpp='$CXXCPP $CPPFLAGS'
21124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21128     cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h.  */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h.  */
21134 #include <ieeefp.h>
21135 int
21136 main ()
21138 float f; finite(f);
21139   ;
21140   return 0;
21142 _ACEOF
21143 rm -f conftest.$ac_objext
21144 if { (ac_try="$ac_compile"
21145 case "(($ac_try" in
21146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147   *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150   (eval "$ac_compile") 2>conftest.er1
21151   ac_status=$?
21152   grep -v '^ *+' conftest.er1 >conftest.err
21153   rm -f conftest.er1
21154   cat conftest.err >&5
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } &&
21157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21158   { (case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_try") 2>&5
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); }; } &&
21167          { ac_try='test -s conftest.$ac_objext'
21168   { (case "(($ac_try" in
21169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170   *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173   (eval "$ac_try") 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_cv_func_finite_in_ieeefp_h=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182         ac_cv_func_finite_in_ieeefp_h=no
21185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186     ac_ext=c
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21194 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21195 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21197 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21199 cat >>confdefs.h <<\_ACEOF
21200 #define HAVE_FINITE_IN_IEEEFP_H 1
21201 _ACEOF
21207 if test "$llvm_cv_platform_type" = "Unix" ; then
21210 for ac_header in stdlib.h unistd.h
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220                { echo "$as_me:$LINENO: result: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21222 else
21223   # Is the header compilable?
21224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232 $ac_includes_default
21233 #include <$ac_header>
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_compile") 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21250   { (case "(($ac_try" in
21251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252   *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255   (eval "$ac_try") 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; } &&
21259          { ac_try='test -s conftest.$ac_objext'
21260   { (case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265   (eval "$ac_try") 2>&5
21266   ac_status=$?
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); }; }; then
21269   ac_header_compiler=yes
21270 else
21271   echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274         ac_header_compiler=no
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21279 echo "${ECHO_T}$ac_header_compiler" >&6; }
21281 # Is the header present?
21282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #include <$ac_header>
21291 _ACEOF
21292 if { (ac_try="$ac_cpp conftest.$ac_ext"
21293 case "(($ac_try" in
21294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295   *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21299   ac_status=$?
21300   grep -v '^ *+' conftest.er1 >conftest.err
21301   rm -f conftest.er1
21302   cat conftest.err >&5
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } >/dev/null; then
21305   if test -s conftest.err; then
21306     ac_cpp_err=$ac_c_preproc_warn_flag
21307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21308   else
21309     ac_cpp_err=
21310   fi
21311 else
21312   ac_cpp_err=yes
21314 if test -z "$ac_cpp_err"; then
21315   ac_header_preproc=yes
21316 else
21317   echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320   ac_header_preproc=no
21323 rm -f conftest.err conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21325 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327 # So?  What about this header?
21328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21329   yes:no: )
21330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21334     ac_header_preproc=yes
21335     ;;
21336   no:yes:* )
21337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21349     ( cat <<\_ASBOX
21350 ## ------------------------------------ ##
21351 ## Report this to http://llvm.org/bugs/ ##
21352 ## ------------------------------------ ##
21353 _ASBOX
21354      ) | sed "s/^/$as_me: WARNING:     /" >&2
21355     ;;
21356 esac
21357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362   eval "$as_ac_Header=\$ac_header_preproc"
21364 ac_res=`eval echo '${'$as_ac_Header'}'`
21365                { echo "$as_me:$LINENO: result: $ac_res" >&5
21366 echo "${ECHO_T}$ac_res" >&6; }
21369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21370   cat >>confdefs.h <<_ACEOF
21371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21372 _ACEOF
21376 done
21379 for ac_func in getpagesize
21381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21385   echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387   cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21395 #define $ac_func innocuous_$ac_func
21397 /* System header to define __stub macros and hopefully few prototypes,
21398     which can conflict with char $ac_func (); below.
21399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400     <limits.h> exists even on freestanding compilers.  */
21402 #ifdef __STDC__
21403 # include <limits.h>
21404 #else
21405 # include <assert.h>
21406 #endif
21408 #undef $ac_func
21410 /* Override any GCC internal prototype to avoid an error.
21411    Use char because int might match the return type of a GCC
21412    builtin and then its argument prototype would still apply.  */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char $ac_func ();
21417 /* The GNU C library defines this for functions which it implements
21418     to always fail with ENOSYS.  Some functions are actually named
21419     something starting with __ and the normal name is an alias.  */
21420 #if defined __stub_$ac_func || defined __stub___$ac_func
21421 choke me
21422 #endif
21424 int
21425 main ()
21427 return $ac_func ();
21428   ;
21429   return 0;
21431 _ACEOF
21432 rm -f conftest.$ac_objext conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_link") 2>conftest.er1
21440   ac_status=$?
21441   grep -v '^ *+' conftest.er1 >conftest.err
21442   rm -f conftest.er1
21443   cat conftest.err >&5
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } &&
21446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21447   { (case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_try") 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); }; } &&
21456          { ac_try='test -s conftest$ac_exeext'
21457   { (case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_try") 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; }; then
21466   eval "$as_ac_var=yes"
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471         eval "$as_ac_var=no"
21474 rm -f core conftest.err conftest.$ac_objext \
21475       conftest$ac_exeext conftest.$ac_ext
21477 ac_res=`eval echo '${'$as_ac_var'}'`
21478                { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_var'}'` = yes; then
21481   cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21483 _ACEOF
21486 done
21488 { echo "$as_me:$LINENO: checking for working mmap" >&5
21489 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21490 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493   if test "$cross_compiling" = yes; then
21494   ac_cv_func_mmap_fixed_mapped=no
21495 else
21496   cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 $ac_includes_default
21503 /* malloc might have been renamed as rpl_malloc. */
21504 #undef malloc
21506 /* Thanks to Mike Haertel and Jim Avera for this test.
21507    Here is a matrix of mmap possibilities:
21508         mmap private not fixed
21509         mmap private fixed at somewhere currently unmapped
21510         mmap private fixed at somewhere already mapped
21511         mmap shared not fixed
21512         mmap shared fixed at somewhere currently unmapped
21513         mmap shared fixed at somewhere already mapped
21514    For private mappings, we should verify that changes cannot be read()
21515    back from the file, nor mmap's back from the file at a different
21516    address.  (There have been systems where private was not correctly
21517    implemented like the infamous i386 svr4.0, and systems where the
21518    VM page cache was not coherent with the file system buffer cache
21519    like early versions of FreeBSD and possibly contemporary NetBSD.)
21520    For shared mappings, we should conversely verify that changes get
21521    propagated back to all the places they're supposed to be.
21523    Grep wants private fixed already mapped.
21524    The main things grep needs to know about mmap are:
21525    * does it exist and is it safe to write into the mmap'd area
21526    * how to use it (BSD variants)  */
21528 #include <fcntl.h>
21529 #include <sys/mman.h>
21531 #if !STDC_HEADERS && !HAVE_STDLIB_H
21532 char *malloc ();
21533 #endif
21535 /* This mess was copied from the GNU getpagesize.h.  */
21536 #if !HAVE_GETPAGESIZE
21537 /* Assume that all systems that can run configure have sys/param.h.  */
21538 # if !HAVE_SYS_PARAM_H
21539 #  define HAVE_SYS_PARAM_H 1
21540 # endif
21542 # ifdef _SC_PAGESIZE
21543 #  define getpagesize() sysconf(_SC_PAGESIZE)
21544 # else /* no _SC_PAGESIZE */
21545 #  if HAVE_SYS_PARAM_H
21546 #   include <sys/param.h>
21547 #   ifdef EXEC_PAGESIZE
21548 #    define getpagesize() EXEC_PAGESIZE
21549 #   else /* no EXEC_PAGESIZE */
21550 #    ifdef NBPG
21551 #     define getpagesize() NBPG * CLSIZE
21552 #     ifndef CLSIZE
21553 #      define CLSIZE 1
21554 #     endif /* no CLSIZE */
21555 #    else /* no NBPG */
21556 #     ifdef NBPC
21557 #      define getpagesize() NBPC
21558 #     else /* no NBPC */
21559 #      ifdef PAGESIZE
21560 #       define getpagesize() PAGESIZE
21561 #      endif /* PAGESIZE */
21562 #     endif /* no NBPC */
21563 #    endif /* no NBPG */
21564 #   endif /* no EXEC_PAGESIZE */
21565 #  else /* no HAVE_SYS_PARAM_H */
21566 #   define getpagesize() 8192   /* punt totally */
21567 #  endif /* no HAVE_SYS_PARAM_H */
21568 # endif /* no _SC_PAGESIZE */
21570 #endif /* no HAVE_GETPAGESIZE */
21572 int
21573 main ()
21575   char *data, *data2, *data3;
21576   int i, pagesize;
21577   int fd;
21579   pagesize = getpagesize ();
21581   /* First, make a file with some known garbage in it. */
21582   data = (char *) malloc (pagesize);
21583   if (!data)
21584     return 1;
21585   for (i = 0; i < pagesize; ++i)
21586     *(data + i) = rand ();
21587   umask (0);
21588   fd = creat ("conftest.mmap", 0600);
21589   if (fd < 0)
21590     return 1;
21591   if (write (fd, data, pagesize) != pagesize)
21592     return 1;
21593   close (fd);
21595   /* Next, try to mmap the file at a fixed address which already has
21596      something else allocated at it.  If we can, also make sure that
21597      we see the same garbage.  */
21598   fd = open ("conftest.mmap", O_RDWR);
21599   if (fd < 0)
21600     return 1;
21601   data2 = (char *) malloc (2 * pagesize);
21602   if (!data2)
21603     return 1;
21604   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21605   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21606                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21607     return 1;
21608   for (i = 0; i < pagesize; ++i)
21609     if (*(data + i) != *(data2 + i))
21610       return 1;
21612   /* Finally, make sure that changes to the mapped area do not
21613      percolate back to the file as seen by read().  (This is a bug on
21614      some variants of i386 svr4.0.)  */
21615   for (i = 0; i < pagesize; ++i)
21616     *(data2 + i) = *(data2 + i) + 1;
21617   data3 = (char *) malloc (pagesize);
21618   if (!data3)
21619     return 1;
21620   if (read (fd, data3, pagesize) != pagesize)
21621     return 1;
21622   for (i = 0; i < pagesize; ++i)
21623     if (*(data + i) != *(data3 + i))
21624       return 1;
21625   close (fd);
21626   return 0;
21628 _ACEOF
21629 rm -f conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633   *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636   (eval "$ac_link") 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21640   { (case "(($ac_try" in
21641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642   *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645   (eval "$ac_try") 2>&5
21646   ac_status=$?
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); }; }; then
21649   ac_cv_func_mmap_fixed_mapped=yes
21650 else
21651   echo "$as_me: program exited with status $ac_status" >&5
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ( exit $ac_status )
21656 ac_cv_func_mmap_fixed_mapped=no
21658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21663 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21664 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21665 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21667 cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_MMAP 1
21669 _ACEOF
21672 rm -f conftest.mmap
21674   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21675 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21676 if test "${ac_cv_func_mmap_file+set}" = set; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679    ac_ext=c
21680 ac_cpp='$CPP $CPPFLAGS'
21681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21685   if test "$cross_compiling" = yes; then
21686   ac_cv_func_mmap_file=no
21687 else
21688   cat >conftest.$ac_ext <<_ACEOF
21690     /* confdefs.h.  */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h.  */
21696 #include <sys/types.h>
21697 #include <sys/mman.h>
21698 #include <fcntl.h>
21700 int
21701 main ()
21704   int fd;
21705   fd = creat ("foo",0777);
21706   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21707   unlink ("foo");
21708   return (fd != (int) MAP_FAILED);
21709   ;
21710   return 0;
21712 _ACEOF
21713 rm -f conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_link") 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21724   { (case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729   (eval "$ac_try") 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); }; }; then
21733   ac_cv_func_mmap_file=yes
21734 else
21735   echo "$as_me: program exited with status $ac_status" >&5
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ( exit $ac_status )
21740 ac_cv_func_mmap_file=no
21742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21746   ac_ext=c
21747 ac_cpp='$CPP $CPPFLAGS'
21748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21754 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21755 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21756 if test "$ac_cv_func_mmap_file" = yes; then
21758 cat >>confdefs.h <<\_ACEOF
21759 #define HAVE_MMAP_FILE
21760 _ACEOF
21762    MMAP_FILE=yes
21766   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21767 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21768 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   if test "$llvm_cv_os_type" = "Interix" ; then
21772    ac_cv_need_dev_zero_for_mmap=yes
21773  else
21774    ac_cv_need_dev_zero_for_mmap=no
21775  fi
21778 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21779 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21780 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21782 cat >>confdefs.h <<\_ACEOF
21783 #define NEED_DEV_ZERO_FOR_MMAP 1
21784 _ACEOF
21788   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21789   then
21790     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21791 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21792   fi
21793   if test "$ac_cv_func_mmap_file" = "no"
21794   then
21795     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21796 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21797   fi
21800 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21801 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21802 ac_ext=cpp
21803 ac_cpp='$CXXCPP $CPPFLAGS'
21804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21808 cat >conftest.$ac_ext <<_ACEOF
21810   /* confdefs.h.  */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h.  */
21816     int main() {
21817       volatile unsigned long val = 1;
21818       __sync_synchronize();
21819       __sync_val_compare_and_swap(&val, 1, 0);
21820       __sync_add_and_fetch(&val, 1);
21821       __sync_sub_and_fetch(&val, 1);
21822       return 0;
21823     }
21826 _ACEOF
21827 rm -f conftest.$ac_objext conftest$ac_exeext
21828 if { (ac_try="$ac_link"
21829 case "(($ac_try" in
21830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831   *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834   (eval "$ac_link") 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21842   { (case "(($ac_try" in
21843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844   *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847   (eval "$ac_try") 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; } &&
21851          { ac_try='test -s conftest$ac_exeext'
21852   { (case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_try") 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); }; }; then
21862   { echo "$as_me:$LINENO: result: yes" >&5
21863 echo "${ECHO_T}yes" >&6; }
21865 cat >>confdefs.h <<\_ACEOF
21866 #define LLVM_HAS_ATOMICS 1
21867 _ACEOF
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21875   { echo "$as_me:$LINENO: result: no" >&5
21876 echo "${ECHO_T}no" >&6; }
21878 cat >>confdefs.h <<\_ACEOF
21879 #define LLVM_HAS_ATOMICS 0
21880 _ACEOF
21882   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21883 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21887 rm -f core conftest.err conftest.$ac_objext \
21888       conftest$ac_exeext conftest.$ac_ext
21889 ac_ext=c
21890 ac_cpp='$CPP $CPPFLAGS'
21891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21897 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21898   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21899 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21900 if test "${llvm_cv_linux_mixed+set}" = set; then
21901   echo $ECHO_N "(cached) $ECHO_C" >&6
21902 else
21903    ac_ext=c
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21909   cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h.  */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h.  */
21915 #ifndef __x86_64__
21916        error: Not x86-64 even if uname says so!
21917       #endif
21919 int
21920 main ()
21923   ;
21924   return 0;
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_compile") 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } &&
21941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21942   { (case "(($ac_try" in
21943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944   *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947   (eval "$ac_try") 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; } &&
21951          { ac_try='test -s conftest.$ac_objext'
21952   { (case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_try") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; }; then
21961   llvm_cv_linux_mixed=no
21962 else
21963   echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966         llvm_cv_linux_mixed=yes
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970   ac_ext=c
21971 ac_cpp='$CPP $CPPFLAGS'
21972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21978 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21979 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21981   if test "$llvm_cv_linux_mixed" = "yes"; then
21982     llvm_cv_target_arch="x86"
21983     ARCH="x86"
21984   fi
21988 for ac_func in __dso_handle
21990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21994   echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996   cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22004 #define $ac_func innocuous_$ac_func
22006 /* System header to define __stub macros and hopefully few prototypes,
22007     which can conflict with char $ac_func (); below.
22008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22009     <limits.h> exists even on freestanding compilers.  */
22011 #ifdef __STDC__
22012 # include <limits.h>
22013 #else
22014 # include <assert.h>
22015 #endif
22017 #undef $ac_func
22019 /* Override any GCC internal prototype to avoid an error.
22020    Use char because int might match the return type of a GCC
22021    builtin and then its argument prototype would still apply.  */
22022 #ifdef __cplusplus
22023 extern "C"
22024 #endif
22025 char $ac_func ();
22026 /* The GNU C library defines this for functions which it implements
22027     to always fail with ENOSYS.  Some functions are actually named
22028     something starting with __ and the normal name is an alias.  */
22029 #if defined __stub_$ac_func || defined __stub___$ac_func
22030 choke me
22031 #endif
22033 int
22034 main ()
22036 return $ac_func ();
22037   ;
22038   return 0;
22040 _ACEOF
22041 rm -f conftest.$ac_objext conftest$ac_exeext
22042 if { (ac_try="$ac_link"
22043 case "(($ac_try" in
22044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045   *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048   (eval "$ac_link") 2>conftest.er1
22049   ac_status=$?
22050   grep -v '^ *+' conftest.er1 >conftest.err
22051   rm -f conftest.er1
22052   cat conftest.err >&5
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); } &&
22055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22056   { (case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_try") 2>&5
22062   ac_status=$?
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); }; } &&
22065          { ac_try='test -s conftest$ac_exeext'
22066   { (case "(($ac_try" in
22067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068   *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071   (eval "$ac_try") 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; }; then
22075   eval "$as_ac_var=yes"
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080         eval "$as_ac_var=no"
22083 rm -f core conftest.err conftest.$ac_objext \
22084       conftest$ac_exeext conftest.$ac_ext
22086 ac_res=`eval echo '${'$as_ac_var'}'`
22087                { echo "$as_me:$LINENO: result: $ac_res" >&5
22088 echo "${ECHO_T}$ac_res" >&6; }
22089 if test `eval echo '${'$as_ac_var'}'` = yes; then
22090   cat >>confdefs.h <<_ACEOF
22091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22092 _ACEOF
22095 done
22098 SHLIBEXT=$libltdl_cv_shlibext
22101 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22104 if test "${prefix}" = "NONE" ; then
22105   prefix="/usr/local"
22107 eval LLVM_PREFIX="${prefix}";
22108 eval LLVM_BINDIR="${prefix}/bin";
22109 eval LLVM_DATADIR="${prefix}/share/llvm";
22110 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22111 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22112 eval LLVM_INCLUDEDIR="${prefix}/include";
22113 eval LLVM_INFODIR="${prefix}/info";
22114 eval LLVM_MANDIR="${prefix}/man";
22115 LLVM_CONFIGTIME=`date`
22126 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22127   LLVM_CONFIGTIME="(timestamp not enabled)"
22131 cat >>confdefs.h <<_ACEOF
22132 #define LLVM_PREFIX "$LLVM_PREFIX"
22133 _ACEOF
22136 cat >>confdefs.h <<_ACEOF
22137 #define LLVM_BINDIR "$LLVM_BINDIR"
22138 _ACEOF
22141 cat >>confdefs.h <<_ACEOF
22142 #define LLVM_DATADIR "$LLVM_DATADIR"
22143 _ACEOF
22146 cat >>confdefs.h <<_ACEOF
22147 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22148 _ACEOF
22151 cat >>confdefs.h <<_ACEOF
22152 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22153 _ACEOF
22156 cat >>confdefs.h <<_ACEOF
22157 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22158 _ACEOF
22161 cat >>confdefs.h <<_ACEOF
22162 #define LLVM_INFODIR "$LLVM_INFODIR"
22163 _ACEOF
22166 cat >>confdefs.h <<_ACEOF
22167 #define LLVM_MANDIR "$LLVM_MANDIR"
22168 _ACEOF
22171 cat >>confdefs.h <<_ACEOF
22172 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22173 _ACEOF
22176 cat >>confdefs.h <<_ACEOF
22177 #define LLVM_HOST_TRIPLE "$host"
22178 _ACEOF
22181 cat >>confdefs.h <<_ACEOF
22182 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22183 _ACEOF
22186 if test "$BINDINGS_TO_BUILD" = auto ; then
22187   BINDINGS_TO_BUILD=""
22188   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22189     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22190   fi
22192 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22195 ALL_BINDINGS=ocaml
22198 binding_prereqs_failed=0
22199 for a_binding in $BINDINGS_TO_BUILD ; do
22200   case "$a_binding" in
22201   ocaml)
22202     if test "x$OCAMLC" = x ; then
22203       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22204 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22205       binding_prereqs_failed=1
22206     fi
22207     if test "x$OCAMLDEP" = x ; then
22208       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22209 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22210       binding_prereqs_failed=1
22211     fi
22212     if test "x$OCAMLOPT" = x ; then
22213       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22214 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22215           fi
22216     if test "x$with_ocaml_libdir" != xauto ; then
22217       OCAML_LIBDIR=$with_ocaml_libdir
22219     else
22220       ocaml_stdlib="`"$OCAMLC" -where`"
22221       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22222       then
22223         # ocaml stdlib is beneath our prefix; use stdlib
22224         OCAML_LIBDIR=$ocaml_stdlib
22226       else
22227         # ocaml stdlib is outside our prefix; use libdir/ocaml
22228         OCAML_LIBDIR=${prefix}/lib/ocaml
22230       fi
22231     fi
22232     ;;
22233   esac
22234 done
22235 if test "$binding_prereqs_failed" = 1 ; then
22236   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22237 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22238    { (exit 1); exit 1; }; }
22241 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22242 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22243 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22244   echo $ECHO_N "(cached) $ECHO_C" >&6
22245 else
22246    ac_ext=cpp
22247 ac_cpp='$CXXCPP $CPPFLAGS'
22248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22252   oldcxxflags="$CXXFLAGS"
22253   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22254   cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22261 int
22262 main ()
22264 X<int>().f();
22265   ;
22266   return 0;
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_compile") 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } &&
22283          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22284   { (case "(($ac_try" in
22285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286   *) ac_try_echo=$ac_try;;
22287 esac
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289   (eval "$ac_try") 2>&5
22290   ac_status=$?
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); }; } &&
22293          { ac_try='test -s conftest.$ac_objext'
22294   { (case "(($ac_try" in
22295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296   *) ac_try_echo=$ac_try;;
22297 esac
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299   (eval "$ac_try") 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); }; }; then
22303   llvm_cv_cxx_visibility_inlines_hidden=yes
22304 else
22305   echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308         llvm_cv_cxx_visibility_inlines_hidden=no
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312   CXXFLAGS="$oldcxxflags"
22313   ac_ext=c
22314 ac_cpp='$CPP $CPPFLAGS'
22315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22321 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22322 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22323 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22324   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22326 else
22327   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22332 if test "$llvm_cv_link_use_r" = "yes" ; then
22333   RPATH="-Wl,-R"
22334 else
22335   RPATH="-Wl,-rpath"
22339 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22340   RDYNAMIC="-rdynamic"
22341 else
22342   RDYNAMIC=""
22347 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22354 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22356 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22358 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22360 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22362 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22365 ac_config_files="$ac_config_files Makefile.config"
22368 ac_config_files="$ac_config_files llvm.spec"
22371 ac_config_files="$ac_config_files docs/doxygen.cfg"
22374 if test "${clang_src_root}" = ""; then
22375   clang_src_root="$srcdir/tools/clang"
22377 if test -f ${clang_src_root}/README.txt; then
22378     configh="include/clang/Config/config.h"
22379   doxy="docs/doxygen.cfg"
22380   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22382   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22386 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22389 test "x$program_prefix" = "xNONE" && program_prefix=""
22393 ac_config_commands="$ac_config_commands setup"
22395 ac_config_commands="$ac_config_commands Makefile"
22398 ac_config_commands="$ac_config_commands Makefile.common"
22401 ac_config_commands="$ac_config_commands examples/Makefile"
22404 ac_config_commands="$ac_config_commands lib/Makefile"
22407 ac_config_commands="$ac_config_commands test/Makefile"
22410 ac_config_commands="$ac_config_commands test/Makefile.tests"
22413 ac_config_commands="$ac_config_commands unittests/Makefile"
22416 ac_config_commands="$ac_config_commands tools/Makefile"
22419 ac_config_commands="$ac_config_commands utils/Makefile"
22422 ac_config_commands="$ac_config_commands projects/Makefile"
22425 ac_config_commands="$ac_config_commands bindings/Makefile"
22428 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22432 cat >confcache <<\_ACEOF
22433 # This file is a shell script that caches the results of configure
22434 # tests run on this system so they can be shared between configure
22435 # scripts and configure runs, see configure's option --config-cache.
22436 # It is not useful on other systems.  If it contains results you don't
22437 # want to keep, you may remove or edit it.
22439 # config.status only pays attention to the cache file if you give it
22440 # the --recheck option to rerun configure.
22442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22444 # following values.
22446 _ACEOF
22448 # The following way of writing the cache mishandles newlines in values,
22449 # but we know of no workaround that is simple, portable, and efficient.
22450 # So, we kill variables containing newlines.
22451 # Ultrix sh set writes to stderr and can't be redirected directly,
22452 # and sets the high bit in the cache file unless we assign to the vars.
22454   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22455     eval ac_val=\$$ac_var
22456     case $ac_val in #(
22457     *${as_nl}*)
22458       case $ac_var in #(
22459       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22460 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22461       esac
22462       case $ac_var in #(
22463       _ | IFS | as_nl) ;; #(
22464       *) $as_unset $ac_var ;;
22465       esac ;;
22466     esac
22467   done
22469   (set) 2>&1 |
22470     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22471     *${as_nl}ac_space=\ *)
22472       # `set' does not quote correctly, so add quotes (double-quote
22473       # substitution turns \\\\ into \\, and sed turns \\ into \).
22474       sed -n \
22475         "s/'/'\\\\''/g;
22476           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22477       ;; #(
22478     *)
22479       # `set' quotes correctly as required by POSIX, so do not add quotes.
22480       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22481       ;;
22482     esac |
22483     sort
22484 ) |
22485   sed '
22486      /^ac_cv_env_/b end
22487      t clear
22488      :clear
22489      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22490      t end
22491      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22492      :end' >>confcache
22493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22494   if test -w "$cache_file"; then
22495     test "x$cache_file" != "x/dev/null" &&
22496       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22497 echo "$as_me: updating cache $cache_file" >&6;}
22498     cat confcache >$cache_file
22499   else
22500     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22501 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22502   fi
22504 rm -f confcache
22506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22507 # Let make expand exec_prefix.
22508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22510 DEFS=-DHAVE_CONFIG_H
22512 ac_libobjs=
22513 ac_ltlibobjs=
22514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22515   # 1. Remove the extension, and $U if already installed.
22516   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22517   ac_i=`echo "$ac_i" | sed "$ac_script"`
22518   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22519   #    will be set to the directory where LIBOBJS objects are built.
22520   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22521   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22522 done
22523 LIBOBJS=$ac_libobjs
22525 LTLIBOBJS=$ac_ltlibobjs
22528 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22529   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22530 Usually this means the macro was only invoked conditionally." >&5
22531 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22532 Usually this means the macro was only invoked conditionally." >&2;}
22533    { (exit 1); exit 1; }; }
22535 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22536   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&5
22538 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22539 Usually this means the macro was only invoked conditionally." >&2;}
22540    { (exit 1); exit 1; }; }
22543 : ${CONFIG_STATUS=./config.status}
22544 ac_clean_files_save=$ac_clean_files
22545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22546 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22547 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22548 cat >$CONFIG_STATUS <<_ACEOF
22549 #! $SHELL
22550 # Generated by $as_me.
22551 # Run this file to recreate the current configuration.
22552 # Compiler output produced by configure, useful for debugging
22553 # configure, is in config.log if it exists.
22555 debug=false
22556 ac_cs_recheck=false
22557 ac_cs_silent=false
22558 SHELL=\${CONFIG_SHELL-$SHELL}
22559 _ACEOF
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 ## --------------------- ##
22563 ## M4sh Initialization.  ##
22564 ## --------------------- ##
22566 # Be Bourne compatible
22567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22568   emulate sh
22569   NULLCMD=:
22570   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22571   # is contrary to our usage.  Disable this feature.
22572   alias -g '${1+"$@"}'='"$@"'
22573   setopt NO_GLOB_SUBST
22574 else
22575   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22577 BIN_SH=xpg4; export BIN_SH # for Tru64
22578 DUALCASE=1; export DUALCASE # for MKS sh
22581 # PATH needs CR
22582 # Avoid depending upon Character Ranges.
22583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22586 as_cr_digits='0123456789'
22587 as_cr_alnum=$as_cr_Letters$as_cr_digits
22589 # The user is always right.
22590 if test "${PATH_SEPARATOR+set}" != set; then
22591   echo "#! /bin/sh" >conf$$.sh
22592   echo  "exit 0"   >>conf$$.sh
22593   chmod +x conf$$.sh
22594   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22595     PATH_SEPARATOR=';'
22596   else
22597     PATH_SEPARATOR=:
22598   fi
22599   rm -f conf$$.sh
22602 # Support unset when possible.
22603 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22604   as_unset=unset
22605 else
22606   as_unset=false
22610 # IFS
22611 # We need space, tab and new line, in precisely that order.  Quoting is
22612 # there to prevent editors from complaining about space-tab.
22613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22614 # splitting by setting IFS to empty value.)
22615 as_nl='
22617 IFS=" ""        $as_nl"
22619 # Find who we are.  Look in the path if we contain no directory separator.
22620 case $0 in
22621   *[\\/]* ) as_myself=$0 ;;
22622   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22623 for as_dir in $PATH
22625   IFS=$as_save_IFS
22626   test -z "$as_dir" && as_dir=.
22627   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22628 done
22629 IFS=$as_save_IFS
22631      ;;
22632 esac
22633 # We did not find ourselves, most probably we were run as `sh COMMAND'
22634 # in which case we are not to be found in the path.
22635 if test "x$as_myself" = x; then
22636   as_myself=$0
22638 if test ! -f "$as_myself"; then
22639   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22640   { (exit 1); exit 1; }
22643 # Work around bugs in pre-3.0 UWIN ksh.
22644 for as_var in ENV MAIL MAILPATH
22645 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22646 done
22647 PS1='$ '
22648 PS2='> '
22649 PS4='+ '
22651 # NLS nuisances.
22652 for as_var in \
22653   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22654   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22655   LC_TELEPHONE LC_TIME
22657   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22658     eval $as_var=C; export $as_var
22659   else
22660     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22661   fi
22662 done
22664 # Required to use basename.
22665 if expr a : '\(a\)' >/dev/null 2>&1 &&
22666    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22667   as_expr=expr
22668 else
22669   as_expr=false
22672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22673   as_basename=basename
22674 else
22675   as_basename=false
22679 # Name of the executable.
22680 as_me=`$as_basename -- "$0" ||
22681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22682          X"$0" : 'X\(//\)$' \| \
22683          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22684 echo X/"$0" |
22685     sed '/^.*\/\([^/][^/]*\)\/*$/{
22686             s//\1/
22687             q
22688           }
22689           /^X\/\(\/\/\)$/{
22690             s//\1/
22691             q
22692           }
22693           /^X\/\(\/\).*/{
22694             s//\1/
22695             q
22696           }
22697           s/.*/./; q'`
22699 # CDPATH.
22700 $as_unset CDPATH
22704   as_lineno_1=$LINENO
22705   as_lineno_2=$LINENO
22706   test "x$as_lineno_1" != "x$as_lineno_2" &&
22707   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22709   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22710   # uniformly replaced by the line number.  The first 'sed' inserts a
22711   # line-number line after each line using $LINENO; the second 'sed'
22712   # does the real work.  The second script uses 'N' to pair each
22713   # line-number line with the line containing $LINENO, and appends
22714   # trailing '-' during substitution so that $LINENO is not a special
22715   # case at line end.
22716   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22717   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22718   # E. McMahon (1931-1989) for sed's syntax.  :-)
22719   sed -n '
22720     p
22721     /[$]LINENO/=
22722   ' <$as_myself |
22723     sed '
22724       s/[$]LINENO.*/&-/
22725       t lineno
22726       b
22727       :lineno
22728       N
22729       :loop
22730       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22731       t loop
22732       s/-\n.*//
22733     ' >$as_me.lineno &&
22734   chmod +x "$as_me.lineno" ||
22735     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22736    { (exit 1); exit 1; }; }
22738   # Don't try to exec as it changes $[0], causing all sort of problems
22739   # (the dirname of $[0] is not the place where we might find the
22740   # original and so on.  Autoconf is especially sensitive to this).
22741   . "./$as_me.lineno"
22742   # Exit status is that of the last command.
22743   exit
22747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22748   as_dirname=dirname
22749 else
22750   as_dirname=false
22753 ECHO_C= ECHO_N= ECHO_T=
22754 case `echo -n x` in
22755 -n*)
22756   case `echo 'x\c'` in
22757   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22758   *)   ECHO_C='\c';;
22759   esac;;
22761   ECHO_N='-n';;
22762 esac
22764 if expr a : '\(a\)' >/dev/null 2>&1 &&
22765    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22766   as_expr=expr
22767 else
22768   as_expr=false
22771 rm -f conf$$ conf$$.exe conf$$.file
22772 if test -d conf$$.dir; then
22773   rm -f conf$$.dir/conf$$.file
22774 else
22775   rm -f conf$$.dir
22776   mkdir conf$$.dir
22778 echo >conf$$.file
22779 if ln -s conf$$.file conf$$ 2>/dev/null; then
22780   as_ln_s='ln -s'
22781   # ... but there are two gotchas:
22782   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22783   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22784   # In both cases, we have to default to `cp -p'.
22785   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22786     as_ln_s='cp -p'
22787 elif ln conf$$.file conf$$ 2>/dev/null; then
22788   as_ln_s=ln
22789 else
22790   as_ln_s='cp -p'
22792 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22793 rmdir conf$$.dir 2>/dev/null
22795 if mkdir -p . 2>/dev/null; then
22796   as_mkdir_p=:
22797 else
22798   test -d ./-p && rmdir ./-p
22799   as_mkdir_p=false
22802 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22803 # systems may use methods other than mode bits to determine executability.
22804 cat >conf$$.file <<_ASEOF
22805 #! /bin/sh
22806 exit 0
22807 _ASEOF
22808 chmod +x conf$$.file
22809 if test -x conf$$.file >/dev/null 2>&1; then
22810   as_executable_p="test -x"
22811 else
22812   as_executable_p=:
22814 rm -f conf$$.file
22816 # Sed expression to map a string onto a valid CPP name.
22817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22819 # Sed expression to map a string onto a valid variable name.
22820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22823 exec 6>&1
22825 # Save the log message, to keep $[0] and so on meaningful, and to
22826 # report actual input values of CONFIG_FILES etc. instead of their
22827 # values after options handling.
22828 ac_log="
22829 This file was extended by LLVM $as_me 3.5svn, which was
22830 generated by GNU Autoconf 2.60.  Invocation command line was
22832   CONFIG_FILES    = $CONFIG_FILES
22833   CONFIG_HEADERS  = $CONFIG_HEADERS
22834   CONFIG_LINKS    = $CONFIG_LINKS
22835   CONFIG_COMMANDS = $CONFIG_COMMANDS
22836   $ $0 $@
22838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22841 _ACEOF
22843 cat >>$CONFIG_STATUS <<_ACEOF
22844 # Files that config.status was made for.
22845 config_files="$ac_config_files"
22846 config_headers="$ac_config_headers"
22847 config_commands="$ac_config_commands"
22849 _ACEOF
22851 cat >>$CONFIG_STATUS <<\_ACEOF
22852 ac_cs_usage="\
22853 \`$as_me' instantiates files from templates according to the
22854 current configuration.
22856 Usage: $0 [OPTIONS] [FILE]...
22858   -h, --help       print this help, then exit
22859   -V, --version    print version number, then exit
22860   -q, --quiet      do not print progress messages
22861   -d, --debug      don't remove temporary files
22862       --recheck    update $as_me by reconfiguring in the same conditions
22863   --file=FILE[:TEMPLATE]
22864                    instantiate the configuration file FILE
22865   --header=FILE[:TEMPLATE]
22866                    instantiate the configuration header FILE
22868 Configuration files:
22869 $config_files
22871 Configuration headers:
22872 $config_headers
22874 Configuration commands:
22875 $config_commands
22877 Report bugs to <bug-autoconf@gnu.org>."
22879 _ACEOF
22880 cat >>$CONFIG_STATUS <<_ACEOF
22881 ac_cs_version="\\
22882 LLVM config.status 3.5svn
22883 configured by $0, generated by GNU Autoconf 2.60,
22884   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22886 Copyright (C) 2006 Free Software Foundation, Inc.
22887 This config.status script is free software; the Free Software Foundation
22888 gives unlimited permission to copy, distribute and modify it."
22890 ac_pwd='$ac_pwd'
22891 srcdir='$srcdir'
22892 INSTALL='$INSTALL'
22893 _ACEOF
22895 cat >>$CONFIG_STATUS <<\_ACEOF
22896 # If no file are specified by the user, then we need to provide default
22897 # value.  By we need to know if files were specified by the user.
22898 ac_need_defaults=:
22899 while test $# != 0
22901   case $1 in
22902   --*=*)
22903     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22904     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22905     ac_shift=:
22906     ;;
22907   *)
22908     ac_option=$1
22909     ac_optarg=$2
22910     ac_shift=shift
22911     ;;
22912   esac
22914   case $ac_option in
22915   # Handling of the options.
22916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22917     ac_cs_recheck=: ;;
22918   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22919     echo "$ac_cs_version"; exit ;;
22920   --debug | --debu | --deb | --de | --d | -d )
22921     debug=: ;;
22922   --file | --fil | --fi | --f )
22923     $ac_shift
22924     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22925     ac_need_defaults=false;;
22926   --header | --heade | --head | --hea )
22927     $ac_shift
22928     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22929     ac_need_defaults=false;;
22930   --he | --h)
22931     # Conflict between --help and --header
22932     { echo "$as_me: error: ambiguous option: $1
22933 Try \`$0 --help' for more information." >&2
22934    { (exit 1); exit 1; }; };;
22935   --help | --hel | -h )
22936     echo "$ac_cs_usage"; exit ;;
22937   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22938   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22939     ac_cs_silent=: ;;
22941   # This is an error.
22942   -*) { echo "$as_me: error: unrecognized option: $1
22943 Try \`$0 --help' for more information." >&2
22944    { (exit 1); exit 1; }; } ;;
22946   *) ac_config_targets="$ac_config_targets $1"
22947      ac_need_defaults=false ;;
22949   esac
22950   shift
22951 done
22953 ac_configure_extra_args=
22955 if $ac_cs_silent; then
22956   exec 6>/dev/null
22957   ac_configure_extra_args="$ac_configure_extra_args --silent"
22960 _ACEOF
22961 cat >>$CONFIG_STATUS <<_ACEOF
22962 if \$ac_cs_recheck; then
22963   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22964   CONFIG_SHELL=$SHELL
22965   export CONFIG_SHELL
22966   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22969 _ACEOF
22970 cat >>$CONFIG_STATUS <<\_ACEOF
22971 exec 5>>config.log
22973   echo
22974   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22975 ## Running $as_me. ##
22976 _ASBOX
22977   echo "$ac_log"
22978 } >&5
22980 _ACEOF
22981 cat >>$CONFIG_STATUS <<_ACEOF
22983 # INIT-COMMANDS
22985 llvm_src="${srcdir}"
22987 _ACEOF
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22991 # Handling of arguments.
22992 for ac_config_target in $ac_config_targets
22994   case $ac_config_target in
22995     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22996     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22997     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22998     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22999     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23000     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23001     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23002     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23003     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23004     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23005     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23006     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23007     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23008     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23009     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23010     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23011     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23012     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23013     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23014     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23015     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23016     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23017     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23018     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23019     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23020     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23022   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23024    { (exit 1); exit 1; }; };;
23025   esac
23026 done
23029 # If the user did not use the arguments to specify the items to instantiate,
23030 # then the envvar interface is used.  Set only those that are not.
23031 # We use the long form for the default assignment because of an extremely
23032 # bizarre bug on SunOS 4.1.3.
23033 if $ac_need_defaults; then
23034   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23035   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23036   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23039 # Have a temporary directory for convenience.  Make it in the build tree
23040 # simply because there is no reason against having it here, and in addition,
23041 # creating and moving files from /tmp can sometimes cause problems.
23042 # Hook for its removal unless debugging.
23043 # Note that there is a small window in which the directory will not be cleaned:
23044 # after its creation but before its name has been assigned to `$tmp'.
23045 $debug ||
23047   tmp=
23048   trap 'exit_status=$?
23049   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23050 ' 0
23051   trap '{ (exit 1); exit 1; }' 1 2 13 15
23053 # Create a (secure) tmp directory for tmp files.
23056   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23057   test -n "$tmp" && test -d "$tmp"
23058 }  ||
23060   tmp=./conf$$-$RANDOM
23061   (umask 077 && mkdir "$tmp")
23062 } ||
23064    echo "$me: cannot create a temporary directory in ." >&2
23065    { (exit 1); exit 1; }
23069 # Set up the sed scripts for CONFIG_FILES section.
23072 # No need to generate the scripts if there are no CONFIG_FILES.
23073 # This happens for instance when ./config.status config.h
23074 if test -n "$CONFIG_FILES"; then
23076 _ACEOF
23080 ac_delim='%!_!# '
23081 for ac_last_try in false false false false false :; do
23082   cat >conf$$subs.sed <<_ACEOF
23083 SHELL!$SHELL$ac_delim
23084 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23085 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23086 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23087 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23088 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23089 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23090 exec_prefix!$exec_prefix$ac_delim
23091 prefix!$prefix$ac_delim
23092 program_transform_name!$program_transform_name$ac_delim
23093 bindir!$bindir$ac_delim
23094 sbindir!$sbindir$ac_delim
23095 libexecdir!$libexecdir$ac_delim
23096 datarootdir!$datarootdir$ac_delim
23097 datadir!$datadir$ac_delim
23098 sysconfdir!$sysconfdir$ac_delim
23099 sharedstatedir!$sharedstatedir$ac_delim
23100 localstatedir!$localstatedir$ac_delim
23101 includedir!$includedir$ac_delim
23102 oldincludedir!$oldincludedir$ac_delim
23103 docdir!$docdir$ac_delim
23104 infodir!$infodir$ac_delim
23105 htmldir!$htmldir$ac_delim
23106 dvidir!$dvidir$ac_delim
23107 pdfdir!$pdfdir$ac_delim
23108 psdir!$psdir$ac_delim
23109 libdir!$libdir$ac_delim
23110 localedir!$localedir$ac_delim
23111 mandir!$mandir$ac_delim
23112 DEFS!$DEFS$ac_delim
23113 ECHO_C!$ECHO_C$ac_delim
23114 ECHO_N!$ECHO_N$ac_delim
23115 ECHO_T!$ECHO_T$ac_delim
23116 LIBS!$LIBS$ac_delim
23117 build_alias!$build_alias$ac_delim
23118 host_alias!$host_alias$ac_delim
23119 target_alias!$target_alias$ac_delim
23120 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23121 CC!$CC$ac_delim
23122 CFLAGS!$CFLAGS$ac_delim
23123 LDFLAGS!$LDFLAGS$ac_delim
23124 CPPFLAGS!$CPPFLAGS$ac_delim
23125 ac_ct_CC!$ac_ct_CC$ac_delim
23126 EXEEXT!$EXEEXT$ac_delim
23127 OBJEXT!$OBJEXT$ac_delim
23128 CXX!$CXX$ac_delim
23129 CXXFLAGS!$CXXFLAGS$ac_delim
23130 ac_ct_CXX!$ac_ct_CXX$ac_delim
23131 CPP!$CPP$ac_delim
23132 subdirs!$subdirs$ac_delim
23133 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23134 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23135 build!$build$ac_delim
23136 build_cpu!$build_cpu$ac_delim
23137 build_vendor!$build_vendor$ac_delim
23138 build_os!$build_os$ac_delim
23139 host!$host$ac_delim
23140 host_cpu!$host_cpu$ac_delim
23141 host_vendor!$host_vendor$ac_delim
23142 host_os!$host_os$ac_delim
23143 target!$target$ac_delim
23144 target_cpu!$target_cpu$ac_delim
23145 target_vendor!$target_vendor$ac_delim
23146 target_os!$target_os$ac_delim
23147 OS!$OS$ac_delim
23148 HOST_OS!$HOST_OS$ac_delim
23149 TARGET_OS!$TARGET_OS$ac_delim
23150 LINKALL!$LINKALL$ac_delim
23151 NOLINKALL!$NOLINKALL$ac_delim
23152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23154 ARCH!$ARCH$ac_delim
23155 HOST_ARCH!$HOST_ARCH$ac_delim
23156 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23157 BUILD_CC!$BUILD_CC$ac_delim
23158 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23159 BUILD_CXX!$BUILD_CXX$ac_delim
23160 CVSBUILD!$CVSBUILD$ac_delim
23161 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23162 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23163 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23164 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23165 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23166 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23167 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23168 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23169 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23170 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23171 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23172 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23173 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23174 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23175 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23176 JIT!$JIT$ac_delim
23177 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23178 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23179 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23180 _ACEOF
23182   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23183     break
23184   elif $ac_last_try; then
23185     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23186 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23187    { (exit 1); exit 1; }; }
23188   else
23189     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23190   fi
23191 done
23193 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23194 if test -n "$ac_eof"; then
23195   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23196   ac_eof=`expr $ac_eof + 1`
23199 cat >>$CONFIG_STATUS <<_ACEOF
23200 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23202 _ACEOF
23203 sed '
23204 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23205 s/^/s,@/; s/!/@,|#_!!_#|/
23207 t n
23208 s/'"$ac_delim"'$/,g/; t
23209 s/$/\\/; p
23210 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23211 ' >>$CONFIG_STATUS <conf$$subs.sed
23212 rm -f conf$$subs.sed
23213 cat >>$CONFIG_STATUS <<_ACEOF
23214 CEOF$ac_eof
23215 _ACEOF
23218 ac_delim='%!_!# '
23219 for ac_last_try in false false false false false :; do
23220   cat >conf$$subs.sed <<_ACEOF
23221 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23222 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23223 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23224 ENABLE_PIC!$ENABLE_PIC$ac_delim
23225 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23226 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23227 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23228 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23229 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23230 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23231 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23232 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23233 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23234 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23235 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23236 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23237 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23238 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23239 NM!$NM$ac_delim
23240 ifGNUmake!$ifGNUmake$ac_delim
23241 LN_S!$LN_S$ac_delim
23242 CMP!$CMP$ac_delim
23243 CP!$CP$ac_delim
23244 DATE!$DATE$ac_delim
23245 FIND!$FIND$ac_delim
23246 GREP!$GREP$ac_delim
23247 MKDIR!$MKDIR$ac_delim
23248 MV!$MV$ac_delim
23249 RANLIB!$RANLIB$ac_delim
23250 AR!$AR$ac_delim
23251 RM!$RM$ac_delim
23252 SED!$SED$ac_delim
23253 TAR!$TAR$ac_delim
23254 BINPWD!$BINPWD$ac_delim
23255 GRAPHVIZ!$GRAPHVIZ$ac_delim
23256 DOT!$DOT$ac_delim
23257 FDP!$FDP$ac_delim
23258 NEATO!$NEATO$ac_delim
23259 TWOPI!$TWOPI$ac_delim
23260 CIRCO!$CIRCO$ac_delim
23261 GV!$GV$ac_delim
23262 DOTTY!$DOTTY$ac_delim
23263 XDOT!$XDOT$ac_delim
23264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23266 INSTALL_DATA!$INSTALL_DATA$ac_delim
23267 BZIP2!$BZIP2$ac_delim
23268 CAT!$CAT$ac_delim
23269 DOXYGEN!$DOXYGEN$ac_delim
23270 GROFF!$GROFF$ac_delim
23271 GZIPBIN!$GZIPBIN$ac_delim
23272 PDFROFF!$PDFROFF$ac_delim
23273 ZIP!$ZIP$ac_delim
23274 OCAMLC!$OCAMLC$ac_delim
23275 OCAMLOPT!$OCAMLOPT$ac_delim
23276 OCAMLDEP!$OCAMLDEP$ac_delim
23277 OCAMLDOC!$OCAMLDOC$ac_delim
23278 GAS!$GAS$ac_delim
23279 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23280 EGREP!$EGREP$ac_delim
23281 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23282 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23283 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23284 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23285 LIBADD_DL!$LIBADD_DL$ac_delim
23286 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23287 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23288 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23289 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23290 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23291 PYTHON!$PYTHON$ac_delim
23292 USE_UDIS86!$USE_UDIS86$ac_delim
23293 USE_OPROFILE!$USE_OPROFILE$ac_delim
23294 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23295 XML2CONFIG!$XML2CONFIG$ac_delim
23296 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23297 LIBXML2_INC!$LIBXML2_INC$ac_delim
23298 CXXCPP!$CXXCPP$ac_delim
23299 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23300 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23301 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23302 MMAP_FILE!$MMAP_FILE$ac_delim
23303 SHLIBEXT!$SHLIBEXT$ac_delim
23304 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23305 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23306 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23307 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23308 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23309 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23310 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23311 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23312 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23313 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23314 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23315 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23316 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23317 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23318 _ACEOF
23320   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23321     break
23322   elif $ac_last_try; then
23323     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23324 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23325    { (exit 1); exit 1; }; }
23326   else
23327     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23328   fi
23329 done
23331 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23332 if test -n "$ac_eof"; then
23333   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23334   ac_eof=`expr $ac_eof + 1`
23337 cat >>$CONFIG_STATUS <<_ACEOF
23338 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23340 _ACEOF
23341 sed '
23342 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23343 s/^/s,@/; s/!/@,|#_!!_#|/
23345 t n
23346 s/'"$ac_delim"'$/,g/; t
23347 s/$/\\/; p
23348 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23349 ' >>$CONFIG_STATUS <conf$$subs.sed
23350 rm -f conf$$subs.sed
23351 cat >>$CONFIG_STATUS <<_ACEOF
23352 CEOF$ac_eof
23353 _ACEOF
23356 ac_delim='%!_!# '
23357 for ac_last_try in false false false false false :; do
23358   cat >conf$$subs.sed <<_ACEOF
23359 RPATH!$RPATH$ac_delim
23360 RDYNAMIC!$RDYNAMIC$ac_delim
23361 program_prefix!$program_prefix$ac_delim
23362 LIBOBJS!$LIBOBJS$ac_delim
23363 LTLIBOBJS!$LTLIBOBJS$ac_delim
23364 _ACEOF
23366   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23367     break
23368   elif $ac_last_try; then
23369     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23370 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23371    { (exit 1); exit 1; }; }
23372   else
23373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23374   fi
23375 done
23377 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23378 if test -n "$ac_eof"; then
23379   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23380   ac_eof=`expr $ac_eof + 1`
23383 cat >>$CONFIG_STATUS <<_ACEOF
23384 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23386 _ACEOF
23387 sed '
23388 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23389 s/^/s,@/; s/!/@,|#_!!_#|/
23391 t n
23392 s/'"$ac_delim"'$/,g/; t
23393 s/$/\\/; p
23394 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23395 ' >>$CONFIG_STATUS <conf$$subs.sed
23396 rm -f conf$$subs.sed
23397 cat >>$CONFIG_STATUS <<_ACEOF
23398 :end
23399 s/|#_!!_#|//g
23400 CEOF$ac_eof
23401 _ACEOF
23404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23406 # trailing colons and then remove the whole line if VPATH becomes empty
23407 # (actually we leave an empty line to preserve line numbers).
23408 if test "x$srcdir" = x.; then
23409   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23410 s/:*\$(srcdir):*/:/
23411 s/:*\${srcdir}:*/:/
23412 s/:*@srcdir@:*/:/
23413 s/^\([^=]*=[     ]*\):*/\1/
23414 s/:*$//
23415 s/^[^=]*=[       ]*$//
23419 cat >>$CONFIG_STATUS <<\_ACEOF
23420 fi # test -n "$CONFIG_FILES"
23423 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23425   case $ac_tag in
23426   :[FHLC]) ac_mode=$ac_tag; continue;;
23427   esac
23428   case $ac_mode$ac_tag in
23429   :[FHL]*:*);;
23430   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23431 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23432    { (exit 1); exit 1; }; };;
23433   :[FH]-) ac_tag=-:-;;
23434   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23435   esac
23436   ac_save_IFS=$IFS
23437   IFS=:
23438   set x $ac_tag
23439   IFS=$ac_save_IFS
23440   shift
23441   ac_file=$1
23442   shift
23444   case $ac_mode in
23445   :L) ac_source=$1;;
23446   :[FH])
23447     ac_file_inputs=
23448     for ac_f
23449     do
23450       case $ac_f in
23451       -) ac_f="$tmp/stdin";;
23452       *) # Look for the file first in the build tree, then in the source tree
23453          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23454          # because $ac_f cannot contain `:'.
23455          test -f "$ac_f" ||
23456            case $ac_f in
23457            [\\/$]*) false;;
23458            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23459            esac ||
23460            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23461 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23462    { (exit 1); exit 1; }; };;
23463       esac
23464       ac_file_inputs="$ac_file_inputs $ac_f"
23465     done
23467     # Let's still pretend it is `configure' which instantiates (i.e., don't
23468     # use $as_me), people would be surprised to read:
23469     #    /* config.h.  Generated by config.status.  */
23470     configure_input="Generated from "`IFS=:
23471           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23472     if test x"$ac_file" != x-; then
23473       configure_input="$ac_file.  $configure_input"
23474       { echo "$as_me:$LINENO: creating $ac_file" >&5
23475 echo "$as_me: creating $ac_file" >&6;}
23476     fi
23478     case $ac_tag in
23479     *:-:* | *:-) cat >"$tmp/stdin";;
23480     esac
23481     ;;
23482   esac
23484   ac_dir=`$as_dirname -- "$ac_file" ||
23485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23486          X"$ac_file" : 'X\(//\)[^/]' \| \
23487          X"$ac_file" : 'X\(//\)$' \| \
23488          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23489 echo X"$ac_file" |
23490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23491             s//\1/
23492             q
23493           }
23494           /^X\(\/\/\)[^/].*/{
23495             s//\1/
23496             q
23497           }
23498           /^X\(\/\/\)$/{
23499             s//\1/
23500             q
23501           }
23502           /^X\(\/\).*/{
23503             s//\1/
23504             q
23505           }
23506           s/.*/./; q'`
23507   { as_dir="$ac_dir"
23508   case $as_dir in #(
23509   -*) as_dir=./$as_dir;;
23510   esac
23511   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23512     as_dirs=
23513     while :; do
23514       case $as_dir in #(
23515       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23516       *) as_qdir=$as_dir;;
23517       esac
23518       as_dirs="'$as_qdir' $as_dirs"
23519       as_dir=`$as_dirname -- "$as_dir" ||
23520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23521          X"$as_dir" : 'X\(//\)[^/]' \| \
23522          X"$as_dir" : 'X\(//\)$' \| \
23523          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23524 echo X"$as_dir" |
23525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23526             s//\1/
23527             q
23528           }
23529           /^X\(\/\/\)[^/].*/{
23530             s//\1/
23531             q
23532           }
23533           /^X\(\/\/\)$/{
23534             s//\1/
23535             q
23536           }
23537           /^X\(\/\).*/{
23538             s//\1/
23539             q
23540           }
23541           s/.*/./; q'`
23542       test -d "$as_dir" && break
23543     done
23544     test -z "$as_dirs" || eval "mkdir $as_dirs"
23545   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23546 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23547    { (exit 1); exit 1; }; }; }
23548   ac_builddir=.
23550 case "$ac_dir" in
23551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23553   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23554   # A ".." for each directory in $ac_dir_suffix.
23555   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23556   case $ac_top_builddir_sub in
23557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23559   esac ;;
23560 esac
23561 ac_abs_top_builddir=$ac_pwd
23562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23563 # for backward compatibility:
23564 ac_top_builddir=$ac_top_build_prefix
23566 case $srcdir in
23567   .)  # We are building in place.
23568     ac_srcdir=.
23569     ac_top_srcdir=$ac_top_builddir_sub
23570     ac_abs_top_srcdir=$ac_pwd ;;
23571   [\\/]* | ?:[\\/]* )  # Absolute name.
23572     ac_srcdir=$srcdir$ac_dir_suffix;
23573     ac_top_srcdir=$srcdir
23574     ac_abs_top_srcdir=$srcdir ;;
23575   *) # Relative name.
23576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23577     ac_top_srcdir=$ac_top_build_prefix$srcdir
23578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23579 esac
23580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23583   case $ac_mode in
23584   :F)
23585   #
23586   # CONFIG_FILE
23587   #
23589   case $INSTALL in
23590   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23591   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23592   esac
23593 _ACEOF
23595 cat >>$CONFIG_STATUS <<\_ACEOF
23596 # If the template does not know about datarootdir, expand it.
23597 # FIXME: This hack should be removed a few years after 2.60.
23598 ac_datarootdir_hack=; ac_datarootdir_seen=
23600 case `sed -n '/datarootdir/ {
23601   p
23602   q
23604 /@datadir@/p
23605 /@docdir@/p
23606 /@infodir@/p
23607 /@localedir@/p
23608 /@mandir@/p
23609 ' $ac_file_inputs` in
23610 *datarootdir*) ac_datarootdir_seen=yes;;
23611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23612   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23613 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23614 _ACEOF
23615 cat >>$CONFIG_STATUS <<_ACEOF
23616   ac_datarootdir_hack='
23617   s&@datadir@&$datadir&g
23618   s&@docdir@&$docdir&g
23619   s&@infodir@&$infodir&g
23620   s&@localedir@&$localedir&g
23621   s&@mandir@&$mandir&g
23622     s&\\\${datarootdir}&$datarootdir&g' ;;
23623 esac
23624 _ACEOF
23626 # Neutralize VPATH when `$srcdir' = `.'.
23627 # Shell code in configure.ac might set extrasub.
23628 # FIXME: do we really want to maintain this feature?
23629 cat >>$CONFIG_STATUS <<_ACEOF
23630   sed "$ac_vpsub
23631 $extrasub
23632 _ACEOF
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23636 s&@configure_input@&$configure_input&;t t
23637 s&@top_builddir@&$ac_top_builddir_sub&;t t
23638 s&@srcdir@&$ac_srcdir&;t t
23639 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23640 s&@top_srcdir@&$ac_top_srcdir&;t t
23641 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23642 s&@builddir@&$ac_builddir&;t t
23643 s&@abs_builddir@&$ac_abs_builddir&;t t
23644 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23645 s&@INSTALL@&$ac_INSTALL&;t t
23646 $ac_datarootdir_hack
23647 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23650   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23651   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23652   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23653 which seems to be undefined.  Please make sure it is defined." >&5
23654 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23655 which seems to be undefined.  Please make sure it is defined." >&2;}
23657   rm -f "$tmp/stdin"
23658   case $ac_file in
23659   -) cat "$tmp/out"; rm -f "$tmp/out";;
23660   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23661   esac
23662  ;;
23663   :H)
23664   #
23665   # CONFIG_HEADER
23666   #
23667 _ACEOF
23669 # Transform confdefs.h into a sed script `conftest.defines', that
23670 # substitutes the proper values into config.h.in to produce config.h.
23671 rm -f conftest.defines conftest.tail
23672 # First, append a space to every undef/define line, to ease matching.
23673 echo 's/$/ /' >conftest.defines
23674 # Then, protect against being on the right side of a sed subst, or in
23675 # an unquoted here document, in config.status.  If some macros were
23676 # called several times there might be several #defines for the same
23677 # symbol, which is useless.  But do not sort them, since the last
23678 # AC_DEFINE must be honored.
23679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23680 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23681 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23682 # PARAMS is the parameter list in the macro definition--in most cases, it's
23683 # just an empty string.
23684 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23685 ac_dB='\\)[      (].*,\\1define\\2'
23686 ac_dC=' '
23687 ac_dD=' ,'
23689 uniq confdefs.h |
23690   sed -n '
23691         t rset
23692         :rset
23693         s/^[     ]*#[    ]*define[       ][      ]*//
23694         t ok
23695         d
23696         :ok
23697         s/[\\&,]/\\&/g
23698         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23699         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23700   ' >>conftest.defines
23702 # Remove the space that was appended to ease matching.
23703 # Then replace #undef with comments.  This is necessary, for
23704 # example, in the case of _POSIX_SOURCE, which is predefined and required
23705 # on some systems where configure will not decide to define it.
23706 # (The regexp can be short, since the line contains either #define or #undef.)
23707 echo 's/ $//
23708 s,^[     #]*u.*,/* & */,' >>conftest.defines
23710 # Break up conftest.defines:
23711 ac_max_sed_lines=50
23713 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23714 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23715 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23716 # et cetera.
23717 ac_in='$ac_file_inputs'
23718 ac_out='"$tmp/out1"'
23719 ac_nxt='"$tmp/out2"'
23721 while :
23723   # Write a here document:
23724     cat >>$CONFIG_STATUS <<_ACEOF
23725     # First, check the format of the line:
23726     cat >"\$tmp/defines.sed" <<\\CEOF
23727 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23728 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23730 :def
23731 _ACEOF
23732   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23733   echo 'CEOF
23734     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23735   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23736   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23737   grep . conftest.tail >/dev/null || break
23738   rm -f conftest.defines
23739   mv conftest.tail conftest.defines
23740 done
23741 rm -f conftest.defines conftest.tail
23743 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23744 cat >>$CONFIG_STATUS <<\_ACEOF
23745   if test x"$ac_file" != x-; then
23746     echo "/* $configure_input  */" >"$tmp/config.h"
23747     cat "$ac_result" >>"$tmp/config.h"
23748     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23749       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23750 echo "$as_me: $ac_file is unchanged" >&6;}
23751     else
23752       rm -f $ac_file
23753       mv "$tmp/config.h" $ac_file
23754     fi
23755   else
23756     echo "/* $configure_input  */"
23757     cat "$ac_result"
23758   fi
23759   rm -f "$tmp/out12"
23760  ;;
23762   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23763 echo "$as_me: executing $ac_file commands" >&6;}
23764  ;;
23765   esac
23768   case $ac_file$ac_mode in
23769     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23770    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23771     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23772    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23773     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23774    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23775     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23776    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23777     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23778    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23779     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23780    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23781     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23782    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23783     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23784    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23785     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23786    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23787     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23788    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23789     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23790    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23791     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23792    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23794   esac
23795 done # for ac_tag
23798 { (exit 0); exit 0; }
23799 _ACEOF
23800 chmod +x $CONFIG_STATUS
23801 ac_clean_files=$ac_clean_files_save
23804 # configure is writing to config.log, and then calls config.status.
23805 # config.status does its own redirection, appending to config.log.
23806 # Unfortunately, on DOS this fails, as config.log is still kept open
23807 # by configure, so config.status won't be able to write to it; its
23808 # output is simply discarded.  So we exec the FD to /dev/null,
23809 # effectively closing config.log, so it can be properly (re)opened and
23810 # appended to by config.status.  When coming back to configure, we
23811 # need to make the FD available again.
23812 if test "$no_create" != yes; then
23813   ac_cs_success=:
23814   ac_config_status_args=
23815   test "$silent" = yes &&
23816     ac_config_status_args="$ac_config_status_args --quiet"
23817   exec 5>/dev/null
23818   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23819   exec 5>>config.log
23820   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23821   # would make configure fail if this is the last instruction.
23822   $ac_cs_success || { (exit 1); exit 1; }
23826 # CONFIG_SUBDIRS section.
23828 if test "$no_recursion" != yes; then
23830   # Remove --cache-file and --srcdir arguments so they do not pile up.
23831   ac_sub_configure_args=
23832   ac_prev=
23833   eval "set x $ac_configure_args"
23834   shift
23835   for ac_arg
23836   do
23837     if test -n "$ac_prev"; then
23838       ac_prev=
23839       continue
23840     fi
23841     case $ac_arg in
23842     -cache-file | --cache-file | --cache-fil | --cache-fi \
23843     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23844       ac_prev=cache_file ;;
23845     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23846     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23847     | --c=*)
23848       ;;
23849     --config-cache | -C)
23850       ;;
23851     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23852       ac_prev=srcdir ;;
23853     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23854       ;;
23855     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23856       ac_prev=prefix ;;
23857     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23858       ;;
23859     *)
23860       case $ac_arg in
23861       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23862       esac
23863       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23864     esac
23865   done
23867   # Always prepend --prefix to ensure using the same prefix
23868   # in subdir configurations.
23869   ac_arg="--prefix=$prefix"
23870   case $ac_arg in
23871   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23872   esac
23873   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23875   ac_popdir=`pwd`
23876   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23878     # Do not complain, so a configure script can configure whichever
23879     # parts of a large source tree are present.
23880     test -d "$srcdir/$ac_dir" || continue
23882     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23883     echo "$as_me:$LINENO: $ac_msg" >&5
23884     echo "$ac_msg" >&6
23885     { as_dir="$ac_dir"
23886   case $as_dir in #(
23887   -*) as_dir=./$as_dir;;
23888   esac
23889   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23890     as_dirs=
23891     while :; do
23892       case $as_dir in #(
23893       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23894       *) as_qdir=$as_dir;;
23895       esac
23896       as_dirs="'$as_qdir' $as_dirs"
23897       as_dir=`$as_dirname -- "$as_dir" ||
23898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23899          X"$as_dir" : 'X\(//\)[^/]' \| \
23900          X"$as_dir" : 'X\(//\)$' \| \
23901          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23902 echo X"$as_dir" |
23903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23904             s//\1/
23905             q
23906           }
23907           /^X\(\/\/\)[^/].*/{
23908             s//\1/
23909             q
23910           }
23911           /^X\(\/\/\)$/{
23912             s//\1/
23913             q
23914           }
23915           /^X\(\/\).*/{
23916             s//\1/
23917             q
23918           }
23919           s/.*/./; q'`
23920       test -d "$as_dir" && break
23921     done
23922     test -z "$as_dirs" || eval "mkdir $as_dirs"
23923   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23925    { (exit 1); exit 1; }; }; }
23926     ac_builddir=.
23928 case "$ac_dir" in
23929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23932   # A ".." for each directory in $ac_dir_suffix.
23933   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23934   case $ac_top_builddir_sub in
23935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23937   esac ;;
23938 esac
23939 ac_abs_top_builddir=$ac_pwd
23940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23941 # for backward compatibility:
23942 ac_top_builddir=$ac_top_build_prefix
23944 case $srcdir in
23945   .)  # We are building in place.
23946     ac_srcdir=.
23947     ac_top_srcdir=$ac_top_builddir_sub
23948     ac_abs_top_srcdir=$ac_pwd ;;
23949   [\\/]* | ?:[\\/]* )  # Absolute name.
23950     ac_srcdir=$srcdir$ac_dir_suffix;
23951     ac_top_srcdir=$srcdir
23952     ac_abs_top_srcdir=$srcdir ;;
23953   *) # Relative name.
23954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23955     ac_top_srcdir=$ac_top_build_prefix$srcdir
23956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23957 esac
23958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23961     cd "$ac_dir"
23963     # Check for guested configure; otherwise get Cygnus style configure.
23964     if test -f "$ac_srcdir/configure.gnu"; then
23965       ac_sub_configure=$ac_srcdir/configure.gnu
23966     elif test -f "$ac_srcdir/configure"; then
23967       ac_sub_configure=$ac_srcdir/configure
23968     elif test -f "$ac_srcdir/configure.in"; then
23969       # This should be Cygnus configure.
23970       ac_sub_configure=$ac_aux_dir/configure
23971     else
23972       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23974       ac_sub_configure=
23975     fi
23977     # The recursion is here.
23978     if test -n "$ac_sub_configure"; then
23979       # Make the cache file name correct relative to the subdirectory.
23980       case $cache_file in
23981       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23982       *) # Relative name.
23983         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23984       esac
23986       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23987 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23988       # The eval makes quoting arguments work.
23989       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23990            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23991         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23992 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23993    { (exit 1); exit 1; }; }
23994     fi
23996     cd "$ac_popdir"
23997   done