AVX-512: Added intrinsic for cvtph2ps.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 LLVM_CROSS_COMPILING
679 BUILD_CC
680 BUILD_EXEEXT
681 BUILD_CXX
682 CVSBUILD
683 ENABLE_LIBCPP
684 ENABLE_CXX11
685 ENABLE_SPLIT_DWARF
686 ENABLE_CLANG_ARCMT
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
689 ENABLE_OPTIMIZED
690 ENABLE_PROFILING
691 DISABLE_ASSERTIONS
692 ENABLE_WERROR
693 ENABLE_EXPENSIVE_CHECKS
694 EXPENSIVE_CHECKS
695 DEBUG_RUNTIME
696 DEBUG_SYMBOLS
697 KEEP_SYMBOLS
698 JIT
699 TARGET_HAS_JIT
700 ENABLE_DOCS
701 ENABLE_DOXYGEN
702 LLVM_ENABLE_THREADS
703 ENABLE_PTHREADS
704 LLVM_ENABLE_ZLIB
705 ENABLE_PIC
706 ENABLE_SHARED
707 ENABLE_EMBED_STDCXX
708 ENABLE_TIMESTAMPS
709 TARGETS_TO_BUILD
710 LLVM_ENUM_TARGETS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
714 OPTIMIZE_OPTION
715 EXTRA_OPTIONS
716 EXTRA_LD_OPTIONS
717 CLANG_SRC_ROOT
718 BINUTILS_INCDIR
719 INTERNAL_PREFIX
720 NM
721 ifGNUmake
722 LN_S
723 CMP
724 CP
725 DATE
726 FIND
727 GREP
728 MKDIR
729 MV
730 RANLIB
731 AR
732 RM
733 SED
734 TAR
735 BINPWD
736 GRAPHVIZ
737 DOT
738 FDP
739 NEATO
740 TWOPI
741 CIRCO
742 GV
743 DOTTY
744 XDOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
771 NO_UNINITIALIZED
772 PYTHON
773 USE_UDIS86
774 USE_OPROFILE
775 USE_INTEL_JITEVENTS
776 XML2CONFIG
777 LIBXML2_LIBS
778 LIBXML2_INC
779 CXXCPP
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_DATADIR
789 LLVM_DOCSDIR
790 LLVM_ETCDIR
791 LLVM_INCLUDEDIR
792 LLVM_INFODIR
793 LLVM_MANDIR
794 LLVM_CONFIGTIME
795 BINDINGS_TO_BUILD
796 ALL_BINDINGS
797 OCAML_LIBDIR
798 ENABLE_VISIBILITY_INLINES_HIDDEN
799 RPATH
800 RDYNAMIC
801 program_prefix
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805       ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 CXX
813 CXXFLAGS
814 CCC
815 CPP
816 CXXCPP'
817 ac_subdirs_all='projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/safecode
823 tools/polly'
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875   # If the previous option needs an argument, assign it.
876   if test -n "$ac_prev"; then
877     eval $ac_prev=\$ac_option
878     ac_prev=
879     continue
880   fi
881
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949    { (exit 1); exit 1; }; }
950     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951     eval enable_$ac_feature=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package| sed 's/-/_/g'`
1148     eval with_$ac_package=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package | sed 's/-/_/g'`
1157     eval with_$ac_package=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187    { (exit 1); exit 1; }; }
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   { echo "$as_me: error: missing argument to $ac_option" >&2
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Be sure to have absolute directory names.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { echo "$as_me: error: Working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$0" : 'X\(//\)[^/]' \| \
1264          X"$0" : 'X\(//\)$' \| \
1265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 echo X"$0" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR           user executables [EPREFIX/bin]
1360   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR       program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR           object code libraries [EPREFIX/lib]
1366   --includedir=DIR       C header files [PREFIX/include]
1367   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR          info documentation [DATAROOTDIR/info]
1371   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR           man documentation [DATAROOTDIR/man]
1373   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1374   --htmldir=DIR          html documentation [DOCDIR]
1375   --dvidir=DIR           dvi documentation [DOCDIR]
1376   --pdfdir=DIR           pdf documentation [DOCDIR]
1377   --psdir=DIR            ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385   --target=TARGET   configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-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-libedit        Use libedit if available (default is YES)
1455   --enable-libffi         Check for the presence of libffi (default is NO)
1456   --enable-ltdl-install   install libltdl
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-optimize-option  Select the compiler options to use for optimized
1462                           builds
1463   --with-extra-options    Specify additional options to compile LLVM with
1464   --with-extra-ld-options Specify additional options to link LLVM with
1465   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1466                           is stdlib)
1467   --with-clang-srcdir     Directory to the out-of-tree Clang source
1468   --with-clang-resource-dir
1469                           Relative directory from the Clang binary for
1470                           resource files
1471   --with-c-include-dirs   Colon separated list of directories clang will
1472                           search for headers
1473   --with-gcc-toolchain    Directory where gcc is installed.
1474   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1475   --with-binutils-include Specify path to binutils/include/ containing
1476                           plugin-api.h file for gold plugin.
1477   --with-bug-report-url   Specify the URL where bug reports should be
1478                           submitted (default=http://llvm.org/bugs/)
1479   --with-internal-prefix  Installation directory for internal files
1480   --with-python           path to python
1481   --with-udis86=<path>    Use udis86 external x86 disassembler library
1482   --with-oprofile=<prefix>
1483                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1484   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1485
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493               you have headers in a nonstandard directory <include dir>
1494   CXX         C++ compiler command
1495   CXXFLAGS    C++ compiler flags
1496   CPP         C preprocessor
1497   CXXCPP      C++ preprocessor
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <http://llvm.org/bugs/>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508   # If there are subdirs, report their specific --help.
1509   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510     test -d "$ac_dir" || continue
1511     ac_builddir=.
1512
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517   # A ".." for each directory in $ac_dir_suffix.
1518   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519   case $ac_top_builddir_sub in
1520   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522   esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1528
1529 case $srcdir in
1530   .)  # We are building in place.
1531     ac_srcdir=.
1532     ac_top_srcdir=$ac_top_builddir_sub
1533     ac_abs_top_srcdir=$ac_pwd ;;
1534   [\\/]* | ?:[\\/]* )  # Absolute name.
1535     ac_srcdir=$srcdir$ac_dir_suffix;
1536     ac_top_srcdir=$srcdir
1537     ac_abs_top_srcdir=$srcdir ;;
1538   *) # Relative name.
1539     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540     ac_top_srcdir=$ac_top_build_prefix$srcdir
1541     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544
1545     cd "$ac_dir" || { ac_status=$?; continue; }
1546     # Check for guested configure.
1547     if test -f "$ac_srcdir/configure.gnu"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550     elif test -f "$ac_srcdir/configure"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure" --help=recursive
1553     else
1554       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555     fi || ac_status=$?
1556     cd "$ac_pwd" || { ac_status=$?; break; }
1557   done
1558 fi
1559
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562   cat <<\_ACEOF
1563 LLVM configure 3.5svn
1564 generated by GNU Autoconf 2.60
1565
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570
1571 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1572 _ACEOF
1573   exit
1574 fi
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1578
1579 It was created by LLVM $as_me 3.5svn, which was
1580 generated by GNU Autoconf 2.60.  Invocation command line was
1581
1582   $ $0 $@
1583
1584 _ACEOF
1585 exec 5>>config.log
1586 {
1587 cat <<_ASUNAME
1588 ## --------- ##
1589 ## Platform. ##
1590 ## --------- ##
1591
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1600
1601 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1602 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1605 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1606 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1607 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1608
1609 _ASUNAME
1610
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   echo "PATH: $as_dir"
1617 done
1618 IFS=$as_save_IFS
1619
1620 } >&5
1621
1622 cat >&5 <<_ACEOF
1623
1624
1625 ## ----------- ##
1626 ## Core tests. ##
1627 ## ----------- ##
1628
1629 _ACEOF
1630
1631
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_configure_args=
1638 ac_configure_args0=
1639 ac_configure_args1=
1640 ac_must_keep_next=false
1641 for ac_pass in 1 2
1642 do
1643   for ac_arg
1644   do
1645     case $ac_arg in
1646     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648     | -silent | --silent | --silen | --sile | --sil)
1649       continue ;;
1650     *\'*)
1651       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1652     esac
1653     case $ac_pass in
1654     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655     2)
1656       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657       if test $ac_must_keep_next = true; then
1658         ac_must_keep_next=false # Got value, back to normal.
1659       else
1660         case $ac_arg in
1661           *=* | --config-cache | -C | -disable-* | --disable-* \
1662           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664           | -with-* | --with-* | -without-* | --without-* | --x)
1665             case "$ac_configure_args0 " in
1666               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667             esac
1668             ;;
1669           -* ) ac_must_keep_next=true ;;
1670         esac
1671       fi
1672       ac_configure_args="$ac_configure_args '$ac_arg'"
1673       ;;
1674     esac
1675   done
1676 done
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log.  We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686   # Save into config.log some information that might help in debugging.
1687   {
1688     echo
1689
1690     cat <<\_ASBOX
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1694 _ASBOX
1695     echo
1696     # The following way of writing the cache mishandles newlines in values,
1697 (
1698   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699     eval ac_val=\$$ac_var
1700     case $ac_val in #(
1701     *${as_nl}*)
1702       case $ac_var in #(
1703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1705       esac
1706       case $ac_var in #(
1707       _ | IFS | as_nl) ;; #(
1708       *) $as_unset $ac_var ;;
1709       esac ;;
1710     esac
1711   done
1712   (set) 2>&1 |
1713     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714     *${as_nl}ac_space=\ *)
1715       sed -n \
1716         "s/'\''/'\''\\\\'\'''\''/g;
1717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718       ;; #(
1719     *)
1720       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721       ;;
1722     esac |
1723     sort
1724 )
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1731 _ASBOX
1732     echo
1733     for ac_var in $ac_subst_vars
1734     do
1735       eval ac_val=\$$ac_var
1736       case $ac_val in
1737       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738       esac
1739       echo "$ac_var='\''$ac_val'\''"
1740     done | sort
1741     echo
1742
1743     if test -n "$ac_subst_files"; then
1744       cat <<\_ASBOX
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1748 _ASBOX
1749       echo
1750       for ac_var in $ac_subst_files
1751       do
1752         eval ac_val=\$$ac_var
1753         case $ac_val in
1754         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755         esac
1756         echo "$ac_var='\''$ac_val'\''"
1757       done | sort
1758       echo
1759     fi
1760
1761     if test -s confdefs.h; then
1762       cat <<\_ASBOX
1763 ## ----------- ##
1764 ## confdefs.h. ##
1765 ## ----------- ##
1766 _ASBOX
1767       echo
1768       cat confdefs.h
1769       echo
1770     fi
1771     test "$ac_signal" != 0 &&
1772       echo "$as_me: caught signal $ac_signal"
1773     echo "$as_me: exit $exit_status"
1774   } >&5
1775   rm -f core *.core core.conftest.* &&
1776     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1777     exit $exit_status
1778 ' 0
1779 for ac_signal in 1 2 13 15; do
1780   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 done
1782 ac_signal=0
1783
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1786
1787 # Predefined preprocessor variables.
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 _ACEOF
1812
1813
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817   set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 else
1821   set x "$ac_default_prefix/share/config.site" \
1822         "$ac_default_prefix/etc/config.site"
1823 fi
1824 shift
1825 for ac_site_file
1826 do
1827   if test -r "$ac_site_file"; then
1828     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830     sed 's/^/| /' "$ac_site_file" >&5
1831     . "$ac_site_file"
1832   fi
1833 done
1834
1835 if test -r "$cache_file"; then
1836   # Some versions of bash will fail to source /dev/null (special
1837   # files actually), so we avoid doing that.
1838   if test -f "$cache_file"; then
1839     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1841     case $cache_file in
1842       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843       *)                      . "./$cache_file";;
1844     esac
1845   fi
1846 else
1847   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1849   >$cache_file
1850 fi
1851
1852 # Check that the precious variables saved in the cache have kept the same
1853 # value.
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857   eval ac_new_set=\$ac_env_${ac_var}_set
1858   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859   eval ac_new_val=\$ac_env_${ac_var}_value
1860   case $ac_old_set,$ac_new_set in
1861     set,)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,set)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,);;
1870     *)
1871       if test "x$ac_old_val" != "x$ac_new_val"; then
1872         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1875 echo "$as_me:   former value:  $ac_old_val" >&2;}
1876         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1877 echo "$as_me:   current value: $ac_new_val" >&2;}
1878         ac_cache_corrupted=:
1879       fi;;
1880   esac
1881   # Pass precious variables to config.status.
1882   if test "$ac_new_set" = set; then
1883     case $ac_new_val in
1884     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     *) ac_arg=$ac_var=$ac_new_val ;;
1886     esac
1887     case " $ac_configure_args " in
1888       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1889       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890     esac
1891   fi
1892 done
1893 if $ac_cache_corrupted; then
1894   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898    { (exit 1); exit 1; }; }
1899 fi
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
1931
1932
1933 cat >>confdefs.h <<\_ACEOF
1934 #define LLVM_VERSION_MAJOR 3
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<\_ACEOF
1939 #define LLVM_VERSION_MINOR 5
1940 _ACEOF
1941
1942
1943 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1944
1945
1946
1947
1948
1949
1950
1951 ac_aux_dir=
1952 for ac_dir in autoconf "$srcdir"/autoconf; do
1953   if test -f "$ac_dir/install-sh"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/install-sh -c"
1956     break
1957   elif test -f "$ac_dir/install.sh"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/install.sh -c"
1960     break
1961   elif test -f "$ac_dir/shtool"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/shtool install -c"
1964     break
1965   fi
1966 done
1967 if test -z "$ac_aux_dir"; then
1968   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1969 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1970    { (exit 1); exit 1; }; }
1971 fi
1972
1973 # These three variables are undocumented and unsupported,
1974 # and are intended to be withdrawn in a future Autoconf release.
1975 # They can cause serious problems if a builder's source tree is in a directory
1976 # whose full name contains unusual characters.
1977 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1978 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1979 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1980
1981
1982
1983 if test ${srcdir} != "." ; then
1984   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1985     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1986 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1987    { (exit 1); exit 1; }; }
1988   fi
1989 fi
1990
1991 : ${CFLAGS=}
1992 : ${CXXFLAGS=}
1993
1994 ac_ext=c
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000   for ac_prog in clang gcc
2001   do
2002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$CC"; then
2010   ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025 IFS=$as_save_IFS
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   { echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6; }
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038
2039     test -n "$CC" && break
2040   done
2041 fi
2042 if test -z "$CC"; then
2043   ac_ct_CC=$CC
2044   for ac_prog in clang gcc
2045 do
2046   # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_CC"; then
2054   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2063     ac_cv_prog_ac_ct_CC="$ac_prog"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069 IFS=$as_save_IFS
2070
2071 fi
2072 fi
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 else
2078   { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080 fi
2081
2082
2083   test -n "$ac_ct_CC" && break
2084 done
2085
2086   if test "x$ac_ct_CC" = x; then
2087     CC=""
2088   else
2089     case $cross_compiling:$ac_tool_warned in
2090 yes:)
2091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet.  If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&5
2094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet.  If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2097 ac_tool_warned=yes ;;
2098 esac
2099     CC=$ac_ct_CC
2100   fi
2101 fi
2102
2103
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler --version >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123 { (ac_try="$ac_compiler -v >&5"
2124 case "(($ac_try" in
2125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126   *) ac_try_echo=$ac_try;;
2127 esac
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129   (eval "$ac_compiler -v >&5") 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133 { (ac_try="$ac_compiler -V >&5"
2134 case "(($ac_try" in
2135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136   *) ac_try_echo=$ac_try;;
2137 esac
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139   (eval "$ac_compiler -V >&5") 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2163 # of exeext.
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 #
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort.  b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 #
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions.  Remove them first so a
2175 # subsequent execution test works.
2176 ac_rmfiles=
2177 for ac_file in $ac_files
2178 do
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2182   esac
2183 done
2184 rm -f $ac_rmfiles
2185
2186 if { (ac_try="$ac_link_default"
2187 case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192   (eval "$ac_link_default") 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }; then
2196   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2200 # Autoconf.
2201 for ac_file in $ac_files
2202 do
2203   test -f "$ac_file" || continue
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2206         ;;
2207     [ab].out )
2208         # We found the default executable, but exeext='' is most
2209         # certainly right.
2210         break;;
2211     *.* )
2212         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213         then :; else
2214            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215         fi
2216         # We set ac_cv_exeext here because the later test for it is not
2217         # safe: cross compilers may not add the suffix if given an `-o'
2218         # argument, so we may need to know it at that point already.
2219         # Even if this section looks crufty: it has the advantage of
2220         # actually working.
2221         break;;
2222     * )
2223         break;;
2224   esac
2225 done
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2227
2228 else
2229   echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236    { (exit 77); exit 77; }; }
2237 fi
2238
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2242
2243 # Check that the compiler produces executables we can run.  If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250   if { ac_try='./$ac_file'
2251   { (case "(($ac_try" in
2252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253   *) ac_try_echo=$ac_try;;
2254 esac
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256   (eval "$ac_try") 2>&5
2257   ac_status=$?
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; }; then
2260     cross_compiling=no
2261   else
2262     if test "$cross_compiling" = maybe; then
2263         cross_compiling=yes
2264     else
2265         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271    { (exit 1); exit 1; }; }
2272     fi
2273   fi
2274 fi
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run.  If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2286
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2290 case "(($ac_try" in
2291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292   *) ac_try_echo=$ac_try;;
2293 esac
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295   (eval "$ac_link") 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; then
2299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 # `rm'.
2303 for ac_file in conftest.exe conftest conftest.*; do
2304   test -f "$ac_file" || continue
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308           break;;
2309     * ) break;;
2310   esac
2311 done
2312 else
2313   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317    { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338
2339 int
2340 main ()
2341 {
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_compile") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; then
2358   for ac_file in conftest.o conftest.obj conftest.*; do
2359   test -f "$ac_file" || continue;
2360   case $ac_file in
2361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2363        break;;
2364   esac
2365 done
2366 else
2367   echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374    { (exit 1); exit 1; }; }
2375 fi
2376
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 fi
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2382 ac_objext=$OBJEXT
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h.  */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h.  */
2394
2395 int
2396 main ()
2397 {
2398 #ifndef __GNUC__
2399        choke me
2400 #endif
2401
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2408 case "(($ac_try" in
2409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410   *) ac_try_echo=$ac_try;;
2411 esac
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413   (eval "$ac_compile") 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2421   { (case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_try") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; } &&
2430          { ac_try='test -s conftest.$ac_objext'
2431   { (case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436   (eval "$ac_try") 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }; }; then
2440   ac_compiler_gnu=yes
2441 else
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445         ac_compiler_gnu=no
2446 fi
2447
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2450
2451 fi
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   ac_save_c_werror_flag=$ac_c_werror_flag
2463    ac_c_werror_flag=yes
2464    ac_cv_prog_cc_g=no
2465    CFLAGS="-g"
2466    cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h.  */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h.  */
2472
2473 int
2474 main ()
2475 {
2476
2477   ;
2478   return 0;
2479 }
2480 _ACEOF
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_compile") 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
2492   cat conftest.err >&5
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_try") 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520         CFLAGS=""
2521       cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527
2528 int
2529 main ()
2530 {
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2538 case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_compile") 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551   { (case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_try") 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   :
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575         ac_c_werror_flag=$ac_save_c_werror_flag
2576          CFLAGS="-g"
2577          cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 int
2585 main ()
2586 {
2587
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2594 case "(($ac_try" in
2595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596   *) ac_try_echo=$ac_try;;
2597 esac
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599   (eval "$ac_compile") 2>conftest.er1
2600   ac_status=$?
2601   grep -v '^ *+' conftest.er1 >conftest.err
2602   rm -f conftest.er1
2603   cat conftest.err >&5
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } &&
2606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607   { (case "(($ac_try" in
2608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609   *) ac_try_echo=$ac_try;;
2610 esac
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612   (eval "$ac_try") 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622   (eval "$ac_try") 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626   ac_cv_prog_cc_g=yes
2627 else
2628   echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631
2632 fi
2633
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 fi
2636
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641    ac_c_werror_flag=$ac_save_c_werror_flag
2642 fi
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646   CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648   if test "$GCC" = yes; then
2649     CFLAGS="-g -O2"
2650   else
2651     CFLAGS="-g"
2652   fi
2653 else
2654   if test "$GCC" = yes; then
2655     CFLAGS="-O2"
2656   else
2657     CFLAGS=
2658   fi
2659 fi
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   ac_cv_prog_cc_c89=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681      char **p;
2682      int i;
2683 {
2684   return p[i];
2685 }
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2687 {
2688   char *s;
2689   va_list v;
2690   va_start (v,p);
2691   s = g (p, va_arg (v,int));
2692   va_end (v);
2693   return s;
2694 }
2695
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2697    function prototypes and stuff, but not '\xHH' hex character constants.
2698    These don't provoke an error unfortunately, instead are silently treated
2699    as 'x'.  The following induces an error, until -std is added to get
2700    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2701    array size at least.  It's necessary to write '\x00'==0 to get something
2702    that's true only with -std.  */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706    inside strings and character constants.  */
2707 #define FOO(x) 'x'
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714 int argc;
2715 char **argv;
2716 int
2717 main ()
2718 {
2719 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 do
2727   CC="$ac_save_CC $ac_arg"
2728   rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732   *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735   (eval "$ac_compile") 2>conftest.er1
2736   ac_status=$?
2737   grep -v '^ *+' conftest.er1 >conftest.err
2738   rm -f conftest.er1
2739   cat conftest.err >&5
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); } &&
2742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2743   { (case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_try") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_try") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   ac_cv_prog_cc_c89=$ac_arg
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext
2771   test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 done
2773 rm -f conftest.$ac_ext
2774 CC=$ac_save_CC
2775
2776 fi
2777 # AC_CACHE_VAL
2778 case "x$ac_cv_prog_cc_c89" in
2779   x)
2780     { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2782   xno)
2783     { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2785   *)
2786     CC="$CC $ac_cv_prog_cc_c89"
2787     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2789 esac
2790
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798 ac_ext=cpp
2799 ac_cpp='$CXXCPP $CPPFLAGS'
2800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2803 if test -z "$CXX"; then
2804   if test -n "$CCC"; then
2805     CXX=$CCC
2806   else
2807     if test -n "$ac_tool_prefix"; then
2808   for ac_prog in clang++ g++
2809   do
2810     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CXX+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$CXX"; then
2818   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CXX=$ac_cv_prog_CXX
2838 if test -n "$CXX"; then
2839   { echo "$as_me:$LINENO: result: $CXX" >&5
2840 echo "${ECHO_T}$CXX" >&6; }
2841 else
2842   { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847     test -n "$CXX" && break
2848   done
2849 fi
2850 if test -z "$CXX"; then
2851   ac_ct_CXX=$CXX
2852   for ac_prog in clang++ g++
2853 do
2854   # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   if test -n "$ac_ct_CXX"; then
2862   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869   for ac_exec_ext in '' $ac_executable_extensions; do
2870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871     ac_cv_prog_ac_ct_CXX="$ac_prog"
2872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882 if test -n "$ac_ct_CXX"; then
2883   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 else
2886   { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2888 fi
2889
2890
2891   test -n "$ac_ct_CXX" && break
2892 done
2893
2894   if test "x$ac_ct_CXX" = x; then
2895     CXX="g++"
2896   else
2897     case $cross_compiling:$ac_tool_warned in
2898 yes:)
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet.  If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet.  If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907     CXX=$ac_ct_CXX
2908   fi
2909 fi
2910
2911   fi
2912 fi
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler --version >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926 { (ac_try="$ac_compiler -v >&5"
2927 case "(($ac_try" in
2928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929   *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932   (eval "$ac_compiler -v >&5") 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936 { (ac_try="$ac_compiler -V >&5"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compiler -V >&5") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }
2946
2947 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952   cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962 #ifndef __GNUC__
2963        choke me
2964 #endif
2965
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_compile") 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2985   { (case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_try") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; } &&
2994          { ac_try='test -s conftest.$ac_objext'
2995   { (case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000   (eval "$ac_try") 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004   ac_compiler_gnu=yes
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009         ac_compiler_gnu=no
3010 fi
3011
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3014
3015 fi
3016 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3018 GXX=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CXXFLAGS=${CXXFLAGS+set}
3020 ac_save_CXXFLAGS=$CXXFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3022 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cxx_g+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3027    ac_cxx_werror_flag=yes
3028    ac_cv_prog_cxx_g=no
3029    CXXFLAGS="-g"
3030    cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036
3037 int
3038 main ()
3039 {
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compile") 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; } &&
3069          { ac_try='test -s conftest.$ac_objext'
3070   { (case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_try") 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079   ac_cv_prog_cxx_g=yes
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084         CXXFLAGS=""
3085       cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } &&
3114          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115   { (case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_try") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   :
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140          CXXFLAGS="-g"
3141          cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_compile") 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } &&
3170          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3171   { (case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_try") 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest.$ac_objext'
3181   { (case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_try") 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; }; then
3190   ac_cv_prog_cxx_g=yes
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 fi
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210   CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212   if test "$GXX" = yes; then
3213     CXXFLAGS="-g -O2"
3214   else
3215     CXXFLAGS="-g"
3216   fi
3217 else
3218   if test "$GXX" = yes; then
3219     CXXFLAGS="-O2"
3220   else
3221     CXXFLAGS=
3222   fi
3223 fi
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3239   CPP=
3240 fi
3241 if test -z "$CPP"; then
3242   if test "${ac_cv_prog_CPP+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245       # Double quotes because CPP needs to be expanded
3246     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3247     do
3248       ac_preproc_ok=false
3249 for ac_c_preproc_warn_flag in '' yes
3250 do
3251   # Use a header file that comes with gcc, so configuring glibc
3252   # with a fresh cross-compiler works.
3253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254   # <limits.h> exists even on freestanding compilers.
3255   # On the NeXT, cc -E runs the code through the compiler's parser,
3256   # not just through cpp. "Syntax error" is here to catch this case.
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263 #ifdef __STDC__
3264 # include <limits.h>
3265 #else
3266 # include <assert.h>
3267 #endif
3268                      Syntax error
3269 _ACEOF
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null; then
3283   if test -s conftest.err; then
3284     ac_cpp_err=$ac_c_preproc_warn_flag
3285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3286   else
3287     ac_cpp_err=
3288   fi
3289 else
3290   ac_cpp_err=yes
3291 fi
3292 if test -z "$ac_cpp_err"; then
3293   :
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298   # Broken: fails on valid input.
3299 continue
3300 fi
3301
3302 rm -f conftest.err conftest.$ac_ext
3303
3304   # OK, works on sane cases.  Now check whether nonexistent headers
3305   # can be detected and how.
3306   cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312 #include <ac_nonexistent.h>
3313 _ACEOF
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321   ac_status=$?
3322   grep -v '^ *+' conftest.er1 >conftest.err
3323   rm -f conftest.er1
3324   cat conftest.err >&5
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); } >/dev/null; then
3327   if test -s conftest.err; then
3328     ac_cpp_err=$ac_c_preproc_warn_flag
3329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330   else
3331     ac_cpp_err=
3332   fi
3333 else
3334   ac_cpp_err=yes
3335 fi
3336 if test -z "$ac_cpp_err"; then
3337   # Broken: success on invalid input.
3338 continue
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343   # Passes both tests.
3344 ac_preproc_ok=:
3345 break
3346 fi
3347
3348 rm -f conftest.err conftest.$ac_ext
3349
3350 done
3351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352 rm -f conftest.err conftest.$ac_ext
3353 if $ac_preproc_ok; then
3354   break
3355 fi
3356
3357     done
3358     ac_cv_prog_CPP=$CPP
3359
3360 fi
3361   CPP=$ac_cv_prog_CPP
3362 else
3363   ac_cv_prog_CPP=$CPP
3364 fi
3365 { echo "$as_me:$LINENO: result: $CPP" >&5
3366 echo "${ECHO_T}$CPP" >&6; }
3367 ac_preproc_ok=false
3368 for ac_c_preproc_warn_flag in '' yes
3369 do
3370   # Use a header file that comes with gcc, so configuring glibc
3371   # with a fresh cross-compiler works.
3372   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373   # <limits.h> exists even on freestanding compilers.
3374   # On the NeXT, cc -E runs the code through the compiler's parser,
3375   # not just through cpp. "Syntax error" is here to catch this case.
3376   cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 #ifdef __STDC__
3383 # include <limits.h>
3384 #else
3385 # include <assert.h>
3386 #endif
3387                      Syntax error
3388 _ACEOF
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 case "(($ac_try" in
3391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392   *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } >/dev/null; then
3402   if test -s conftest.err; then
3403     ac_cpp_err=$ac_c_preproc_warn_flag
3404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405   else
3406     ac_cpp_err=
3407   fi
3408 else
3409   ac_cpp_err=yes
3410 fi
3411 if test -z "$ac_cpp_err"; then
3412   :
3413 else
3414   echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417   # Broken: fails on valid input.
3418 continue
3419 fi
3420
3421 rm -f conftest.err conftest.$ac_ext
3422
3423   # OK, works on sane cases.  Now check whether nonexistent headers
3424   # can be detected and how.
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 #include <ac_nonexistent.h>
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   # Broken: success on invalid input.
3457 continue
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462   # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466
3467 rm -f conftest.err conftest.$ac_ext
3468
3469 done
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3473   :
3474 else
3475   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3478 See \`config.log' for more details." >&2;}
3479    { (exit 1); exit 1; }; }
3480 fi
3481
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487
3488
3489 if test "$CXX" = "clang++" ; then
3490   { echo "$as_me:$LINENO: checking whether clang works" >&5
3491 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492   ac_ext=cpp
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3497
3498
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include <limits>
3506 #if __has_include (<cxxabi.h>)
3507 #include <cxxabi.h>
3508 #endif
3509 #if __has_include (<unwind.h>)
3510 #include <unwind.h>
3511 #endif
3512
3513 int
3514 main ()
3515 {
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (ac_try="$ac_compile"
3523 case "(($ac_try" in
3524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525   *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528   (eval "$ac_compile") 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3536   { (case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_try") 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; } &&
3545          { ac_try='test -s conftest.$ac_objext'
3546   { (case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_try") 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555
3556   { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3558
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563
3564   { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566   { { 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
3567 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;}
3568    { (exit 1); exit 1; }; }
3569
3570 fi
3571
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573   ac_ext=c
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
3579 fi
3580
3581 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3582 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3583 ac_ext=cpp
3584 ac_cpp='$CXXCPP $CPPFLAGS'
3585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3588
3589 llvm_cv_cxx_compiler=unknown
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596 #if ! __clang__
3597                                     #error
3598                                     #endif
3599
3600 _ACEOF
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_compile") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } &&
3615          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3616   { (case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621   (eval "$ac_try") 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); }; } &&
3625          { ac_try='test -s conftest.$ac_objext'
3626   { (case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_try") 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; }; then
3635   llvm_cv_cxx_compiler=clang
3636 else
3637   echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640         cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 #if ! __GNUC__
3647                                                        #error
3648                                                        #endif
3649
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } &&
3665          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666   { (case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_try") 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest.$ac_objext'
3676   { (case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_try") 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   llvm_cv_cxx_compiler=gcc
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690
3691 fi
3692
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 fi
3695
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
3703 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3704 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3705
3706
3707
3708 if test -d ${srcdir}/projects/test-suite ; then
3709   subdirs="$subdirs projects/test-suite"
3710
3711 fi
3712
3713 if test -d ${srcdir}/projects/llvm-test ; then
3714   subdirs="$subdirs projects/llvm-test"
3715
3716 fi
3717
3718 if test -d ${srcdir}/projects/poolalloc ; then
3719   subdirs="$subdirs projects/poolalloc"
3720
3721 fi
3722
3723 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3724   subdirs="$subdirs projects/llvm-poolalloc"
3725
3726 fi
3727
3728 for i in `ls ${srcdir}/projects`
3729 do
3730   if test -d ${srcdir}/projects/${i} ; then
3731     case ${i} in
3732       sample)       subdirs="$subdirs projects/sample"
3733     ;;
3734       safecode)     subdirs="$subdirs projects/safecode"
3735  ;;
3736       compiler-rt)       ;;
3737       test-suite)     ;;
3738       llvm-test)      ;;
3739       poolalloc)      ;;
3740       llvm-poolalloc) ;;
3741       *)
3742         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3743 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3744         ;;
3745     esac
3746   fi
3747 done
3748
3749 # Check whether --enable-polly was given.
3750 if test "${enable_polly+set}" = set; then
3751   enableval=$enable_polly;
3752 else
3753   enableval=default
3754 fi
3755
3756 case "$enableval" in
3757   yes) ENABLE_POLLY=1
3758  ;;
3759   no)  ENABLE_POLLY=0
3760  ;;
3761   default) ENABLE_POLLY=1
3762  ;;
3763   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3764 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3765    { (exit 1); exit 1; }; } ;;
3766 esac
3767
3768
3769 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3770   LLVM_HAS_POLLY=1
3771
3772   subdirs="$subdirs tools/polly"
3773
3774 fi
3775
3776
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3780 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3781    { (exit 1); exit 1; }; }
3782
3783 { echo "$as_me:$LINENO: checking build system type" >&5
3784 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3785 if test "${ac_cv_build+set}" = set; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   ac_build_alias=$build_alias
3789 test "x$ac_build_alias" = x &&
3790   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3791 test "x$ac_build_alias" = x &&
3792   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3793 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3794    { (exit 1); exit 1; }; }
3795 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3796   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3797 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3798    { (exit 1); exit 1; }; }
3799
3800 fi
3801 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3802 echo "${ECHO_T}$ac_cv_build" >&6; }
3803 case $ac_cv_build in
3804 *-*-*) ;;
3805 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3806 echo "$as_me: error: invalid value of canonical build" >&2;}
3807    { (exit 1); exit 1; }; };;
3808 esac
3809 build=$ac_cv_build
3810 ac_save_IFS=$IFS; IFS='-'
3811 set x $ac_cv_build
3812 shift
3813 build_cpu=$1
3814 build_vendor=$2
3815 shift; shift
3816 # Remember, the first character of IFS is used to create $*,
3817 # except with old shells:
3818 build_os=$*
3819 IFS=$ac_save_IFS
3820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3821
3822
3823 { echo "$as_me:$LINENO: checking host system type" >&5
3824 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3825 if test "${ac_cv_host+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   if test "x$host_alias" = x; then
3829   ac_cv_host=$ac_cv_build
3830 else
3831   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3832     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3833 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3834    { (exit 1); exit 1; }; }
3835 fi
3836
3837 fi
3838 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6; }
3840 case $ac_cv_host in
3841 *-*-*) ;;
3842 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3843 echo "$as_me: error: invalid value of canonical host" >&2;}
3844    { (exit 1); exit 1; }; };;
3845 esac
3846 host=$ac_cv_host
3847 ac_save_IFS=$IFS; IFS='-'
3848 set x $ac_cv_host
3849 shift
3850 host_cpu=$1
3851 host_vendor=$2
3852 shift; shift
3853 # Remember, the first character of IFS is used to create $*,
3854 # except with old shells:
3855 host_os=$*
3856 IFS=$ac_save_IFS
3857 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3858
3859
3860 { echo "$as_me:$LINENO: checking target system type" >&5
3861 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3862 if test "${ac_cv_target+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   if test "x$target_alias" = x; then
3866   ac_cv_target=$ac_cv_host
3867 else
3868   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3869     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3870 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3871    { (exit 1); exit 1; }; }
3872 fi
3873
3874 fi
3875 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3876 echo "${ECHO_T}$ac_cv_target" >&6; }
3877 case $ac_cv_target in
3878 *-*-*) ;;
3879 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3880 echo "$as_me: error: invalid value of canonical target" >&2;}
3881    { (exit 1); exit 1; }; };;
3882 esac
3883 target=$ac_cv_target
3884 ac_save_IFS=$IFS; IFS='-'
3885 set x $ac_cv_target
3886 shift
3887 target_cpu=$1
3888 target_vendor=$2
3889 shift; shift
3890 # Remember, the first character of IFS is used to create $*,
3891 # except with old shells:
3892 target_os=$*
3893 IFS=$ac_save_IFS
3894 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3895
3896
3897 # The aliases save the names the user supplied, while $host etc.
3898 # will get canonicalized.
3899 test -n "$target_alias" &&
3900   test "$program_prefix$program_suffix$program_transform_name" = \
3901     NONENONEs,x,x, &&
3902   program_prefix=${target_alias}-
3903
3904 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3905 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3906 if test "${llvm_cv_os_type+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   case $host in
3910   *-*-aix*)
3911     llvm_cv_link_all_option="-Wl,--whole-archive"
3912     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3913     llvm_cv_os_type="AIX"
3914     llvm_cv_platform_type="Unix" ;;
3915   *-*-irix*)
3916     llvm_cv_link_all_option="-Wl,--whole-archive"
3917     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3918     llvm_cv_os_type="IRIX"
3919     llvm_cv_platform_type="Unix" ;;
3920   *-*-cygwin*)
3921     llvm_cv_link_all_option="-Wl,--whole-archive"
3922     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3923     llvm_cv_os_type="Cygwin"
3924     llvm_cv_platform_type="Unix" ;;
3925   *-*-darwin*)
3926     llvm_cv_link_all_option="-Wl,-all_load"
3927     llvm_cv_no_link_all_option="-Wl,-noall_load"
3928     llvm_cv_os_type="Darwin"
3929     llvm_cv_platform_type="Unix" ;;
3930   *-*-minix*)
3931     llvm_cv_link_all_option="-Wl,-all_load"
3932     llvm_cv_no_link_all_option="-Wl,-noall_load"
3933     llvm_cv_os_type="Minix"
3934     llvm_cv_platform_type="Unix" ;;
3935   *-*-freebsd*)
3936     llvm_cv_link_all_option="-Wl,--whole-archive"
3937     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938     llvm_cv_os_type="FreeBSD"
3939     llvm_cv_platform_type="Unix" ;;
3940   *-*-kfreebsd-gnu)
3941     llvm_cv_link_all_option="-Wl,--whole-archive"
3942     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3943     llvm_cv_os_type="GNU/kFreeBSD"
3944     llvm_cv_platform_type="Unix" ;;
3945   *-*-openbsd*)
3946     llvm_cv_link_all_option="-Wl,--whole-archive"
3947     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3948     llvm_cv_os_type="OpenBSD"
3949     llvm_cv_platform_type="Unix" ;;
3950   *-*-netbsd*)
3951     llvm_cv_link_all_option="-Wl,--whole-archive"
3952     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953     llvm_cv_os_type="NetBSD"
3954     llvm_cv_platform_type="Unix" ;;
3955   *-*-dragonfly*)
3956     llvm_cv_link_all_option="-Wl,--whole-archive"
3957     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958     llvm_cv_os_type="DragonFly"
3959     llvm_cv_platform_type="Unix" ;;
3960   *-*-hpux*)
3961     llvm_cv_link_all_option="-Wl,--whole-archive"
3962     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963     llvm_cv_os_type="HP-UX"
3964     llvm_cv_platform_type="Unix" ;;
3965   *-*-interix*)
3966     llvm_cv_link_all_option="-Wl,--whole-archive"
3967     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968     llvm_cv_os_type="Interix"
3969     llvm_cv_platform_type="Unix" ;;
3970   *-*-linux*)
3971     llvm_cv_link_all_option="-Wl,--whole-archive"
3972     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973     llvm_cv_os_type="Linux"
3974     llvm_cv_platform_type="Unix" ;;
3975   *-*-gnu*)
3976     llvm_cv_link_all_option="-Wl,--whole-archive"
3977     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978     llvm_cv_os_type="GNU"
3979     llvm_cv_platform_type="Unix" ;;
3980   *-*-solaris*)
3981     llvm_cv_link_all_option="-Wl,-z,allextract"
3982     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3983     llvm_cv_os_type="SunOS"
3984     llvm_cv_platform_type="Unix" ;;
3985   *-*-auroraux*)
3986     llvm_cv_link_all_option="-Wl,-z,allextract"
3987     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3988     llvm_cv_os_type="AuroraUX"
3989     llvm_cv_platform_type="Unix" ;;
3990   *-*-win32*)
3991     llvm_cv_link_all_option="-Wl,--whole-archive"
3992     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993     llvm_cv_os_type="Win32"
3994     llvm_cv_platform_type="Win32" ;;
3995   *-*-mingw*)
3996     llvm_cv_link_all_option="-Wl,--whole-archive"
3997     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3998     llvm_cv_os_type="MingW"
3999     llvm_cv_platform_type="Win32" ;;
4000   *-*-haiku*)
4001     llvm_cv_link_all_option="-Wl,--whole-archive"
4002     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4003     llvm_cv_os_type="Haiku"
4004     llvm_cv_platform_type="Unix" ;;
4005   *-unknown-eabi*)
4006     llvm_cv_link_all_option="-Wl,--whole-archive"
4007     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008     llvm_cv_os_type="Freestanding"
4009     llvm_cv_platform_type="Unix" ;;
4010   *-unknown-elf*)
4011     llvm_cv_link_all_option="-Wl,--whole-archive"
4012     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013     llvm_cv_os_type="Freestanding"
4014     llvm_cv_platform_type="Unix" ;;
4015   *)
4016     llvm_cv_link_all_option=""
4017     llvm_cv_no_link_all_option=""
4018     llvm_cv_os_type="Unknown"
4019     llvm_cv_platform_type="Unknown" ;;
4020 esac
4021 fi
4022 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4023 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4024
4025 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4026 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4027 if test "${llvm_cv_target_os_type+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   case $target in
4031   *-*-aix*)
4032     llvm_cv_target_os_type="AIX" ;;
4033   *-*-irix*)
4034     llvm_cv_target_os_type="IRIX" ;;
4035   *-*-cygwin*)
4036     llvm_cv_target_os_type="Cygwin" ;;
4037   *-*-darwin*)
4038     llvm_cv_target_os_type="Darwin" ;;
4039   *-*-minix*)
4040     llvm_cv_target_os_type="Minix" ;;
4041   *-*-freebsd*)
4042     llvm_cv_target_os_type="FreeBSD" ;;
4043   *-*-kfreebsd-gnu)
4044     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4045   *-*-openbsd*)
4046     llvm_cv_target_os_type="OpenBSD" ;;
4047   *-*-netbsd*)
4048     llvm_cv_target_os_type="NetBSD" ;;
4049   *-*-dragonfly*)
4050     llvm_cv_target_os_type="DragonFly" ;;
4051   *-*-hpux*)
4052     llvm_cv_target_os_type="HP-UX" ;;
4053   *-*-interix*)
4054     llvm_cv_target_os_type="Interix" ;;
4055   *-*-linux*)
4056     llvm_cv_target_os_type="Linux" ;;
4057   *-*-gnu*)
4058     llvm_cv_target_os_type="GNU" ;;
4059   *-*-solaris*)
4060     llvm_cv_target_os_type="SunOS" ;;
4061   *-*-auroraux*)
4062     llvm_cv_target_os_type="AuroraUX" ;;
4063   *-*-win32*)
4064     llvm_cv_target_os_type="Win32" ;;
4065   *-*-mingw*)
4066     llvm_cv_target_os_type="MingW" ;;
4067   *-*-haiku*)
4068     llvm_cv_target_os_type="Haiku" ;;
4069   *-*-rtems*)
4070     llvm_cv_target_os_type="RTEMS" ;;
4071   *-*-nacl*)
4072     llvm_cv_target_os_type="NativeClient" ;;
4073   *-unknown-eabi*)
4074     llvm_cv_target_os_type="Freestanding" ;;
4075   *)
4076     llvm_cv_target_os_type="Unknown" ;;
4077 esac
4078 fi
4079 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4081
4082 if test "$llvm_cv_os_type" = "Unknown" ; then
4083   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085    { (exit 1); exit 1; }; }
4086 fi
4087
4088 OS=$llvm_cv_os_type
4089
4090 HOST_OS=$llvm_cv_os_type
4091
4092 TARGET_OS=$llvm_cv_target_os_type
4093
4094
4095 LINKALL=$llvm_cv_link_all_option
4096
4097 NOLINKALL=$llvm_cv_no_link_all_option
4098
4099
4100 case $llvm_cv_platform_type in
4101   Unix)
4102
4103 cat >>confdefs.h <<\_ACEOF
4104 #define LLVM_ON_UNIX 1
4105 _ACEOF
4106
4107     LLVM_ON_UNIX=1
4108
4109     LLVM_ON_WIN32=0
4110
4111     ;;
4112   Win32)
4113
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_WIN32 1
4116 _ACEOF
4117
4118     LLVM_ON_UNIX=0
4119
4120     LLVM_ON_WIN32=1
4121
4122     ;;
4123 esac
4124
4125 { echo "$as_me:$LINENO: checking target architecture" >&5
4126 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127 if test "${llvm_cv_target_arch+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   case $target in
4131   i?86-*)                 llvm_cv_target_arch="x86" ;;
4132   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4133   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4134   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4135   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4136   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4137   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4138   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4139   xcore-*)                llvm_cv_target_arch="XCore" ;;
4140   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4141   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4142   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4143   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4144   *)                      llvm_cv_target_arch="Unknown" ;;
4145 esac
4146 fi
4147 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4148 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4149
4150 if test "$llvm_cv_target_arch" = "Unknown" ; then
4151   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4152 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4153 fi
4154
4155 case "$llvm_cv_target_arch" in
4156     x86)     LLVM_NATIVE_ARCH="X86" ;;
4157     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4158     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4159 esac
4160
4161 ARCH=$llvm_cv_target_arch
4162
4163
4164 case $host in
4165   i?86-*)                 host_arch="x86" ;;
4166   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4167   sparc*-*)               host_arch="Sparc" ;;
4168   powerpc*-*)             host_arch="PowerPC" ;;
4169   arm*-*)                 host_arch="ARM" ;;
4170   aarch64*-*)             host_arch="AArch64" ;;
4171   mips-* | mips64-*)      host_arch="Mips" ;;
4172   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4173   xcore-*)                host_arch="XCore" ;;
4174   msp430-*)               host_arch="MSP430" ;;
4175   hexagon-*)              host_arch="Hexagon" ;;
4176   s390x-*)                host_arch="SystemZ" ;;
4177   *)                      host_arch="Unknown" ;;
4178 esac
4179
4180 if test "$host_arch" = "Unknown" ; then
4181   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4182 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4183 fi
4184
4185 HOST_ARCH=$host_arch
4186
4187
4188 if test "$cross_compiling" = yes; then
4189   LLVM_CROSS_COMPILING=1
4190
4191
4192 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4193 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4194 if test "${ac_cv_build_exeext+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4198   ac_cv_build_exeext=.exe
4199 else
4200   ac_build_prefix=${build_alias}-
4201
4202   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_build_prefix}gcc; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$BUILD_CC"; then
4210   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 BUILD_CC=$ac_cv_prog_BUILD_CC
4230 if test -n "$BUILD_CC"; then
4231   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4232 echo "${ECHO_T}$BUILD_CC" >&6; }
4233 else
4234   { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236 fi
4237
4238
4239   if test -z "$BUILD_CC"; then
4240      # Extract the first word of "gcc", so it can be a program name with args.
4241 set dummy gcc; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$BUILD_CC"; then
4248   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257     ac_cv_prog_BUILD_CC="gcc"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 BUILD_CC=$ac_cv_prog_BUILD_CC
4268 if test -n "$BUILD_CC"; then
4269   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4270 echo "${ECHO_T}$BUILD_CC" >&6; }
4271 else
4272   { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4274 fi
4275
4276
4277      if test -z "$BUILD_CC"; then
4278        # Extract the first word of "cc", so it can be a program name with args.
4279 set dummy cc; ac_word=$2
4280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$BUILD_CC"; then
4286   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4287 else
4288   ac_prog_rejected=no
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4291 do
4292   IFS=$as_save_IFS
4293   test -z "$as_dir" && as_dir=.
4294   for ac_exec_ext in '' $ac_executable_extensions; do
4295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4296     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4297        ac_prog_rejected=yes
4298        continue
4299      fi
4300     ac_cv_prog_BUILD_CC="cc"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308 if test $ac_prog_rejected = yes; then
4309   # We found a bogon in the path, so make sure we never use it.
4310   set dummy $ac_cv_prog_BUILD_CC
4311   shift
4312   if test $# != 0; then
4313     # We chose a different compiler from the bogus one.
4314     # However, it has the same basename, so the bogon will be chosen
4315     # first if we set BUILD_CC to just the basename; use the full file name.
4316     shift
4317     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4318   fi
4319 fi
4320 fi
4321 fi
4322 BUILD_CC=$ac_cv_prog_BUILD_CC
4323 if test -n "$BUILD_CC"; then
4324   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4325 echo "${ECHO_T}$BUILD_CC" >&6; }
4326 else
4327   { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4329 fi
4330
4331
4332      fi
4333   fi
4334   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4335 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4336    { (exit 1); exit 1; }; }
4337   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4338   rm -f conftest*
4339   echo 'int main () { return 0; }' > conftest.$ac_ext
4340   ac_cv_build_exeext=
4341   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4342   (eval $ac_build_link) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; then
4346     for file in conftest.*; do
4347       case $file in
4348       *.c | *.o | *.obj | *.dSYM) ;;
4349       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4350       esac
4351     done
4352   else
4353     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4354 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4355    { (exit 1); exit 1; }; }
4356   fi
4357   rm -f conftest*
4358   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4359 fi
4360 fi
4361
4362 BUILD_EXEEXT=""
4363 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4364 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4365 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4366 ac_build_exeext=$BUILD_EXEEXT
4367
4368   ac_build_prefix=${build_alias}-
4369   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4370 set dummy ${ac_build_prefix}g++; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   if test -n "$BUILD_CXX"; then
4377   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4386     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4397 if test -n "$BUILD_CXX"; then
4398   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4399 echo "${ECHO_T}$BUILD_CXX" >&6; }
4400 else
4401   { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4403 fi
4404
4405
4406   if test -z "$BUILD_CXX"; then
4407      # Extract the first word of "g++", so it can be a program name with args.
4408 set dummy g++; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test -n "$BUILD_CXX"; then
4415   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_prog_BUILD_CXX="g++"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4435 if test -n "$BUILD_CXX"; then
4436   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4437 echo "${ECHO_T}$BUILD_CXX" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444      if test -z "$BUILD_CXX"; then
4445        # Extract the first word of "c++", so it can be a program name with args.
4446 set dummy c++; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   if test -n "$BUILD_CXX"; then
4453   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4454 else
4455   ac_prog_rejected=no
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4464        ac_prog_rejected=yes
4465        continue
4466      fi
4467     ac_cv_prog_BUILD_CXX="c++"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475 if test $ac_prog_rejected = yes; then
4476   # We found a bogon in the path, so make sure we never use it.
4477   set dummy $ac_cv_prog_BUILD_CXX
4478   shift
4479   if test $# != 0; then
4480     # We chose a different compiler from the bogus one.
4481     # However, it has the same basename, so the bogon will be chosen
4482     # first if we set BUILD_CXX to just the basename; use the full file name.
4483     shift
4484     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4485   fi
4486 fi
4487 fi
4488 fi
4489 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4490 if test -n "$BUILD_CXX"; then
4491   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4492 echo "${ECHO_T}$BUILD_CXX" >&6; }
4493 else
4494   { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4496 fi
4497
4498
4499      fi
4500   fi
4501 else
4502   LLVM_CROSS_COMPILING=0
4503
4504 fi
4505
4506 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4507   cvsbuild="yes"
4508   optimize="no"
4509   CVSBUILD=CVSBUILD=1
4510
4511 else
4512   cvsbuild="no"
4513   optimize="yes"
4514 fi
4515
4516
4517 # Check whether --enable-libcpp was given.
4518 if test "${enable_libcpp+set}" = set; then
4519   enableval=$enable_libcpp;
4520 else
4521   enableval=default
4522 fi
4523
4524 case "$enableval" in
4525   yes) ENABLE_LIBCPP=1
4526  ;;
4527   no)  ENABLE_LIBCPP=0
4528  ;;
4529   default) ENABLE_LIBCPP=0
4530 ;;
4531   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4532 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4533    { (exit 1); exit 1; }; } ;;
4534 esac
4535
4536 # Check whether --enable-compiler-version-checks was given.
4537 if test "${enable_compiler_version_checks+set}" = set; then
4538   enableval=$enable_compiler_version_checks;
4539 else
4540   enableval=default
4541 fi
4542
4543 case "$enableval" in
4544   no)
4545     ;;
4546   yes|default)
4547     ac_ext=cpp
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552
4553     case "$llvm_cv_cxx_compiler" in
4554     clang)
4555       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4556 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4557       cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563
4564 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4565 #error This version of Clang is too old to build LLVM
4566 #endif
4567
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4571 case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576   (eval "$ac_compile") 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } &&
4583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4584   { (case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589   (eval "$ac_try") 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_try") 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   { echo "$as_me:$LINENO: result: yes" >&5
4604 echo "${ECHO_T}yes" >&6; }
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609         { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611            { { echo "$as_me:$LINENO: error:
4612 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4613 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4614 bypass these sanity checks." >&5
4615 echo "$as_me: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&2;}
4619    { (exit 1); exit 1; }; }
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623
4624                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4625         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4626 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4627         llvm_cv_old_cxxflags="$CXXFLAGS"
4628         CXXFLAGS="$CXXFLAGS -std=c++0x"
4629         cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635
4636 #include <atomic>
4637 std::atomic<float> x(0.0f);
4638 int main() { return (float)x; }
4639
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_link") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } &&
4655          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4656   { (case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_try") 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_try") 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   { echo "$as_me:$LINENO: result: yes" >&5
4676 echo "${ECHO_T}yes" >&6; }
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681         { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683              { { echo "$as_me:$LINENO: error:
4684 We detected a missing feature in the standard C++ library that was known to be
4685 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4686 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4687 than 4.7. You will need to update your system and ensure Clang uses the newer
4688 standard library.
4689
4690 If this error is incorrect or you need to force things to work, you may pass
4691 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4692 echo "$as_me: error:
4693 We detected a missing feature in the standard C++ library that was known to be
4694 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4695 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4696 than 4.7. You will need to update your system and ensure Clang uses the newer
4697 standard library.
4698
4699 If this error is incorrect or you need to force things to work, you may pass
4700 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4701    { (exit 1); exit 1; }; }
4702 fi
4703
4704 rm -f core conftest.err conftest.$ac_objext \
4705       conftest$ac_exeext conftest.$ac_ext
4706         CXXFLAGS="$llvm_cv_old_cxxflags"
4707       fi
4708       ;;
4709     gcc)
4710       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4711 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4712       cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718
4719 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4720 #error This version of GCC is too old to build LLVM
4721 #endif
4722
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4726 case "(($ac_try" in
4727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728   *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731   (eval "$ac_compile") 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4739   { (case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_try") 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_try") 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   { echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6; }
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764         { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4766            { { echo "$as_me:$LINENO: error:
4767 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4768 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4769 bypass these sanity checks." >&5
4770 echo "$as_me: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&2;}
4774    { (exit 1); exit 1; }; }
4775 fi
4776
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778       ;;
4779     unknown)
4780       ;;
4781     esac
4782     ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788     ;;
4789   *)
4790     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4791 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4792    { (exit 1); exit 1; }; }
4793     ;;
4794 esac
4795
4796 # Check whether --enable-cxx11 was given.
4797 if test "${enable_cxx11+set}" = set; then
4798   enableval=$enable_cxx11;
4799 else
4800   enableval=default
4801 fi
4802
4803 case "$enableval" in
4804   yes) ENABLE_CXX11=1
4805  ;;
4806   no)  ENABLE_CXX11=0
4807  ;;
4808   default) ENABLE_CXX11=0
4809 ;;
4810   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4811 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4812    { (exit 1); exit 1; }; } ;;
4813 esac
4814
4815 # Check whether --enable-split-dwarf was given.
4816 if test "${enable_split_dwarf+set}" = set; then
4817   enableval=$enable_split_dwarf;
4818 else
4819   enableval=default
4820 fi
4821
4822 case "$enableval" in
4823   yes) ENABLE_SPLIT_DWARF=1
4824  ;;
4825   no)  ENABLE_SPLIT_DWARF=0
4826  ;;
4827   default) ENABLE_SPLIT_DWARF=0
4828 ;;
4829   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4830 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4831    { (exit 1); exit 1; }; } ;;
4832 esac
4833
4834 clang_arcmt="yes"
4835 # Check whether --enable-clang-arcmt was given.
4836 if test "${enable_clang_arcmt+set}" = set; then
4837   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4838 else
4839   enableval="yes"
4840 fi
4841
4842 case "$enableval" in
4843   yes) ENABLE_CLANG_ARCMT=1
4844  ;;
4845   no)  ENABLE_CLANG_ARCMT=0
4846  ;;
4847   default) ENABLE_CLANG_ARCMT=1
4848 ;;
4849   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4851    { (exit 1); exit 1; }; } ;;
4852 esac
4853
4854 clang_static_analyzer="yes"
4855 # Check whether --enable-clang-static-analyzer was given.
4856 if test "${enable_clang_static_analyzer+set}" = set; then
4857   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4858 else
4859   enableval="yes"
4860 fi
4861
4862 case "$enableval" in
4863   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4864  ;;
4865   no)
4866     if test ${clang_arcmt} != "no" ; then
4867       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4868 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4869    { (exit 1); exit 1; }; }
4870     fi
4871     ENABLE_CLANG_STATIC_ANALYZER=0
4872
4873     ;;
4874   default) ENABLE_CLANG_STATIC_ANALYZER=1
4875 ;;
4876   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4878    { (exit 1); exit 1; }; } ;;
4879 esac
4880
4881 # Check whether --enable-clang-rewriter was given.
4882 if test "${enable_clang_rewriter+set}" = set; then
4883   enableval=$enable_clang_rewriter;
4884 else
4885   enableval="yes"
4886 fi
4887
4888 case "$enableval" in
4889   yes) ENABLE_CLANG_REWRITER=1
4890  ;;
4891   no)
4892     if test ${clang_arcmt} != "no" ; then
4893       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4894 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4895    { (exit 1); exit 1; }; }
4896     fi
4897     if test ${clang_static_analyzer} != "no" ; then
4898       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4899 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4900    { (exit 1); exit 1; }; }
4901     fi
4902     ENABLE_CLANG_REWRITER=0
4903
4904     ;;
4905   default) ENABLE_CLANG_REWRITER=1
4906 ;;
4907   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4908 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4909    { (exit 1); exit 1; }; } ;;
4910 esac
4911
4912 # Check whether --enable-optimized was given.
4913 if test "${enable_optimized+set}" = set; then
4914   enableval=$enable_optimized;
4915 else
4916   enableval=$optimize
4917 fi
4918
4919 if test ${enableval} = "no" ; then
4920   ENABLE_OPTIMIZED=
4921
4922 else
4923   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4924
4925 fi
4926
4927 # Check whether --enable-profiling was given.
4928 if test "${enable_profiling+set}" = set; then
4929   enableval=$enable_profiling;
4930 else
4931   enableval="no"
4932 fi
4933
4934 if test ${enableval} = "no" ; then
4935   ENABLE_PROFILING=
4936
4937 else
4938   ENABLE_PROFILING=ENABLE_PROFILING=1
4939
4940 fi
4941
4942 # Check whether --enable-assertions was given.
4943 if test "${enable_assertions+set}" = set; then
4944   enableval=$enable_assertions;
4945 else
4946   enableval="yes"
4947 fi
4948
4949 if test ${enableval} = "yes" ; then
4950   DISABLE_ASSERTIONS=
4951
4952 else
4953   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4954
4955 fi
4956
4957 # Check whether --enable-werror was given.
4958 if test "${enable_werror+set}" = set; then
4959   enableval=$enable_werror;
4960 else
4961   enableval="no"
4962 fi
4963
4964 case "$enableval" in
4965   yes) ENABLE_WERROR=1
4966  ;;
4967   no)  ENABLE_WERROR=0
4968  ;;
4969   default) ENABLE_WERROR=0
4970 ;;
4971   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4972 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4973    { (exit 1); exit 1; }; } ;;
4974 esac
4975
4976 # Check whether --enable-expensive-checks was given.
4977 if test "${enable_expensive_checks+set}" = set; then
4978   enableval=$enable_expensive_checks;
4979 else
4980   enableval="no"
4981 fi
4982
4983 if test ${enableval} = "yes" ; then
4984   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4985
4986   EXPENSIVE_CHECKS=yes
4987
4988 else
4989   ENABLE_EXPENSIVE_CHECKS=
4990
4991   EXPENSIVE_CHECKS=no
4992
4993 fi
4994
4995 # Check whether --enable-debug-runtime was given.
4996 if test "${enable_debug_runtime+set}" = set; then
4997   enableval=$enable_debug_runtime;
4998 else
4999   enableval=no
5000 fi
5001
5002 if test ${enableval} = "no" ; then
5003   DEBUG_RUNTIME=
5004
5005 else
5006   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5007
5008 fi
5009
5010 # Check whether --enable-debug-symbols was given.
5011 if test "${enable_debug_symbols+set}" = set; then
5012   enableval=$enable_debug_symbols;
5013 else
5014   enableval=no
5015 fi
5016
5017 if test ${enableval} = "no" ; then
5018   DEBUG_SYMBOLS=
5019
5020 else
5021   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5022
5023 fi
5024
5025 # Check whether --enable-keep-symbols was given.
5026 if test "${enable_keep_symbols+set}" = set; then
5027   enableval=$enable_keep_symbols;
5028 else
5029   enableval=no
5030 fi
5031
5032 if test ${enableval} = "no" ; then
5033   KEEP_SYMBOLS=
5034
5035 else
5036   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5037
5038 fi
5039
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042   enableval=$enable_jit;
5043 else
5044   enableval=default
5045 fi
5046
5047 if test ${enableval} = "no"
5048 then
5049   JIT=
5050
5051 else
5052   case "$llvm_cv_target_arch" in
5053     x86)         TARGET_HAS_JIT=1
5054  ;;
5055     Sparc)       TARGET_HAS_JIT=0
5056  ;;
5057     PowerPC)     TARGET_HAS_JIT=1
5058  ;;
5059     x86_64)      TARGET_HAS_JIT=1
5060  ;;
5061     ARM)         TARGET_HAS_JIT=1
5062  ;;
5063     AArch64)     TARGET_HAS_JIT=0
5064  ;;
5065     Mips)        TARGET_HAS_JIT=1
5066  ;;
5067     XCore)       TARGET_HAS_JIT=0
5068  ;;
5069     MSP430)      TARGET_HAS_JIT=0
5070  ;;
5071     Hexagon)     TARGET_HAS_JIT=0
5072  ;;
5073     NVPTX)       TARGET_HAS_JIT=0
5074  ;;
5075     SystemZ)     TARGET_HAS_JIT=1
5076  ;;
5077     *)           TARGET_HAS_JIT=0
5078  ;;
5079   esac
5080 fi
5081
5082 # Check whether --enable-docs was given.
5083 if test "${enable_docs+set}" = set; then
5084   enableval=$enable_docs;
5085 else
5086   enableval=default
5087 fi
5088
5089 case "$enableval" in
5090   yes) ENABLE_DOCS=1
5091  ;;
5092   no)  ENABLE_DOCS=0
5093  ;;
5094   default) ENABLE_DOCS=1
5095  ;;
5096   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5097 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5098    { (exit 1); exit 1; }; } ;;
5099 esac
5100
5101 # Check whether --enable-doxygen was given.
5102 if test "${enable_doxygen+set}" = set; then
5103   enableval=$enable_doxygen;
5104 else
5105   enableval=default
5106 fi
5107
5108 case "$enableval" in
5109   yes) ENABLE_DOXYGEN=1
5110  ;;
5111   no)  ENABLE_DOXYGEN=0
5112  ;;
5113   default) ENABLE_DOXYGEN=0
5114  ;;
5115   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5117    { (exit 1); exit 1; }; } ;;
5118 esac
5119
5120 # Check whether --enable-threads was given.
5121 if test "${enable_threads+set}" = set; then
5122   enableval=$enable_threads;
5123 else
5124   enableval=default
5125 fi
5126
5127 case "$enableval" in
5128   yes) LLVM_ENABLE_THREADS=1
5129  ;;
5130   no)  LLVM_ENABLE_THREADS=0
5131  ;;
5132   default) LLVM_ENABLE_THREADS=1
5133  ;;
5134   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5135 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5136    { (exit 1); exit 1; }; } ;;
5137 esac
5138
5139 cat >>confdefs.h <<_ACEOF
5140 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5141 _ACEOF
5142
5143
5144 # Check whether --enable-pthreads was given.
5145 if test "${enable_pthreads+set}" = set; then
5146   enableval=$enable_pthreads;
5147 else
5148   enableval=default
5149 fi
5150
5151 case "$enableval" in
5152   yes) ENABLE_PTHREADS=1
5153  ;;
5154   no)  ENABLE_PTHREADS=0
5155  ;;
5156   default) ENABLE_PTHREADS=1
5157  ;;
5158   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5160    { (exit 1); exit 1; }; } ;;
5161 esac
5162
5163 # Check whether --enable-zlib was given.
5164 if test "${enable_zlib+set}" = set; then
5165   enableval=$enable_zlib;
5166 else
5167   enableval=default
5168 fi
5169
5170 case "$enableval" in
5171   yes) LLVM_ENABLE_ZLIB=1
5172  ;;
5173   no)  LLVM_ENABLE_ZLIB=0
5174  ;;
5175   default) LLVM_ENABLE_ZLIB=1
5176  ;;
5177   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5179    { (exit 1); exit 1; }; } ;;
5180 esac
5181
5182 cat >>confdefs.h <<_ACEOF
5183 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5184 _ACEOF
5185
5186
5187 # Check whether --enable-pic was given.
5188 if test "${enable_pic+set}" = set; then
5189   enableval=$enable_pic;
5190 else
5191   enableval=default
5192 fi
5193
5194 case "$enableval" in
5195   yes) ENABLE_PIC=1
5196  ;;
5197   no)  ENABLE_PIC=0
5198  ;;
5199   default) ENABLE_PIC=1
5200  ;;
5201   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5203    { (exit 1); exit 1; }; } ;;
5204 esac
5205
5206 cat >>confdefs.h <<_ACEOF
5207 #define ENABLE_PIC $ENABLE_PIC
5208 _ACEOF
5209
5210
5211 # Check whether --enable-shared was given.
5212 if test "${enable_shared+set}" = set; then
5213   enableval=$enable_shared;
5214 else
5215   enableval=default
5216 fi
5217
5218 case "$enableval" in
5219   yes) ENABLE_SHARED=1
5220  ;;
5221   no)  ENABLE_SHARED=0
5222  ;;
5223   default) ENABLE_SHARED=0
5224  ;;
5225   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228 esac
5229
5230 # Check whether --enable-embed-stdcxx was given.
5231 if test "${enable_embed_stdcxx+set}" = set; then
5232   enableval=$enable_embed_stdcxx;
5233 else
5234   enableval=default
5235 fi
5236
5237 case "$enableval" in
5238   yes) ENABLE_EMBED_STDCXX=1
5239  ;;
5240   no)  ENABLE_EMBED_STDCXX=0
5241  ;;
5242   default) ENABLE_EMBED_STDCXX=0
5243  ;;
5244   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5245 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5246    { (exit 1); exit 1; }; } ;;
5247 esac
5248
5249 # Check whether --enable-timestamps was given.
5250 if test "${enable_timestamps+set}" = set; then
5251   enableval=$enable_timestamps;
5252 else
5253   enableval=default
5254 fi
5255
5256 case "$enableval" in
5257   yes) ENABLE_TIMESTAMPS=1
5258  ;;
5259   no)  ENABLE_TIMESTAMPS=0
5260  ;;
5261   default) ENABLE_TIMESTAMPS=1
5262  ;;
5263   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5264 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5265    { (exit 1); exit 1; }; } ;;
5266 esac
5267
5268 cat >>confdefs.h <<_ACEOF
5269 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5270 _ACEOF
5271
5272
5273 # Check whether --enable-backtraces was given.
5274 if test "${enable_backtraces+set}" = set; then
5275   enableval=$enable_backtraces; case "$enableval" in
5276     yes) llvm_cv_enable_backtraces="yes" ;;
5277     no)  llvm_cv_enable_backtraces="no"  ;;
5278     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5279 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5280    { (exit 1); exit 1; }; } ;;
5281   esac
5282 else
5283   llvm_cv_enable_backtraces="yes"
5284 fi
5285
5286 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5287
5288 cat >>confdefs.h <<\_ACEOF
5289 #define ENABLE_BACKTRACES 1
5290 _ACEOF
5291
5292 fi
5293
5294 # Check whether --enable-crash-overrides was given.
5295 if test "${enable_crash_overrides+set}" = set; then
5296   enableval=$enable_crash_overrides; case "$enableval" in
5297     yes) llvm_cv_enable_crash_overrides="yes" ;;
5298     no)  llvm_cv_enable_crash_overrides="no"  ;;
5299     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5300 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5301    { (exit 1); exit 1; }; } ;;
5302   esac
5303 else
5304   llvm_cv_enable_crash_overrides="yes"
5305 fi
5306
5307 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5308
5309 cat >>confdefs.h <<\_ACEOF
5310 #define ENABLE_CRASH_OVERRIDES 1
5311 _ACEOF
5312
5313 fi
5314
5315 TARGETS_TO_BUILD=""
5316 # Check whether --enable-targets was given.
5317 if test "${enable_targets+set}" = set; then
5318   enableval=$enable_targets;
5319 else
5320   enableval=all
5321 fi
5322
5323 if test "$enableval" = host-only ; then
5324   enableval=host
5325 fi
5326 case "$enableval" in
5327   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5328   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5329       case "$a_target" in
5330         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5333         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5334         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5335         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5343         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5345         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5346         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5347         host) case "$llvm_cv_target_arch" in
5348             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5352             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5353             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5357             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5358             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5359             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5360             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361 echo "$as_me: error: Can not set target to build" >&2;}
5362    { (exit 1); exit 1; }; } ;;
5363           esac ;;
5364         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366    { (exit 1); exit 1; }; } ;;
5367       esac
5368   done
5369   ;;
5370 esac
5371
5372 # Check whether --enable-experimental-targets was given.
5373 if test "${enable_experimental_targets+set}" = set; then
5374   enableval=$enable_experimental_targets;
5375 else
5376   enableval=disable
5377 fi
5378
5379
5380 if test ${enableval} != "disable"
5381 then
5382   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5383 fi
5384
5385 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5386
5387
5388 for a_target in $TARGETS_TO_BUILD; do
5389   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5393 _ACEOF
5394
5395     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5397     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5398     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5401     fi
5402     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5404     fi
5405
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 _ACEOF
5409
5410
5411 cat >>confdefs.h <<_ACEOF
5412 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 _ACEOF
5414
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 _ACEOF
5419
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5423 _ACEOF
5424
5425     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 _ACEOF
5430
5431     fi
5432     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5433
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5436 _ACEOF
5437
5438     fi
5439   fi
5440 done
5441
5442 LLVM_ENUM_TARGETS=""
5443 LLVM_ENUM_ASM_PRINTERS=""
5444 LLVM_ENUM_ASM_PARSERS=""
5445 LLVM_ENUM_DISASSEMBLERS=""
5446 for target_to_build in $TARGETS_TO_BUILD; do
5447   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5448   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5449     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5450   fi
5451   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5453   fi
5454   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5456   fi
5457 done
5458
5459
5460
5461
5462
5463
5464 # Check whether --with-optimize-option was given.
5465 if test "${with_optimize_option+set}" = set; then
5466   withval=$with_optimize_option;
5467 else
5468   withval=default
5469 fi
5470
5471 { echo "$as_me:$LINENO: checking optimization flags" >&5
5472 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5473 case "$withval" in
5474   default)
5475     case "$llvm_cv_os_type" in
5476     FreeBSD) optimize_option=-O2 ;;
5477     MingW) optimize_option=-O2 ;;
5478     *)     optimize_option=-O3 ;;
5479     esac ;;
5480   *) optimize_option="$withval" ;;
5481 esac
5482 OPTIMIZE_OPTION=$optimize_option
5483
5484 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5485 echo "${ECHO_T}$optimize_option" >&6; }
5486
5487
5488 # Check whether --with-extra-options was given.
5489 if test "${with_extra_options+set}" = set; then
5490   withval=$with_extra_options;
5491 else
5492   withval=default
5493 fi
5494
5495 case "$withval" in
5496   default) EXTRA_OPTIONS= ;;
5497   *) EXTRA_OPTIONS=$withval ;;
5498 esac
5499 EXTRA_OPTIONS=$EXTRA_OPTIONS
5500
5501
5502
5503 # Check whether --with-extra-ld-options was given.
5504 if test "${with_extra_ld_options+set}" = set; then
5505   withval=$with_extra_ld_options;
5506 else
5507   withval=default
5508 fi
5509
5510 case "$withval" in
5511   default) EXTRA_LD_OPTIONS= ;;
5512   *) EXTRA_LD_OPTIONS=$withval ;;
5513 esac
5514 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5515
5516
5517 # Check whether --enable-bindings was given.
5518 if test "${enable_bindings+set}" = set; then
5519   enableval=$enable_bindings;
5520 else
5521   enableval=default
5522 fi
5523
5524 BINDINGS_TO_BUILD=""
5525 case "$enableval" in
5526   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5527   all ) BINDINGS_TO_BUILD="ocaml" ;;
5528   none | no) BINDINGS_TO_BUILD="" ;;
5529   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530       case "$a_binding" in
5531         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5532         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534    { (exit 1); exit 1; }; } ;;
5535       esac
5536   done
5537   ;;
5538 esac
5539
5540
5541 # Check whether --with-ocaml-libdir was given.
5542 if test "${with_ocaml_libdir+set}" = set; then
5543   withval=$with_ocaml_libdir;
5544 else
5545   withval=auto
5546 fi
5547
5548 case "$withval" in
5549   auto) with_ocaml_libdir="$withval" ;;
5550   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5551   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553    { (exit 1); exit 1; }; } ;;
5554 esac
5555
5556
5557 # Check whether --with-clang-srcdir was given.
5558 if test "${with_clang_srcdir+set}" = set; then
5559   withval=$with_clang_srcdir;
5560 else
5561   withval="-"
5562 fi
5563
5564 case "$withval" in
5565   -) clang_src_root="" ;;
5566   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567   *) clang_src_root="$ac_pwd/$withval" ;;
5568 esac
5569 CLANG_SRC_ROOT=$clang_src_root
5570
5571
5572
5573 # Check whether --with-clang-resource-dir was given.
5574 if test "${with_clang_resource_dir+set}" = set; then
5575   withval=$with_clang_resource_dir;
5576 else
5577   withval=""
5578 fi
5579
5580
5581 cat >>confdefs.h <<_ACEOF
5582 #define CLANG_RESOURCE_DIR "$withval"
5583 _ACEOF
5584
5585
5586
5587 # Check whether --with-c-include-dirs was given.
5588 if test "${with_c_include_dirs+set}" = set; then
5589   withval=$with_c_include_dirs;
5590 else
5591   withval=""
5592 fi
5593
5594
5595 cat >>confdefs.h <<_ACEOF
5596 #define C_INCLUDE_DIRS "$withval"
5597 _ACEOF
5598
5599
5600 # Clang normally uses the system c++ headers and libraries. With this option,
5601 # clang will use the ones provided by a gcc installation instead. This option should
5602 # be passed the same value that was used with --prefix when configuring gcc.
5603
5604 # Check whether --with-gcc-toolchain was given.
5605 if test "${with_gcc_toolchain+set}" = set; then
5606   withval=$with_gcc_toolchain;
5607 else
5608   withval=""
5609 fi
5610
5611
5612 cat >>confdefs.h <<_ACEOF
5613 #define GCC_INSTALL_PREFIX "$withval"
5614 _ACEOF
5615
5616
5617
5618 # Check whether --with-default-sysroot was given.
5619 if test "${with_default_sysroot+set}" = set; then
5620   withval=$with_default_sysroot;
5621 else
5622   withval=""
5623 fi
5624
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define DEFAULT_SYSROOT "$withval"
5628 _ACEOF
5629
5630
5631
5632 # Check whether --with-binutils-include was given.
5633 if test "${with_binutils_include+set}" = set; then
5634   withval=$with_binutils_include;
5635 else
5636   withval=default
5637 fi
5638
5639 case "$withval" in
5640   default) WITH_BINUTILS_INCDIR=default ;;
5641   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5642   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644    { (exit 1); exit 1; }; } ;;
5645 esac
5646 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5648
5649   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5651      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653    { (exit 1); exit 1; }; };
5654   fi
5655 fi
5656
5657
5658 # Check whether --with-bug-report-url was given.
5659 if test "${with_bug_report_url+set}" = set; then
5660   withval=$with_bug_report_url;
5661 else
5662   withval="http://llvm.org/bugs/"
5663 fi
5664
5665
5666 cat >>confdefs.h <<_ACEOF
5667 #define BUG_REPORT_URL "$withval"
5668 _ACEOF
5669
5670
5671 # Check whether --enable-terminfo was given.
5672 if test "${enable_terminfo+set}" = set; then
5673   enableval=$enable_terminfo; case "$enableval" in
5674     yes) llvm_cv_enable_terminfo="yes" ;;
5675     no)  llvm_cv_enable_terminfo="no"  ;;
5676     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5678    { (exit 1); exit 1; }; } ;;
5679   esac
5680 else
5681   llvm_cv_enable_terminfo="yes"
5682 fi
5683
5684
5685 # Check whether --enable-libedit was given.
5686 if test "${enable_libedit+set}" = set; then
5687   enableval=$enable_libedit; case "$enableval" in
5688     yes) llvm_cv_enable_libedit="yes" ;;
5689     no)  llvm_cv_enable_libedit="no"  ;;
5690     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5691 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5692    { (exit 1); exit 1; }; } ;;
5693   esac
5694 else
5695   llvm_cv_enable_libedit="yes"
5696 fi
5697
5698
5699 # Check whether --enable-libffi was given.
5700 if test "${enable_libffi+set}" = set; then
5701   enableval=$enable_libffi; case "$enableval" in
5702     yes) llvm_cv_enable_libffi="yes" ;;
5703     no)  llvm_cv_enable_libffi="no"  ;;
5704     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5705 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5706    { (exit 1); exit 1; }; } ;;
5707   esac
5708 else
5709   llvm_cv_enable_libffi=no
5710 fi
5711
5712
5713
5714 # Check whether --with-internal-prefix was given.
5715 if test "${with_internal_prefix+set}" = set; then
5716   withval=$with_internal_prefix;
5717 else
5718   withval=""
5719 fi
5720
5721 INTERNAL_PREFIX=$withval
5722
5723
5724
5725 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5726 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5727 if test "${lt_cv_path_NM+set}" = set; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   if test -n "$NM"; then
5731   # Let the user override the test.
5732   lt_cv_path_NM="$NM"
5733 else
5734   lt_nm_to_check="${ac_tool_prefix}nm"
5735   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5736     lt_nm_to_check="$lt_nm_to_check nm"
5737   fi
5738   for lt_tmp_nm in $lt_nm_to_check; do
5739     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5740     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5741       IFS="$lt_save_ifs"
5742       test -z "$ac_dir" && ac_dir=.
5743       tmp_nm="$ac_dir/$lt_tmp_nm"
5744       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5745         # Check to see if the nm accepts a BSD-compat flag.
5746         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5747         #   nm: unknown option "B" ignored
5748         # Tru64's nm complains that /dev/null is an invalid object file
5749         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5750         */dev/null* | *'Invalid file or object type'*)
5751           lt_cv_path_NM="$tmp_nm -B"
5752           break
5753           ;;
5754         *)
5755           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5756           */dev/null*)
5757             lt_cv_path_NM="$tmp_nm -p"
5758             break
5759             ;;
5760           *)
5761             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5762             continue # so that we can try to find one that supports BSD flags
5763             ;;
5764           esac
5765           ;;
5766         esac
5767       fi
5768     done
5769     IFS="$lt_save_ifs"
5770   done
5771   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5772 fi
5773 fi
5774 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5775 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5776 NM="$lt_cv_path_NM"
5777
5778
5779
5780 { echo "$as_me:$LINENO: checking for GNU make" >&5
5781 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5782 if test "${llvm_cv_gnu_make_command+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   llvm_cv_gnu_make_command=''
5786  for a in "$MAKE" make gmake gnumake ; do
5787   if test -z "$a" ; then continue ; fi ;
5788   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5789   then
5790    llvm_cv_gnu_make_command=$a ;
5791    break;
5792   fi
5793  done
5794 fi
5795 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5796 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5797  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5798    ifGNUmake='' ;
5799  else
5800    ifGNUmake='#' ;
5801    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5802 echo "${ECHO_T}\"Not found\"" >&6; };
5803  fi
5804
5805
5806 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5808 LN_S=$as_ln_s
5809 if test "$LN_S" = "ln -s"; then
5810   { echo "$as_me:$LINENO: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6; }
5812 else
5813   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814 echo "${ECHO_T}no, using $LN_S" >&6; }
5815 fi
5816
5817 # Extract the first word of "cmp", so it can be a program name with args.
5818 set dummy cmp; ac_word=$2
5819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821 if test "${ac_cv_path_CMP+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   case $CMP in
5825   [\\/]* | ?:[\\/]*)
5826   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5827   ;;
5828   *)
5829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834   for ac_exec_ext in '' $ac_executable_extensions; do
5835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5836     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5845   ;;
5846 esac
5847 fi
5848 CMP=$ac_cv_path_CMP
5849 if test -n "$CMP"; then
5850   { echo "$as_me:$LINENO: result: $CMP" >&5
5851 echo "${ECHO_T}$CMP" >&6; }
5852 else
5853   { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5855 fi
5856
5857
5858 # Extract the first word of "cp", so it can be a program name with args.
5859 set dummy cp; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_path_CP+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   case $CP in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883 IFS=$as_save_IFS
5884
5885   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5886   ;;
5887 esac
5888 fi
5889 CP=$ac_cv_path_CP
5890 if test -n "$CP"; then
5891   { echo "$as_me:$LINENO: result: $CP" >&5
5892 echo "${ECHO_T}$CP" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899 # Extract the first word of "date", so it can be a program name with args.
5900 set dummy date; ac_word=$2
5901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903 if test "${ac_cv_path_DATE+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   case $DATE in
5907   [\\/]* | ?:[\\/]*)
5908   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5909   ;;
5910   *)
5911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5927   ;;
5928 esac
5929 fi
5930 DATE=$ac_cv_path_DATE
5931 if test -n "$DATE"; then
5932   { echo "$as_me:$LINENO: result: $DATE" >&5
5933 echo "${ECHO_T}$DATE" >&6; }
5934 else
5935   { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5937 fi
5938
5939
5940 # Extract the first word of "find", so it can be a program name with args.
5941 set dummy find; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_path_FIND+set}" = set; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947   case $FIND in
5948   [\\/]* | ?:[\\/]*)
5949   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5950   ;;
5951   *)
5952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957   for ac_exec_ext in '' $ac_executable_extensions; do
5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5968   ;;
5969 esac
5970 fi
5971 FIND=$ac_cv_path_FIND
5972 if test -n "$FIND"; then
5973   { echo "$as_me:$LINENO: result: $FIND" >&5
5974 echo "${ECHO_T}$FIND" >&6; }
5975 else
5976   { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5978 fi
5979
5980
5981 # Extract the first word of "grep", so it can be a program name with args.
5982 set dummy grep; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_GREP+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   case $GREP in
5989   [\\/]* | ?:[\\/]*)
5990   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5991   ;;
5992   *)
5993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005 done
6006 IFS=$as_save_IFS
6007
6008   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6009   ;;
6010 esac
6011 fi
6012 GREP=$ac_cv_path_GREP
6013 if test -n "$GREP"; then
6014   { echo "$as_me:$LINENO: result: $GREP" >&5
6015 echo "${ECHO_T}$GREP" >&6; }
6016 else
6017   { echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6; }
6019 fi
6020
6021
6022 # Extract the first word of "mkdir", so it can be a program name with args.
6023 set dummy mkdir; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_path_MKDIR+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   case $MKDIR in
6030   [\\/]* | ?:[\\/]*)
6031   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6032   ;;
6033   *)
6034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6050   ;;
6051 esac
6052 fi
6053 MKDIR=$ac_cv_path_MKDIR
6054 if test -n "$MKDIR"; then
6055   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6056 echo "${ECHO_T}$MKDIR" >&6; }
6057 else
6058   { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6061
6062
6063 # Extract the first word of "mv", so it can be a program name with args.
6064 set dummy mv; ac_word=$2
6065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6067 if test "${ac_cv_path_MV+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   case $MV in
6071   [\\/]* | ?:[\\/]*)
6072   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6073   ;;
6074   *)
6075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080   for ac_exec_ext in '' $ac_executable_extensions; do
6081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6091   ;;
6092 esac
6093 fi
6094 MV=$ac_cv_path_MV
6095 if test -n "$MV"; then
6096   { echo "$as_me:$LINENO: result: $MV" >&5
6097 echo "${ECHO_T}$MV" >&6; }
6098 else
6099   { echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6; }
6101 fi
6102
6103
6104 if test -n "$ac_tool_prefix"; then
6105   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_RANLIB+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   if test -n "$RANLIB"; then
6113   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 RANLIB=$ac_cv_prog_RANLIB
6133 if test -n "$RANLIB"; then
6134   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6135 echo "${ECHO_T}$RANLIB" >&6; }
6136 else
6137   { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6139 fi
6140
6141
6142 fi
6143 if test -z "$ac_cv_prog_RANLIB"; then
6144   ac_ct_RANLIB=$RANLIB
6145   # Extract the first word of "ranlib", so it can be a program name with args.
6146 set dummy ranlib; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   if test -n "$ac_ct_RANLIB"; then
6153   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_ac_ct_RANLIB="ranlib"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173 if test -n "$ac_ct_RANLIB"; then
6174   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6175 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6176 else
6177   { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6179 fi
6180
6181   if test "x$ac_ct_RANLIB" = x; then
6182     RANLIB=":"
6183   else
6184     case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6187 whose name does not start with the host triplet.  If you think this
6188 configuration is useful to you, please write to autoconf@gnu.org." >&5
6189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet.  If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194     RANLIB=$ac_ct_RANLIB
6195   fi
6196 else
6197   RANLIB="$ac_cv_prog_RANLIB"
6198 fi
6199
6200 if test -n "$ac_tool_prefix"; then
6201   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}ar; ac_word=$2
6203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6205 if test "${ac_cv_prog_AR+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   if test -n "$AR"; then
6209   ac_cv_prog_AR="$AR" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216   for ac_exec_ext in '' $ac_executable_extensions; do
6217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6218     ac_cv_prog_AR="${ac_tool_prefix}ar"
6219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 AR=$ac_cv_prog_AR
6229 if test -n "$AR"; then
6230   { echo "$as_me:$LINENO: result: $AR" >&5
6231 echo "${ECHO_T}$AR" >&6; }
6232 else
6233   { echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6; }
6235 fi
6236
6237
6238 fi
6239 if test -z "$ac_cv_prog_AR"; then
6240   ac_ct_AR=$AR
6241   # Extract the first word of "ar", so it can be a program name with args.
6242 set dummy ar; ac_word=$2
6243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   if test -n "$ac_ct_AR"; then
6249   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256   for ac_exec_ext in '' $ac_executable_extensions; do
6257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6258     ac_cv_prog_ac_ct_AR="ar"
6259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6269 if test -n "$ac_ct_AR"; then
6270   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6271 echo "${ECHO_T}$ac_ct_AR" >&6; }
6272 else
6273   { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6275 fi
6276
6277   if test "x$ac_ct_AR" = x; then
6278     AR="false"
6279   else
6280     case $cross_compiling:$ac_tool_warned in
6281 yes:)
6282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6283 whose name does not start with the host triplet.  If you think this
6284 configuration is useful to you, please write to autoconf@gnu.org." >&5
6285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6286 whose name does not start with the host triplet.  If you think this
6287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290     AR=$ac_ct_AR
6291   fi
6292 else
6293   AR="$ac_cv_prog_AR"
6294 fi
6295
6296 # Extract the first word of "rm", so it can be a program name with args.
6297 set dummy rm; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_path_RM+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   case $RM in
6304   [\\/]* | ?:[\\/]*)
6305   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6306   ;;
6307   *)
6308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313   for ac_exec_ext in '' $ac_executable_extensions; do
6314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6315     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6324   ;;
6325 esac
6326 fi
6327 RM=$ac_cv_path_RM
6328 if test -n "$RM"; then
6329   { echo "$as_me:$LINENO: result: $RM" >&5
6330 echo "${ECHO_T}$RM" >&6; }
6331 else
6332   { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6334 fi
6335
6336
6337 # Extract the first word of "sed", so it can be a program name with args.
6338 set dummy sed; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_path_SED+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   case $SED in
6345   [\\/]* | ?:[\\/]*)
6346   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6347   ;;
6348   *)
6349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354   for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361 done
6362 IFS=$as_save_IFS
6363
6364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6365   ;;
6366 esac
6367 fi
6368 SED=$ac_cv_path_SED
6369 if test -n "$SED"; then
6370   { echo "$as_me:$LINENO: result: $SED" >&5
6371 echo "${ECHO_T}$SED" >&6; }
6372 else
6373   { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6375 fi
6376
6377
6378 # Extract the first word of "tar", so it can be a program name with args.
6379 set dummy tar; ac_word=$2
6380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6382 if test "${ac_cv_path_TAR+set}" = set; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   case $TAR in
6386   [\\/]* | ?:[\\/]*)
6387   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6388   ;;
6389   *)
6390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395   for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6406   ;;
6407 esac
6408 fi
6409 TAR=$ac_cv_path_TAR
6410 if test -n "$TAR"; then
6411   { echo "$as_me:$LINENO: result: $TAR" >&5
6412 echo "${ECHO_T}$TAR" >&6; }
6413 else
6414   { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6416 fi
6417
6418
6419 # Extract the first word of "pwd", so it can be a program name with args.
6420 set dummy pwd; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_BINPWD+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   case $BINPWD in
6427   [\\/]* | ?:[\\/]*)
6428   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6429   ;;
6430   *)
6431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6447   ;;
6448 esac
6449 fi
6450 BINPWD=$ac_cv_path_BINPWD
6451 if test -n "$BINPWD"; then
6452   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6453 echo "${ECHO_T}$BINPWD" >&6; }
6454 else
6455   { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6457 fi
6458
6459
6460
6461 # Extract the first word of "Graphviz", so it can be a program name with args.
6462 set dummy Graphviz; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   case $GRAPHVIZ in
6469   [\\/]* | ?:[\\/]*)
6470   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6471   ;;
6472   *)
6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478   for ac_exec_ext in '' $ac_executable_extensions; do
6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6489   ;;
6490 esac
6491 fi
6492 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6493 if test -n "$GRAPHVIZ"; then
6494   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6495 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501
6502 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6503
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_GRAPHVIZ 1
6506 _ACEOF
6507
6508     if test "$llvm_cv_os_type" = "MingW" ; then
6509     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510   fi
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6514 _ACEOF
6515
6516 fi
6517 # Extract the first word of "dot", so it can be a program name with args.
6518 set dummy dot; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_DOT+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   case $DOT in
6525   [\\/]* | ?:[\\/]*)
6526   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6527   ;;
6528   *)
6529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6545   ;;
6546 esac
6547 fi
6548 DOT=$ac_cv_path_DOT
6549 if test -n "$DOT"; then
6550   { echo "$as_me:$LINENO: result: $DOT" >&5
6551 echo "${ECHO_T}$DOT" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 if test "$DOT" != "echo dot" ; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_DOT 1
6562 _ACEOF
6563
6564     if test "$llvm_cv_os_type" = "MingW" ; then
6565     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566   fi
6567
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6570 _ACEOF
6571
6572 fi
6573 # Extract the first word of "fdp", so it can be a program name with args.
6574 set dummy fdp; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_FDP+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   case $FDP in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6601   ;;
6602 esac
6603 fi
6604 FDP=$ac_cv_path_FDP
6605 if test -n "$FDP"; then
6606   { echo "$as_me:$LINENO: result: $FDP" >&5
6607 echo "${ECHO_T}$FDP" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6611 fi
6612
6613
6614 if test "$FDP" != "echo fdp" ; then
6615
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_FDP 1
6618 _ACEOF
6619
6620     if test "$llvm_cv_os_type" = "MingW" ; then
6621     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622   fi
6623
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6626 _ACEOF
6627
6628 fi
6629 # Extract the first word of "neato", so it can be a program name with args.
6630 set dummy neato; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_NEATO+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   case $NEATO in
6637   [\\/]* | ?:[\\/]*)
6638   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6639   ;;
6640   *)
6641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6657   ;;
6658 esac
6659 fi
6660 NEATO=$ac_cv_path_NEATO
6661 if test -n "$NEATO"; then
6662   { echo "$as_me:$LINENO: result: $NEATO" >&5
6663 echo "${ECHO_T}$NEATO" >&6; }
6664 else
6665   { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669
6670 if test "$NEATO" != "echo neato" ; then
6671
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_NEATO 1
6674 _ACEOF
6675
6676     if test "$llvm_cv_os_type" = "MingW" ; then
6677     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678   fi
6679
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6682 _ACEOF
6683
6684 fi
6685 # Extract the first word of "twopi", so it can be a program name with args.
6686 set dummy twopi; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_TWOPI+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   case $TWOPI in
6693   [\\/]* | ?:[\\/]*)
6694   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6695   ;;
6696   *)
6697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700   IFS=$as_save_IFS
6701   test -z "$as_dir" && as_dir=.
6702   for ac_exec_ext in '' $ac_executable_extensions; do
6703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706     break 2
6707   fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6713   ;;
6714 esac
6715 fi
6716 TWOPI=$ac_cv_path_TWOPI
6717 if test -n "$TWOPI"; then
6718   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6719 echo "${ECHO_T}$TWOPI" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726 if test "$TWOPI" != "echo twopi" ; then
6727
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_TWOPI 1
6730 _ACEOF
6731
6732     if test "$llvm_cv_os_type" = "MingW" ; then
6733     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734   fi
6735
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6738 _ACEOF
6739
6740 fi
6741 # Extract the first word of "circo", so it can be a program name with args.
6742 set dummy circo; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CIRCO+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $CIRCO in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758   for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6769   ;;
6770 esac
6771 fi
6772 CIRCO=$ac_cv_path_CIRCO
6773 if test -n "$CIRCO"; then
6774   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6775 echo "${ECHO_T}$CIRCO" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6779 fi
6780
6781
6782 if test "$CIRCO" != "echo circo" ; then
6783
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_CIRCO 1
6786 _ACEOF
6787
6788     if test "$llvm_cv_os_type" = "MingW" ; then
6789     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790   fi
6791
6792 cat >>confdefs.h <<_ACEOF
6793 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6794 _ACEOF
6795
6796 fi
6797 for ac_prog in gv gsview32
6798 do
6799   # Extract the first word of "$ac_prog", so it can be a program name with args.
6800 set dummy $ac_prog; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_GV+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   case $GV in
6807   [\\/]* | ?:[\\/]*)
6808   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6809   ;;
6810   *)
6811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816   for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826   ;;
6827 esac
6828 fi
6829 GV=$ac_cv_path_GV
6830 if test -n "$GV"; then
6831   { echo "$as_me:$LINENO: result: $GV" >&5
6832 echo "${ECHO_T}$GV" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839   test -n "$GV" && break
6840 done
6841 test -n "$GV" || GV="echo gv"
6842
6843 if test "$GV" != "echo gv" ; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_GV 1
6847 _ACEOF
6848
6849     if test "$llvm_cv_os_type" = "MingW" ; then
6850     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851   fi
6852
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_GV "$GV${EXEEXT}"
6855 _ACEOF
6856
6857 fi
6858 # Extract the first word of "dotty", so it can be a program name with args.
6859 set dummy dotty; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_DOTTY+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   case $DOTTY in
6866   [\\/]* | ?:[\\/]*)
6867   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6868   ;;
6869   *)
6870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6886   ;;
6887 esac
6888 fi
6889 DOTTY=$ac_cv_path_DOTTY
6890 if test -n "$DOTTY"; then
6891   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6892 echo "${ECHO_T}$DOTTY" >&6; }
6893 else
6894   { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 fi
6897
6898
6899 if test "$DOTTY" != "echo dotty" ; then
6900
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_DOTTY 1
6903 _ACEOF
6904
6905     if test "$llvm_cv_os_type" = "MingW" ; then
6906     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907   fi
6908
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6911 _ACEOF
6912
6913 fi
6914 for ac_prog in xdot xdot.py
6915 do
6916   # Extract the first word of "$ac_prog", so it can be a program name with args.
6917 set dummy $ac_prog; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_path_XDOT+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   case $XDOT in
6924   [\\/]* | ?:[\\/]*)
6925   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6926   ;;
6927   *)
6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933   for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943   ;;
6944 esac
6945 fi
6946 XDOT=$ac_cv_path_XDOT
6947 if test -n "$XDOT"; then
6948   { echo "$as_me:$LINENO: result: $XDOT" >&5
6949 echo "${ECHO_T}$XDOT" >&6; }
6950 else
6951   { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6954
6955
6956   test -n "$XDOT" && break
6957 done
6958 test -n "$XDOT" || XDOT="echo xdot"
6959
6960 if test "$XDOT" != "echo xdot" ; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_XDOT 1
6964 _ACEOF
6965
6966     if test "$llvm_cv_os_type" = "MingW" ; then
6967     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6968   fi
6969
6970 cat >>confdefs.h <<_ACEOF
6971 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6972 _ACEOF
6973
6974 fi
6975
6976 # Find a good install program.  We prefer a C program (faster),
6977 # so one script is as good as another.  But avoid the broken or
6978 # incompatible versions:
6979 # SysV /etc/install, /usr/sbin/install
6980 # SunOS /usr/etc/install
6981 # IRIX /sbin/install
6982 # AIX /bin/install
6983 # AmigaOS /C/install, which installs bootblocks on floppy discs
6984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6987 # OS/2's system install, which has a completely different semantic
6988 # ./install, which can be erroneously created by make from ./install.sh.
6989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6991 if test -z "$INSTALL"; then
6992 if test "${ac_cv_path_install+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   # Account for people who put trailing slashes in PATH elements.
7001 case $as_dir/ in
7002   ./ | .// | /cC/* | \
7003   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7004   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7005   /usr/ucb/* ) ;;
7006   *)
7007     # OSF1 and SCO ODT 3.0 have their own names for install.
7008     # Don't use installbsd from OSF since it installs stuff as root
7009     # by default.
7010     for ac_prog in ginstall scoinst install; do
7011       for ac_exec_ext in '' $ac_executable_extensions; do
7012         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7013           if test $ac_prog = install &&
7014             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015             # AIX install.  It has an incompatible calling convention.
7016             :
7017           elif test $ac_prog = install &&
7018             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7019             # program-specific install script used by HP pwplus--don't use.
7020             :
7021           else
7022             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7023             break 3
7024           fi
7025         fi
7026       done
7027     done
7028     ;;
7029 esac
7030 done
7031 IFS=$as_save_IFS
7032
7033
7034 fi
7035   if test "${ac_cv_path_install+set}" = set; then
7036     INSTALL=$ac_cv_path_install
7037   else
7038     # As a last resort, use the slow shell script.  Don't cache a
7039     # value for INSTALL within a source directory, because that will
7040     # break other packages using the cache if that directory is
7041     # removed, or if the value is a relative name.
7042     INSTALL=$ac_install_sh
7043   fi
7044 fi
7045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7046 echo "${ECHO_T}$INSTALL" >&6; }
7047
7048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7049 # It thinks the first close brace ends the variable substitution.
7050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7051
7052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7053
7054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7055
7056 case "$INSTALL" in
7057  [\\/$]* | ?:[\\/]* ) ;;
7058  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7059 esac
7060
7061 # Extract the first word of "bzip2", so it can be a program name with args.
7062 set dummy bzip2; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_path_BZIP2+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   case $BZIP2 in
7069   [\\/]* | ?:[\\/]*)
7070   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7071   ;;
7072   *)
7073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088   ;;
7089 esac
7090 fi
7091 BZIP2=$ac_cv_path_BZIP2
7092 if test -n "$BZIP2"; then
7093   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7094 echo "${ECHO_T}$BZIP2" >&6; }
7095 else
7096   { echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6; }
7098 fi
7099
7100
7101 # Extract the first word of "cat", so it can be a program name with args.
7102 set dummy cat; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_CAT+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   case $CAT in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128   ;;
7129 esac
7130 fi
7131 CAT=$ac_cv_path_CAT
7132 if test -n "$CAT"; then
7133   { echo "$as_me:$LINENO: result: $CAT" >&5
7134 echo "${ECHO_T}$CAT" >&6; }
7135 else
7136   { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7138 fi
7139
7140
7141 # Extract the first word of "doxygen", so it can be a program name with args.
7142 set dummy doxygen; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   case $DOXYGEN in
7149   [\\/]* | ?:[\\/]*)
7150   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7151   ;;
7152   *)
7153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158   for ac_exec_ext in '' $ac_executable_extensions; do
7159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168   ;;
7169 esac
7170 fi
7171 DOXYGEN=$ac_cv_path_DOXYGEN
7172 if test -n "$DOXYGEN"; then
7173   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7174 echo "${ECHO_T}$DOXYGEN" >&6; }
7175 else
7176   { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7178 fi
7179
7180
7181 # Extract the first word of "groff", so it can be a program name with args.
7182 set dummy groff; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_GROFF+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   case $GROFF in
7189   [\\/]* | ?:[\\/]*)
7190   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7191   ;;
7192   *)
7193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208   ;;
7209 esac
7210 fi
7211 GROFF=$ac_cv_path_GROFF
7212 if test -n "$GROFF"; then
7213   { echo "$as_me:$LINENO: result: $GROFF" >&5
7214 echo "${ECHO_T}$GROFF" >&6; }
7215 else
7216   { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7218 fi
7219
7220
7221 # Extract the first word of "gzip", so it can be a program name with args.
7222 set dummy gzip; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $GZIPBIN in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238   for ac_exec_ext in '' $ac_executable_extensions; do
7239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248   ;;
7249 esac
7250 fi
7251 GZIPBIN=$ac_cv_path_GZIPBIN
7252 if test -n "$GZIPBIN"; then
7253   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7254 echo "${ECHO_T}$GZIPBIN" >&6; }
7255 else
7256   { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7258 fi
7259
7260
7261 # Extract the first word of "pdfroff", so it can be a program name with args.
7262 set dummy pdfroff; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_PDFROFF+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $PDFROFF in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7271   ;;
7272   *)
7273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288   ;;
7289 esac
7290 fi
7291 PDFROFF=$ac_cv_path_PDFROFF
7292 if test -n "$PDFROFF"; then
7293   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7294 echo "${ECHO_T}$PDFROFF" >&6; }
7295 else
7296   { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7298 fi
7299
7300
7301 # Extract the first word of "zip", so it can be a program name with args.
7302 set dummy zip; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_ZIP+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $ZIP in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   ;;
7329 esac
7330 fi
7331 ZIP=$ac_cv_path_ZIP
7332 if test -n "$ZIP"; then
7333   { echo "$as_me:$LINENO: result: $ZIP" >&5
7334 echo "${ECHO_T}$ZIP" >&6; }
7335 else
7336   { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7338 fi
7339
7340
7341 for ac_prog in ocamlc
7342 do
7343   # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_OCAMLC+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $OCAMLC in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 OCAMLC=$ac_cv_path_OCAMLC
7374 if test -n "$OCAMLC"; then
7375   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7376 echo "${ECHO_T}$OCAMLC" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383   test -n "$OCAMLC" && break
7384 done
7385
7386 for ac_prog in ocamlopt
7387 do
7388   # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   case $OCAMLOPT in
7396   [\\/]* | ?:[\\/]*)
7397   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7398   ;;
7399   *)
7400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405   for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415   ;;
7416 esac
7417 fi
7418 OCAMLOPT=$ac_cv_path_OCAMLOPT
7419 if test -n "$OCAMLOPT"; then
7420   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7421 echo "${ECHO_T}$OCAMLOPT" >&6; }
7422 else
7423   { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7425 fi
7426
7427
7428   test -n "$OCAMLOPT" && break
7429 done
7430
7431 for ac_prog in ocamldep
7432 do
7433   # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $OCAMLDEP in
7441   [\\/]* | ?:[\\/]*)
7442   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7443   ;;
7444   *)
7445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460   ;;
7461 esac
7462 fi
7463 OCAMLDEP=$ac_cv_path_OCAMLDEP
7464 if test -n "$OCAMLDEP"; then
7465   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7466 echo "${ECHO_T}$OCAMLDEP" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473   test -n "$OCAMLDEP" && break
7474 done
7475
7476 for ac_prog in ocamldoc
7477 do
7478   # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   case $OCAMLDOC in
7486   [\\/]* | ?:[\\/]*)
7487   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7488   ;;
7489   *)
7490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495   for ac_exec_ext in '' $ac_executable_extensions; do
7496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505   ;;
7506 esac
7507 fi
7508 OCAMLDOC=$ac_cv_path_OCAMLDOC
7509 if test -n "$OCAMLDOC"; then
7510   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7511 echo "${ECHO_T}$OCAMLDOC" >&6; }
7512 else
7513   { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7515 fi
7516
7517
7518   test -n "$OCAMLDOC" && break
7519 done
7520
7521 for ac_prog in gas as
7522 do
7523   # Extract the first word of "$ac_prog", so it can be a program name with args.
7524 set dummy $ac_prog; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GAS+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   case $GAS in
7531   [\\/]* | ?:[\\/]*)
7532   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7533   ;;
7534   *)
7535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540   for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550   ;;
7551 esac
7552 fi
7553 GAS=$ac_cv_path_GAS
7554 if test -n "$GAS"; then
7555   { echo "$as_me:$LINENO: result: $GAS" >&5
7556 echo "${ECHO_T}$GAS" >&6; }
7557 else
7558   { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7560 fi
7561
7562
7563   test -n "$GAS" && break
7564 done
7565
7566
7567 { echo "$as_me:$LINENO: checking for linker version" >&5
7568 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7569 if test "${llvm_cv_link_version+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572
7573    version_string="$(ld -v 2>&1 | head -1)"
7574
7575    # Check for ld64.
7576    if (echo "$version_string" | grep -q "ld64"); then
7577      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7578    else
7579      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7580    fi
7581
7582 fi
7583 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7584 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7585
7586 cat >>confdefs.h <<_ACEOF
7587 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7588 _ACEOF
7589
7590
7591
7592
7593 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7594 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7595 if test "${llvm_cv_link_use_r+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598    ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604   oldcflags="$CFLAGS"
7605   CFLAGS="$CFLAGS -Wl,-R."
7606   cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612
7613 int
7614 main ()
7615 {
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (ac_try="$ac_link"
7623 case "(($ac_try" in
7624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625   *) ac_try_echo=$ac_try;;
7626 esac
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628   (eval "$ac_link") 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7636   { (case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641   (eval "$ac_try") 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; } &&
7645          { ac_try='test -s conftest$ac_exeext'
7646   { (case "(($ac_try" in
7647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648   *) ac_try_echo=$ac_try;;
7649 esac
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651   (eval "$ac_try") 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   llvm_cv_link_use_r=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660         llvm_cv_link_use_r=no
7661 fi
7662
7663 rm -f core conftest.err conftest.$ac_objext \
7664       conftest$ac_exeext conftest.$ac_ext
7665   CFLAGS="$oldcflags"
7666   ac_ext=c
7667 ac_cpp='$CPP $CPPFLAGS'
7668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671
7672
7673 fi
7674 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7675 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7676 if test "$llvm_cv_link_use_r" = yes ; then
7677
7678 cat >>confdefs.h <<\_ACEOF
7679 #define HAVE_LINK_R 1
7680 _ACEOF
7681
7682   fi
7683
7684
7685 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7686 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7687 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690    ac_ext=c
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695
7696   oldcflags="$CFLAGS"
7697   CFLAGS="$CFLAGS -rdynamic"
7698   cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704
7705 int
7706 main ()
7707 {
7708
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (ac_try="$ac_link"
7715 case "(($ac_try" in
7716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717   *) ac_try_echo=$ac_try;;
7718 esac
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720   (eval "$ac_link") 2>conftest.er1
7721   ac_status=$?
7722   grep -v '^ *+' conftest.er1 >conftest.err
7723   rm -f conftest.er1
7724   cat conftest.err >&5
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } &&
7727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728   { (case "(($ac_try" in
7729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730   *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733   (eval "$ac_try") 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; } &&
7737          { ac_try='test -s conftest$ac_exeext'
7738   { (case "(($ac_try" in
7739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740   *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743   (eval "$ac_try") 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   llvm_cv_link_use_export_dynamic=yes
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752         llvm_cv_link_use_export_dynamic=no
7753 fi
7754
7755 rm -f core conftest.err conftest.$ac_objext \
7756       conftest$ac_exeext conftest.$ac_ext
7757   CFLAGS="$oldcflags"
7758   ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765 fi
7766 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7767 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7768 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7769
7770 cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_LINK_EXPORT_DYNAMIC 1
7772 _ACEOF
7773
7774   fi
7775
7776
7777 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7778 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7779 if test "${llvm_cv_link_use_version_script+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782    ac_ext=c
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788   oldcflags="$CFLAGS"
7789
7790   # The following code is from the autoconf manual,
7791   # "11.13: Limitations of Usual Tools".
7792   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7793   # Use mktemp if possible; otherwise fall back on mkdir,
7794   # with $RANDOM to make collisions less likely.
7795   : ${TMPDIR=/tmp}
7796   {
7797     tmp=`
7798       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7799     ` &&
7800     test -n "$tmp" && test -d "$tmp"
7801   } || {
7802     tmp=$TMPDIR/foo$$-$RANDOM
7803     (umask 077 && mkdir "$tmp")
7804   } || exit $?
7805
7806   echo "{" > "$tmp/export.map"
7807   echo "  global: main;" >> "$tmp/export.map"
7808   echo "  local: *;" >> "$tmp/export.map"
7809   echo "};" >> "$tmp/export.map"
7810
7811   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818
7819 int
7820 main ()
7821 {
7822
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (ac_try="$ac_link"
7829 case "(($ac_try" in
7830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831   *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834   (eval "$ac_link") 2>conftest.er1
7835   ac_status=$?
7836   grep -v '^ *+' conftest.er1 >conftest.err
7837   rm -f conftest.er1
7838   cat conftest.err >&5
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); } &&
7841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7842   { (case "(($ac_try" in
7843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844   *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847   (eval "$ac_try") 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); }; } &&
7851          { ac_try='test -s conftest$ac_exeext'
7852   { (case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_try") 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); }; }; then
7861   llvm_cv_link_use_version_script=yes
7862 else
7863   echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866         llvm_cv_link_use_version_script=no
7867 fi
7868
7869 rm -f core conftest.err conftest.$ac_objext \
7870       conftest$ac_exeext conftest.$ac_ext
7871   rm "$tmp/export.map"
7872   rmdir "$tmp"
7873   CFLAGS="$oldcflags"
7874   ac_ext=c
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880
7881 fi
7882 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7883 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7884 if test "$llvm_cv_link_use_version_script" = yes ; then
7885   HAVE_LINK_VERSION_SCRIPT=1
7886
7887   fi
7888
7889
7890
7891
7892 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7893 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7894 if test "${ac_cv_c_const+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h.  */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h.  */
7903
7904 int
7905 main ()
7906 {
7907 /* FIXME: Include the comments suggested by Paul. */
7908 #ifndef __cplusplus
7909   /* Ultrix mips cc rejects this.  */
7910   typedef int charset[2];
7911   const charset x;
7912   /* SunOS 4.1.1 cc rejects this.  */
7913   char const *const *ccp;
7914   char **p;
7915   /* NEC SVR4.0.2 mips cc rejects this.  */
7916   struct point {int x, y;};
7917   static struct point const zero = {0,0};
7918   /* AIX XL C 1.02.0.0 rejects this.
7919      It does not let you subtract one const X* pointer from another in
7920      an arm of an if-expression whose if-part is not a constant
7921      expression */
7922   const char *g = "string";
7923   ccp = &g + (g ? g-g : 0);
7924   /* HPUX 7.0 cc rejects these. */
7925   ++ccp;
7926   p = (char**) ccp;
7927   ccp = (char const *const *) p;
7928   { /* SCO 3.2v4 cc rejects this.  */
7929     char *t;
7930     char const *s = 0 ? (char *) 0 : (char const *) 0;
7931
7932     *t++ = 0;
7933     if (s) return 0;
7934   }
7935   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7936     int x[] = {25, 17};
7937     const int *foo = &x[0];
7938     ++foo;
7939   }
7940   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7941     typedef const int *iptr;
7942     iptr p = 0;
7943     ++p;
7944   }
7945   { /* AIX XL C 1.02.0.0 rejects this saying
7946        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7947     struct s { int j; const int *ap[3]; };
7948     struct s *b; b->j = 5;
7949   }
7950   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7951     const int foo = 10;
7952     if (!foo) return 0;
7953   }
7954   return !x[0] && !zero.x;
7955 #endif
7956
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968   (eval "$ac_compile") 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976   { (case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_try") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest.$ac_objext'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   ac_cv_c_const=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         ac_cv_c_const=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8006 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8007 if test $ac_cv_c_const = no; then
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define const
8011 _ACEOF
8012
8013 fi
8014
8015
8016 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8017 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_GREP+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   # Extract the first word of "grep ggrep" to use in msg output
8022 if test -z "$GREP"; then
8023 set dummy grep ggrep; ac_prog_name=$2
8024 if test "${ac_cv_path_GREP+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   ac_path_GREP_found=false
8028 # Loop through the user's path and test for each of PROGNAME-LIST
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034   for ac_prog in grep ggrep; do
8035   for ac_exec_ext in '' $ac_executable_extensions; do
8036     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8037     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8038     # Check for GNU ac_path_GREP and select it if it is found.
8039   # Check for GNU $ac_path_GREP
8040 case `"$ac_path_GREP" --version 2>&1` in
8041 *GNU*)
8042   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8043 *)
8044   ac_count=0
8045   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8046   while :
8047   do
8048     cat "conftest.in" "conftest.in" >"conftest.tmp"
8049     mv "conftest.tmp" "conftest.in"
8050     cp "conftest.in" "conftest.nl"
8051     echo 'GREP' >> "conftest.nl"
8052     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8053     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8054     ac_count=`expr $ac_count + 1`
8055     if test $ac_count -gt ${ac_path_GREP_max-0}; then
8056       # Best one so far, save it but keep looking for a better one
8057       ac_cv_path_GREP="$ac_path_GREP"
8058       ac_path_GREP_max=$ac_count
8059     fi
8060     # 10*(2^10) chars as input seems more than enough
8061     test $ac_count -gt 10 && break
8062   done
8063   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8064 esac
8065
8066
8067     $ac_path_GREP_found && break 3
8068   done
8069 done
8070
8071 done
8072 IFS=$as_save_IFS
8073
8074
8075 fi
8076
8077 GREP="$ac_cv_path_GREP"
8078 if test -z "$GREP"; then
8079   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8081    { (exit 1); exit 1; }; }
8082 fi
8083
8084 else
8085   ac_cv_path_GREP=$GREP
8086 fi
8087
8088
8089 fi
8090 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8091 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8092  GREP="$ac_cv_path_GREP"
8093
8094
8095 { echo "$as_me:$LINENO: checking for egrep" >&5
8096 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8097 if test "${ac_cv_path_EGREP+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8101    then ac_cv_path_EGREP="$GREP -E"
8102    else
8103      # Extract the first word of "egrep" to use in msg output
8104 if test -z "$EGREP"; then
8105 set dummy egrep; ac_prog_name=$2
8106 if test "${ac_cv_path_EGREP+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   ac_path_EGREP_found=false
8110 # Loop through the user's path and test for each of PROGNAME-LIST
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8113 do
8114   IFS=$as_save_IFS
8115   test -z "$as_dir" && as_dir=.
8116   for ac_prog in egrep; do
8117   for ac_exec_ext in '' $ac_executable_extensions; do
8118     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8119     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8120     # Check for GNU ac_path_EGREP and select it if it is found.
8121   # Check for GNU $ac_path_EGREP
8122 case `"$ac_path_EGREP" --version 2>&1` in
8123 *GNU*)
8124   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8125 *)
8126   ac_count=0
8127   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8128   while :
8129   do
8130     cat "conftest.in" "conftest.in" >"conftest.tmp"
8131     mv "conftest.tmp" "conftest.in"
8132     cp "conftest.in" "conftest.nl"
8133     echo 'EGREP' >> "conftest.nl"
8134     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8136     ac_count=`expr $ac_count + 1`
8137     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8138       # Best one so far, save it but keep looking for a better one
8139       ac_cv_path_EGREP="$ac_path_EGREP"
8140       ac_path_EGREP_max=$ac_count
8141     fi
8142     # 10*(2^10) chars as input seems more than enough
8143     test $ac_count -gt 10 && break
8144   done
8145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8146 esac
8147
8148
8149     $ac_path_EGREP_found && break 3
8150   done
8151 done
8152
8153 done
8154 IFS=$as_save_IFS
8155
8156
8157 fi
8158
8159 EGREP="$ac_cv_path_EGREP"
8160 if test -z "$EGREP"; then
8161   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8163    { (exit 1); exit 1; }; }
8164 fi
8165
8166 else
8167   ac_cv_path_EGREP=$EGREP
8168 fi
8169
8170
8171    fi
8172 fi
8173 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8174 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8175  EGREP="$ac_cv_path_EGREP"
8176
8177
8178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8180 if test "${ac_cv_header_stdc+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189 #include <stdlib.h>
8190 #include <stdarg.h>
8191 #include <string.h>
8192 #include <float.h>
8193
8194 int
8195 main ()
8196 {
8197
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217   { (case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; } &&
8226          { ac_try='test -s conftest.$ac_objext'
8227   { (case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_try") 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_header_stdc=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241         ac_cv_header_stdc=no
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245
8246 if test $ac_cv_header_stdc = yes; then
8247   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8248   cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254 #include <string.h>
8255
8256 _ACEOF
8257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8258   $EGREP "memchr" >/dev/null 2>&1; then
8259   :
8260 else
8261   ac_cv_header_stdc=no
8262 fi
8263 rm -f conftest*
8264
8265 fi
8266
8267 if test $ac_cv_header_stdc = yes; then
8268   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 #include <stdlib.h>
8276
8277 _ACEOF
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279   $EGREP "free" >/dev/null 2>&1; then
8280   :
8281 else
8282   ac_cv_header_stdc=no
8283 fi
8284 rm -f conftest*
8285
8286 fi
8287
8288 if test $ac_cv_header_stdc = yes; then
8289   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8290   if test "$cross_compiling" = yes; then
8291   :
8292 else
8293   cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h.  */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h.  */
8299 #include <ctype.h>
8300 #include <stdlib.h>
8301 #if ((' ' & 0x0FF) == 0x020)
8302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8304 #else
8305 # define ISLOWER(c) \
8306                    (('a' <= (c) && (c) <= 'i') \
8307                      || ('j' <= (c) && (c) <= 'r') \
8308                      || ('s' <= (c) && (c) <= 'z'))
8309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8310 #endif
8311
8312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8313 int
8314 main ()
8315 {
8316   int i;
8317   for (i = 0; i < 256; i++)
8318     if (XOR (islower (i), ISLOWER (i))
8319         || toupper (i) != TOUPPER (i))
8320       return 2;
8321   return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest$ac_exeext
8325 if { (ac_try="$ac_link"
8326 case "(($ac_try" in
8327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328   *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331   (eval "$ac_link") 2>&5
8332   ac_status=$?
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8335   { (case "(($ac_try" in
8336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337   *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340   (eval "$ac_try") 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; }; then
8344   :
8345 else
8346   echo "$as_me: program exited with status $ac_status" >&5
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 ( exit $ac_status )
8351 ac_cv_header_stdc=no
8352 fi
8353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8354 fi
8355
8356
8357 fi
8358 fi
8359 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8360 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8361 if test $ac_cv_header_stdc = yes; then
8362
8363 cat >>confdefs.h <<\_ACEOF
8364 #define STDC_HEADERS 1
8365 _ACEOF
8366
8367 fi
8368
8369
8370
8371
8372
8373
8374 ac_header_dirent=no
8375 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8376   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8377 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8378 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 #include <sys/types.h>
8389 #include <$ac_hdr>
8390
8391 int
8392 main ()
8393 {
8394 if ((DIR *) 0)
8395 return 0;
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8402 case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_compile") 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } &&
8414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415   { (case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420   (eval "$ac_try") 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; } &&
8424          { ac_try='test -s conftest.$ac_objext'
8425   { (case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_try") 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   eval "$as_ac_Header=yes"
8435 else
8436   echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439         eval "$as_ac_Header=no"
8440 fi
8441
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 ac_res=`eval echo '${'$as_ac_Header'}'`
8445                { echo "$as_me:$LINENO: result: $ac_res" >&5
8446 echo "${ECHO_T}$ac_res" >&6; }
8447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8448   cat >>confdefs.h <<_ACEOF
8449 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8450 _ACEOF
8451
8452 ac_header_dirent=$ac_hdr; break
8453 fi
8454
8455 done
8456 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8457 if test $ac_header_dirent = dirent.h; then
8458   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8459 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8460 if test "${ac_cv_search_opendir+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   ac_func_search_save_LIBS=$LIBS
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470
8471 /* Override any GCC internal prototype to avoid an error.
8472    Use char because int might match the return type of a GCC
8473    builtin and then its argument prototype would still apply.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 char opendir ();
8478 int
8479 main ()
8480 {
8481 return opendir ();
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 for ac_lib in '' dir; do
8487   if test -z "$ac_lib"; then
8488     ac_res="none required"
8489   else
8490     ac_res=-l$ac_lib
8491     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8492   fi
8493   rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_link") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508   { (case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513   (eval "$ac_try") 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; } &&
8517          { ac_try='test -s conftest$ac_exeext'
8518   { (case "(($ac_try" in
8519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520   *) ac_try_echo=$ac_try;;
8521 esac
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523   (eval "$ac_try") 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; }; then
8527   ac_cv_search_opendir=$ac_res
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext \
8536       conftest$ac_exeext
8537   if test "${ac_cv_search_opendir+set}" = set; then
8538   break
8539 fi
8540 done
8541 if test "${ac_cv_search_opendir+set}" = set; then
8542   :
8543 else
8544   ac_cv_search_opendir=no
8545 fi
8546 rm conftest.$ac_ext
8547 LIBS=$ac_func_search_save_LIBS
8548 fi
8549 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8550 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8551 ac_res=$ac_cv_search_opendir
8552 if test "$ac_res" != no; then
8553   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8554
8555 fi
8556
8557 else
8558   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8559 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8560 if test "${ac_cv_search_opendir+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   ac_func_search_save_LIBS=$LIBS
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570
8571 /* Override any GCC internal prototype to avoid an error.
8572    Use char because int might match the return type of a GCC
8573    builtin and then its argument prototype would still apply.  */
8574 #ifdef __cplusplus
8575 extern "C"
8576 #endif
8577 char opendir ();
8578 int
8579 main ()
8580 {
8581 return opendir ();
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 for ac_lib in '' x; do
8587   if test -z "$ac_lib"; then
8588     ac_res="none required"
8589   else
8590     ac_res=-l$ac_lib
8591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8592   fi
8593   rm -f conftest.$ac_objext conftest$ac_exeext
8594 if { (ac_try="$ac_link"
8595 case "(($ac_try" in
8596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597   *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600   (eval "$ac_link") 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } &&
8607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608   { (case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_try") 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; } &&
8617          { ac_try='test -s conftest$ac_exeext'
8618   { (case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_try") 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_search_opendir=$ac_res
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext \
8636       conftest$ac_exeext
8637   if test "${ac_cv_search_opendir+set}" = set; then
8638   break
8639 fi
8640 done
8641 if test "${ac_cv_search_opendir+set}" = set; then
8642   :
8643 else
8644   ac_cv_search_opendir=no
8645 fi
8646 rm conftest.$ac_ext
8647 LIBS=$ac_func_search_save_LIBS
8648 fi
8649 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8650 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8651 ac_res=$ac_cv_search_opendir
8652 if test "$ac_res" != no; then
8653   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8654
8655 fi
8656
8657 fi
8658
8659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8670                   inttypes.h stdint.h unistd.h
8671 do
8672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 $ac_includes_default
8685
8686 #include <$ac_header>
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (ac_try="$ac_compile"
8690 case "(($ac_try" in
8691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692   *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695   (eval "$ac_compile") 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } &&
8702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8703   { (case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708   (eval "$ac_try") 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; } &&
8712          { ac_try='test -s conftest.$ac_objext'
8713   { (case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718   (eval "$ac_try") 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; }; then
8722   eval "$as_ac_Header=yes"
8723 else
8724   echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727         eval "$as_ac_Header=no"
8728 fi
8729
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 ac_res=`eval echo '${'$as_ac_Header'}'`
8733                { echo "$as_me:$LINENO: result: $ac_res" >&5
8734 echo "${ECHO_T}$ac_res" >&6; }
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741
8742 done
8743
8744
8745
8746 for ac_header in dlfcn.h
8747 do
8748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8750   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 fi
8755 ac_res=`eval echo '${'$as_ac_Header'}'`
8756                { echo "$as_me:$LINENO: result: $ac_res" >&5
8757 echo "${ECHO_T}$ac_res" >&6; }
8758 else
8759   # Is the header compilable?
8760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 $ac_includes_default
8769 #include <$ac_header>
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778   (eval "$ac_compile") 2>conftest.er1
8779   ac_status=$?
8780   grep -v '^ *+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8786   { (case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_try") 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); }; } &&
8795          { ac_try='test -s conftest.$ac_objext'
8796   { (case "(($ac_try" in
8797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798   *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801   (eval "$ac_try") 2>&5
8802   ac_status=$?
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); }; }; then
8805   ac_header_compiler=yes
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810         ac_header_compiler=no
8811 fi
8812
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8815 echo "${ECHO_T}$ac_header_compiler" >&6; }
8816
8817 # Is the header present?
8818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 #include <$ac_header>
8827 _ACEOF
8828 if { (ac_try="$ac_cpp conftest.$ac_ext"
8829 case "(($ac_try" in
8830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831   *) ac_try_echo=$ac_try;;
8832 esac
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } >/dev/null; then
8841   if test -s conftest.err; then
8842     ac_cpp_err=$ac_c_preproc_warn_flag
8843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844   else
8845     ac_cpp_err=
8846   fi
8847 else
8848   ac_cpp_err=yes
8849 fi
8850 if test -z "$ac_cpp_err"; then
8851   ac_header_preproc=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856   ac_header_preproc=no
8857 fi
8858
8859 rm -f conftest.err conftest.$ac_ext
8860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861 echo "${ECHO_T}$ac_header_preproc" >&6; }
8862
8863 # So?  What about this header?
8864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8865   yes:no: )
8866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8870     ac_header_preproc=yes
8871     ;;
8872   no:yes:* )
8873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8875     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8876 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8880 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8885     ( cat <<\_ASBOX
8886 ## ------------------------------------ ##
8887 ## Report this to http://llvm.org/bugs/ ##
8888 ## ------------------------------------ ##
8889 _ASBOX
8890      ) | sed "s/^/$as_me: WARNING:     /" >&2
8891     ;;
8892 esac
8893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   eval "$as_ac_Header=\$ac_header_preproc"
8899 fi
8900 ac_res=`eval echo '${'$as_ac_Header'}'`
8901                { echo "$as_me:$LINENO: result: $ac_res" >&5
8902 echo "${ECHO_T}$ac_res" >&6; }
8903
8904 fi
8905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906   cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8908 _ACEOF
8909
8910 fi
8911
8912 done
8913
8914 # Check whether --enable-ltdl-install was given.
8915 if test "${enable_ltdl_install+set}" = set; then
8916   enableval=$enable_ltdl_install;
8917 fi
8918
8919
8920
8921
8922 if test x"${enable_ltdl_install-no}" != xno; then
8923   INSTALL_LTDL_TRUE=
8924   INSTALL_LTDL_FALSE='#'
8925 else
8926   INSTALL_LTDL_TRUE='#'
8927   INSTALL_LTDL_FALSE=
8928 fi
8929
8930
8931
8932 if test x"${enable_ltdl_convenience-no}" != xno; then
8933   CONVENIENCE_LTDL_TRUE=
8934   CONVENIENCE_LTDL_FALSE='#'
8935 else
8936   CONVENIENCE_LTDL_TRUE='#'
8937   CONVENIENCE_LTDL_FALSE=
8938 fi
8939
8940
8941 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8943 library_names_spec=
8944 libname_spec='lib$name'
8945 soname_spec=
8946 shrext_cmds=".so"
8947 postinstall_cmds=
8948 postuninstall_cmds=
8949 finish_cmds=
8950 finish_eval=
8951 shlibpath_var=
8952 shlibpath_overrides_runpath=unknown
8953 version_type=none
8954 dynamic_linker="$host_os ld.so"
8955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8956 if test "$GCC" = yes; then
8957   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8958   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8959     # if the path contains ";" then we assume it to be the separator
8960     # otherwise default to the standard path separator (i.e. ":") - it is
8961     # assumed that no part of a normal pathname contains ";" but that should
8962     # okay in the real world where ";" in dirpaths is itself problematic.
8963     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8964   else
8965     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8966   fi
8967 else
8968   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8969 fi
8970 need_lib_prefix=unknown
8971 hardcode_into_libs=no
8972
8973 # when you set need_version to no, make sure it does not cause -set_version
8974 # flags to be left without arguments
8975 need_version=unknown
8976
8977 case $host_os in
8978 aix3*)
8979   version_type=linux
8980   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8981   shlibpath_var=LIBPATH
8982
8983   # AIX 3 has no versioning support, so we append a major version to the name.
8984   soname_spec='${libname}${release}${shared_ext}$major'
8985   ;;
8986
8987 aix4* | aix5*)
8988   version_type=linux
8989   need_lib_prefix=no
8990   need_version=no
8991   hardcode_into_libs=yes
8992   if test "$host_cpu" = ia64; then
8993     # AIX 5 supports IA64
8994     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8995     shlibpath_var=LD_LIBRARY_PATH
8996   else
8997     # With GCC up to 2.95.x, collect2 would create an import file
8998     # for dependence libraries.  The import file would start with
8999     # the line `#! .'.  This would cause the generated library to
9000     # depend on `.', always an invalid library.  This was fixed in
9001     # development snapshots of GCC prior to 3.0.
9002     case $host_os in
9003       aix4 | aix4.[01] | aix4.[01].*)
9004       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9005            echo ' yes '
9006            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9007         :
9008       else
9009         can_build_shared=no
9010       fi
9011       ;;
9012     esac
9013     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9014     # soname into executable. Probably we can add versioning support to
9015     # collect2, so additional links can be useful in future.
9016     if test "$aix_use_runtimelinking" = yes; then
9017       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9018       # instead of lib<name>.a to let people know that these are not
9019       # typical AIX shared libraries.
9020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021     else
9022       # We preserve .a as extension for shared libraries through AIX4.2
9023       # and later when we are not doing run time linking.
9024       library_names_spec='${libname}${release}.a $libname.a'
9025       soname_spec='${libname}${release}${shared_ext}$major'
9026     fi
9027     shlibpath_var=LIBPATH
9028   fi
9029   ;;
9030
9031 amigaos*)
9032   library_names_spec='$libname.ixlibrary $libname.a'
9033   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9034   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'
9035   ;;
9036
9037 beos*)
9038   library_names_spec='${libname}${shared_ext}'
9039   dynamic_linker="$host_os ld.so"
9040   shlibpath_var=LIBRARY_PATH
9041   ;;
9042
9043 bsdi[45]*)
9044   version_type=linux
9045   need_version=no
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9051   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9052   # the default ld.so.conf also contains /usr/contrib/lib and
9053   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9054   # libtool to hard-code these into programs
9055   ;;
9056
9057 cygwin* | mingw* | pw32*)
9058   version_type=windows
9059   shrext_cmds=".dll"
9060   need_version=no
9061   need_lib_prefix=no
9062
9063   case $GCC,$host_os in
9064   yes,cygwin* | yes,mingw* | yes,pw32*)
9065     library_names_spec='$libname.dll.a'
9066     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9067     postinstall_cmds='base_file=`basename \${file}`~
9068       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9069       dldir=$destdir/`dirname \$dlpath`~
9070       test -d \$dldir || mkdir -p \$dldir~
9071       $install_prog $dir/$dlname \$dldir/$dlname~
9072       chmod a+x \$dldir/$dlname'
9073     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9074       dlpath=$dir/\$dldll~
9075        $rm \$dlpath'
9076     shlibpath_overrides_runpath=yes
9077
9078     case $host_os in
9079     cygwin*)
9080       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9081       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9082       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9083       ;;
9084     mingw*)
9085       # MinGW DLLs use traditional 'lib' prefix
9086       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9087       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9088       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9089         # It is most probably a Windows format PATH printed by
9090         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9091         # path with ; separators, and with drive letters. We can handle the
9092         # drive letters (cygwin fileutils understands them), so leave them,
9093         # especially as we might pass files found there to a mingw objdump,
9094         # which wouldn't understand a cygwinified path. Ahh.
9095         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9096       else
9097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9098       fi
9099       ;;
9100     pw32*)
9101       # pw32 DLLs use 'pw' prefix rather than 'lib'
9102       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9103       ;;
9104     esac
9105     ;;
9106
9107   *)
9108     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9109     ;;
9110   esac
9111   dynamic_linker='Win32 ld.exe'
9112   # FIXME: first we should search . and the directory the executable is in
9113   shlibpath_var=PATH
9114   ;;
9115
9116 darwin* | rhapsody*)
9117   dynamic_linker="$host_os dyld"
9118   version_type=darwin
9119   need_lib_prefix=no
9120   need_version=no
9121   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9122   soname_spec='${libname}${release}${major}$shared_ext'
9123   shlibpath_overrides_runpath=yes
9124   shlibpath_var=DYLD_LIBRARY_PATH
9125   shrext_cmds='.dylib'
9126   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9127   if test "$GCC" = yes; then
9128     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"`
9129   else
9130     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9131   fi
9132   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9133   ;;
9134
9135 dgux*)
9136   version_type=linux
9137   need_lib_prefix=no
9138   need_version=no
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   ;;
9143
9144 freebsd1.*)
9145   dynamic_linker=no
9146   ;;
9147
9148 kfreebsd*-gnu)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   shlibpath_overrides_runpath=no
9156   hardcode_into_libs=yes
9157   dynamic_linker='GNU ld.so'
9158   ;;
9159
9160 freebsd* | dragonfly*)
9161   # DragonFly does not have aout.  When/if they implement a new
9162   # versioning mechanism, adjust this.
9163   if test -x /usr/bin/objformat; then
9164     objformat=`/usr/bin/objformat`
9165   else
9166     case $host_os in
9167     freebsd[123].*) objformat=aout ;;
9168     *) objformat=elf ;;
9169     esac
9170   fi
9171   version_type=freebsd-$objformat
9172   case $version_type in
9173     freebsd-elf*)
9174       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9175       need_version=no
9176       need_lib_prefix=no
9177       ;;
9178     freebsd-*)
9179       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9180       need_version=yes
9181       ;;
9182   esac
9183   shlibpath_var=LD_LIBRARY_PATH
9184   case $host_os in
9185   freebsd2.*)
9186     shlibpath_overrides_runpath=yes
9187     ;;
9188   freebsd3.[01]* | freebsdelf3.[01]*)
9189     shlibpath_overrides_runpath=yes
9190     hardcode_into_libs=yes
9191     ;;
9192   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9193   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9194     shlibpath_overrides_runpath=no
9195     hardcode_into_libs=yes
9196     ;;
9197   freebsd*) # from 4.6 on
9198     shlibpath_overrides_runpath=yes
9199     hardcode_into_libs=yes
9200     ;;
9201   esac
9202   ;;
9203
9204 gnu*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   hardcode_into_libs=yes
9212   ;;
9213
9214 hpux9* | hpux10* | hpux11*)
9215   # Give a soname corresponding to the major version so that dld.sl refuses to
9216   # link against other versions.
9217   version_type=sunos
9218   need_lib_prefix=no
9219   need_version=no
9220   case $host_cpu in
9221   ia64*)
9222     shrext_cmds='.so'
9223     hardcode_into_libs=yes
9224     dynamic_linker="$host_os dld.so"
9225     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
9230       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9231     else
9232       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9233     fi
9234     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9235     ;;
9236    hppa*64*)
9237      shrext_cmds='.sl'
9238      hardcode_into_libs=yes
9239      dynamic_linker="$host_os dld.sl"
9240      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9241      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9242      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243      soname_spec='${libname}${release}${shared_ext}$major'
9244      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9245      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9246      ;;
9247    *)
9248     shrext_cmds='.sl'
9249     dynamic_linker="$host_os dld.sl"
9250     shlibpath_var=SHLIB_PATH
9251     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253     soname_spec='${libname}${release}${shared_ext}$major'
9254     ;;
9255   esac
9256   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9257   postinstall_cmds='chmod 555 $lib'
9258   ;;
9259
9260 interix3*)
9261   version_type=linux
9262   need_lib_prefix=no
9263   need_version=no
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   shlibpath_overrides_runpath=no
9269   hardcode_into_libs=yes
9270   ;;
9271
9272 irix5* | irix6* | nonstopux*)
9273   case $host_os in
9274     nonstopux*) version_type=nonstopux ;;
9275     *)
9276         if test "$lt_cv_prog_gnu_ld" = yes; then
9277                 version_type=linux
9278         else
9279                 version_type=irix
9280         fi ;;
9281   esac
9282   need_lib_prefix=no
9283   need_version=no
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9286   case $host_os in
9287   irix5* | nonstopux*)
9288     libsuff= shlibsuff=
9289     ;;
9290   *)
9291     case $LD in # libtool.m4 will add one of these switches to LD
9292     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9293       libsuff= shlibsuff= libmagic=32-bit;;
9294     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9295       libsuff=32 shlibsuff=N32 libmagic=N32;;
9296     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9297       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9298     *) libsuff= shlibsuff= libmagic=never-match;;
9299     esac
9300     ;;
9301   esac
9302   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9303   shlibpath_overrides_runpath=no
9304   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9305   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9306   hardcode_into_libs=yes
9307   ;;
9308
9309 # No shared lib support for Linux oldld, aout, or coff.
9310 linux*oldld* | linux*aout* | linux*coff*)
9311   dynamic_linker=no
9312   ;;
9313
9314 # This must be Linux ELF.
9315 linux*)
9316   version_type=linux
9317   need_lib_prefix=no
9318   need_version=no
9319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320   soname_spec='${libname}${release}${shared_ext}$major'
9321   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=no
9324   # This implies no fast_install, which is unacceptable.
9325   # Some rework will be needed to allow for fast_install
9326   # before this can be enabled.
9327   hardcode_into_libs=yes
9328
9329   # Append ld.so.conf contents to the search path
9330   if test -f /etc/ld.so.conf; then
9331     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' ' '`
9332     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9333   fi
9334
9335   # We used to test for /lib/ld.so.1 and disable shared libraries on
9336   # powerpc, because MkLinux only supported shared libraries with the
9337   # GNU dynamic linker.  Since this was broken with cross compilers,
9338   # most powerpc-linux boxes support dynamic linking these days and
9339   # people can always --disable-shared, the test was removed, and we
9340   # assume the GNU/Linux dynamic linker is in use.
9341   dynamic_linker='GNU/Linux ld.so'
9342   ;;
9343
9344 knetbsd*-gnu)
9345   version_type=linux
9346   need_lib_prefix=no
9347   need_version=no
9348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9349   soname_spec='${libname}${release}${shared_ext}$major'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=no
9352   hardcode_into_libs=yes
9353   dynamic_linker='GNU ld.so'
9354   ;;
9355
9356 netbsd*)
9357   version_type=sunos
9358   need_lib_prefix=no
9359   need_version=no
9360   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9362     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9363     dynamic_linker='NetBSD (a.out) ld.so'
9364   else
9365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366     soname_spec='${libname}${release}${shared_ext}$major'
9367     dynamic_linker='NetBSD ld.elf_so'
9368   fi
9369   shlibpath_var=LD_LIBRARY_PATH
9370   shlibpath_overrides_runpath=yes
9371   hardcode_into_libs=yes
9372   ;;
9373
9374 newsos6)
9375   version_type=linux
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377   shlibpath_var=LD_LIBRARY_PATH
9378   shlibpath_overrides_runpath=yes
9379   ;;
9380
9381 nto-qnx*)
9382   version_type=linux
9383   need_lib_prefix=no
9384   need_version=no
9385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386   soname_spec='${libname}${release}${shared_ext}$major'
9387   shlibpath_var=LD_LIBRARY_PATH
9388   shlibpath_overrides_runpath=yes
9389   ;;
9390
9391 openbsd* | bitrig*)
9392   version_type=sunos
9393   sys_lib_dlsearch_path_spec="/usr/lib"
9394   need_lib_prefix=no
9395   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9396   case $host_os in
9397     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9398     *)                         need_version=no  ;;
9399   esac
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9402   shlibpath_var=LD_LIBRARY_PATH
9403   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9404     case $host_os in
9405       openbsd2.[89] | openbsd2.[89].*)
9406         shlibpath_overrides_runpath=no
9407         ;;
9408       *)
9409         shlibpath_overrides_runpath=yes
9410         ;;
9411       esac
9412   else
9413     shlibpath_overrides_runpath=yes
9414   fi
9415   ;;
9416
9417 os2*)
9418   libname_spec='$name'
9419   shrext_cmds=".dll"
9420   need_lib_prefix=no
9421   library_names_spec='$libname${shared_ext} $libname.a'
9422   dynamic_linker='OS/2 ld.exe'
9423   shlibpath_var=LIBPATH
9424   ;;
9425
9426 osf3* | osf4* | osf5*)
9427   version_type=osf
9428   need_lib_prefix=no
9429   need_version=no
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9434   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9435   ;;
9436
9437 solaris*)
9438   version_type=linux
9439   need_lib_prefix=no
9440   need_version=no
9441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442   soname_spec='${libname}${release}${shared_ext}$major'
9443   shlibpath_var=LD_LIBRARY_PATH
9444   shlibpath_overrides_runpath=yes
9445   hardcode_into_libs=yes
9446   # ldd complains unless libraries are executable
9447   postinstall_cmds='chmod +x $lib'
9448   ;;
9449
9450 sunos4*)
9451   version_type=sunos
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9454   shlibpath_var=LD_LIBRARY_PATH
9455   shlibpath_overrides_runpath=yes
9456   if test "$with_gnu_ld" = yes; then
9457     need_lib_prefix=no
9458   fi
9459   need_version=yes
9460   ;;
9461
9462 sysv4 | sysv4.3*)
9463   version_type=linux
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   case $host_vendor in
9468     sni)
9469       shlibpath_overrides_runpath=no
9470       need_lib_prefix=no
9471       export_dynamic_flag_spec='${wl}-Blargedynsym'
9472       runpath_var=LD_RUN_PATH
9473       ;;
9474     siemens)
9475       need_lib_prefix=no
9476       ;;
9477     motorola)
9478       need_lib_prefix=no
9479       need_version=no
9480       shlibpath_overrides_runpath=no
9481       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9482       ;;
9483   esac
9484   ;;
9485
9486 sysv4*MP*)
9487   if test -d /usr/nec ;then
9488     version_type=linux
9489     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9490     soname_spec='$libname${shared_ext}.$major'
9491     shlibpath_var=LD_LIBRARY_PATH
9492   fi
9493   ;;
9494
9495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9496   version_type=freebsd-elf
9497   need_lib_prefix=no
9498   need_version=no
9499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9500   soname_spec='${libname}${release}${shared_ext}$major'
9501   shlibpath_var=LD_LIBRARY_PATH
9502   hardcode_into_libs=yes
9503   if test "$with_gnu_ld" = yes; then
9504     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9505     shlibpath_overrides_runpath=no
9506   else
9507     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9508     shlibpath_overrides_runpath=yes
9509     case $host_os in
9510       sco3.2v5*)
9511         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9512         ;;
9513     esac
9514   fi
9515   sys_lib_dlsearch_path_spec='/usr/lib'
9516   ;;
9517
9518 uts4*)
9519   version_type=linux
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521   soname_spec='${libname}${release}${shared_ext}$major'
9522   shlibpath_var=LD_LIBRARY_PATH
9523   ;;
9524
9525 *)
9526   dynamic_linker=no
9527   ;;
9528 esac
9529 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530 echo "${ECHO_T}$dynamic_linker" >&6; }
9531 test "$dynamic_linker" = no && can_build_shared=no
9532
9533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9534 if test "$GCC" = yes; then
9535   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9536 fi
9537
9538
9539 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9540 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9541 if test "${libltdl_cv_shlibext+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544
9545 module=yes
9546 eval libltdl_cv_shlibext=$shrext_cmds
9547
9548 fi
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9550 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9551 if test -n "$libltdl_cv_shlibext"; then
9552
9553 cat >>confdefs.h <<_ACEOF
9554 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9555 _ACEOF
9556
9557 fi
9558
9559
9560 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9561 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9562 if test "${libltdl_cv_sys_search_path+set}" = set; then
9563   echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9566 fi
9567 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9568 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9569 if test -n "$libltdl_cv_sys_search_path"; then
9570   sys_search_path=
9571   for dir in $libltdl_cv_sys_search_path; do
9572     if test -z "$sys_search_path"; then
9573       sys_search_path="$dir"
9574     else
9575       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9576     fi
9577   done
9578
9579 cat >>confdefs.h <<_ACEOF
9580 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9581 _ACEOF
9582
9583 fi
9584
9585 { echo "$as_me:$LINENO: checking for objdir" >&5
9586 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9587 if test "${libltdl_cv_objdir+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590   libltdl_cv_objdir="$objdir"
9591   if test -n "$objdir"; then
9592     :
9593   else
9594     rm -f .libs 2>/dev/null
9595     mkdir .libs 2>/dev/null
9596     if test -d .libs; then
9597       libltdl_cv_objdir=.libs
9598     else
9599       # MS-DOS does not allow filenames that begin with a dot.
9600       libltdl_cv_objdir=_libs
9601     fi
9602   rmdir .libs 2>/dev/null
9603   fi
9604
9605 fi
9606 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9607 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9608
9609 cat >>confdefs.h <<_ACEOF
9610 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9611 _ACEOF
9612
9613
9614
9615
9616
9617
9618 # Check for command to grab the raw symbol name followed by C symbol from nm.
9619 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9620 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624
9625 # These are sane defaults that work on at least a few old systems.
9626 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9627
9628 # Character class describing NM global symbol codes.
9629 symcode='[BCDEGRST]'
9630
9631 # Regexp to match symbols that can be accessed directly from C.
9632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9633
9634 # Transform an extracted symbol line into a proper C declaration
9635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9636
9637 # Transform an extracted symbol line into symbol name and symbol address
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 # Define system-specific variables.
9641 case $host_os in
9642 aix*)
9643   symcode='[BCDT]'
9644   ;;
9645 cygwin* | mingw* | pw32*)
9646   symcode='[ABCDGISTW]'
9647   ;;
9648 hpux*) # Its linker distinguishes data from code symbols
9649   if test "$host_cpu" = ia64; then
9650     symcode='[ABCDEGRST]'
9651   fi
9652   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9653   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'"
9654   ;;
9655 linux*)
9656   if test "$host_cpu" = ia64; then
9657     symcode='[ABCDGIRSTW]'
9658     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9659     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'"
9660   fi
9661   ;;
9662 irix* | nonstopux*)
9663   symcode='[BCDEGRST]'
9664   ;;
9665 osf*)
9666   symcode='[BCDEGQRST]'
9667   ;;
9668 solaris*)
9669   symcode='[BDRT]'
9670   ;;
9671 sco3.2v5*)
9672   symcode='[DT]'
9673   ;;
9674 sysv4.2uw2*)
9675   symcode='[DT]'
9676   ;;
9677 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9678   symcode='[ABDT]'
9679   ;;
9680 sysv4)
9681   symcode='[DFNSTU]'
9682   ;;
9683 esac
9684
9685 # Handle CRLF in mingw tool chain
9686 opt_cr=
9687 case $build_os in
9688 mingw*)
9689   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9690   ;;
9691 esac
9692
9693 # If we're using GNU nm, then use its standard symbol codes.
9694 case `$NM -V 2>&1` in
9695 *GNU* | *'with BFD'*)
9696   symcode='[ABCDGIRSTW]' ;;
9697 esac
9698
9699 # Try without a prefix undercore, then with it.
9700 for ac_symprfx in "" "_"; do
9701
9702   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9703   symxfrm="\\1 $ac_symprfx\\2 \\2"
9704
9705   # Write the raw and C identifiers.
9706   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9707
9708   # Check to see that the pipe works correctly.
9709   pipe_works=no
9710
9711   rm -f conftest*
9712   cat > conftest.$ac_ext <<EOF
9713 #ifdef __cplusplus
9714 extern "C" {
9715 #endif
9716 char nm_test_var;
9717 void nm_test_func(){}
9718 #ifdef __cplusplus
9719 }
9720 #endif
9721 int main(){nm_test_var='a';nm_test_func();return(0);}
9722 EOF
9723
9724   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725   (eval $ac_compile) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; then
9729     # Now try to grab the symbols.
9730     nlist=conftest.nm
9731     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9732   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); } && test -s "$nlist"; then
9736       # Try sorting and uniquifying the output.
9737       if sort "$nlist" | uniq > "$nlist"T; then
9738         mv -f "$nlist"T "$nlist"
9739       else
9740         rm -f "$nlist"T
9741       fi
9742
9743       # Make sure that we snagged all the symbols we need.
9744       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9745         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9746           cat <<EOF > conftest.$ac_ext
9747 #ifdef __cplusplus
9748 extern "C" {
9749 #endif
9750
9751 EOF
9752           # Now generate the symbol file.
9753           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9754
9755           cat <<EOF >> conftest.$ac_ext
9756 #if defined (__STDC__) && __STDC__
9757 # define lt_ptr_t void *
9758 #else
9759 # define lt_ptr_t char *
9760 # define const
9761 #endif
9762
9763 /* The mapping between symbol names and symbols. */
9764 const struct {
9765   const char *name;
9766   lt_ptr_t address;
9767 }
9768 lt_preloaded_symbols[] =
9769 {
9770 EOF
9771           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9772           cat <<\EOF >> conftest.$ac_ext
9773   {0, (lt_ptr_t) 0}
9774 };
9775
9776 #ifdef __cplusplus
9777 }
9778 #endif
9779 EOF
9780           # Now try linking the two files.
9781           mv conftest.$ac_objext conftstm.$ac_objext
9782           lt_save_LIBS="$LIBS"
9783           lt_save_CFLAGS="$CFLAGS"
9784           LIBS="conftstm.$ac_objext"
9785           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9786           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787   (eval $ac_link) 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9791             pipe_works=yes
9792           fi
9793           LIBS="$lt_save_LIBS"
9794           CFLAGS="$lt_save_CFLAGS"
9795         else
9796           echo "cannot find nm_test_func in $nlist" >&5
9797         fi
9798       else
9799         echo "cannot find nm_test_var in $nlist" >&5
9800       fi
9801     else
9802       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9803     fi
9804   else
9805     echo "$progname: failed program was:" >&5
9806     cat conftest.$ac_ext >&5
9807   fi
9808   rm -f conftest* conftst*
9809
9810   # Do not use the global_symbol_pipe unless it works.
9811   if test "$pipe_works" = yes; then
9812     break
9813   else
9814     lt_cv_sys_global_symbol_pipe=
9815   fi
9816 done
9817
9818 fi
9819
9820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9821   lt_cv_sys_global_symbol_to_cdecl=
9822 fi
9823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9824   { echo "$as_me:$LINENO: result: failed" >&5
9825 echo "${ECHO_T}failed" >&6; }
9826 else
9827   { echo "$as_me:$LINENO: result: ok" >&5
9828 echo "${ECHO_T}ok" >&6; }
9829 fi
9830
9831
9832 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9833 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9834 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9838     libltdl_cv_preloaded_symbols=yes
9839   else
9840     libltdl_cv_preloaded_symbols=no
9841   fi
9842
9843 fi
9844 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9845 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9846 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_PRELOADED_SYMBOLS 1
9850 _ACEOF
9851
9852 fi
9853
9854 LIBADD_DL=
9855
9856 ac_ext=c
9857 ac_cpp='$CPP $CPPFLAGS'
9858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9861
9862
9863 { echo "$as_me:$LINENO: checking for shl_load" >&5
9864 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9865 if test "${ac_cv_func_shl_load+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9876 #define shl_load innocuous_shl_load
9877
9878 /* System header to define __stub macros and hopefully few prototypes,
9879     which can conflict with char shl_load (); below.
9880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9881     <limits.h> exists even on freestanding compilers.  */
9882
9883 #ifdef __STDC__
9884 # include <limits.h>
9885 #else
9886 # include <assert.h>
9887 #endif
9888
9889 #undef shl_load
9890
9891 /* Override any GCC internal prototype to avoid an error.
9892    Use char because int might match the return type of a GCC
9893    builtin and then its argument prototype would still apply.  */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char shl_load ();
9898 /* The GNU C library defines this for functions which it implements
9899     to always fail with ENOSYS.  Some functions are actually named
9900     something starting with __ and the normal name is an alias.  */
9901 #if defined __stub_shl_load || defined __stub___shl_load
9902 choke me
9903 #endif
9904
9905 int
9906 main ()
9907 {
9908 return shl_load ();
9909   ;
9910   return 0;
9911 }
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_link") 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_try") 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   ac_cv_func_shl_load=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952         ac_cv_func_shl_load=no
9953 fi
9954
9955 rm -f core conftest.err conftest.$ac_objext \
9956       conftest$ac_exeext conftest.$ac_ext
9957 fi
9958 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9959 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9960 if test $ac_cv_func_shl_load = yes; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_SHL_LOAD 1
9964 _ACEOF
9965
9966 else
9967   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-ldld  $LIBS"
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980
9981 /* Override any GCC internal prototype to avoid an error.
9982    Use char because int might match the return type of a GCC
9983    builtin and then its argument prototype would still apply.  */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char shl_load ();
9988 int
9989 main ()
9990 {
9991 return shl_load ();
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000   *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003   (eval "$ac_link") 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } &&
10010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10011   { (case "(($ac_try" in
10012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013   *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016   (eval "$ac_try") 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; } &&
10020          { ac_try='test -s conftest$ac_exeext'
10021   { (case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_try") 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; }; then
10030   ac_cv_lib_dld_shl_load=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035         ac_cv_lib_dld_shl_load=no
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext \
10039       conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10041 fi
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10043 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10044 if test $ac_cv_lib_dld_shl_load = yes; then
10045
10046 cat >>confdefs.h <<\_ACEOF
10047 #define HAVE_SHL_LOAD 1
10048 _ACEOF
10049
10050         LIBADD_DL="$LIBADD_DL -ldld"
10051 else
10052   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-ldl  $LIBS"
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065
10066 /* Override any GCC internal prototype to avoid an error.
10067    Use char because int might match the return type of a GCC
10068    builtin and then its argument prototype would still apply.  */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 char dlopen ();
10073 int
10074 main ()
10075 {
10076 return dlopen ();
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085   *) ac_try_echo=$ac_try;;
10086 esac
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088   (eval "$ac_link") 2>conftest.er1
10089   ac_status=$?
10090   grep -v '^ *+' conftest.er1 >conftest.err
10091   rm -f conftest.er1
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10096   { (case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_try") 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; } &&
10105          { ac_try='test -s conftest$ac_exeext'
10106   { (case "(($ac_try" in
10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108   *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111   (eval "$ac_try") 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; }; then
10115   ac_cv_lib_dl_dlopen=yes
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120         ac_cv_lib_dl_dlopen=no
10121 fi
10122
10123 rm -f core conftest.err conftest.$ac_objext \
10124       conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10126 fi
10127 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10128 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10129 if test $ac_cv_lib_dl_dlopen = yes; then
10130
10131 cat >>confdefs.h <<\_ACEOF
10132 #define HAVE_LIBDL 1
10133 _ACEOF
10134
10135                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10136 else
10137   cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10143 #if HAVE_DLFCN_H
10144 #  include <dlfcn.h>
10145 #endif
10146
10147 int
10148 main ()
10149 {
10150 dlopen(0, 0);
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_try") 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_LIBDL 1
10192 _ACEOF
10193  libltdl_cv_func_dlopen="yes"
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10199 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lsvld  $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211
10212 /* Override any GCC internal prototype to avoid an error.
10213    Use char because int might match the return type of a GCC
10214    builtin and then its argument prototype would still apply.  */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char dlopen ();
10219 int
10220 main ()
10221 {
10222 return dlopen ();
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231   *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234   (eval "$ac_link") 2>conftest.er1
10235   ac_status=$?
10236   grep -v '^ *+' conftest.er1 >conftest.err
10237   rm -f conftest.er1
10238   cat conftest.err >&5
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } &&
10241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242   { (case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_try") 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; } &&
10251          { ac_try='test -s conftest$ac_exeext'
10252   { (case "(($ac_try" in
10253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254   *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257   (eval "$ac_try") 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; }; then
10261   ac_cv_lib_svld_dlopen=yes
10262 else
10263   echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266         ac_cv_lib_svld_dlopen=no
10267 fi
10268
10269 rm -f core conftest.err conftest.$ac_objext \
10270       conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10275 if test $ac_cv_lib_svld_dlopen = yes; then
10276
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_LIBDL 1
10279 _ACEOF
10280
10281                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10282 else
10283   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10284 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldld  $LIBS"
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296
10297 /* Override any GCC internal prototype to avoid an error.
10298    Use char because int might match the return type of a GCC
10299    builtin and then its argument prototype would still apply.  */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char dld_link ();
10304 int
10305 main ()
10306 {
10307 return dld_link ();
10308   ;
10309   return 0;
10310 }
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316   *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319   (eval "$ac_link") 2>conftest.er1
10320   ac_status=$?
10321   grep -v '^ *+' conftest.er1 >conftest.err
10322   rm -f conftest.er1
10323   cat conftest.err >&5
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } &&
10326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327   { (case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_try") 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; } &&
10336          { ac_try='test -s conftest$ac_exeext'
10337   { (case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_try") 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; }; then
10346   ac_cv_lib_dld_dld_link=yes
10347 else
10348   echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351         ac_cv_lib_dld_dld_link=no
10352 fi
10353
10354 rm -f core conftest.err conftest.$ac_objext \
10355       conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10357 fi
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10359 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10360 if test $ac_cv_lib_dld_dld_link = yes; then
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE_DLD 1
10364 _ACEOF
10365
10366                 LIBADD_DL="$LIBADD_DL -ldld"
10367 else
10368   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10369 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10370 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10381 #define _dyld_func_lookup innocuous__dyld_func_lookup
10382
10383 /* System header to define __stub macros and hopefully few prototypes,
10384     which can conflict with char _dyld_func_lookup (); below.
10385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386     <limits.h> exists even on freestanding compilers.  */
10387
10388 #ifdef __STDC__
10389 # include <limits.h>
10390 #else
10391 # include <assert.h>
10392 #endif
10393
10394 #undef _dyld_func_lookup
10395
10396 /* Override any GCC internal prototype to avoid an error.
10397    Use char because int might match the return type of a GCC
10398    builtin and then its argument prototype would still apply.  */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char _dyld_func_lookup ();
10403 /* The GNU C library defines this for functions which it implements
10404     to always fail with ENOSYS.  Some functions are actually named
10405     something starting with __ and the normal name is an alias.  */
10406 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10407 choke me
10408 #endif
10409
10410 int
10411 main ()
10412 {
10413 return _dyld_func_lookup ();
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422   *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425   (eval "$ac_link") 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } &&
10432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433   { (case "(($ac_try" in
10434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435   *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438   (eval "$ac_try") 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; } &&
10442          { ac_try='test -s conftest$ac_exeext'
10443   { (case "(($ac_try" in
10444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445   *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448   (eval "$ac_try") 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; }; then
10452   ac_cv_func__dyld_func_lookup=yes
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457         ac_cv_func__dyld_func_lookup=no
10458 fi
10459
10460 rm -f core conftest.err conftest.$ac_objext \
10461       conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10464 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10465 if test $ac_cv_func__dyld_func_lookup = yes; then
10466
10467 cat >>confdefs.h <<\_ACEOF
10468 #define HAVE_DYLD 1
10469 _ACEOF
10470
10471 fi
10472
10473
10474 fi
10475
10476
10477 fi
10478
10479
10480 fi
10481
10482 rm -f core conftest.err conftest.$ac_objext \
10483       conftest$ac_exeext conftest.$ac_ext
10484
10485 fi
10486
10487
10488 fi
10489
10490
10491 fi
10492
10493
10494 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10495 then
10496   lt_save_LIBS="$LIBS"
10497   LIBS="$LIBS $LIBADD_DL"
10498
10499 for ac_func in dlerror
10500 do
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10515 #define $ac_func innocuous_$ac_func
10516
10517 /* System header to define __stub macros and hopefully few prototypes,
10518     which can conflict with char $ac_func (); below.
10519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520     <limits.h> exists even on freestanding compilers.  */
10521
10522 #ifdef __STDC__
10523 # include <limits.h>
10524 #else
10525 # include <assert.h>
10526 #endif
10527
10528 #undef $ac_func
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531    Use char because int might match the return type of a GCC
10532    builtin and then its argument prototype would still apply.  */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char $ac_func ();
10537 /* The GNU C library defines this for functions which it implements
10538     to always fail with ENOSYS.  Some functions are actually named
10539     something starting with __ and the normal name is an alias.  */
10540 #if defined __stub_$ac_func || defined __stub___$ac_func
10541 choke me
10542 #endif
10543
10544 int
10545 main ()
10546 {
10547 return $ac_func ();
10548   ;
10549   return 0;
10550 }
10551 _ACEOF
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (ac_try="$ac_link"
10554 case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_link") 2>conftest.er1
10560   ac_status=$?
10561   grep -v '^ *+' conftest.er1 >conftest.err
10562   rm -f conftest.er1
10563   cat conftest.err >&5
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10567   { (case "(($ac_try" in
10568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569   *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572   (eval "$ac_try") 2>&5
10573   ac_status=$?
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); }; } &&
10576          { ac_try='test -s conftest$ac_exeext'
10577   { (case "(($ac_try" in
10578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579   *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582   (eval "$ac_try") 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; }; then
10586   eval "$as_ac_var=yes"
10587 else
10588   echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591         eval "$as_ac_var=no"
10592 fi
10593
10594 rm -f core conftest.err conftest.$ac_objext \
10595       conftest$ac_exeext conftest.$ac_ext
10596 fi
10597 ac_res=`eval echo '${'$as_ac_var'}'`
10598                { echo "$as_me:$LINENO: result: $ac_res" >&5
10599 echo "${ECHO_T}$ac_res" >&6; }
10600 if test `eval echo '${'$as_ac_var'}'` = yes; then
10601   cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10603 _ACEOF
10604
10605 fi
10606 done
10607
10608   LIBS="$lt_save_LIBS"
10609 fi
10610 ac_ext=c
10611 ac_cpp='$CPP $CPPFLAGS'
10612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10615
10616
10617
10618 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10619 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10620 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   ac_cv_sys_symbol_underscore=no
10624   cat > conftest.$ac_ext <<EOF
10625 void nm_test_func(){}
10626 int main(){nm_test_func;return 0;}
10627 EOF
10628   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10629   (eval $ac_compile) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; then
10633     # Now try to grab the symbols.
10634     ac_nlist=conftest.nm
10635     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10636   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } && test -s "$ac_nlist"; then
10640       # See whether the symbols have a leading underscore.
10641       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10642         ac_cv_sys_symbol_underscore=yes
10643       else
10644         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10645           :
10646         else
10647           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10648         fi
10649       fi
10650     else
10651       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10652     fi
10653   else
10654     echo "configure: failed program was:" >&5
10655     cat conftest.c >&5
10656   fi
10657   rm -rf conftest*
10658
10659 fi
10660 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10661 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10662
10663
10664 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10665   if test x"$libltdl_cv_func_dlopen" = xyes ||
10666      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10667         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10668 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10669 if test "${libltdl_cv_need_uscore+set}" = set; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   libltdl_cv_need_uscore=unknown
10673           save_LIBS="$LIBS"
10674           LIBS="$LIBS $LIBADD_DL"
10675           if test "$cross_compiling" = yes; then :
10676   libltdl_cv_need_uscore=cross
10677 else
10678   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679   lt_status=$lt_dlunknown
10680   cat > conftest.$ac_ext <<EOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10683
10684 #if HAVE_DLFCN_H
10685 #include <dlfcn.h>
10686 #endif
10687
10688 #include <stdio.h>
10689
10690 #ifdef RTLD_GLOBAL
10691 #  define LT_DLGLOBAL           RTLD_GLOBAL
10692 #else
10693 #  ifdef DL_GLOBAL
10694 #    define LT_DLGLOBAL         DL_GLOBAL
10695 #  else
10696 #    define LT_DLGLOBAL         0
10697 #  endif
10698 #endif
10699
10700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701    find out it does not work in some platform. */
10702 #ifndef LT_DLLAZY_OR_NOW
10703 #  ifdef RTLD_LAZY
10704 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10705 #  else
10706 #    ifdef DL_LAZY
10707 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10708 #    else
10709 #      ifdef RTLD_NOW
10710 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10711 #      else
10712 #        ifdef DL_NOW
10713 #          define LT_DLLAZY_OR_NOW      DL_NOW
10714 #        else
10715 #          define LT_DLLAZY_OR_NOW      0
10716 #        endif
10717 #      endif
10718 #    endif
10719 #  endif
10720 #endif
10721
10722 #ifdef __cplusplus
10723 extern "C" void exit (int);
10724 #endif
10725
10726 void fnord() { int i=42;}
10727 int main ()
10728 {
10729   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10730   int status = $lt_dlunknown;
10731
10732   if (self)
10733     {
10734       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10735       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10736       /* dlclose (self); */
10737     }
10738   else
10739     puts (dlerror ());
10740
10741     exit (status);
10742 }
10743 EOF
10744   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745   (eval $ac_link) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10749     (./conftest; exit; ) >&5 2>/dev/null
10750     lt_status=$?
10751     case x$lt_status in
10752       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10753       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10754       x$lt_dlunknown|x*)  ;;
10755     esac
10756   else :
10757     # compilation failed
10758
10759   fi
10760 fi
10761 rm -fr conftest*
10762
10763           LIBS="$save_LIBS"
10764
10765 fi
10766 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10767 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10768   fi
10769 fi
10770
10771 if test x"$libltdl_cv_need_uscore" = xyes; then
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define NEED_USCORE 1
10775 _ACEOF
10776
10777 fi
10778
10779
10780 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10781 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10782 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   # PORTME does your system automatically load deplibs for dlopen?
10786   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10787   # For now, we just catch OSes we know something about -- in the
10788   # future, we'll try test this programmatically.
10789   libltdl_cv_sys_dlopen_deplibs=unknown
10790   case "$host_os" in
10791   aix3*|aix4.1.*|aix4.2.*)
10792     # Unknown whether this is true for these versions of AIX, but
10793     # we want this `case' here to explicitly catch those versions.
10794     libltdl_cv_sys_dlopen_deplibs=unknown
10795     ;;
10796   aix[45]*)
10797     libltdl_cv_sys_dlopen_deplibs=yes
10798     ;;
10799   darwin*)
10800     # Assuming the user has installed a libdl from somewhere, this is true
10801     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10802     libltdl_cv_sys_dlopen_deplibs=yes
10803     ;;
10804   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10805     # GNU and its variants, using gnu ld.so (Glibc)
10806     libltdl_cv_sys_dlopen_deplibs=yes
10807     ;;
10808   hpux10*|hpux11*)
10809     libltdl_cv_sys_dlopen_deplibs=yes
10810     ;;
10811   interix*)
10812     libltdl_cv_sys_dlopen_deplibs=yes
10813     ;;
10814   irix[12345]*|irix6.[01]*)
10815     # Catch all versions of IRIX before 6.2, and indicate that we don't
10816     # know how it worked for any of those versions.
10817     libltdl_cv_sys_dlopen_deplibs=unknown
10818     ;;
10819   irix*)
10820     # The case above catches anything before 6.2, and it's known that
10821     # at 6.2 and later dlopen does load deplibs.
10822     libltdl_cv_sys_dlopen_deplibs=yes
10823     ;;
10824   netbsd*)
10825     libltdl_cv_sys_dlopen_deplibs=yes
10826     ;;
10827   openbsd*)
10828     libltdl_cv_sys_dlopen_deplibs=yes
10829     ;;
10830   osf[1234]*)
10831     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10832     # it did *not* use an RPATH in a shared library to find objects the
10833     # library depends on, so we explicitly say `no'.
10834     libltdl_cv_sys_dlopen_deplibs=no
10835     ;;
10836   osf5.0|osf5.0a|osf5.1)
10837     # dlopen *does* load deplibs and with the right loader patch applied
10838     # it even uses RPATH in a shared library to search for shared objects
10839     # that the library depends on, but there's no easy way to know if that
10840     # patch is installed.  Since this is the case, all we can really
10841     # say is unknown -- it depends on the patch being installed.  If
10842     # it is, this changes to `yes'.  Without it, it would be `no'.
10843     libltdl_cv_sys_dlopen_deplibs=unknown
10844     ;;
10845   osf*)
10846     # the two cases above should catch all versions of osf <= 5.1.  Read
10847     # the comments above for what we know about them.
10848     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10849     # is used to find them so we can finally say `yes'.
10850     libltdl_cv_sys_dlopen_deplibs=yes
10851     ;;
10852   solaris*)
10853     libltdl_cv_sys_dlopen_deplibs=yes
10854     ;;
10855   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10856     libltdl_cv_sys_dlopen_deplibs=yes
10857     ;;
10858   esac
10859
10860 fi
10861 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10862 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10863 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10864
10865 cat >>confdefs.h <<\_ACEOF
10866 #define LTDL_DLOPEN_DEPLIBS 1
10867 _ACEOF
10868
10869 fi
10870
10871
10872 for ac_header in argz.h
10873 do
10874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10876   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 fi
10881 ac_res=`eval echo '${'$as_ac_Header'}'`
10882                { echo "$as_me:$LINENO: result: $ac_res" >&5
10883 echo "${ECHO_T}$ac_res" >&6; }
10884 else
10885   # Is the header compilable?
10886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h.  */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h.  */
10894 $ac_includes_default
10895 #include <$ac_header>
10896 _ACEOF
10897 rm -f conftest.$ac_objext
10898 if { (ac_try="$ac_compile"
10899 case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_compile") 2>conftest.er1
10905   ac_status=$?
10906   grep -v '^ *+' conftest.er1 >conftest.err
10907   rm -f conftest.er1
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912   { (case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_try") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; } &&
10921          { ac_try='test -s conftest.$ac_objext'
10922   { (case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_try") 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; }; then
10931   ac_header_compiler=yes
10932 else
10933   echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10935
10936         ac_header_compiler=no
10937 fi
10938
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10941 echo "${ECHO_T}$ac_header_compiler" >&6; }
10942
10943 # Is the header present?
10944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952 #include <$ac_header>
10953 _ACEOF
10954 if { (ac_try="$ac_cpp conftest.$ac_ext"
10955 case "(($ac_try" in
10956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957   *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10961   ac_status=$?
10962   grep -v '^ *+' conftest.er1 >conftest.err
10963   rm -f conftest.er1
10964   cat conftest.err >&5
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); } >/dev/null; then
10967   if test -s conftest.err; then
10968     ac_cpp_err=$ac_c_preproc_warn_flag
10969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10970   else
10971     ac_cpp_err=
10972   fi
10973 else
10974   ac_cpp_err=yes
10975 fi
10976 if test -z "$ac_cpp_err"; then
10977   ac_header_preproc=yes
10978 else
10979   echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10981
10982   ac_header_preproc=no
10983 fi
10984
10985 rm -f conftest.err conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10987 echo "${ECHO_T}$ac_header_preproc" >&6; }
10988
10989 # So?  What about this header?
10990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10991   yes:no: )
10992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10996     ac_header_preproc=yes
10997     ;;
10998   no:yes:* )
10999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11011     ( cat <<\_ASBOX
11012 ## ------------------------------------ ##
11013 ## Report this to http://llvm.org/bugs/ ##
11014 ## ------------------------------------ ##
11015 _ASBOX
11016      ) | sed "s/^/$as_me: WARNING:     /" >&2
11017     ;;
11018 esac
11019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024   eval "$as_ac_Header=\$ac_header_preproc"
11025 fi
11026 ac_res=`eval echo '${'$as_ac_Header'}'`
11027                { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11029
11030 fi
11031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11032   cat >>confdefs.h <<_ACEOF
11033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034 _ACEOF
11035
11036 fi
11037
11038 done
11039
11040
11041 { echo "$as_me:$LINENO: checking for error_t" >&5
11042 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11043 if test "${ac_cv_type_error_t+set}" = set; then
11044   echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046   cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 #if HAVE_ARGZ_H
11053 #  include <argz.h>
11054 #endif
11055
11056 typedef error_t ac__type_new_;
11057 int
11058 main ()
11059 {
11060 if ((ac__type_new_ *) 0)
11061   return 0;
11062 if (sizeof (ac__type_new_))
11063   return 0;
11064   ;
11065   return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext
11069 if { (ac_try="$ac_compile"
11070 case "(($ac_try" in
11071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072   *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075   (eval "$ac_compile") 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11083   { (case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_try") 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; } &&
11092          { ac_try='test -s conftest.$ac_objext'
11093   { (case "(($ac_try" in
11094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095   *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098   (eval "$ac_try") 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   ac_cv_type_error_t=yes
11103 else
11104   echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11106
11107         ac_cv_type_error_t=no
11108 fi
11109
11110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11113 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11114 if test $ac_cv_type_error_t = yes; then
11115
11116 cat >>confdefs.h <<_ACEOF
11117 #define HAVE_ERROR_T 1
11118 _ACEOF
11119
11120
11121 else
11122
11123 cat >>confdefs.h <<\_ACEOF
11124 #define error_t int
11125 _ACEOF
11126
11127 fi
11128
11129
11130
11131
11132
11133
11134
11135 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11136 do
11137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11151 #define $ac_func innocuous_$ac_func
11152
11153 /* System header to define __stub macros and hopefully few prototypes,
11154     which can conflict with char $ac_func (); below.
11155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156     <limits.h> exists even on freestanding compilers.  */
11157
11158 #ifdef __STDC__
11159 # include <limits.h>
11160 #else
11161 # include <assert.h>
11162 #endif
11163
11164 #undef $ac_func
11165
11166 /* Override any GCC internal prototype to avoid an error.
11167    Use char because int might match the return type of a GCC
11168    builtin and then its argument prototype would still apply.  */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char $ac_func ();
11173 /* The GNU C library defines this for functions which it implements
11174     to always fail with ENOSYS.  Some functions are actually named
11175     something starting with __ and the normal name is an alias.  */
11176 #if defined __stub_$ac_func || defined __stub___$ac_func
11177 choke me
11178 #endif
11179
11180 int
11181 main ()
11182 {
11183 return $ac_func ();
11184   ;
11185   return 0;
11186 }
11187 _ACEOF
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192   *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195   (eval "$ac_link") 2>conftest.er1
11196   ac_status=$?
11197   grep -v '^ *+' conftest.er1 >conftest.err
11198   rm -f conftest.er1
11199   cat conftest.err >&5
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } &&
11202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11203   { (case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_try") 2>&5
11209   ac_status=$?
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); }; } &&
11212          { ac_try='test -s conftest$ac_exeext'
11213   { (case "(($ac_try" in
11214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215   *) ac_try_echo=$ac_try;;
11216 esac
11217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218   (eval "$ac_try") 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }; then
11222   eval "$as_ac_var=yes"
11223 else
11224   echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227         eval "$as_ac_var=no"
11228 fi
11229
11230 rm -f core conftest.err conftest.$ac_objext \
11231       conftest$ac_exeext conftest.$ac_ext
11232 fi
11233 ac_res=`eval echo '${'$as_ac_var'}'`
11234                { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236 if test `eval echo '${'$as_ac_var'}'` = yes; then
11237   cat >>confdefs.h <<_ACEOF
11238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11239 _ACEOF
11240
11241 fi
11242 done
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266 for ac_header in errno.h malloc.h memory.h unistd.h
11267 do
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 fi
11275 ac_res=`eval echo '${'$as_ac_Header'}'`
11276                { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11278 else
11279   # Is the header compilable?
11280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288 $ac_includes_default
11289 #include <$ac_header>
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_compile") 2>conftest.er1
11299   ac_status=$?
11300   grep -v '^ *+' conftest.er1 >conftest.err
11301   rm -f conftest.er1
11302   cat conftest.err >&5
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306   { (case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_try") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; } &&
11315          { ac_try='test -s conftest.$ac_objext'
11316   { (case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_try") 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); }; }; then
11325   ac_header_compiler=yes
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330         ac_header_compiler=no
11331 fi
11332
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335 echo "${ECHO_T}$ac_header_compiler" >&6; }
11336
11337 # Is the header present?
11338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h.  */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h.  */
11346 #include <$ac_header>
11347 _ACEOF
11348 if { (ac_try="$ac_cpp conftest.$ac_ext"
11349 case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } >/dev/null; then
11361   if test -s conftest.err; then
11362     ac_cpp_err=$ac_c_preproc_warn_flag
11363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364   else
11365     ac_cpp_err=
11366   fi
11367 else
11368   ac_cpp_err=yes
11369 fi
11370 if test -z "$ac_cpp_err"; then
11371   ac_header_preproc=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376   ac_header_preproc=no
11377 fi
11378
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11382
11383 # So?  What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385   yes:no: )
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390     ac_header_preproc=yes
11391     ;;
11392   no:yes:* )
11393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405     ( cat <<\_ASBOX
11406 ## ------------------------------------ ##
11407 ## Report this to http://llvm.org/bugs/ ##
11408 ## ------------------------------------ ##
11409 _ASBOX
11410      ) | sed "s/^/$as_me: WARNING:     /" >&2
11411     ;;
11412 esac
11413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   eval "$as_ac_Header=\$ac_header_preproc"
11419 fi
11420 ac_res=`eval echo '${'$as_ac_Header'}'`
11421                { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423
11424 fi
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426   cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430 fi
11431
11432 done
11433
11434
11435 for ac_header in mach-o/dyld.h
11436 do
11437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 fi
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445                { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11447 else
11448   # Is the header compilable?
11449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h.  */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h.  */
11457 $ac_includes_default
11458 #include <$ac_header>
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464   *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467   (eval "$ac_compile") 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } &&
11474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11475   { (case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_try") 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; } &&
11484          { ac_try='test -s conftest.$ac_objext'
11485   { (case "(($ac_try" in
11486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487   *) ac_try_echo=$ac_try;;
11488 esac
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490   (eval "$ac_try") 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494   ac_header_compiler=yes
11495 else
11496   echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499         ac_header_compiler=no
11500 fi
11501
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505
11506 # Is the header present?
11507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h.  */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h.  */
11515 #include <$ac_header>
11516 _ACEOF
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } >/dev/null; then
11530   if test -s conftest.err; then
11531     ac_cpp_err=$ac_c_preproc_warn_flag
11532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533   else
11534     ac_cpp_err=
11535   fi
11536 else
11537   ac_cpp_err=yes
11538 fi
11539 if test -z "$ac_cpp_err"; then
11540   ac_header_preproc=yes
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545   ac_header_preproc=no
11546 fi
11547
11548 rm -f conftest.err conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550 echo "${ECHO_T}$ac_header_preproc" >&6; }
11551
11552 # So?  What about this header?
11553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554   yes:no: )
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559     ac_header_preproc=yes
11560     ;;
11561   no:yes:* )
11562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574     ( cat <<\_ASBOX
11575 ## ------------------------------------ ##
11576 ## Report this to http://llvm.org/bugs/ ##
11577 ## ------------------------------------ ##
11578 _ASBOX
11579      ) | sed "s/^/$as_me: WARNING:     /" >&2
11580     ;;
11581 esac
11582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   eval "$as_ac_Header=\$ac_header_preproc"
11588 fi
11589 ac_res=`eval echo '${'$as_ac_Header'}'`
11590                { echo "$as_me:$LINENO: result: $ac_res" >&5
11591 echo "${ECHO_T}$ac_res" >&6; }
11592
11593 fi
11594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595   cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11597 _ACEOF
11598
11599 fi
11600
11601 done
11602
11603
11604
11605
11606
11607 for ac_func in closedir opendir readdir
11608 do
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11623 #define $ac_func innocuous_$ac_func
11624
11625 /* System header to define __stub macros and hopefully few prototypes,
11626     which can conflict with char $ac_func (); below.
11627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628     <limits.h> exists even on freestanding compilers.  */
11629
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635
11636 #undef $ac_func
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639    Use char because int might match the return type of a GCC
11640    builtin and then its argument prototype would still apply.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char $ac_func ();
11645 /* The GNU C library defines this for functions which it implements
11646     to always fail with ENOSYS.  Some functions are actually named
11647     something starting with __ and the normal name is an alias.  */
11648 #if defined __stub_$ac_func || defined __stub___$ac_func
11649 choke me
11650 #endif
11651
11652 int
11653 main ()
11654 {
11655 return $ac_func ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_link") 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest$ac_exeext'
11685   { (case "(($ac_try" in
11686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687   *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690   (eval "$ac_try") 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); }; }; then
11694   eval "$as_ac_var=yes"
11695 else
11696   echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699         eval "$as_ac_var=no"
11700 fi
11701
11702 rm -f core conftest.err conftest.$ac_objext \
11703       conftest$ac_exeext conftest.$ac_ext
11704 fi
11705 ac_res=`eval echo '${'$as_ac_var'}'`
11706                { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709   cat >>confdefs.h <<_ACEOF
11710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 _ACEOF
11712
11713 fi
11714 done
11715
11716
11717
11718 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11719 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11720
11721 ICC=no
11722 IXX=no
11723 case $CC in
11724   icc*|icpc*)
11725     ICC=yes
11726     IXX=yes
11727     ;;
11728    *)
11729     ;;
11730 esac
11731
11732 if test "$GCC" != "yes" && test "$ICC" != "yes"
11733 then
11734   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11735 echo "$as_me: error: gcc|icc required but not found" >&2;}
11736    { (exit 1); exit 1; }; }
11737 fi
11738
11739 if test "$GXX" != "yes" && test "$IXX" != "yes"
11740 then
11741   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11742 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11743    { (exit 1); exit 1; }; }
11744 fi
11745
11746 if test "$GCC" = "yes"
11747 then
11748   cat >conftest.$ac_ext <<_ACEOF
11749
11750   /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755
11756     #if !defined(__GNUC__) || __GNUC__ < 3
11757     #error Unsupported GCC version
11758     #endif
11759
11760
11761 _ACEOF
11762 rm -f conftest.$ac_objext
11763 if { (ac_try="$ac_compile"
11764 case "(($ac_try" in
11765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766   *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769   (eval "$ac_compile") 2>conftest.er1
11770   ac_status=$?
11771   grep -v '^ *+' conftest.er1 >conftest.err
11772   rm -f conftest.er1
11773   cat conftest.err >&5
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777   { (case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_try") 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; } &&
11786          { ac_try='test -s conftest.$ac_objext'
11787   { (case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_try") 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   :
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11802 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11803    { (exit 1); exit 1; }; }
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 fi
11808
11809 if test -z "$llvm_cv_gnu_make_command"
11810 then
11811   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11812 echo "$as_me: error: GNU Make required but not found" >&2;}
11813    { (exit 1); exit 1; }; }
11814 fi
11815
11816 { echo "$as_me:$LINENO: result: ok" >&5
11817 echo "${ECHO_T}ok" >&6; }
11818
11819 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11820 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11821 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11822
11823 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11824
11825 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11826
11827
11828 NO_UNINITIALIZED=
11829 NO_MAYBE_UNINITIALIZED=
11830 if test "$GXX" = "yes"
11831 then
11832   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11833
11834         if test -z "$NO_MAYBE_UNINITIALIZED"
11835   then
11836     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11837
11838   fi
11839 fi
11840 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11841 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11842
11843
11844 # Check whether --with-python was given.
11845 if test "${with_python+set}" = set; then
11846   withval=$with_python; PYTHON="$withval"
11847 fi
11848
11849
11850 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11851   { echo "$as_me:$LINENO: checking for python" >&5
11852 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11853   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11854 echo "${ECHO_T}user defined: $with_python" >&6; }
11855 else
11856   if test -n "$PYTHON" ; then
11857     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11858 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11859   fi
11860
11861   # Extract the first word of "python python2 python26", so it can be a program name with args.
11862 set dummy python python2 python26; ac_word=$2
11863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11865 if test "${ac_cv_path_PYTHON+set}" = set; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   case $PYTHON in
11869   [\\/]* | ?:[\\/]*)
11870   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11871   ;;
11872   *)
11873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876   IFS=$as_save_IFS
11877   test -z "$as_dir" && as_dir=.
11878   for ac_exec_ext in '' $ac_executable_extensions; do
11879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11880     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11882     break 2
11883   fi
11884 done
11885 done
11886 IFS=$as_save_IFS
11887
11888   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11889 echo "${ECHO_T}not found" >&6; }
11890                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11891 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11892    { (exit 1); exit 1; }; }"
11893   ;;
11894 esac
11895 fi
11896 PYTHON=$ac_cv_path_PYTHON
11897 if test -n "$PYTHON"; then
11898   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11899 echo "${ECHO_T}$PYTHON" >&6; }
11900 else
11901   { echo "$as_me:$LINENO: result: no" >&5
11902 echo "${ECHO_T}no" >&6; }
11903 fi
11904
11905
11906 fi
11907
11908 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11909 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11910 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11911 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11912 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11913 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11914 if test "$ac_python_version_major" -gt "2" || \
11915    (test "$ac_python_version_major" -eq "2" && \
11916     test "$ac_python_version_minor" -ge "5") ; then
11917   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11918 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11919 else
11920   { echo "$as_me:$LINENO: result: not found" >&5
11921 echo "${ECHO_T}not found" >&6; }
11922   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11923 See \`config.log' for more details." >&5
11924 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11925 See \`config.log' for more details." >&2;}
11926    { (exit 1); exit 1; }; }
11927 fi
11928
11929
11930
11931 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11932 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11933 if test "${ac_cv_lib_m_sin+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lm  $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946    Use char because int might match the return type of a GCC
11947    builtin and then its argument prototype would still apply.  */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char sin ();
11952 int
11953 main ()
11954 {
11955 return sin ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_link") 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975   { (case "(($ac_try" in
11976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977   *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980   (eval "$ac_try") 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; } &&
11984          { ac_try='test -s conftest$ac_exeext'
11985   { (case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_try") 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994   ac_cv_lib_m_sin=yes
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999         ac_cv_lib_m_sin=no
12000 fi
12001
12002 rm -f core conftest.err conftest.$ac_objext \
12003       conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12007 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12008 if test $ac_cv_lib_m_sin = yes; then
12009   cat >>confdefs.h <<_ACEOF
12010 #define HAVE_LIBM 1
12011 _ACEOF
12012
12013   LIBS="-lm $LIBS"
12014
12015 fi
12016
12017 if test "$llvm_cv_os_type" = "MingW" ; then
12018
12019 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12020 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12021 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-limagehlp  $LIBS"
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032
12033
12034 int
12035 main ()
12036 {
12037 return main ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_link") 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057   { (case "(($ac_try" in
12058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059   *) ac_try_echo=$ac_try;;
12060 esac
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062   (eval "$ac_try") 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; } &&
12066          { ac_try='test -s conftest$ac_exeext'
12067   { (case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_lib_imagehlp_main=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081         ac_cv_lib_imagehlp_main=no
12082 fi
12083
12084 rm -f core conftest.err conftest.$ac_objext \
12085       conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12089 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12090 if test $ac_cv_lib_imagehlp_main = yes; then
12091   cat >>confdefs.h <<_ACEOF
12092 #define HAVE_LIBIMAGEHLP 1
12093 _ACEOF
12094
12095   LIBS="-limagehlp $LIBS"
12096
12097 fi
12098
12099
12100 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12101 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12102 if test "${ac_cv_lib_psapi_main+set}" = set; then
12103   echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105   ac_check_lib_save_LIBS=$LIBS
12106 LIBS="-lpsapi  $LIBS"
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h.  */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h.  */
12113
12114
12115 int
12116 main ()
12117 {
12118 return main ();
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_link") 2>conftest.er1
12131   ac_status=$?
12132   grep -v '^ *+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138   { (case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_try") 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; } &&
12147          { ac_try='test -s conftest$ac_exeext'
12148   { (case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_try") 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   ac_cv_lib_psapi_main=yes
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162         ac_cv_lib_psapi_main=no
12163 fi
12164
12165 rm -f core conftest.err conftest.$ac_objext \
12166       conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12170 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12171 if test $ac_cv_lib_psapi_main = yes; then
12172   cat >>confdefs.h <<_ACEOF
12173 #define HAVE_LIBPSAPI 1
12174 _ACEOF
12175
12176   LIBS="-lpsapi $LIBS"
12177
12178 fi
12179
12180
12181 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12182 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12183 if test "${ac_cv_lib_shell32_main+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lshell32  $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194
12195
12196 int
12197 main ()
12198 {
12199 return main ();
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_link") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest$ac_exeext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_lib_shell32_main=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243         ac_cv_lib_shell32_main=no
12244 fi
12245
12246 rm -f core conftest.err conftest.$ac_objext \
12247       conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12251 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12252 if test $ac_cv_lib_shell32_main = yes; then
12253   cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBSHELL32 1
12255 _ACEOF
12256
12257   LIBS="-lshell32 $LIBS"
12258
12259 fi
12260
12261 fi
12262
12263 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12264 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12265 if test "${ac_cv_search_dlopen+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   ac_func_search_save_LIBS=$LIBS
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275
12276 /* Override any GCC internal prototype to avoid an error.
12277    Use char because int might match the return type of a GCC
12278    builtin and then its argument prototype would still apply.  */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char dlopen ();
12283 int
12284 main ()
12285 {
12286 return dlopen ();
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 for ac_lib in '' dl; do
12292   if test -z "$ac_lib"; then
12293     ac_res="none required"
12294   else
12295     ac_res=-l$ac_lib
12296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12297   fi
12298   rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (ac_try="$ac_link"
12300 case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_link") 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313   { (case "(($ac_try" in
12314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315   *) ac_try_echo=$ac_try;;
12316 esac
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318   (eval "$ac_try") 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; } &&
12322          { ac_try='test -s conftest$ac_exeext'
12323   { (case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_try") 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; }; then
12332   ac_cv_search_dlopen=$ac_res
12333 else
12334   echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337
12338 fi
12339
12340 rm -f core conftest.err conftest.$ac_objext \
12341       conftest$ac_exeext
12342   if test "${ac_cv_search_dlopen+set}" = set; then
12343   break
12344 fi
12345 done
12346 if test "${ac_cv_search_dlopen+set}" = set; then
12347   :
12348 else
12349   ac_cv_search_dlopen=no
12350 fi
12351 rm conftest.$ac_ext
12352 LIBS=$ac_func_search_save_LIBS
12353 fi
12354 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12355 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12356 ac_res=$ac_cv_search_dlopen
12357 if test "$ac_res" != no; then
12358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12359
12360 cat >>confdefs.h <<\_ACEOF
12361 #define HAVE_DLOPEN 1
12362 _ACEOF
12363
12364 else
12365   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12366 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12367 fi
12368
12369
12370 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12371 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12372 if test "${ac_cv_search_clock_gettime+set}" = set; then
12373   echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375   ac_func_search_save_LIBS=$LIBS
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382
12383 /* Override any GCC internal prototype to avoid an error.
12384    Use char because int might match the return type of a GCC
12385    builtin and then its argument prototype would still apply.  */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char clock_gettime ();
12390 int
12391 main ()
12392 {
12393 return clock_gettime ();
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 for ac_lib in '' rt; do
12399   if test -z "$ac_lib"; then
12400     ac_res="none required"
12401   else
12402     ac_res=-l$ac_lib
12403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12404   fi
12405   rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (ac_try="$ac_link"
12407 case "(($ac_try" in
12408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409   *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412   (eval "$ac_link") 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12420   { (case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_try") 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; } &&
12429          { ac_try='test -s conftest$ac_exeext'
12430   { (case "(($ac_try" in
12431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432   *) ac_try_echo=$ac_try;;
12433 esac
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435   (eval "$ac_try") 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; }; then
12439   ac_cv_search_clock_gettime=$ac_res
12440 else
12441   echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext \
12448       conftest$ac_exeext
12449   if test "${ac_cv_search_clock_gettime+set}" = set; then
12450   break
12451 fi
12452 done
12453 if test "${ac_cv_search_clock_gettime+set}" = set; then
12454   :
12455 else
12456   ac_cv_search_clock_gettime=no
12457 fi
12458 rm conftest.$ac_ext
12459 LIBS=$ac_func_search_save_LIBS
12460 fi
12461 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12462 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12463 ac_res=$ac_cv_search_clock_gettime
12464 if test "$ac_res" != no; then
12465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12466
12467 fi
12468
12469
12470 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12471     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12472 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_setupterm+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char setupterm ();
12491 int
12492 main ()
12493 {
12494 return setupterm ();
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12500   if test -z "$ac_lib"; then
12501     ac_res="none required"
12502   else
12503     ac_res=-l$ac_lib
12504     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12505   fi
12506   rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_link") 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521   { (case "(($ac_try" in
12522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523   *) ac_try_echo=$ac_try;;
12524 esac
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526   (eval "$ac_try") 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; }; then
12540   ac_cv_search_setupterm=$ac_res
12541 else
12542   echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545
12546 fi
12547
12548 rm -f core conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext
12550   if test "${ac_cv_search_setupterm+set}" = set; then
12551   break
12552 fi
12553 done
12554 if test "${ac_cv_search_setupterm+set}" = set; then
12555   :
12556 else
12557   ac_cv_search_setupterm=no
12558 fi
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12561 fi
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12563 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12564 ac_res=$ac_cv_search_setupterm
12565 if test "$ac_res" != no; then
12566   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12567
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_TERMINFO 1
12570 _ACEOF
12571
12572 fi
12573
12574 fi
12575
12576 if test "$llvm_cv_enable_libedit" = "yes" ; then
12577   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12578 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12579 if test "${ac_cv_search_el_init+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   ac_func_search_save_LIBS=$LIBS
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589
12590 /* Override any GCC internal prototype to avoid an error.
12591    Use char because int might match the return type of a GCC
12592    builtin and then its argument prototype would still apply.  */
12593 #ifdef __cplusplus
12594 extern "C"
12595 #endif
12596 char el_init ();
12597 int
12598 main ()
12599 {
12600 return el_init ();
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 for ac_lib in '' edit; do
12606   if test -z "$ac_lib"; then
12607     ac_res="none required"
12608   else
12609     ac_res=-l$ac_lib
12610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12611   fi
12612   rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_link") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12627   { (case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_try") 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; } &&
12636          { ac_try='test -s conftest$ac_exeext'
12637   { (case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_try") 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   ac_cv_search_el_init=$ac_res
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651
12652 fi
12653
12654 rm -f core conftest.err conftest.$ac_objext \
12655       conftest$ac_exeext
12656   if test "${ac_cv_search_el_init+set}" = set; then
12657   break
12658 fi
12659 done
12660 if test "${ac_cv_search_el_init+set}" = set; then
12661   :
12662 else
12663   ac_cv_search_el_init=no
12664 fi
12665 rm conftest.$ac_ext
12666 LIBS=$ac_func_search_save_LIBS
12667 fi
12668 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12669 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12670 ac_res=$ac_cv_search_el_init
12671 if test "$ac_res" != no; then
12672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12673
12674 cat >>confdefs.h <<\_ACEOF
12675 #define HAVE_LIBEDIT 1
12676 _ACEOF
12677
12678 fi
12679
12680 fi
12681
12682 if test "$llvm_cv_enable_libffi" = "yes" ; then
12683   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12684 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12685 if test "${ac_cv_search_ffi_call+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   ac_func_search_save_LIBS=$LIBS
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695
12696 /* Override any GCC internal prototype to avoid an error.
12697    Use char because int might match the return type of a GCC
12698    builtin and then its argument prototype would still apply.  */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 char ffi_call ();
12703 int
12704 main ()
12705 {
12706 return ffi_call ();
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 for ac_lib in '' ffi; do
12712   if test -z "$ac_lib"; then
12713     ac_res="none required"
12714   else
12715     ac_res=-l$ac_lib
12716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12717   fi
12718   rm -f conftest.$ac_objext conftest$ac_exeext
12719 if { (ac_try="$ac_link"
12720 case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_link") 2>conftest.er1
12726   ac_status=$?
12727   grep -v '^ *+' conftest.er1 >conftest.err
12728   rm -f conftest.er1
12729   cat conftest.err >&5
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } &&
12732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12733   { (case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_try") 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; } &&
12742          { ac_try='test -s conftest$ac_exeext'
12743   { (case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_try") 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; }; then
12752   ac_cv_search_ffi_call=$ac_res
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757
12758 fi
12759
12760 rm -f core conftest.err conftest.$ac_objext \
12761       conftest$ac_exeext
12762   if test "${ac_cv_search_ffi_call+set}" = set; then
12763   break
12764 fi
12765 done
12766 if test "${ac_cv_search_ffi_call+set}" = set; then
12767   :
12768 else
12769   ac_cv_search_ffi_call=no
12770 fi
12771 rm conftest.$ac_ext
12772 LIBS=$ac_func_search_save_LIBS
12773 fi
12774 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12775 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12776 ac_res=$ac_cv_search_ffi_call
12777 if test "$ac_res" != no; then
12778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12779
12780 cat >>confdefs.h <<\_ACEOF
12781 #define HAVE_FFI_CALL 1
12782 _ACEOF
12783
12784 else
12785   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12786 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12787    { (exit 1); exit 1; }; }
12788 fi
12789
12790 fi
12791
12792 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12793 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12794 if test "${ac_cv_search_mallinfo+set}" = set; then
12795   echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797   ac_func_search_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806    Use char because int might match the return type of a GCC
12807    builtin and then its argument prototype would still apply.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char mallinfo ();
12812 int
12813 main ()
12814 {
12815 return mallinfo ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 for ac_lib in '' malloc; do
12821   if test -z "$ac_lib"; then
12822     ac_res="none required"
12823   else
12824     ac_res=-l$ac_lib
12825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12826   fi
12827   rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831   *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834   (eval "$ac_link") 2>conftest.er1
12835   ac_status=$?
12836   grep -v '^ *+' conftest.er1 >conftest.err
12837   rm -f conftest.er1
12838   cat conftest.err >&5
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842   { (case "(($ac_try" in
12843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844   *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847   (eval "$ac_try") 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; } &&
12851          { ac_try='test -s conftest$ac_exeext'
12852   { (case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857   (eval "$ac_try") 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; }; then
12861   ac_cv_search_mallinfo=$ac_res
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866
12867 fi
12868
12869 rm -f core conftest.err conftest.$ac_objext \
12870       conftest$ac_exeext
12871   if test "${ac_cv_search_mallinfo+set}" = set; then
12872   break
12873 fi
12874 done
12875 if test "${ac_cv_search_mallinfo+set}" = set; then
12876   :
12877 else
12878   ac_cv_search_mallinfo=no
12879 fi
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12882 fi
12883 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12884 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12885 ac_res=$ac_cv_search_mallinfo
12886 if test "$ac_res" != no; then
12887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12888
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_MALLINFO 1
12891 _ACEOF
12892
12893 fi
12894
12895
12896 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12897
12898 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12899 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lpthread  $LIBS"
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h.  */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h.  */
12911
12912 /* Override any GCC internal prototype to avoid an error.
12913    Use char because int might match the return type of a GCC
12914    builtin and then its argument prototype would still apply.  */
12915 #ifdef __cplusplus
12916 extern "C"
12917 #endif
12918 char pthread_mutex_init ();
12919 int
12920 main ()
12921 {
12922 return pthread_mutex_init ();
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934   (eval "$ac_link") 2>conftest.er1
12935   ac_status=$?
12936   grep -v '^ *+' conftest.er1 >conftest.err
12937   rm -f conftest.er1
12938   cat conftest.err >&5
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } &&
12941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942   { (case "(($ac_try" in
12943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944   *) ac_try_echo=$ac_try;;
12945 esac
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947   (eval "$ac_try") 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; } &&
12951          { ac_try='test -s conftest$ac_exeext'
12952   { (case "(($ac_try" in
12953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954   *) ac_try_echo=$ac_try;;
12955 esac
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957   (eval "$ac_try") 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; }; then
12961   ac_cv_lib_pthread_pthread_mutex_init=yes
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966         ac_cv_lib_pthread_pthread_mutex_init=no
12967 fi
12968
12969 rm -f core conftest.err conftest.$ac_objext \
12970       conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12972 fi
12973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12974 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12975 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12976   cat >>confdefs.h <<_ACEOF
12977 #define HAVE_LIBPTHREAD 1
12978 _ACEOF
12979
12980   LIBS="-lpthread $LIBS"
12981
12982 fi
12983
12984   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12985 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12986 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   ac_func_search_save_LIBS=$LIBS
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h.  */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h.  */
12996
12997 /* Override any GCC internal prototype to avoid an error.
12998    Use char because int might match the return type of a GCC
12999    builtin and then its argument prototype would still apply.  */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 char pthread_mutex_lock ();
13004 int
13005 main ()
13006 {
13007 return pthread_mutex_lock ();
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 for ac_lib in '' pthread; do
13013   if test -z "$ac_lib"; then
13014     ac_res="none required"
13015   else
13016     ac_res=-l$ac_lib
13017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13018   fi
13019   rm -f conftest.$ac_objext conftest$ac_exeext
13020 if { (ac_try="$ac_link"
13021 case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_link") 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034   { (case "(($ac_try" in
13035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036   *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039   (eval "$ac_try") 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; } &&
13043          { ac_try='test -s conftest$ac_exeext'
13044   { (case "(($ac_try" in
13045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046   *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049   (eval "$ac_try") 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; }; then
13053   ac_cv_search_pthread_mutex_lock=$ac_res
13054 else
13055   echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
13059 fi
13060
13061 rm -f core conftest.err conftest.$ac_objext \
13062       conftest$ac_exeext
13063   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13064   break
13065 fi
13066 done
13067 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13068   :
13069 else
13070   ac_cv_search_pthread_mutex_lock=no
13071 fi
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13074 fi
13075 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13076 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13077 ac_res=$ac_cv_search_pthread_mutex_lock
13078 if test "$ac_res" != no; then
13079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080
13081 cat >>confdefs.h <<\_ACEOF
13082 #define HAVE_PTHREAD_MUTEX_LOCK 1
13083 _ACEOF
13084
13085 fi
13086
13087   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13088 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13089 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   ac_func_search_save_LIBS=$LIBS
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099
13100 /* Override any GCC internal prototype to avoid an error.
13101    Use char because int might match the return type of a GCC
13102    builtin and then its argument prototype would still apply.  */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char pthread_rwlock_init ();
13107 int
13108 main ()
13109 {
13110 return pthread_rwlock_init ();
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 for ac_lib in '' pthread; do
13116   if test -z "$ac_lib"; then
13117     ac_res="none required"
13118   else
13119     ac_res=-l$ac_lib
13120     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13121   fi
13122   rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126   *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129   (eval "$ac_link") 2>conftest.er1
13130   ac_status=$?
13131   grep -v '^ *+' conftest.er1 >conftest.err
13132   rm -f conftest.er1
13133   cat conftest.err >&5
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137   { (case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_try") 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }; } &&
13146          { ac_try='test -s conftest$ac_exeext'
13147   { (case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_try") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   ac_cv_search_pthread_rwlock_init=$ac_res
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161
13162 fi
13163
13164 rm -f core conftest.err conftest.$ac_objext \
13165       conftest$ac_exeext
13166   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13167   break
13168 fi
13169 done
13170 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13171   :
13172 else
13173   ac_cv_search_pthread_rwlock_init=no
13174 fi
13175 rm conftest.$ac_ext
13176 LIBS=$ac_func_search_save_LIBS
13177 fi
13178 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13179 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13180 ac_res=$ac_cv_search_pthread_rwlock_init
13181 if test "$ac_res" != no; then
13182   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_PTHREAD_RWLOCK_INIT 1
13186 _ACEOF
13187
13188 fi
13189
13190   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13191 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13192 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193   echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195   ac_func_search_save_LIBS=$LIBS
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202
13203 /* Override any GCC internal prototype to avoid an error.
13204    Use char because int might match the return type of a GCC
13205    builtin and then its argument prototype would still apply.  */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char pthread_getspecific ();
13210 int
13211 main ()
13212 {
13213 return pthread_getspecific ();
13214   ;
13215   return 0;
13216 }
13217 _ACEOF
13218 for ac_lib in '' pthread; do
13219   if test -z "$ac_lib"; then
13220     ac_res="none required"
13221   else
13222     ac_res=-l$ac_lib
13223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13224   fi
13225   rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (ac_try="$ac_link"
13227 case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232   (eval "$ac_link") 2>conftest.er1
13233   ac_status=$?
13234   grep -v '^ *+' conftest.er1 >conftest.err
13235   rm -f conftest.er1
13236   cat conftest.err >&5
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } &&
13239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13240   { (case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_try") 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; } &&
13249          { ac_try='test -s conftest$ac_exeext'
13250   { (case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_try") 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_cv_search_pthread_getspecific=$ac_res
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264
13265 fi
13266
13267 rm -f core conftest.err conftest.$ac_objext \
13268       conftest$ac_exeext
13269   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13270   break
13271 fi
13272 done
13273 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13274   :
13275 else
13276   ac_cv_search_pthread_getspecific=no
13277 fi
13278 rm conftest.$ac_ext
13279 LIBS=$ac_func_search_save_LIBS
13280 fi
13281 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13282 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13283 ac_res=$ac_cv_search_pthread_getspecific
13284 if test "$ac_res" != no; then
13285   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_PTHREAD_GETSPECIFIC 1
13289 _ACEOF
13290
13291 fi
13292
13293 fi
13294
13295 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13296
13297 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13298 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13299 if test "${ac_cv_lib_z_compress2+set}" = set; then
13300   echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302   ac_check_lib_save_LIBS=$LIBS
13303 LIBS="-lz  $LIBS"
13304 cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h.  */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h.  */
13310
13311 /* Override any GCC internal prototype to avoid an error.
13312    Use char because int might match the return type of a GCC
13313    builtin and then its argument prototype would still apply.  */
13314 #ifdef __cplusplus
13315 extern "C"
13316 #endif
13317 char compress2 ();
13318 int
13319 main ()
13320 {
13321 return compress2 ();
13322   ;
13323   return 0;
13324 }
13325 _ACEOF
13326 rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (ac_try="$ac_link"
13328 case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_link") 2>conftest.er1
13334   ac_status=$?
13335   grep -v '^ *+' conftest.er1 >conftest.err
13336   rm -f conftest.er1
13337   cat conftest.err >&5
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } &&
13340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341   { (case "(($ac_try" in
13342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343   *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346   (eval "$ac_try") 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; } &&
13350          { ac_try='test -s conftest$ac_exeext'
13351   { (case "(($ac_try" in
13352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353   *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356   (eval "$ac_try") 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; }; then
13360   ac_cv_lib_z_compress2=yes
13361 else
13362   echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365         ac_cv_lib_z_compress2=no
13366 fi
13367
13368 rm -f core conftest.err conftest.$ac_objext \
13369       conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13371 fi
13372 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13373 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13374 if test $ac_cv_lib_z_compress2 = yes; then
13375   cat >>confdefs.h <<_ACEOF
13376 #define HAVE_LIBZ 1
13377 _ACEOF
13378
13379   LIBS="-lz $LIBS"
13380
13381 fi
13382
13383 fi
13384
13385
13386 # Check whether --with-udis86 was given.
13387 if test "${with_udis86+set}" = set; then
13388   withval=$with_udis86;
13389       USE_UDIS86=1
13390
13391       case "$withval" in
13392         /usr/lib|yes) ;;
13393         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13394       esac
13395
13396 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13397 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13398 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   ac_check_lib_save_LIBS=$LIBS
13402 LIBS="-ludis86  $LIBS"
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409
13410 /* Override any GCC internal prototype to avoid an error.
13411    Use char because int might match the return type of a GCC
13412    builtin and then its argument prototype would still apply.  */
13413 #ifdef __cplusplus
13414 extern "C"
13415 #endif
13416 char ud_init ();
13417 int
13418 main ()
13419 {
13420 return ud_init ();
13421   ;
13422   return 0;
13423 }
13424 _ACEOF
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426 if { (ac_try="$ac_link"
13427 case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_link") 2>conftest.er1
13433   ac_status=$?
13434   grep -v '^ *+' conftest.er1 >conftest.err
13435   rm -f conftest.er1
13436   cat conftest.err >&5
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13440   { (case "(($ac_try" in
13441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442   *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445   (eval "$ac_try") 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; } &&
13449          { ac_try='test -s conftest$ac_exeext'
13450   { (case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455   (eval "$ac_try") 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; }; then
13459   ac_cv_lib_udis86_ud_init=yes
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464         ac_cv_lib_udis86_ud_init=no
13465 fi
13466
13467 rm -f core conftest.err conftest.$ac_objext \
13468       conftest$ac_exeext conftest.$ac_ext
13469 LIBS=$ac_check_lib_save_LIBS
13470 fi
13471 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13472 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13473 if test $ac_cv_lib_udis86_ud_init = yes; then
13474   cat >>confdefs.h <<_ACEOF
13475 #define HAVE_LIBUDIS86 1
13476 _ACEOF
13477
13478   LIBS="-ludis86 $LIBS"
13479
13480 else
13481
13482         echo "Error! You need to have libudis86 around."
13483         exit -1
13484
13485 fi
13486
13487
13488 else
13489   USE_UDIS86=0
13490
13491 fi
13492
13493
13494 cat >>confdefs.h <<_ACEOF
13495 #define USE_UDIS86 $USE_UDIS86
13496 _ACEOF
13497
13498
13499
13500 # Check whether --with-oprofile was given.
13501 if test "${with_oprofile+set}" = set; then
13502   withval=$with_oprofile;
13503       USE_OPROFILE=1
13504
13505       case "$withval" in
13506         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13507         no) llvm_cv_oppath=
13508             USE_OPROFILE=0
13509  ;;
13510         *) llvm_cv_oppath="${withval}/lib/oprofile"
13511            CPPFLAGS="-I${withval}/include";;
13512       esac
13513       case $llvm_cv_os_type in
13514         Linux)
13515           if test -n "$llvm_cv_oppath" ; then
13516             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13517                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13518 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13519 if test "${ac_cv_search_bfd_init+set}" = set; then
13520   echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522   ac_func_search_save_LIBS=$LIBS
13523 cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529
13530 /* Override any GCC internal prototype to avoid an error.
13531    Use char because int might match the return type of a GCC
13532    builtin and then its argument prototype would still apply.  */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 char bfd_init ();
13537 int
13538 main ()
13539 {
13540 return bfd_init ();
13541   ;
13542   return 0;
13543 }
13544 _ACEOF
13545 for ac_lib in '' bfd; do
13546   if test -z "$ac_lib"; then
13547     ac_res="none required"
13548   else
13549     ac_res=-l$ac_lib
13550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13551   fi
13552   rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (ac_try="$ac_link"
13554 case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_link") 2>conftest.er1
13560   ac_status=$?
13561   grep -v '^ *+' conftest.er1 >conftest.err
13562   rm -f conftest.er1
13563   cat conftest.err >&5
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); } &&
13566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; } &&
13576          { ac_try='test -s conftest$ac_exeext'
13577   { (case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582   (eval "$ac_try") 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; }; then
13586   ac_cv_search_bfd_init=$ac_res
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext \
13595       conftest$ac_exeext
13596   if test "${ac_cv_search_bfd_init+set}" = set; then
13597   break
13598 fi
13599 done
13600 if test "${ac_cv_search_bfd_init+set}" = set; then
13601   :
13602 else
13603   ac_cv_search_bfd_init=no
13604 fi
13605 rm conftest.$ac_ext
13606 LIBS=$ac_func_search_save_LIBS
13607 fi
13608 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13609 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13610 ac_res=$ac_cv_search_bfd_init
13611 if test "$ac_res" != no; then
13612   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13613
13614 fi
13615
13616             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13617 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13618 if test "${ac_cv_search_op_open_agent+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   ac_func_search_save_LIBS=$LIBS
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628
13629 /* Override any GCC internal prototype to avoid an error.
13630    Use char because int might match the return type of a GCC
13631    builtin and then its argument prototype would still apply.  */
13632 #ifdef __cplusplus
13633 extern "C"
13634 #endif
13635 char op_open_agent ();
13636 int
13637 main ()
13638 {
13639 return op_open_agent ();
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 for ac_lib in '' opagent; do
13645   if test -z "$ac_lib"; then
13646     ac_res="none required"
13647   else
13648     ac_res=-l$ac_lib
13649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13650   fi
13651   rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (ac_try="$ac_link"
13653 case "(($ac_try" in
13654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655   *) ac_try_echo=$ac_try;;
13656 esac
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658   (eval "$ac_link") 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13666   { (case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_try") 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; } &&
13675          { ac_try='test -s conftest$ac_exeext'
13676   { (case "(($ac_try" in
13677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678   *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681   (eval "$ac_try") 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_cv_search_op_open_agent=$ac_res
13686 else
13687   echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13689
13690
13691 fi
13692
13693 rm -f core conftest.err conftest.$ac_objext \
13694       conftest$ac_exeext
13695   if test "${ac_cv_search_op_open_agent+set}" = set; then
13696   break
13697 fi
13698 done
13699 if test "${ac_cv_search_op_open_agent+set}" = set; then
13700   :
13701 else
13702   ac_cv_search_op_open_agent=no
13703 fi
13704 rm conftest.$ac_ext
13705 LIBS=$ac_func_search_save_LIBS
13706 fi
13707 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13708 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13709 ac_res=$ac_cv_search_op_open_agent
13710 if test "$ac_res" != no; then
13711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13712
13713 else
13714
13715               echo "Error! You need to have libopagent around."
13716               exit -1
13717
13718 fi
13719
13720             if test "${ac_cv_header_opagent_h+set}" = set; then
13721   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13722 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13723 if test "${ac_cv_header_opagent_h+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 fi
13726 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13727 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13728 else
13729   # Is the header compilable?
13730 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13731 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13732 cat >conftest.$ac_ext <<_ACEOF
13733 /* confdefs.h.  */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h.  */
13738 $ac_includes_default
13739 #include <opagent.h>
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_compile") 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756   { (case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_try") 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_try") 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_header_compiler=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780         ac_header_compiler=no
13781 fi
13782
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13785 echo "${ECHO_T}$ac_header_compiler" >&6; }
13786
13787 # Is the header present?
13788 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13789 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796 #include <opagent.h>
13797 _ACEOF
13798 if { (ac_try="$ac_cpp conftest.$ac_ext"
13799 case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13805   ac_status=$?
13806   grep -v '^ *+' conftest.er1 >conftest.err
13807   rm -f conftest.er1
13808   cat conftest.err >&5
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); } >/dev/null; then
13811   if test -s conftest.err; then
13812     ac_cpp_err=$ac_c_preproc_warn_flag
13813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13814   else
13815     ac_cpp_err=
13816   fi
13817 else
13818   ac_cpp_err=yes
13819 fi
13820 if test -z "$ac_cpp_err"; then
13821   ac_header_preproc=yes
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826   ac_header_preproc=no
13827 fi
13828
13829 rm -f conftest.err conftest.$ac_ext
13830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 echo "${ECHO_T}$ac_header_preproc" >&6; }
13832
13833 # So?  What about this header?
13834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13835   yes:no: )
13836     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13837 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13839 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13840     ac_header_preproc=yes
13841     ;;
13842   no:yes:* )
13843     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13844 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13845     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13846 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13847     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13848 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13849     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13850 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13851     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13852 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13853     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13854 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13855     ( cat <<\_ASBOX
13856 ## ------------------------------------ ##
13857 ## Report this to http://llvm.org/bugs/ ##
13858 ## ------------------------------------ ##
13859 _ASBOX
13860      ) | sed "s/^/$as_me: WARNING:     /" >&2
13861     ;;
13862 esac
13863 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13864 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13865 if test "${ac_cv_header_opagent_h+set}" = set; then
13866   echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868   ac_cv_header_opagent_h=$ac_header_preproc
13869 fi
13870 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13871 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13872
13873 fi
13874 if test $ac_cv_header_opagent_h = yes; then
13875   :
13876 else
13877
13878               echo "Error! You need to have opagent.h around."
13879               exit -1
13880
13881 fi
13882
13883
13884           fi ;;
13885         *)
13886           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13887 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13888    { (exit 1); exit 1; }; } ;;
13889       esac
13890
13891 else
13892
13893       USE_OPROFILE=0
13894
13895
13896 fi
13897
13898
13899 cat >>confdefs.h <<_ACEOF
13900 #define LLVM_USE_OPROFILE $USE_OPROFILE
13901 _ACEOF
13902
13903
13904
13905 # Check whether --with-intel-jitevents was given.
13906 if test "${with_intel_jitevents+set}" = set; then
13907   withval=$with_intel_jitevents;
13908        case "$withval" in
13909           yes) USE_INTEL_JITEVENTS=1
13910 ;;
13911           no)  USE_INTEL_JITEVENTS=0
13912 ;;
13913           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13914 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13915    { (exit 1); exit 1; }; };;
13916        esac
13917
13918       case $llvm_cv_os_type in
13919         Linux|Win32|Cygwin|MingW) ;;
13920         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13921 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13922    { (exit 1); exit 1; }; };;
13923       esac
13924
13925       case "$llvm_cv_target_arch" in
13926         x86|x86_64) ;;
13927         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13928 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13929    { (exit 1); exit 1; }; };;
13930       esac
13931
13932 else
13933
13934       USE_INTEL_JITEVENTS=0
13935
13936
13937 fi
13938
13939
13940 cat >>confdefs.h <<_ACEOF
13941 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13942 _ACEOF
13943
13944
13945 for ac_prog in xml2-config
13946 do
13947   # Extract the first word of "$ac_prog", so it can be a program name with args.
13948 set dummy $ac_prog; ac_word=$2
13949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13951 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   if test -n "$XML2CONFIG"; then
13955   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13956 else
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13959 do
13960   IFS=$as_save_IFS
13961   test -z "$as_dir" && as_dir=.
13962   for ac_exec_ext in '' $ac_executable_extensions; do
13963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13964     ac_cv_prog_XML2CONFIG="$ac_prog"
13965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13966     break 2
13967   fi
13968 done
13969 done
13970 IFS=$as_save_IFS
13971
13972 fi
13973 fi
13974 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13975 if test -n "$XML2CONFIG"; then
13976   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13977 echo "${ECHO_T}$XML2CONFIG" >&6; }
13978 else
13979   { echo "$as_me:$LINENO: result: no" >&5
13980 echo "${ECHO_T}no" >&6; }
13981 fi
13982
13983
13984   test -n "$XML2CONFIG" && break
13985 done
13986
13987
13988 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13989 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13990 if test "x$XML2CONFIG" = "x"; then
13991  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13992 echo "${ECHO_T}xml2-config not found" >&6; }
13993 else
13994  LIBXML2_INC=`$XML2CONFIG --cflags`
13995  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13996 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13997  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13998 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13999 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 else
14002   ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lxml2  $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012    Use char because int might match the return type of a GCC
14013    builtin and then its argument prototype would still apply.  */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char xmlReadFile ();
14018 int
14019 main ()
14020 {
14021 return xmlReadFile ();
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033   (eval "$ac_link") 2>conftest.er1
14034   ac_status=$?
14035   grep -v '^ *+' conftest.er1 >conftest.err
14036   rm -f conftest.er1
14037   cat conftest.err >&5
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); } &&
14040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14041   { (case "(($ac_try" in
14042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043   *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046   (eval "$ac_try") 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; } &&
14050          { ac_try='test -s conftest$ac_exeext'
14051   { (case "(($ac_try" in
14052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053   *) ac_try_echo=$ac_try;;
14054 esac
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056   (eval "$ac_try") 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; }; then
14060   ac_cv_lib_xml2_xmlReadFile=yes
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065         ac_cv_lib_xml2_xmlReadFile=no
14066 fi
14067
14068 rm -f core conftest.err conftest.$ac_objext \
14069       conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14071 fi
14072 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14073 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14074 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14075
14076 cat >>confdefs.h <<\_ACEOF
14077 #define CLANG_HAVE_LIBXML 1
14078 _ACEOF
14079
14080                                 LIBXML2_LIBS="-lxml2"
14081 fi
14082
14083 fi
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093 ac_header_dirent=no
14094 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14095   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14096 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14097 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14099   echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101   cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h.  */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h.  */
14107 #include <sys/types.h>
14108 #include <$ac_hdr>
14109
14110 int
14111 main ()
14112 {
14113 if ((DIR *) 0)
14114 return 0;
14115   ;
14116   return 0;
14117 }
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (ac_try="$ac_compile"
14121 case "(($ac_try" in
14122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123   *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126   (eval "$ac_compile") 2>conftest.er1
14127   ac_status=$?
14128   grep -v '^ *+' conftest.er1 >conftest.err
14129   rm -f conftest.er1
14130   cat conftest.err >&5
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); } &&
14133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14134   { (case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139   (eval "$ac_try") 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; } &&
14143          { ac_try='test -s conftest.$ac_objext'
14144   { (case "(($ac_try" in
14145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146   *) ac_try_echo=$ac_try;;
14147 esac
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149   (eval "$ac_try") 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153   eval "$as_ac_Header=yes"
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158         eval "$as_ac_Header=no"
14159 fi
14160
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162 fi
14163 ac_res=`eval echo '${'$as_ac_Header'}'`
14164                { echo "$as_me:$LINENO: result: $ac_res" >&5
14165 echo "${ECHO_T}$ac_res" >&6; }
14166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14167   cat >>confdefs.h <<_ACEOF
14168 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14169 _ACEOF
14170
14171 ac_header_dirent=$ac_hdr; break
14172 fi
14173
14174 done
14175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14176 if test $ac_header_dirent = dirent.h; then
14177   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14178 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14179 if test "${ac_cv_search_opendir+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   ac_func_search_save_LIBS=$LIBS
14183 cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189
14190 /* Override any GCC internal prototype to avoid an error.
14191    Use char because int might match the return type of a GCC
14192    builtin and then its argument prototype would still apply.  */
14193 #ifdef __cplusplus
14194 extern "C"
14195 #endif
14196 char opendir ();
14197 int
14198 main ()
14199 {
14200 return opendir ();
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 for ac_lib in '' dir; do
14206   if test -z "$ac_lib"; then
14207     ac_res="none required"
14208   else
14209     ac_res=-l$ac_lib
14210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14211   fi
14212   rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (ac_try="$ac_link"
14214 case "(($ac_try" in
14215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216   *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219   (eval "$ac_link") 2>conftest.er1
14220   ac_status=$?
14221   grep -v '^ *+' conftest.er1 >conftest.err
14222   rm -f conftest.er1
14223   cat conftest.err >&5
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } &&
14226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14227   { (case "(($ac_try" in
14228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229   *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232   (eval "$ac_try") 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; } &&
14236          { ac_try='test -s conftest$ac_exeext'
14237   { (case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_try") 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; }; then
14246   ac_cv_search_opendir=$ac_res
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251
14252 fi
14253
14254 rm -f core conftest.err conftest.$ac_objext \
14255       conftest$ac_exeext
14256   if test "${ac_cv_search_opendir+set}" = set; then
14257   break
14258 fi
14259 done
14260 if test "${ac_cv_search_opendir+set}" = set; then
14261   :
14262 else
14263   ac_cv_search_opendir=no
14264 fi
14265 rm conftest.$ac_ext
14266 LIBS=$ac_func_search_save_LIBS
14267 fi
14268 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14269 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14270 ac_res=$ac_cv_search_opendir
14271 if test "$ac_res" != no; then
14272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14273
14274 fi
14275
14276 else
14277   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14278 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14279 if test "${ac_cv_search_opendir+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   ac_func_search_save_LIBS=$LIBS
14283 cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289
14290 /* Override any GCC internal prototype to avoid an error.
14291    Use char because int might match the return type of a GCC
14292    builtin and then its argument prototype would still apply.  */
14293 #ifdef __cplusplus
14294 extern "C"
14295 #endif
14296 char opendir ();
14297 int
14298 main ()
14299 {
14300 return opendir ();
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 for ac_lib in '' x; do
14306   if test -z "$ac_lib"; then
14307     ac_res="none required"
14308   else
14309     ac_res=-l$ac_lib
14310     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14311   fi
14312   rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316   *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319   (eval "$ac_link") 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327   { (case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_try") 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest$ac_exeext'
14337   { (case "(($ac_try" in
14338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339   *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342   (eval "$ac_try") 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   ac_cv_search_opendir=$ac_res
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351
14352 fi
14353
14354 rm -f core conftest.err conftest.$ac_objext \
14355       conftest$ac_exeext
14356   if test "${ac_cv_search_opendir+set}" = set; then
14357   break
14358 fi
14359 done
14360 if test "${ac_cv_search_opendir+set}" = set; then
14361   :
14362 else
14363   ac_cv_search_opendir=no
14364 fi
14365 rm conftest.$ac_ext
14366 LIBS=$ac_func_search_save_LIBS
14367 fi
14368 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14369 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14370 ac_res=$ac_cv_search_opendir
14371 if test "$ac_res" != no; then
14372   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14373
14374 fi
14375
14376 fi
14377
14378 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14379 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14380 if test "${ac_cv_header_mmap_anon+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383    ac_ext=c
14384 ac_cpp='$CPP $CPPFLAGS'
14385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14388
14389   cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 #include <sys/mman.h>
14396 #include <unistd.h>
14397 #include <fcntl.h>
14398 int
14399 main ()
14400 {
14401 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410   *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413   (eval "$ac_compile") 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } &&
14420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421   { (case "(($ac_try" in
14422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423   *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426   (eval "$ac_try") 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (case "(($ac_try" in
14432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433   *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436   (eval "$ac_try") 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); }; }; then
14440   ac_cv_header_mmap_anon=yes
14441 else
14442   echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445         ac_cv_header_mmap_anon=no
14446 fi
14447
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449   ac_ext=c
14450 ac_cpp='$CPP $CPPFLAGS'
14451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454
14455
14456 fi
14457 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14458 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14459 if test "$ac_cv_header_mmap_anon" = yes; then
14460
14461 cat >>confdefs.h <<\_ACEOF
14462 #define HAVE_MMAP_ANONYMOUS 1
14463 _ACEOF
14464
14465 fi
14466
14467 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14468 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14469 if test "${ac_cv_header_stat_broken+set}" = set; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478 #include <sys/types.h>
14479 #include <sys/stat.h>
14480
14481 #if defined S_ISBLK && defined S_IFDIR
14482 # if S_ISBLK (S_IFDIR)
14483 You lose.
14484 # endif
14485 #endif
14486
14487 #if defined S_ISBLK && defined S_IFCHR
14488 # if S_ISBLK (S_IFCHR)
14489 You lose.
14490 # endif
14491 #endif
14492
14493 #if defined S_ISLNK && defined S_IFREG
14494 # if S_ISLNK (S_IFREG)
14495 You lose.
14496 # endif
14497 #endif
14498
14499 #if defined S_ISSOCK && defined S_IFREG
14500 # if S_ISSOCK (S_IFREG)
14501 You lose.
14502 # endif
14503 #endif
14504
14505 _ACEOF
14506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14507   $EGREP "You lose" >/dev/null 2>&1; then
14508   ac_cv_header_stat_broken=yes
14509 else
14510   ac_cv_header_stat_broken=no
14511 fi
14512 rm -f conftest*
14513
14514 fi
14515 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14516 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14517 if test $ac_cv_header_stat_broken = yes; then
14518
14519 cat >>confdefs.h <<\_ACEOF
14520 #define STAT_MACROS_BROKEN 1
14521 _ACEOF
14522
14523 fi
14524
14525 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14526 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530   cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h.  */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h.  */
14536 #include <sys/types.h>
14537 #include <sys/wait.h>
14538 #ifndef WEXITSTATUS
14539 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14540 #endif
14541 #ifndef WIFEXITED
14542 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14543 #endif
14544
14545 int
14546 main ()
14547 {
14548   int s;
14549   wait (&s);
14550   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_compile") 2>conftest.er1
14563   ac_status=$?
14564   grep -v '^ *+' conftest.er1 >conftest.err
14565   rm -f conftest.er1
14566   cat conftest.err >&5
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } &&
14569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570   { (case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_try") 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_try") 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   ac_cv_header_sys_wait_h=yes
14590 else
14591   echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594         ac_cv_header_sys_wait_h=no
14595 fi
14596
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 fi
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14600 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14601 if test $ac_cv_header_sys_wait_h = yes; then
14602
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_SYS_WAIT_H 1
14605 _ACEOF
14606
14607 fi
14608
14609 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14610 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14611 if test "${ac_cv_header_time+set}" = set; then
14612   echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614   cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620 #include <sys/types.h>
14621 #include <sys/time.h>
14622 #include <time.h>
14623
14624 int
14625 main ()
14626 {
14627 if ((struct tm *) 0)
14628 return 0;
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext
14634 if { (ac_try="$ac_compile"
14635 case "(($ac_try" in
14636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637   *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640   (eval "$ac_compile") 2>conftest.er1
14641   ac_status=$?
14642   grep -v '^ *+' conftest.er1 >conftest.err
14643   rm -f conftest.er1
14644   cat conftest.err >&5
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } &&
14647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648   { (case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_try") 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; } &&
14657          { ac_try='test -s conftest.$ac_objext'
14658   { (case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663   (eval "$ac_try") 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; }; then
14667   ac_cv_header_time=yes
14668 else
14669   echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14671
14672         ac_cv_header_time=no
14673 fi
14674
14675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14676 fi
14677 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14678 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14679 if test $ac_cv_header_time = yes; then
14680
14681 cat >>confdefs.h <<\_ACEOF
14682 #define TIME_WITH_SYS_TIME 1
14683 _ACEOF
14684
14685 fi
14686
14687
14688 ac_ext=cpp
14689 ac_cpp='$CXXCPP $CPPFLAGS'
14690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14693
14694 ac_ext=cpp
14695 ac_cpp='$CXXCPP $CPPFLAGS'
14696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14699 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14700 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14701 if test -z "$CXXCPP"; then
14702   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14703   echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705       # Double quotes because CXXCPP needs to be expanded
14706     for CXXCPP in "$CXX -E" "/lib/cpp"
14707     do
14708       ac_preproc_ok=false
14709 for ac_cxx_preproc_warn_flag in '' yes
14710 do
14711   # Use a header file that comes with gcc, so configuring glibc
14712   # with a fresh cross-compiler works.
14713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714   # <limits.h> exists even on freestanding compilers.
14715   # On the NeXT, cc -E runs the code through the compiler's parser,
14716   # not just through cpp. "Syntax error" is here to catch this case.
14717   cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 #ifdef __STDC__
14724 # include <limits.h>
14725 #else
14726 # include <assert.h>
14727 #endif
14728                      Syntax error
14729 _ACEOF
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733   *) ac_try_echo=$ac_try;;
14734 esac
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } >/dev/null; then
14743   if test -s conftest.err; then
14744     ac_cpp_err=$ac_cxx_preproc_warn_flag
14745     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14746   else
14747     ac_cpp_err=
14748   fi
14749 else
14750   ac_cpp_err=yes
14751 fi
14752 if test -z "$ac_cpp_err"; then
14753   :
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758   # Broken: fails on valid input.
14759 continue
14760 fi
14761
14762 rm -f conftest.err conftest.$ac_ext
14763
14764   # OK, works on sane cases.  Now check whether nonexistent headers
14765   # can be detected and how.
14766   cat >conftest.$ac_ext <<_ACEOF
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 #include <ac_nonexistent.h>
14773 _ACEOF
14774 if { (ac_try="$ac_cpp conftest.$ac_ext"
14775 case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14781   ac_status=$?
14782   grep -v '^ *+' conftest.er1 >conftest.err
14783   rm -f conftest.er1
14784   cat conftest.err >&5
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } >/dev/null; then
14787   if test -s conftest.err; then
14788     ac_cpp_err=$ac_cxx_preproc_warn_flag
14789     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14790   else
14791     ac_cpp_err=
14792   fi
14793 else
14794   ac_cpp_err=yes
14795 fi
14796 if test -z "$ac_cpp_err"; then
14797   # Broken: success on invalid input.
14798 continue
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803   # Passes both tests.
14804 ac_preproc_ok=:
14805 break
14806 fi
14807
14808 rm -f conftest.err conftest.$ac_ext
14809
14810 done
14811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14812 rm -f conftest.err conftest.$ac_ext
14813 if $ac_preproc_ok; then
14814   break
14815 fi
14816
14817     done
14818     ac_cv_prog_CXXCPP=$CXXCPP
14819
14820 fi
14821   CXXCPP=$ac_cv_prog_CXXCPP
14822 else
14823   ac_cv_prog_CXXCPP=$CXXCPP
14824 fi
14825 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14826 echo "${ECHO_T}$CXXCPP" >&6; }
14827 ac_preproc_ok=false
14828 for ac_cxx_preproc_warn_flag in '' yes
14829 do
14830   # Use a header file that comes with gcc, so configuring glibc
14831   # with a fresh cross-compiler works.
14832   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833   # <limits.h> exists even on freestanding compilers.
14834   # On the NeXT, cc -E runs the code through the compiler's parser,
14835   # not just through cpp. "Syntax error" is here to catch this case.
14836   cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h.  */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h.  */
14842 #ifdef __STDC__
14843 # include <limits.h>
14844 #else
14845 # include <assert.h>
14846 #endif
14847                      Syntax error
14848 _ACEOF
14849 if { (ac_try="$ac_cpp conftest.$ac_ext"
14850 case "(($ac_try" in
14851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852   *) ac_try_echo=$ac_try;;
14853 esac
14854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14856   ac_status=$?
14857   grep -v '^ *+' conftest.er1 >conftest.err
14858   rm -f conftest.er1
14859   cat conftest.err >&5
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); } >/dev/null; then
14862   if test -s conftest.err; then
14863     ac_cpp_err=$ac_cxx_preproc_warn_flag
14864     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14865   else
14866     ac_cpp_err=
14867   fi
14868 else
14869   ac_cpp_err=yes
14870 fi
14871 if test -z "$ac_cpp_err"; then
14872   :
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877   # Broken: fails on valid input.
14878 continue
14879 fi
14880
14881 rm -f conftest.err conftest.$ac_ext
14882
14883   # OK, works on sane cases.  Now check whether nonexistent headers
14884   # can be detected and how.
14885   cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h.  */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h.  */
14891 #include <ac_nonexistent.h>
14892 _ACEOF
14893 if { (ac_try="$ac_cpp conftest.$ac_ext"
14894 case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14900   ac_status=$?
14901   grep -v '^ *+' conftest.er1 >conftest.err
14902   rm -f conftest.er1
14903   cat conftest.err >&5
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); } >/dev/null; then
14906   if test -s conftest.err; then
14907     ac_cpp_err=$ac_cxx_preproc_warn_flag
14908     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14909   else
14910     ac_cpp_err=
14911   fi
14912 else
14913   ac_cpp_err=yes
14914 fi
14915 if test -z "$ac_cpp_err"; then
14916   # Broken: success on invalid input.
14917 continue
14918 else
14919   echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922   # Passes both tests.
14923 ac_preproc_ok=:
14924 break
14925 fi
14926
14927 rm -f conftest.err conftest.$ac_ext
14928
14929 done
14930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14931 rm -f conftest.err conftest.$ac_ext
14932 if $ac_preproc_ok; then
14933   :
14934 else
14935   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14936 See \`config.log' for more details." >&5
14937 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14938 See \`config.log' for more details." >&2;}
14939    { (exit 1); exit 1; }; }
14940 fi
14941
14942 ac_ext=cpp
14943 ac_cpp='$CXXCPP $CPPFLAGS'
14944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14947
14948
14949
14950 for ac_header in cxxabi.h
14951 do
14952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14954   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 fi
14959 ac_res=`eval echo '${'$as_ac_Header'}'`
14960                { echo "$as_me:$LINENO: result: $ac_res" >&5
14961 echo "${ECHO_T}$ac_res" >&6; }
14962 else
14963   # Is the header compilable?
14964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14966 cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972 $ac_includes_default
14973 #include <$ac_header>
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (ac_try="$ac_compile"
14977 case "(($ac_try" in
14978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979   *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982   (eval "$ac_compile") 2>conftest.er1
14983   ac_status=$?
14984   grep -v '^ *+' conftest.er1 >conftest.err
14985   rm -f conftest.er1
14986   cat conftest.err >&5
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); } &&
14989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14990   { (case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_try") 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; } &&
14999          { ac_try='test -s conftest.$ac_objext'
15000   { (case "(($ac_try" in
15001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002   *) ac_try_echo=$ac_try;;
15003 esac
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005   (eval "$ac_try") 2>&5
15006   ac_status=$?
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); }; }; then
15009   ac_header_compiler=yes
15010 else
15011   echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15013
15014         ac_header_compiler=no
15015 fi
15016
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15019 echo "${ECHO_T}$ac_header_compiler" >&6; }
15020
15021 # Is the header present?
15022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15023 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15031 _ACEOF
15032 if { (ac_try="$ac_cpp conftest.$ac_ext"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } >/dev/null; then
15045   if test -s conftest.err; then
15046     ac_cpp_err=$ac_cxx_preproc_warn_flag
15047     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15048   else
15049     ac_cpp_err=
15050   fi
15051 else
15052   ac_cpp_err=yes
15053 fi
15054 if test -z "$ac_cpp_err"; then
15055   ac_header_preproc=yes
15056 else
15057   echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15059
15060   ac_header_preproc=no
15061 fi
15062
15063 rm -f conftest.err conftest.$ac_ext
15064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15065 echo "${ECHO_T}$ac_header_preproc" >&6; }
15066
15067 # So?  What about this header?
15068 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15069   yes:no: )
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15074     ac_header_preproc=yes
15075     ;;
15076   no:yes:* )
15077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15089     ( cat <<\_ASBOX
15090 ## ------------------------------------ ##
15091 ## Report this to http://llvm.org/bugs/ ##
15092 ## ------------------------------------ ##
15093 _ASBOX
15094      ) | sed "s/^/$as_me: WARNING:     /" >&2
15095     ;;
15096 esac
15097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   eval "$as_ac_Header=\$ac_header_preproc"
15103 fi
15104 ac_res=`eval echo '${'$as_ac_Header'}'`
15105                { echo "$as_me:$LINENO: result: $ac_res" >&5
15106 echo "${ECHO_T}$ac_res" >&6; }
15107
15108 fi
15109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15110   cat >>confdefs.h <<_ACEOF
15111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15112 _ACEOF
15113
15114 fi
15115
15116 done
15117
15118 ac_ext=c
15119 ac_cpp='$CPP $CPPFLAGS'
15120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15123
15124
15125
15126
15127
15128
15129 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15130 do
15131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15133   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 fi
15138 ac_res=`eval echo '${'$as_ac_Header'}'`
15139                { echo "$as_me:$LINENO: result: $ac_res" >&5
15140 echo "${ECHO_T}$ac_res" >&6; }
15141 else
15142   # Is the header compilable?
15143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h.  */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h.  */
15151 $ac_includes_default
15152 #include <$ac_header>
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_compile") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169   { (case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_try") 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest.$ac_objext'
15179   { (case "(($ac_try" in
15180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181   *) ac_try_echo=$ac_try;;
15182 esac
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184   (eval "$ac_try") 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188   ac_header_compiler=yes
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193         ac_header_compiler=no
15194 fi
15195
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15198 echo "${ECHO_T}$ac_header_compiler" >&6; }
15199
15200 # Is the header present?
15201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209 #include <$ac_header>
15210 _ACEOF
15211 if { (ac_try="$ac_cpp conftest.$ac_ext"
15212 case "(($ac_try" in
15213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214   *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } >/dev/null; then
15224   if test -s conftest.err; then
15225     ac_cpp_err=$ac_c_preproc_warn_flag
15226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15227   else
15228     ac_cpp_err=
15229   fi
15230 else
15231   ac_cpp_err=yes
15232 fi
15233 if test -z "$ac_cpp_err"; then
15234   ac_header_preproc=yes
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239   ac_header_preproc=no
15240 fi
15241
15242 rm -f conftest.err conftest.$ac_ext
15243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15244 echo "${ECHO_T}$ac_header_preproc" >&6; }
15245
15246 # So?  What about this header?
15247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15248   yes:no: )
15249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15253     ac_header_preproc=yes
15254     ;;
15255   no:yes:* )
15256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15258     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15259 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15260     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15262     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15263 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15266     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15268     ( cat <<\_ASBOX
15269 ## ------------------------------------ ##
15270 ## Report this to http://llvm.org/bugs/ ##
15271 ## ------------------------------------ ##
15272 _ASBOX
15273      ) | sed "s/^/$as_me: WARNING:     /" >&2
15274     ;;
15275 esac
15276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   eval "$as_ac_Header=\$ac_header_preproc"
15282 fi
15283 ac_res=`eval echo '${'$as_ac_Header'}'`
15284                { echo "$as_me:$LINENO: result: $ac_res" >&5
15285 echo "${ECHO_T}$ac_res" >&6; }
15286
15287 fi
15288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15289   cat >>confdefs.h <<_ACEOF
15290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15291 _ACEOF
15292
15293 fi
15294
15295 done
15296
15297
15298
15299
15300
15301
15302
15303 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15304 do
15305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15307   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 fi
15312 ac_res=`eval echo '${'$as_ac_Header'}'`
15313                { echo "$as_me:$LINENO: result: $ac_res" >&5
15314 echo "${ECHO_T}$ac_res" >&6; }
15315 else
15316   # Is the header compilable?
15317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h.  */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h.  */
15325 $ac_includes_default
15326 #include <$ac_header>
15327 _ACEOF
15328 rm -f conftest.$ac_objext
15329 if { (ac_try="$ac_compile"
15330 case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_compile") 2>conftest.er1
15336   ac_status=$?
15337   grep -v '^ *+' conftest.er1 >conftest.err
15338   rm -f conftest.er1
15339   cat conftest.err >&5
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } &&
15342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15343   { (case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_try") 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); }; } &&
15352          { ac_try='test -s conftest.$ac_objext'
15353   { (case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_try") 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362   ac_header_compiler=yes
15363 else
15364   echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367         ac_header_compiler=no
15368 fi
15369
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15372 echo "${ECHO_T}$ac_header_compiler" >&6; }
15373
15374 # Is the header present?
15375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383 #include <$ac_header>
15384 _ACEOF
15385 if { (ac_try="$ac_cpp conftest.$ac_ext"
15386 case "(($ac_try" in
15387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388   *) ac_try_echo=$ac_try;;
15389 esac
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15392   ac_status=$?
15393   grep -v '^ *+' conftest.er1 >conftest.err
15394   rm -f conftest.er1
15395   cat conftest.err >&5
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } >/dev/null; then
15398   if test -s conftest.err; then
15399     ac_cpp_err=$ac_c_preproc_warn_flag
15400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401   else
15402     ac_cpp_err=
15403   fi
15404 else
15405   ac_cpp_err=yes
15406 fi
15407 if test -z "$ac_cpp_err"; then
15408   ac_header_preproc=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413   ac_header_preproc=no
15414 fi
15415
15416 rm -f conftest.err conftest.$ac_ext
15417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15418 echo "${ECHO_T}$ac_header_preproc" >&6; }
15419
15420 # So?  What about this header?
15421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15422   yes:no: )
15423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15427     ac_header_preproc=yes
15428     ;;
15429   no:yes:* )
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15442     ( cat <<\_ASBOX
15443 ## ------------------------------------ ##
15444 ## Report this to http://llvm.org/bugs/ ##
15445 ## ------------------------------------ ##
15446 _ASBOX
15447      ) | sed "s/^/$as_me: WARNING:     /" >&2
15448     ;;
15449 esac
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455   eval "$as_ac_Header=\$ac_header_preproc"
15456 fi
15457 ac_res=`eval echo '${'$as_ac_Header'}'`
15458                { echo "$as_me:$LINENO: result: $ac_res" >&5
15459 echo "${ECHO_T}$ac_res" >&6; }
15460
15461 fi
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463   cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15465 _ACEOF
15466
15467 fi
15468
15469 done
15470
15471
15472 for ac_header in utime.h
15473 do
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 fi
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482                { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15484 else
15485   # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 $ac_includes_default
15495 #include <$ac_header>
15496 _ACEOF
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_compile") 2>conftest.er1
15505   ac_status=$?
15506   grep -v '^ *+' conftest.er1 >conftest.err
15507   rm -f conftest.er1
15508   cat conftest.err >&5
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512   { (case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_try") 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; } &&
15521          { ac_try='test -s conftest.$ac_objext'
15522   { (case "(($ac_try" in
15523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524   *) ac_try_echo=$ac_try;;
15525 esac
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527   (eval "$ac_try") 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   ac_header_compiler=yes
15532 else
15533   echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15535
15536         ac_header_compiler=no
15537 fi
15538
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15542
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 #include <$ac_header>
15553 _ACEOF
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
15555 case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } >/dev/null; then
15567   if test -s conftest.err; then
15568     ac_cpp_err=$ac_c_preproc_warn_flag
15569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15570   else
15571     ac_cpp_err=
15572   fi
15573 else
15574   ac_cpp_err=yes
15575 fi
15576 if test -z "$ac_cpp_err"; then
15577   ac_header_preproc=yes
15578 else
15579   echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582   ac_header_preproc=no
15583 fi
15584
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589 # So?  What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591   yes:no: )
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596     ac_header_preproc=yes
15597     ;;
15598   no:yes:* )
15599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611     ( cat <<\_ASBOX
15612 ## ------------------------------------ ##
15613 ## Report this to http://llvm.org/bugs/ ##
15614 ## ------------------------------------ ##
15615 _ASBOX
15616      ) | sed "s/^/$as_me: WARNING:     /" >&2
15617     ;;
15618 esac
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   eval "$as_ac_Header=\$ac_header_preproc"
15625 fi
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627                { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15629
15630 fi
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632   cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634 _ACEOF
15635
15636 fi
15637
15638 done
15639
15640
15641
15642
15643
15644
15645 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15646 do
15647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 fi
15654 ac_res=`eval echo '${'$as_ac_Header'}'`
15655                { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15657 else
15658   # Is the header compilable?
15659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667 $ac_includes_default
15668 #include <$ac_header>
15669 _ACEOF
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677   (eval "$ac_compile") 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15685   { (case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690   (eval "$ac_try") 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; } &&
15694          { ac_try='test -s conftest.$ac_objext'
15695   { (case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700   (eval "$ac_try") 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   ac_header_compiler=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709         ac_header_compiler=no
15710 fi
15711
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714 echo "${ECHO_T}$ac_header_compiler" >&6; }
15715
15716 # Is the header present?
15717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725 #include <$ac_header>
15726 _ACEOF
15727 if { (ac_try="$ac_cpp conftest.$ac_ext"
15728 case "(($ac_try" in
15729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730   *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734   ac_status=$?
15735   grep -v '^ *+' conftest.er1 >conftest.err
15736   rm -f conftest.er1
15737   cat conftest.err >&5
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } >/dev/null; then
15740   if test -s conftest.err; then
15741     ac_cpp_err=$ac_c_preproc_warn_flag
15742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743   else
15744     ac_cpp_err=
15745   fi
15746 else
15747   ac_cpp_err=yes
15748 fi
15749 if test -z "$ac_cpp_err"; then
15750   ac_header_preproc=yes
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755   ac_header_preproc=no
15756 fi
15757
15758 rm -f conftest.err conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760 echo "${ECHO_T}$ac_header_preproc" >&6; }
15761
15762 # So?  What about this header?
15763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764   yes:no: )
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15769     ac_header_preproc=yes
15770     ;;
15771   no:yes:* )
15772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15784     ( cat <<\_ASBOX
15785 ## ------------------------------------ ##
15786 ## Report this to http://llvm.org/bugs/ ##
15787 ## ------------------------------------ ##
15788 _ASBOX
15789      ) | sed "s/^/$as_me: WARNING:     /" >&2
15790     ;;
15791 esac
15792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 else
15797   eval "$as_ac_Header=\$ac_header_preproc"
15798 fi
15799 ac_res=`eval echo '${'$as_ac_Header'}'`
15800                { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15802
15803 fi
15804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15805   cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807 _ACEOF
15808
15809 fi
15810
15811 done
15812
15813
15814
15815
15816 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15817 do
15818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 fi
15825 ac_res=`eval echo '${'$as_ac_Header'}'`
15826                { echo "$as_me:$LINENO: result: $ac_res" >&5
15827 echo "${ECHO_T}$ac_res" >&6; }
15828 else
15829   # Is the header compilable?
15830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15832 cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h.  */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h.  */
15838 $ac_includes_default
15839 #include <$ac_header>
15840 _ACEOF
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_compile") 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15856   { (case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_try") 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; } &&
15865          { ac_try='test -s conftest.$ac_objext'
15866   { (case "(($ac_try" in
15867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868   *) ac_try_echo=$ac_try;;
15869 esac
15870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15871   (eval "$ac_try") 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_header_compiler=yes
15876 else
15877   echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880         ac_header_compiler=no
15881 fi
15882
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885 echo "${ECHO_T}$ac_header_compiler" >&6; }
15886
15887 # Is the header present?
15888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896 #include <$ac_header>
15897 _ACEOF
15898 if { (ac_try="$ac_cpp conftest.$ac_ext"
15899 case "(($ac_try" in
15900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901   *) ac_try_echo=$ac_try;;
15902 esac
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905   ac_status=$?
15906   grep -v '^ *+' conftest.er1 >conftest.err
15907   rm -f conftest.er1
15908   cat conftest.err >&5
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); } >/dev/null; then
15911   if test -s conftest.err; then
15912     ac_cpp_err=$ac_c_preproc_warn_flag
15913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914   else
15915     ac_cpp_err=
15916   fi
15917 else
15918   ac_cpp_err=yes
15919 fi
15920 if test -z "$ac_cpp_err"; then
15921   ac_header_preproc=yes
15922 else
15923   echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15925
15926   ac_header_preproc=no
15927 fi
15928
15929 rm -f conftest.err conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15931 echo "${ECHO_T}$ac_header_preproc" >&6; }
15932
15933 # So?  What about this header?
15934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935   yes:no: )
15936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15940     ac_header_preproc=yes
15941     ;;
15942   no:yes:* )
15943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15955     ( cat <<\_ASBOX
15956 ## ------------------------------------ ##
15957 ## Report this to http://llvm.org/bugs/ ##
15958 ## ------------------------------------ ##
15959 _ASBOX
15960      ) | sed "s/^/$as_me: WARNING:     /" >&2
15961     ;;
15962 esac
15963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968   eval "$as_ac_Header=\$ac_header_preproc"
15969 fi
15970 ac_res=`eval echo '${'$as_ac_Header'}'`
15971                { echo "$as_me:$LINENO: result: $ac_res" >&5
15972 echo "${ECHO_T}$ac_res" >&6; }
15973
15974 fi
15975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15976   cat >>confdefs.h <<_ACEOF
15977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15978 _ACEOF
15979
15980 fi
15981
15982 done
15983
15984
15985 for ac_header in valgrind/valgrind.h
15986 do
15987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15989   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992   echo $ECHO_N "(cached) $ECHO_C" >&6
15993 fi
15994 ac_res=`eval echo '${'$as_ac_Header'}'`
15995                { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15997 else
15998   # Is the header compilable?
15999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16001 cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 $ac_includes_default
16008 #include <$ac_header>
16009 _ACEOF
16010 rm -f conftest.$ac_objext
16011 if { (ac_try="$ac_compile"
16012 case "(($ac_try" in
16013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014   *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017   (eval "$ac_compile") 2>conftest.er1
16018   ac_status=$?
16019   grep -v '^ *+' conftest.er1 >conftest.err
16020   rm -f conftest.er1
16021   cat conftest.err >&5
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); } &&
16024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16025   { (case "(($ac_try" in
16026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027   *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030   (eval "$ac_try") 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; } &&
16034          { ac_try='test -s conftest.$ac_objext'
16035   { (case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_try") 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   ac_header_compiler=yes
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049         ac_header_compiler=no
16050 fi
16051
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16054 echo "${ECHO_T}$ac_header_compiler" >&6; }
16055
16056 # Is the header present?
16057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 #include <$ac_header>
16066 _ACEOF
16067 if { (ac_try="$ac_cpp conftest.$ac_ext"
16068 case "(($ac_try" in
16069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070   *) ac_try_echo=$ac_try;;
16071 esac
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } >/dev/null; then
16080   if test -s conftest.err; then
16081     ac_cpp_err=$ac_c_preproc_warn_flag
16082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16083   else
16084     ac_cpp_err=
16085   fi
16086 else
16087   ac_cpp_err=yes
16088 fi
16089 if test -z "$ac_cpp_err"; then
16090   ac_header_preproc=yes
16091 else
16092   echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095   ac_header_preproc=no
16096 fi
16097
16098 rm -f conftest.err conftest.$ac_ext
16099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16100 echo "${ECHO_T}$ac_header_preproc" >&6; }
16101
16102 # So?  What about this header?
16103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16104   yes:no: )
16105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16109     ac_header_preproc=yes
16110     ;;
16111   no:yes:* )
16112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16124     ( cat <<\_ASBOX
16125 ## ------------------------------------ ##
16126 ## Report this to http://llvm.org/bugs/ ##
16127 ## ------------------------------------ ##
16128 _ASBOX
16129      ) | sed "s/^/$as_me: WARNING:     /" >&2
16130     ;;
16131 esac
16132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137   eval "$as_ac_Header=\$ac_header_preproc"
16138 fi
16139 ac_res=`eval echo '${'$as_ac_Header'}'`
16140                { echo "$as_me:$LINENO: result: $ac_res" >&5
16141 echo "${ECHO_T}$ac_res" >&6; }
16142
16143 fi
16144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16145   cat >>confdefs.h <<_ACEOF
16146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147 _ACEOF
16148
16149 fi
16150
16151 done
16152
16153
16154 for ac_header in fenv.h
16155 do
16156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 fi
16163 ac_res=`eval echo '${'$as_ac_Header'}'`
16164                { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16166 else
16167   # Is the header compilable?
16168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16176 $ac_includes_default
16177 #include <$ac_header>
16178 _ACEOF
16179 rm -f conftest.$ac_objext
16180 if { (ac_try="$ac_compile"
16181 case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_compile") 2>conftest.er1
16187   ac_status=$?
16188   grep -v '^ *+' conftest.er1 >conftest.err
16189   rm -f conftest.er1
16190   cat conftest.err >&5
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } &&
16193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16194   { (case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_try") 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; } &&
16203          { ac_try='test -s conftest.$ac_objext'
16204   { (case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_try") 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213   ac_header_compiler=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218         ac_header_compiler=no
16219 fi
16220
16221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6; }
16224
16225 # Is the header present?
16226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234 #include <$ac_header>
16235 _ACEOF
16236 if { (ac_try="$ac_cpp conftest.$ac_ext"
16237 case "(($ac_try" in
16238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239   *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16243   ac_status=$?
16244   grep -v '^ *+' conftest.er1 >conftest.err
16245   rm -f conftest.er1
16246   cat conftest.err >&5
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); } >/dev/null; then
16249   if test -s conftest.err; then
16250     ac_cpp_err=$ac_c_preproc_warn_flag
16251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16252   else
16253     ac_cpp_err=
16254   fi
16255 else
16256   ac_cpp_err=yes
16257 fi
16258 if test -z "$ac_cpp_err"; then
16259   ac_header_preproc=yes
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264   ac_header_preproc=no
16265 fi
16266
16267 rm -f conftest.err conftest.$ac_ext
16268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16269 echo "${ECHO_T}$ac_header_preproc" >&6; }
16270
16271 # So?  What about this header?
16272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16273   yes:no: )
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16278     ac_header_preproc=yes
16279     ;;
16280   no:yes:* )
16281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293     ( cat <<\_ASBOX
16294 ## ------------------------------------ ##
16295 ## Report this to http://llvm.org/bugs/ ##
16296 ## ------------------------------------ ##
16297 _ASBOX
16298      ) | sed "s/^/$as_me: WARNING:     /" >&2
16299     ;;
16300 esac
16301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   eval "$as_ac_Header=\$ac_header_preproc"
16307 fi
16308 ac_res=`eval echo '${'$as_ac_Header'}'`
16309                { echo "$as_me:$LINENO: result: $ac_res" >&5
16310 echo "${ECHO_T}$ac_res" >&6; }
16311
16312 fi
16313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16314   cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16316 _ACEOF
16317
16318 fi
16319
16320 done
16321
16322 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16323 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16324 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333 #include <fenv.h>
16334
16335 int
16336 main ()
16337 {
16338 #ifndef FE_ALL_EXCEPT
16339   char *p = (char *) FE_ALL_EXCEPT;
16340   return !p;
16341 #endif
16342
16343   ;
16344   return 0;
16345 }
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (ac_try="$ac_compile"
16349 case "(($ac_try" in
16350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351   *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354   (eval "$ac_compile") 2>conftest.er1
16355   ac_status=$?
16356   grep -v '^ *+' conftest.er1 >conftest.err
16357   rm -f conftest.er1
16358   cat conftest.err >&5
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } &&
16361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362   { (case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_try") 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; } &&
16371          { ac_try='test -s conftest.$ac_objext'
16372   { (case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_try") 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386         ac_cv_have_decl_FE_ALL_EXCEPT=no
16387 fi
16388
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 fi
16391 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16392 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16393 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16394
16395 cat >>confdefs.h <<_ACEOF
16396 #define HAVE_DECL_FE_ALL_EXCEPT 1
16397 _ACEOF
16398
16399
16400 else
16401   cat >>confdefs.h <<_ACEOF
16402 #define HAVE_DECL_FE_ALL_EXCEPT 0
16403 _ACEOF
16404
16405
16406 fi
16407 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16408 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16409 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16410   echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412   cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 #include <fenv.h>
16419
16420 int
16421 main ()
16422 {
16423 #ifndef FE_INEXACT
16424   char *p = (char *) FE_INEXACT;
16425   return !p;
16426 #endif
16427
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext
16433 if { (ac_try="$ac_compile"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_compile") 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } &&
16446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16447   { (case "(($ac_try" in
16448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449   *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452   (eval "$ac_try") 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; } &&
16456          { ac_try='test -s conftest.$ac_objext'
16457   { (case "(($ac_try" in
16458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459   *) ac_try_echo=$ac_try;;
16460 esac
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462   (eval "$ac_try") 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_cv_have_decl_FE_INEXACT=yes
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471         ac_cv_have_decl_FE_INEXACT=no
16472 fi
16473
16474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 fi
16476 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16477 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16478 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16479
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_DECL_FE_INEXACT 1
16482 _ACEOF
16483
16484
16485 else
16486   cat >>confdefs.h <<_ACEOF
16487 #define HAVE_DECL_FE_INEXACT 0
16488 _ACEOF
16489
16490
16491 fi
16492
16493
16494 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16495
16496 for ac_header in pthread.h
16497 do
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 fi
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506                { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16508 else
16509   # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 #include <$ac_header>
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_compile") 2>conftest.er1
16529   ac_status=$?
16530   grep -v '^ *+' conftest.er1 >conftest.err
16531   rm -f conftest.er1
16532   cat conftest.err >&5
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } &&
16535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest.$ac_objext'
16546   { (case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; }; then
16555   ac_header_compiler=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         ac_header_compiler=no
16561 fi
16562
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16566
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576 #include <$ac_header>
16577 _ACEOF
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585   ac_status=$?
16586   grep -v '^ *+' conftest.er1 >conftest.err
16587   rm -f conftest.er1
16588   cat conftest.err >&5
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); } >/dev/null; then
16591   if test -s conftest.err; then
16592     ac_cpp_err=$ac_c_preproc_warn_flag
16593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594   else
16595     ac_cpp_err=
16596   fi
16597 else
16598   ac_cpp_err=yes
16599 fi
16600 if test -z "$ac_cpp_err"; then
16601   ac_header_preproc=yes
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606   ac_header_preproc=no
16607 fi
16608
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16612
16613 # So?  What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615   yes:no: )
16616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620     ac_header_preproc=yes
16621     ;;
16622   no:yes:* )
16623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635     ( cat <<\_ASBOX
16636 ## ------------------------------------ ##
16637 ## Report this to http://llvm.org/bugs/ ##
16638 ## ------------------------------------ ##
16639 _ASBOX
16640      ) | sed "s/^/$as_me: WARNING:     /" >&2
16641     ;;
16642 esac
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   eval "$as_ac_Header=\$ac_header_preproc"
16649 fi
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651                { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16653
16654 fi
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656   cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 _ACEOF
16659  HAVE_PTHREAD=1
16660
16661 else
16662   HAVE_PTHREAD=0
16663
16664 fi
16665
16666 done
16667
16668 else
16669   HAVE_PTHREAD=0
16670
16671 fi
16672 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16673
16674 for ac_header in zlib.h
16675 do
16676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16678   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 fi
16683 ac_res=`eval echo '${'$as_ac_Header'}'`
16684                { echo "$as_me:$LINENO: result: $ac_res" >&5
16685 echo "${ECHO_T}$ac_res" >&6; }
16686 else
16687   # Is the header compilable?
16688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h.  */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h.  */
16696 $ac_includes_default
16697 #include <$ac_header>
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706   (eval "$ac_compile") 2>conftest.er1
16707   ac_status=$?
16708   grep -v '^ *+' conftest.er1 >conftest.err
16709   rm -f conftest.er1
16710   cat conftest.err >&5
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } &&
16713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16714   { (case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_try") 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; } &&
16723          { ac_try='test -s conftest.$ac_objext'
16724   { (case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_try") 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; }; then
16733   ac_header_compiler=yes
16734 else
16735   echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16737
16738         ac_header_compiler=no
16739 fi
16740
16741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16743 echo "${ECHO_T}$ac_header_compiler" >&6; }
16744
16745 # Is the header present?
16746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754 #include <$ac_header>
16755 _ACEOF
16756 if { (ac_try="$ac_cpp conftest.$ac_ext"
16757 case "(($ac_try" in
16758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759   *) ac_try_echo=$ac_try;;
16760 esac
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } >/dev/null; then
16769   if test -s conftest.err; then
16770     ac_cpp_err=$ac_c_preproc_warn_flag
16771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16772   else
16773     ac_cpp_err=
16774   fi
16775 else
16776   ac_cpp_err=yes
16777 fi
16778 if test -z "$ac_cpp_err"; then
16779   ac_header_preproc=yes
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784   ac_header_preproc=no
16785 fi
16786
16787 rm -f conftest.err conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6; }
16790
16791 # So?  What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16793   yes:no: )
16794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16798     ac_header_preproc=yes
16799     ;;
16800   no:yes:* )
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16813     ( cat <<\_ASBOX
16814 ## ------------------------------------ ##
16815 ## Report this to http://llvm.org/bugs/ ##
16816 ## ------------------------------------ ##
16817 _ASBOX
16818      ) | sed "s/^/$as_me: WARNING:     /" >&2
16819     ;;
16820 esac
16821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826   eval "$as_ac_Header=\$ac_header_preproc"
16827 fi
16828 ac_res=`eval echo '${'$as_ac_Header'}'`
16829                { echo "$as_me:$LINENO: result: $ac_res" >&5
16830 echo "${ECHO_T}$ac_res" >&6; }
16831
16832 fi
16833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16834   cat >>confdefs.h <<_ACEOF
16835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16836 _ACEOF
16837  HAVE_LIBZ=1
16838
16839 else
16840   HAVE_LIBZ=0
16841
16842 fi
16843
16844 done
16845
16846 else
16847   HAVE_LIBZ=0
16848
16849 fi
16850
16851 if test "$llvm_cv_enable_libffi" = "yes" ; then
16852
16853
16854 for ac_header in ffi.h ffi/ffi.h
16855 do
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 fi
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864                { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 else
16867   # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876 $ac_includes_default
16877 #include <$ac_header>
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_compile") 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894   { (case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_try") 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; } &&
16903          { ac_try='test -s conftest.$ac_objext'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   ac_header_compiler=yes
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         ac_header_compiler=no
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16924
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934 #include <$ac_header>
16935 _ACEOF
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } >/dev/null; then
16949   if test -s conftest.err; then
16950     ac_cpp_err=$ac_c_preproc_warn_flag
16951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16952   else
16953     ac_cpp_err=
16954   fi
16955 else
16956   ac_cpp_err=yes
16957 fi
16958 if test -z "$ac_cpp_err"; then
16959   ac_header_preproc=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964   ac_header_preproc=no
16965 fi
16966
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16970
16971 # So?  What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16973   yes:no: )
16974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978     ac_header_preproc=yes
16979     ;;
16980   no:yes:* )
16981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16993     ( cat <<\_ASBOX
16994 ## ------------------------------------ ##
16995 ## Report this to http://llvm.org/bugs/ ##
16996 ## ------------------------------------ ##
16997 _ASBOX
16998      ) | sed "s/^/$as_me: WARNING:     /" >&2
16999     ;;
17000 esac
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006   eval "$as_ac_Header=\$ac_header_preproc"
17007 fi
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009                { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011
17012 fi
17013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17014   cat >>confdefs.h <<_ACEOF
17015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016 _ACEOF
17017
17018 fi
17019
17020 done
17021
17022 fi
17023
17024
17025 for ac_header in CrashReporterClient.h
17026 do
17027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17029   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 fi
17034 ac_res=`eval echo '${'$as_ac_Header'}'`
17035                { echo "$as_me:$LINENO: result: $ac_res" >&5
17036 echo "${ECHO_T}$ac_res" >&6; }
17037 else
17038   # Is the header compilable?
17039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047 $ac_includes_default
17048 #include <$ac_header>
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_compile") 2>conftest.er1
17058   ac_status=$?
17059   grep -v '^ *+' conftest.er1 >conftest.err
17060   rm -f conftest.er1
17061   cat conftest.err >&5
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); } &&
17064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17065   { (case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_try") 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); }; } &&
17074          { ac_try='test -s conftest.$ac_objext'
17075   { (case "(($ac_try" in
17076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17077   *) ac_try_echo=$ac_try;;
17078 esac
17079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17080   (eval "$ac_try") 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   ac_header_compiler=yes
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089         ac_header_compiler=no
17090 fi
17091
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17094 echo "${ECHO_T}$ac_header_compiler" >&6; }
17095
17096 # Is the header present?
17097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17099 cat >conftest.$ac_ext <<_ACEOF
17100 /* confdefs.h.  */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h.  */
17105 #include <$ac_header>
17106 _ACEOF
17107 if { (ac_try="$ac_cpp conftest.$ac_ext"
17108 case "(($ac_try" in
17109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110   *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17114   ac_status=$?
17115   grep -v '^ *+' conftest.er1 >conftest.err
17116   rm -f conftest.er1
17117   cat conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } >/dev/null; then
17120   if test -s conftest.err; then
17121     ac_cpp_err=$ac_c_preproc_warn_flag
17122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17123   else
17124     ac_cpp_err=
17125   fi
17126 else
17127   ac_cpp_err=yes
17128 fi
17129 if test -z "$ac_cpp_err"; then
17130   ac_header_preproc=yes
17131 else
17132   echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17134
17135   ac_header_preproc=no
17136 fi
17137
17138 rm -f conftest.err conftest.$ac_ext
17139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 echo "${ECHO_T}$ac_header_preproc" >&6; }
17141
17142 # So?  What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17144   yes:no: )
17145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149     ac_header_preproc=yes
17150     ;;
17151   no:yes:* )
17152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17155 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17156     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17159 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17164     ( cat <<\_ASBOX
17165 ## ------------------------------------ ##
17166 ## Report this to http://llvm.org/bugs/ ##
17167 ## ------------------------------------ ##
17168 _ASBOX
17169      ) | sed "s/^/$as_me: WARNING:     /" >&2
17170     ;;
17171 esac
17172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   eval "$as_ac_Header=\$ac_header_preproc"
17178 fi
17179 ac_res=`eval echo '${'$as_ac_Header'}'`
17180                { echo "$as_me:$LINENO: result: $ac_res" >&5
17181 echo "${ECHO_T}$ac_res" >&6; }
17182
17183 fi
17184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17185   cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17187 _ACEOF
17188
17189 fi
17190
17191 done
17192
17193
17194 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17195 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17196 cat >conftest.$ac_ext <<_ACEOF
17197
17198   /* confdefs.h.  */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h.  */
17203
17204     extern const char *__crashreporter_info__;
17205     int main() {
17206       __crashreporter_info__ = "test";
17207       return 0;
17208     }
17209
17210
17211 _ACEOF
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216   *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219   (eval "$ac_link") 2>conftest.er1
17220   ac_status=$?
17221   grep -v '^ *+' conftest.er1 >conftest.err
17222   rm -f conftest.er1
17223   cat conftest.err >&5
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); } &&
17226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227   { (case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_try") 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (case "(($ac_try" in
17238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239   *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242   (eval "$ac_try") 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; }; then
17246
17247   { echo "$as_me:$LINENO: result: yes" >&5
17248 echo "${ECHO_T}yes" >&6; }
17249
17250 cat >>confdefs.h <<\_ACEOF
17251 #define HAVE_CRASHREPORTER_INFO 1
17252 _ACEOF
17253
17254
17255 else
17256   echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259
17260   { echo "$as_me:$LINENO: result: no" >&5
17261 echo "${ECHO_T}no" >&6; }
17262
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_CRASHREPORTER_INFO 0
17265 _ACEOF
17266
17267
17268 fi
17269
17270 rm -f core conftest.err conftest.$ac_objext \
17271       conftest$ac_exeext conftest.$ac_ext
17272
17273
17274
17275   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17276 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17277 if test "${ac_cv_huge_val_sanity+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280
17281     ac_ext=cpp
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17286
17287     ac_save_CXXFLAGS=$CXXFLAGS
17288     CXXFLAGS="$CXXFLAGS -pedantic"
17289     if test "$cross_compiling" = yes; then
17290   ac_cv_huge_val_sanity=yes
17291 else
17292   cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298 #include <math.h>
17299 int
17300 main ()
17301 {
17302 double x = HUGE_VAL; return x != x;
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest$ac_exeext
17308 if { (ac_try="$ac_link"
17309 case "(($ac_try" in
17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311   *) ac_try_echo=$ac_try;;
17312 esac
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314   (eval "$ac_link") 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_huge_val_sanity=yes
17328 else
17329   echo "$as_me: program exited with status $ac_status" >&5
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 ( exit $ac_status )
17334 ac_cv_huge_val_sanity=no
17335 fi
17336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17337 fi
17338
17339
17340     CXXFLAGS=$ac_save_CXXFLAGS
17341     ac_ext=c
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17346
17347
17348 fi
17349 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17350 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17351   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17352
17353
17354 { echo "$as_me:$LINENO: checking for pid_t" >&5
17355 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17356 if test "${ac_cv_type_pid_t+set}" = set; then
17357   echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359   cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365 $ac_includes_default
17366 typedef pid_t ac__type_new_;
17367 int
17368 main ()
17369 {
17370 if ((ac__type_new_ *) 0)
17371   return 0;
17372 if (sizeof (ac__type_new_))
17373   return 0;
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382   *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385   (eval "$ac_compile") 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393   { (case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398   (eval "$ac_try") 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; } &&
17402          { ac_try='test -s conftest.$ac_objext'
17403   { (case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_try") 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; }; then
17412   ac_cv_type_pid_t=yes
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         ac_cv_type_pid_t=no
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 fi
17422 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17423 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17424 if test $ac_cv_type_pid_t = yes; then
17425   :
17426 else
17427
17428 cat >>confdefs.h <<_ACEOF
17429 #define pid_t int
17430 _ACEOF
17431
17432 fi
17433
17434 { echo "$as_me:$LINENO: checking for size_t" >&5
17435 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17436 if test "${ac_cv_type_size_t+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 $ac_includes_default
17446 typedef size_t ac__type_new_;
17447 int
17448 main ()
17449 {
17450 if ((ac__type_new_ *) 0)
17451   return 0;
17452 if (sizeof (ac__type_new_))
17453   return 0;
17454   ;
17455   return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext
17459 if { (ac_try="$ac_compile"
17460 case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_compile") 2>conftest.er1
17466   ac_status=$?
17467   grep -v '^ *+' conftest.er1 >conftest.err
17468   rm -f conftest.er1
17469   cat conftest.err >&5
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } &&
17472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17473   { (case "(($ac_try" in
17474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475   *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478   (eval "$ac_try") 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; } &&
17482          { ac_try='test -s conftest.$ac_objext'
17483   { (case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_try") 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; }; then
17492   ac_cv_type_size_t=yes
17493 else
17494   echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17496
17497         ac_cv_type_size_t=no
17498 fi
17499
17500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17501 fi
17502 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17503 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17504 if test $ac_cv_type_size_t = yes; then
17505   :
17506 else
17507
17508 cat >>confdefs.h <<_ACEOF
17509 #define size_t unsigned int
17510 _ACEOF
17511
17512 fi
17513
17514
17515 cat >>confdefs.h <<_ACEOF
17516 #define RETSIGTYPE void
17517 _ACEOF
17518
17519 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17520 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17521 if test "${ac_cv_struct_tm+set}" = set; then
17522   echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524   cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530 #include <sys/types.h>
17531 #include <time.h>
17532
17533 int
17534 main ()
17535 {
17536 struct tm *tp; tp->tm_sec;
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_compile") 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } &&
17555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556   { (case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561   (eval "$ac_try") 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; } &&
17565          { ac_try='test -s conftest.$ac_objext'
17566   { (case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571   (eval "$ac_try") 2>&5
17572   ac_status=$?
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; }; then
17575   ac_cv_struct_tm=time.h
17576 else
17577   echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580         ac_cv_struct_tm=sys/time.h
17581 fi
17582
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584 fi
17585 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17586 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17587 if test $ac_cv_struct_tm = sys/time.h; then
17588
17589 cat >>confdefs.h <<\_ACEOF
17590 #define TM_IN_SYS_TIME 1
17591 _ACEOF
17592
17593 fi
17594
17595 { echo "$as_me:$LINENO: checking for int64_t" >&5
17596 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17597 if test "${ac_cv_type_int64_t+set}" = set; then
17598   echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600   cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606 $ac_includes_default
17607 typedef int64_t ac__type_new_;
17608 int
17609 main ()
17610 {
17611 if ((ac__type_new_ *) 0)
17612   return 0;
17613 if (sizeof (ac__type_new_))
17614   return 0;
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626   (eval "$ac_compile") 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } &&
17633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17634   { (case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639   (eval "$ac_try") 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); }; } &&
17643          { ac_try='test -s conftest.$ac_objext'
17644   { (case "(($ac_try" in
17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646   *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649   (eval "$ac_try") 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; }; then
17653   ac_cv_type_int64_t=yes
17654 else
17655   echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658         ac_cv_type_int64_t=no
17659 fi
17660
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 fi
17663 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17664 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17665 if test $ac_cv_type_int64_t = yes; then
17666
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_INT64_T 1
17669 _ACEOF
17670
17671
17672 else
17673   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17674 echo "$as_me: error: Type int64_t required but not found" >&2;}
17675    { (exit 1); exit 1; }; }
17676 fi
17677
17678 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17679 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17680 if test "${ac_cv_type_uint64_t+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 $ac_includes_default
17690 typedef uint64_t ac__type_new_;
17691 int
17692 main ()
17693 {
17694 if ((ac__type_new_ *) 0)
17695   return 0;
17696 if (sizeof (ac__type_new_))
17697   return 0;
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706   *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709   (eval "$ac_compile") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_try") 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; } &&
17726          { ac_try='test -s conftest.$ac_objext'
17727   { (case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_try") 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; }; then
17736   ac_cv_type_uint64_t=yes
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741         ac_cv_type_uint64_t=no
17742 fi
17743
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 fi
17746 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17747 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17748 if test $ac_cv_type_uint64_t = yes; then
17749
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_UINT64_T 1
17752 _ACEOF
17753
17754
17755 else
17756   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17757 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17758 if test "${ac_cv_type_u_int64_t+set}" = set; then
17759   echo $ECHO_N "(cached) $ECHO_C" >&6
17760 else
17761   cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 $ac_includes_default
17768 typedef u_int64_t ac__type_new_;
17769 int
17770 main ()
17771 {
17772 if ((ac__type_new_ *) 0)
17773   return 0;
17774 if (sizeof (ac__type_new_))
17775   return 0;
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787   (eval "$ac_compile") 2>conftest.er1
17788   ac_status=$?
17789   grep -v '^ *+' conftest.er1 >conftest.err
17790   rm -f conftest.er1
17791   cat conftest.err >&5
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); } &&
17794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795   { (case "(($ac_try" in
17796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797   *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800   (eval "$ac_try") 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; } &&
17804          { ac_try='test -s conftest.$ac_objext'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; }; then
17814   ac_cv_type_u_int64_t=yes
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819         ac_cv_type_u_int64_t=no
17820 fi
17821
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823 fi
17824 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17825 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17826 if test $ac_cv_type_u_int64_t = yes; then
17827
17828 cat >>confdefs.h <<_ACEOF
17829 #define HAVE_U_INT64_T 1
17830 _ACEOF
17831
17832
17833 else
17834   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17835 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17836    { (exit 1); exit 1; }; }
17837 fi
17838
17839 fi
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17851 do
17852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17856   echo $ECHO_N "(cached) $ECHO_C" >&6
17857 else
17858   cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17866 #define $ac_func innocuous_$ac_func
17867
17868 /* System header to define __stub macros and hopefully few prototypes,
17869     which can conflict with char $ac_func (); below.
17870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17871     <limits.h> exists even on freestanding compilers.  */
17872
17873 #ifdef __STDC__
17874 # include <limits.h>
17875 #else
17876 # include <assert.h>
17877 #endif
17878
17879 #undef $ac_func
17880
17881 /* Override any GCC internal prototype to avoid an error.
17882    Use char because int might match the return type of a GCC
17883    builtin and then its argument prototype would still apply.  */
17884 #ifdef __cplusplus
17885 extern "C"
17886 #endif
17887 char $ac_func ();
17888 /* The GNU C library defines this for functions which it implements
17889     to always fail with ENOSYS.  Some functions are actually named
17890     something starting with __ and the normal name is an alias.  */
17891 #if defined __stub_$ac_func || defined __stub___$ac_func
17892 choke me
17893 #endif
17894
17895 int
17896 main ()
17897 {
17898 return $ac_func ();
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (ac_try="$ac_link"
17905 case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910   (eval "$ac_link") 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } &&
17917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918   { (case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; } &&
17927          { ac_try='test -s conftest$ac_exeext'
17928   { (case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933   (eval "$ac_try") 2>&5
17934   ac_status=$?
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); }; }; then
17937   eval "$as_ac_var=yes"
17938 else
17939   echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942         eval "$as_ac_var=no"
17943 fi
17944
17945 rm -f core conftest.err conftest.$ac_objext \
17946       conftest$ac_exeext conftest.$ac_ext
17947 fi
17948 ac_res=`eval echo '${'$as_ac_var'}'`
17949                { echo "$as_me:$LINENO: result: $ac_res" >&5
17950 echo "${ECHO_T}$ac_res" >&6; }
17951 if test `eval echo '${'$as_ac_var'}'` = yes; then
17952   cat >>confdefs.h <<_ACEOF
17953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17954 _ACEOF
17955
17956 fi
17957 done
17958
17959
17960
17961
17962
17963 for ac_func in powf fmodf strtof round
17964 do
17965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971   cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17979 #define $ac_func innocuous_$ac_func
17980
17981 /* System header to define __stub macros and hopefully few prototypes,
17982     which can conflict with char $ac_func (); below.
17983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984     <limits.h> exists even on freestanding compilers.  */
17985
17986 #ifdef __STDC__
17987 # include <limits.h>
17988 #else
17989 # include <assert.h>
17990 #endif
17991
17992 #undef $ac_func
17993
17994 /* Override any GCC internal prototype to avoid an error.
17995    Use char because int might match the return type of a GCC
17996    builtin and then its argument prototype would still apply.  */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char $ac_func ();
18001 /* The GNU C library defines this for functions which it implements
18002     to always fail with ENOSYS.  Some functions are actually named
18003     something starting with __ and the normal name is an alias.  */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18005 choke me
18006 #endif
18007
18008 int
18009 main ()
18010 {
18011 return $ac_func ();
18012   ;
18013   return 0;
18014 }
18015 _ACEOF
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020   *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023   (eval "$ac_link") 2>conftest.er1
18024   ac_status=$?
18025   grep -v '^ *+' conftest.er1 >conftest.err
18026   rm -f conftest.er1
18027   cat conftest.err >&5
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); } &&
18030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; } &&
18040          { ac_try='test -s conftest$ac_exeext'
18041   { (case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_try") 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050   eval "$as_ac_var=yes"
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055         eval "$as_ac_var=no"
18056 fi
18057
18058 rm -f core conftest.err conftest.$ac_objext \
18059       conftest$ac_exeext conftest.$ac_ext
18060 fi
18061 ac_res=`eval echo '${'$as_ac_var'}'`
18062                { echo "$as_me:$LINENO: result: $ac_res" >&5
18063 echo "${ECHO_T}$ac_res" >&6; }
18064 if test `eval echo '${'$as_ac_var'}'` = yes; then
18065   cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 _ACEOF
18068
18069 fi
18070 done
18071
18072
18073
18074
18075
18076
18077 for ac_func in log log2 log10 exp exp2
18078 do
18079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18083   echo $ECHO_N "(cached) $ECHO_C" >&6
18084 else
18085   cat >conftest.$ac_ext <<_ACEOF
18086 /* confdefs.h.  */
18087 _ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h.  */
18091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18093 #define $ac_func innocuous_$ac_func
18094
18095 /* System header to define __stub macros and hopefully few prototypes,
18096     which can conflict with char $ac_func (); below.
18097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18098     <limits.h> exists even on freestanding compilers.  */
18099
18100 #ifdef __STDC__
18101 # include <limits.h>
18102 #else
18103 # include <assert.h>
18104 #endif
18105
18106 #undef $ac_func
18107
18108 /* Override any GCC internal prototype to avoid an error.
18109    Use char because int might match the return type of a GCC
18110    builtin and then its argument prototype would still apply.  */
18111 #ifdef __cplusplus
18112 extern "C"
18113 #endif
18114 char $ac_func ();
18115 /* The GNU C library defines this for functions which it implements
18116     to always fail with ENOSYS.  Some functions are actually named
18117     something starting with __ and the normal name is an alias.  */
18118 #if defined __stub_$ac_func || defined __stub___$ac_func
18119 choke me
18120 #endif
18121
18122 int
18123 main ()
18124 {
18125 return $ac_func ();
18126   ;
18127   return 0;
18128 }
18129 _ACEOF
18130 rm -f conftest.$ac_objext conftest$ac_exeext
18131 if { (ac_try="$ac_link"
18132 case "(($ac_try" in
18133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134   *) ac_try_echo=$ac_try;;
18135 esac
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137   (eval "$ac_link") 2>conftest.er1
18138   ac_status=$?
18139   grep -v '^ *+' conftest.er1 >conftest.err
18140   rm -f conftest.er1
18141   cat conftest.err >&5
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); } &&
18144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18145   { (case "(($ac_try" in
18146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147   *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150   (eval "$ac_try") 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; } &&
18154          { ac_try='test -s conftest$ac_exeext'
18155   { (case "(($ac_try" in
18156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157   *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160   (eval "$ac_try") 2>&5
18161   ac_status=$?
18162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163   (exit $ac_status); }; }; then
18164   eval "$as_ac_var=yes"
18165 else
18166   echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169         eval "$as_ac_var=no"
18170 fi
18171
18172 rm -f core conftest.err conftest.$ac_objext \
18173       conftest$ac_exeext conftest.$ac_ext
18174 fi
18175 ac_res=`eval echo '${'$as_ac_var'}'`
18176                { echo "$as_me:$LINENO: result: $ac_res" >&5
18177 echo "${ECHO_T}$ac_res" >&6; }
18178 if test `eval echo '${'$as_ac_var'}'` = yes; then
18179   cat >>confdefs.h <<_ACEOF
18180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18181 _ACEOF
18182
18183 fi
18184 done
18185
18186
18187
18188
18189
18190
18191 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18192 do
18193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199   cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h.  */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h.  */
18205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18207 #define $ac_func innocuous_$ac_func
18208
18209 /* System header to define __stub macros and hopefully few prototypes,
18210     which can conflict with char $ac_func (); below.
18211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212     <limits.h> exists even on freestanding compilers.  */
18213
18214 #ifdef __STDC__
18215 # include <limits.h>
18216 #else
18217 # include <assert.h>
18218 #endif
18219
18220 #undef $ac_func
18221
18222 /* Override any GCC internal prototype to avoid an error.
18223    Use char because int might match the return type of a GCC
18224    builtin and then its argument prototype would still apply.  */
18225 #ifdef __cplusplus
18226 extern "C"
18227 #endif
18228 char $ac_func ();
18229 /* The GNU C library defines this for functions which it implements
18230     to always fail with ENOSYS.  Some functions are actually named
18231     something starting with __ and the normal name is an alias.  */
18232 #if defined __stub_$ac_func || defined __stub___$ac_func
18233 choke me
18234 #endif
18235
18236 int
18237 main ()
18238 {
18239 return $ac_func ();
18240   ;
18241   return 0;
18242 }
18243 _ACEOF
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248   *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251   (eval "$ac_link") 2>conftest.er1
18252   ac_status=$?
18253   grep -v '^ *+' conftest.er1 >conftest.err
18254   rm -f conftest.er1
18255   cat conftest.err >&5
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); } &&
18258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18259   { (case "(($ac_try" in
18260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261   *) ac_try_echo=$ac_try;;
18262 esac
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264   (eval "$ac_try") 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; } &&
18268          { ac_try='test -s conftest$ac_exeext'
18269   { (case "(($ac_try" in
18270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271   *) ac_try_echo=$ac_try;;
18272 esac
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274   (eval "$ac_try") 2>&5
18275   ac_status=$?
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); }; }; then
18278   eval "$as_ac_var=yes"
18279 else
18280   echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18282
18283         eval "$as_ac_var=no"
18284 fi
18285
18286 rm -f core conftest.err conftest.$ac_objext \
18287       conftest$ac_exeext conftest.$ac_ext
18288 fi
18289 ac_res=`eval echo '${'$as_ac_var'}'`
18290                { echo "$as_me:$LINENO: result: $ac_res" >&5
18291 echo "${ECHO_T}$ac_res" >&6; }
18292 if test `eval echo '${'$as_ac_var'}'` = yes; then
18293   cat >>confdefs.h <<_ACEOF
18294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18295 _ACEOF
18296
18297 fi
18298 done
18299
18300
18301
18302
18303 for ac_func in isatty mkdtemp mkstemp
18304 do
18305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18319 #define $ac_func innocuous_$ac_func
18320
18321 /* System header to define __stub macros and hopefully few prototypes,
18322     which can conflict with char $ac_func (); below.
18323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324     <limits.h> exists even on freestanding compilers.  */
18325
18326 #ifdef __STDC__
18327 # include <limits.h>
18328 #else
18329 # include <assert.h>
18330 #endif
18331
18332 #undef $ac_func
18333
18334 /* Override any GCC internal prototype to avoid an error.
18335    Use char because int might match the return type of a GCC
18336    builtin and then its argument prototype would still apply.  */
18337 #ifdef __cplusplus
18338 extern "C"
18339 #endif
18340 char $ac_func ();
18341 /* The GNU C library defines this for functions which it implements
18342     to always fail with ENOSYS.  Some functions are actually named
18343     something starting with __ and the normal name is an alias.  */
18344 #if defined __stub_$ac_func || defined __stub___$ac_func
18345 choke me
18346 #endif
18347
18348 int
18349 main ()
18350 {
18351 return $ac_func ();
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (ac_try="$ac_link"
18358 case "(($ac_try" in
18359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360   *) ac_try_echo=$ac_try;;
18361 esac
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363   (eval "$ac_link") 2>conftest.er1
18364   ac_status=$?
18365   grep -v '^ *+' conftest.er1 >conftest.err
18366   rm -f conftest.er1
18367   cat conftest.err >&5
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } &&
18370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18371   { (case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_try") 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; } &&
18380          { ac_try='test -s conftest$ac_exeext'
18381   { (case "(($ac_try" in
18382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383   *) ac_try_echo=$ac_try;;
18384 esac
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386   (eval "$ac_try") 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   eval "$as_ac_var=yes"
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395         eval "$as_ac_var=no"
18396 fi
18397
18398 rm -f core conftest.err conftest.$ac_objext \
18399       conftest$ac_exeext conftest.$ac_ext
18400 fi
18401 ac_res=`eval echo '${'$as_ac_var'}'`
18402                { echo "$as_me:$LINENO: result: $ac_res" >&5
18403 echo "${ECHO_T}$ac_res" >&6; }
18404 if test `eval echo '${'$as_ac_var'}'` = yes; then
18405   cat >>confdefs.h <<_ACEOF
18406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18407 _ACEOF
18408
18409 fi
18410 done
18411
18412
18413
18414
18415
18416
18417
18418 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18419 do
18420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18434 #define $ac_func innocuous_$ac_func
18435
18436 /* System header to define __stub macros and hopefully few prototypes,
18437     which can conflict with char $ac_func (); below.
18438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439     <limits.h> exists even on freestanding compilers.  */
18440
18441 #ifdef __STDC__
18442 # include <limits.h>
18443 #else
18444 # include <assert.h>
18445 #endif
18446
18447 #undef $ac_func
18448
18449 /* Override any GCC internal prototype to avoid an error.
18450    Use char because int might match the return type of a GCC
18451    builtin and then its argument prototype would still apply.  */
18452 #ifdef __cplusplus
18453 extern "C"
18454 #endif
18455 char $ac_func ();
18456 /* The GNU C library defines this for functions which it implements
18457     to always fail with ENOSYS.  Some functions are actually named
18458     something starting with __ and the normal name is an alias.  */
18459 #if defined __stub_$ac_func || defined __stub___$ac_func
18460 choke me
18461 #endif
18462
18463 int
18464 main ()
18465 {
18466 return $ac_func ();
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478   (eval "$ac_link") 2>conftest.er1
18479   ac_status=$?
18480   grep -v '^ *+' conftest.er1 >conftest.err
18481   rm -f conftest.er1
18482   cat conftest.err >&5
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } &&
18485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486   { (case "(($ac_try" in
18487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488   *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491   (eval "$ac_try") 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest$ac_exeext'
18496   { (case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_try") 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; }; then
18505   eval "$as_ac_var=yes"
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510         eval "$as_ac_var=no"
18511 fi
18512
18513 rm -f core conftest.err conftest.$ac_objext \
18514       conftest$ac_exeext conftest.$ac_ext
18515 fi
18516 ac_res=`eval echo '${'$as_ac_var'}'`
18517                { echo "$as_me:$LINENO: result: $ac_res" >&5
18518 echo "${ECHO_T}$ac_res" >&6; }
18519 if test `eval echo '${'$as_ac_var'}'` = yes; then
18520   cat >>confdefs.h <<_ACEOF
18521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18522 _ACEOF
18523
18524 fi
18525 done
18526
18527
18528
18529
18530 for ac_func in strerror strerror_r setenv
18531 do
18532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18536   echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538   cat >conftest.$ac_ext <<_ACEOF
18539 /* confdefs.h.  */
18540 _ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h.  */
18544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18546 #define $ac_func innocuous_$ac_func
18547
18548 /* System header to define __stub macros and hopefully few prototypes,
18549     which can conflict with char $ac_func (); below.
18550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18551     <limits.h> exists even on freestanding compilers.  */
18552
18553 #ifdef __STDC__
18554 # include <limits.h>
18555 #else
18556 # include <assert.h>
18557 #endif
18558
18559 #undef $ac_func
18560
18561 /* Override any GCC internal prototype to avoid an error.
18562    Use char because int might match the return type of a GCC
18563    builtin and then its argument prototype would still apply.  */
18564 #ifdef __cplusplus
18565 extern "C"
18566 #endif
18567 char $ac_func ();
18568 /* The GNU C library defines this for functions which it implements
18569     to always fail with ENOSYS.  Some functions are actually named
18570     something starting with __ and the normal name is an alias.  */
18571 #if defined __stub_$ac_func || defined __stub___$ac_func
18572 choke me
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578 return $ac_func ();
18579   ;
18580   return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_link") 2>conftest.er1
18591   ac_status=$?
18592   grep -v '^ *+' conftest.er1 >conftest.err
18593   rm -f conftest.er1
18594   cat conftest.err >&5
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); } &&
18597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598   { (case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603   (eval "$ac_try") 2>&5
18604   ac_status=$?
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); }; } &&
18607          { ac_try='test -s conftest$ac_exeext'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613   (eval "$ac_try") 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; }; then
18617   eval "$as_ac_var=yes"
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622         eval "$as_ac_var=no"
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext \
18626       conftest$ac_exeext conftest.$ac_ext
18627 fi
18628 ac_res=`eval echo '${'$as_ac_var'}'`
18629                { echo "$as_me:$LINENO: result: $ac_res" >&5
18630 echo "${ECHO_T}$ac_res" >&6; }
18631 if test `eval echo '${'$as_ac_var'}'` = yes; then
18632   cat >>confdefs.h <<_ACEOF
18633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18634 _ACEOF
18635
18636 fi
18637 done
18638
18639
18640
18641
18642
18643 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18644 do
18645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18659 #define $ac_func innocuous_$ac_func
18660
18661 /* System header to define __stub macros and hopefully few prototypes,
18662     which can conflict with char $ac_func (); below.
18663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18664     <limits.h> exists even on freestanding compilers.  */
18665
18666 #ifdef __STDC__
18667 # include <limits.h>
18668 #else
18669 # include <assert.h>
18670 #endif
18671
18672 #undef $ac_func
18673
18674 /* Override any GCC internal prototype to avoid an error.
18675    Use char because int might match the return type of a GCC
18676    builtin and then its argument prototype would still apply.  */
18677 #ifdef __cplusplus
18678 extern "C"
18679 #endif
18680 char $ac_func ();
18681 /* The GNU C library defines this for functions which it implements
18682     to always fail with ENOSYS.  Some functions are actually named
18683     something starting with __ and the normal name is an alias.  */
18684 #if defined __stub_$ac_func || defined __stub___$ac_func
18685 choke me
18686 #endif
18687
18688 int
18689 main ()
18690 {
18691 return $ac_func ();
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (ac_try="$ac_link"
18698 case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_link") 2>conftest.er1
18704   ac_status=$?
18705   grep -v '^ *+' conftest.er1 >conftest.err
18706   rm -f conftest.er1
18707   cat conftest.err >&5
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } &&
18710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18711   { (case "(($ac_try" in
18712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713   *) ac_try_echo=$ac_try;;
18714 esac
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716   (eval "$ac_try") 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; } &&
18720          { ac_try='test -s conftest$ac_exeext'
18721   { (case "(($ac_try" in
18722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723   *) ac_try_echo=$ac_try;;
18724 esac
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726   (eval "$ac_try") 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; }; then
18730   eval "$as_ac_var=yes"
18731 else
18732   echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735         eval "$as_ac_var=no"
18736 fi
18737
18738 rm -f core conftest.err conftest.$ac_objext \
18739       conftest$ac_exeext conftest.$ac_ext
18740 fi
18741 ac_res=`eval echo '${'$as_ac_var'}'`
18742                { echo "$as_me:$LINENO: result: $ac_res" >&5
18743 echo "${ECHO_T}$ac_res" >&6; }
18744 if test `eval echo '${'$as_ac_var'}'` = yes; then
18745   cat >>confdefs.h <<_ACEOF
18746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18747 _ACEOF
18748
18749 fi
18750 done
18751
18752
18753
18754
18755
18756
18757 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18758 do
18759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763   echo $ECHO_N "(cached) $ECHO_C" >&6
18764 else
18765   cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18773 #define $ac_func innocuous_$ac_func
18774
18775 /* System header to define __stub macros and hopefully few prototypes,
18776     which can conflict with char $ac_func (); below.
18777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778     <limits.h> exists even on freestanding compilers.  */
18779
18780 #ifdef __STDC__
18781 # include <limits.h>
18782 #else
18783 # include <assert.h>
18784 #endif
18785
18786 #undef $ac_func
18787
18788 /* Override any GCC internal prototype to avoid an error.
18789    Use char because int might match the return type of a GCC
18790    builtin and then its argument prototype would still apply.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 char $ac_func ();
18795 /* The GNU C library defines this for functions which it implements
18796     to always fail with ENOSYS.  Some functions are actually named
18797     something starting with __ and the normal name is an alias.  */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18799 choke me
18800 #endif
18801
18802 int
18803 main ()
18804 {
18805 return $ac_func ();
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817   (eval "$ac_link") 2>conftest.er1
18818   ac_status=$?
18819   grep -v '^ *+' conftest.er1 >conftest.err
18820   rm -f conftest.er1
18821   cat conftest.err >&5
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); } &&
18824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825   { (case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_try") 2>&5
18831   ac_status=$?
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); }; } &&
18834          { ac_try='test -s conftest$ac_exeext'
18835   { (case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_try") 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; }; then
18844   eval "$as_ac_var=yes"
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849         eval "$as_ac_var=no"
18850 fi
18851
18852 rm -f core conftest.err conftest.$ac_objext \
18853       conftest$ac_exeext conftest.$ac_ext
18854 fi
18855 ac_res=`eval echo '${'$as_ac_var'}'`
18856                { echo "$as_me:$LINENO: result: $ac_res" >&5
18857 echo "${ECHO_T}$ac_res" >&6; }
18858 if test `eval echo '${'$as_ac_var'}'` = yes; then
18859   cat >>confdefs.h <<_ACEOF
18860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18861 _ACEOF
18862
18863 fi
18864 done
18865
18866
18867
18868 for ac_func in futimes futimens
18869 do
18870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h.  */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h.  */
18882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18884 #define $ac_func innocuous_$ac_func
18885
18886 /* System header to define __stub macros and hopefully few prototypes,
18887     which can conflict with char $ac_func (); below.
18888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18889     <limits.h> exists even on freestanding compilers.  */
18890
18891 #ifdef __STDC__
18892 # include <limits.h>
18893 #else
18894 # include <assert.h>
18895 #endif
18896
18897 #undef $ac_func
18898
18899 /* Override any GCC internal prototype to avoid an error.
18900    Use char because int might match the return type of a GCC
18901    builtin and then its argument prototype would still apply.  */
18902 #ifdef __cplusplus
18903 extern "C"
18904 #endif
18905 char $ac_func ();
18906 /* The GNU C library defines this for functions which it implements
18907     to always fail with ENOSYS.  Some functions are actually named
18908     something starting with __ and the normal name is an alias.  */
18909 #if defined __stub_$ac_func || defined __stub___$ac_func
18910 choke me
18911 #endif
18912
18913 int
18914 main ()
18915 {
18916 return $ac_func ();
18917   ;
18918   return 0;
18919 }
18920 _ACEOF
18921 rm -f conftest.$ac_objext conftest$ac_exeext
18922 if { (ac_try="$ac_link"
18923 case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_link") 2>conftest.er1
18929   ac_status=$?
18930   grep -v '^ *+' conftest.er1 >conftest.err
18931   rm -f conftest.er1
18932   cat conftest.err >&5
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } &&
18935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18936   { (case "(($ac_try" in
18937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938   *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941   (eval "$ac_try") 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); }; } &&
18945          { ac_try='test -s conftest$ac_exeext'
18946   { (case "(($ac_try" in
18947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948   *) ac_try_echo=$ac_try;;
18949 esac
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951   (eval "$ac_try") 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; }; then
18955   eval "$as_ac_var=yes"
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960         eval "$as_ac_var=no"
18961 fi
18962
18963 rm -f core conftest.err conftest.$ac_objext \
18964       conftest$ac_exeext conftest.$ac_ext
18965 fi
18966 ac_res=`eval echo '${'$as_ac_var'}'`
18967                { echo "$as_me:$LINENO: result: $ac_res" >&5
18968 echo "${ECHO_T}$ac_res" >&6; }
18969 if test `eval echo '${'$as_ac_var'}'` = yes; then
18970   cat >>confdefs.h <<_ACEOF
18971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18972 _ACEOF
18973
18974 fi
18975 done
18976
18977 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18978 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18979 if test "${llvm_cv_c_printf_a+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   ac_ext=c
18983 ac_cpp='$CPP $CPPFLAGS'
18984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18987
18988  if test "$cross_compiling" = yes; then
18989   llvmac_cv_c_printf_a=no
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992
18993   /* confdefs.h.  */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h.  */
18998
18999 #include <stdio.h>
19000 #include <stdlib.h>
19001
19002 int
19003 main ()
19004 {
19005
19006 volatile double A, B;
19007 char Buffer[100];
19008 A = 1;
19009 A /= 10.0;
19010 sprintf(Buffer, "%a", A);
19011 B = atof(Buffer);
19012 if (A != B)
19013   return (1);
19014 if (A != 0x1.999999999999ap-4)
19015   return (1);
19016 return (0);
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 rm -f conftest$ac_exeext
19022 if { (ac_try="$ac_link"
19023 case "(($ac_try" in
19024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025   *) ac_try_echo=$ac_try;;
19026 esac
19027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028   (eval "$ac_link") 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19032   { (case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_try") 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; }; then
19041   llvm_cv_c_printf_a=yes
19042 else
19043   echo "$as_me: program exited with status $ac_status" >&5
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047 ( exit $ac_status )
19048 llvmac_cv_c_printf_a=no
19049 fi
19050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19051 fi
19052
19053
19054  ac_ext=c
19055 ac_cpp='$CPP $CPPFLAGS'
19056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19059
19060 fi
19061 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19062 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19063  if test "$llvm_cv_c_printf_a" = "yes"; then
19064
19065 cat >>confdefs.h <<\_ACEOF
19066 #define HAVE_PRINTF_A 1
19067 _ACEOF
19068
19069  fi
19070
19071
19072
19073   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19074 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19075 if test "${ac_cv_func_rand48+set}" = set; then
19076   echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078
19079     ac_ext=cpp
19080 ac_cpp='$CXXCPP $CPPFLAGS'
19081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19084
19085     cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091 #include <stdlib.h>
19092 int
19093 main ()
19094 {
19095 srand48(0);lrand48();drand48();
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 rm -f conftest.$ac_objext
19101 if { (ac_try="$ac_compile"
19102 case "(($ac_try" in
19103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104   *) ac_try_echo=$ac_try;;
19105 esac
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107   (eval "$ac_compile") 2>conftest.er1
19108   ac_status=$?
19109   grep -v '^ *+' conftest.er1 >conftest.err
19110   rm -f conftest.er1
19111   cat conftest.err >&5
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); } &&
19114          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19115   { (case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120   (eval "$ac_try") 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; } &&
19124          { ac_try='test -s conftest.$ac_objext'
19125   { (case "(($ac_try" in
19126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127   *) ac_try_echo=$ac_try;;
19128 esac
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130   (eval "$ac_try") 2>&5
19131   ac_status=$?
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); }; }; then
19134   ac_cv_func_rand48=yes
19135 else
19136   echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139         ac_cv_func_rand48=no
19140 fi
19141
19142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19143     ac_ext=c
19144 ac_cpp='$CPP $CPPFLAGS'
19145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19148
19149
19150 fi
19151 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19152 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19153
19154 if test "$ac_cv_func_rand48" = "yes" ; then
19155
19156 cat >>confdefs.h <<\_ACEOF
19157 #define HAVE_RAND48 1
19158 _ACEOF
19159
19160 fi
19161
19162
19163 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19164 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19165 if test "${ac_cv_have_decl_arc4random+set}" = set; then
19166   echo $ECHO_N "(cached) $ECHO_C" >&6
19167 else
19168   cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174 $ac_includes_default
19175 int
19176 main ()
19177 {
19178 #ifndef arc4random
19179   char *p = (char *) arc4random;
19180   return !p;
19181 #endif
19182
19183   ;
19184   return 0;
19185 }
19186 _ACEOF
19187 rm -f conftest.$ac_objext
19188 if { (ac_try="$ac_compile"
19189 case "(($ac_try" in
19190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191   *) ac_try_echo=$ac_try;;
19192 esac
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194   (eval "$ac_compile") 2>conftest.er1
19195   ac_status=$?
19196   grep -v '^ *+' conftest.er1 >conftest.err
19197   rm -f conftest.er1
19198   cat conftest.err >&5
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } &&
19201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19202   { (case "(($ac_try" in
19203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204   *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207   (eval "$ac_try") 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; } &&
19211          { ac_try='test -s conftest.$ac_objext'
19212   { (case "(($ac_try" in
19213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214   *) ac_try_echo=$ac_try;;
19215 esac
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217   (eval "$ac_try") 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_cv_have_decl_arc4random=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226         ac_cv_have_decl_arc4random=no
19227 fi
19228
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 fi
19231 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19232 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19233 if test $ac_cv_have_decl_arc4random = yes; then
19234
19235 cat >>confdefs.h <<_ACEOF
19236 #define HAVE_DECL_ARC4RANDOM 1
19237 _ACEOF
19238
19239
19240 else
19241   cat >>confdefs.h <<_ACEOF
19242 #define HAVE_DECL_ARC4RANDOM 0
19243 _ACEOF
19244
19245
19246 fi
19247
19248
19249
19250 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19251 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19252 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19253   echo $ECHO_N "(cached) $ECHO_C" >&6
19254 else
19255   cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 $ac_includes_default
19262 int
19263 main ()
19264 {
19265 #ifndef strerror_s
19266   char *p = (char *) strerror_s;
19267   return !p;
19268 #endif
19269
19270   ;
19271   return 0;
19272 }
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278   *) ac_try_echo=$ac_try;;
19279 esac
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281   (eval "$ac_compile") 2>conftest.er1
19282   ac_status=$?
19283   grep -v '^ *+' conftest.er1 >conftest.err
19284   rm -f conftest.er1
19285   cat conftest.err >&5
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); } &&
19288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; } &&
19298          { ac_try='test -s conftest.$ac_objext'
19299   { (case "(($ac_try" in
19300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301   *) ac_try_echo=$ac_try;;
19302 esac
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304   (eval "$ac_try") 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; }; then
19308   ac_cv_have_decl_strerror_s=yes
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313         ac_cv_have_decl_strerror_s=no
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 fi
19318 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19319 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19320 if test $ac_cv_have_decl_strerror_s = yes; then
19321
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_DECL_STRERROR_S 1
19324 _ACEOF
19325
19326
19327 else
19328   cat >>confdefs.h <<_ACEOF
19329 #define HAVE_DECL_STRERROR_S 0
19330 _ACEOF
19331
19332
19333 fi
19334
19335
19336
19337 if test "$llvm_cv_os_type" = "MingW" ; then
19338   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19339 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19340 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   ac_check_lib_save_LIBS=$LIBS
19344 LIBS="-lgcc  $LIBS"
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h.  */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h.  */
19351
19352 /* Override any GCC internal prototype to avoid an error.
19353    Use char because int might match the return type of a GCC
19354    builtin and then its argument prototype would still apply.  */
19355 #ifdef __cplusplus
19356 extern "C"
19357 #endif
19358 char _alloca ();
19359 int
19360 main ()
19361 {
19362 return _alloca ();
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (ac_try="$ac_link"
19369 case "(($ac_try" in
19370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371   *) ac_try_echo=$ac_try;;
19372 esac
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374   (eval "$ac_link") 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } &&
19381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19382   { (case "(($ac_try" in
19383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384   *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387   (eval "$ac_try") 2>&5
19388   ac_status=$?
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); }; } &&
19391          { ac_try='test -s conftest$ac_exeext'
19392   { (case "(($ac_try" in
19393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394   *) ac_try_echo=$ac_try;;
19395 esac
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397   (eval "$ac_try") 2>&5
19398   ac_status=$?
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); }; }; then
19401   ac_cv_lib_gcc__alloca=yes
19402 else
19403   echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406         ac_cv_lib_gcc__alloca=no
19407 fi
19408
19409 rm -f core conftest.err conftest.$ac_objext \
19410       conftest$ac_exeext conftest.$ac_ext
19411 LIBS=$ac_check_lib_save_LIBS
19412 fi
19413 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19414 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19415 if test $ac_cv_lib_gcc__alloca = yes; then
19416
19417 cat >>confdefs.h <<\_ACEOF
19418 #define HAVE__ALLOCA 1
19419 _ACEOF
19420
19421 fi
19422
19423   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19424 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19425 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19426   echo $ECHO_N "(cached) $ECHO_C" >&6
19427 else
19428   ac_check_lib_save_LIBS=$LIBS
19429 LIBS="-lgcc  $LIBS"
19430 cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h.  */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h.  */
19436
19437 /* Override any GCC internal prototype to avoid an error.
19438    Use char because int might match the return type of a GCC
19439    builtin and then its argument prototype would still apply.  */
19440 #ifdef __cplusplus
19441 extern "C"
19442 #endif
19443 char __alloca ();
19444 int
19445 main ()
19446 {
19447 return __alloca ();
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_link") 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } &&
19466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19467   { (case "(($ac_try" in
19468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469   *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472   (eval "$ac_try") 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest$ac_exeext'
19477   { (case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_try") 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; }; then
19486   ac_cv_lib_gcc___alloca=yes
19487 else
19488   echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491         ac_cv_lib_gcc___alloca=no
19492 fi
19493
19494 rm -f core conftest.err conftest.$ac_objext \
19495       conftest$ac_exeext conftest.$ac_ext
19496 LIBS=$ac_check_lib_save_LIBS
19497 fi
19498 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19499 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19500 if test $ac_cv_lib_gcc___alloca = yes; then
19501
19502 cat >>confdefs.h <<\_ACEOF
19503 #define HAVE___ALLOCA 1
19504 _ACEOF
19505
19506 fi
19507
19508   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19509 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lgcc  $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h.  */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h.  */
19521
19522 /* Override any GCC internal prototype to avoid an error.
19523    Use char because int might match the return type of a GCC
19524    builtin and then its argument prototype would still apply.  */
19525 #ifdef __cplusplus
19526 extern "C"
19527 #endif
19528 char __chkstk ();
19529 int
19530 main ()
19531 {
19532 return __chkstk ();
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_link") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } &&
19551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19552   { (case "(($ac_try" in
19553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554   *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557   (eval "$ac_try") 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; } &&
19561          { ac_try='test -s conftest$ac_exeext'
19562   { (case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567   (eval "$ac_try") 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_cv_lib_gcc___chkstk=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576         ac_cv_lib_gcc___chkstk=no
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext \
19580       conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19584 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19585 if test $ac_cv_lib_gcc___chkstk = yes; then
19586
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE___CHKSTK 1
19589 _ACEOF
19590
19591 fi
19592
19593   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19594 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19595 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598   ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-lgcc  $LIBS"
19600 cat >conftest.$ac_ext <<_ACEOF
19601 /* confdefs.h.  */
19602 _ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h.  */
19606
19607 /* Override any GCC internal prototype to avoid an error.
19608    Use char because int might match the return type of a GCC
19609    builtin and then its argument prototype would still apply.  */
19610 #ifdef __cplusplus
19611 extern "C"
19612 #endif
19613 char ___chkstk ();
19614 int
19615 main ()
19616 {
19617 return ___chkstk ();
19618   ;
19619   return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_link") 2>conftest.er1
19630   ac_status=$?
19631   grep -v '^ *+' conftest.er1 >conftest.err
19632   rm -f conftest.er1
19633   cat conftest.err >&5
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } &&
19636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637   { (case "(($ac_try" in
19638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639   *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642   (eval "$ac_try") 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest$ac_exeext'
19647   { (case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652   (eval "$ac_try") 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; }; then
19656   ac_cv_lib_gcc____chkstk=yes
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661         ac_cv_lib_gcc____chkstk=no
19662 fi
19663
19664 rm -f core conftest.err conftest.$ac_objext \
19665       conftest$ac_exeext conftest.$ac_ext
19666 LIBS=$ac_check_lib_save_LIBS
19667 fi
19668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19669 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19670 if test $ac_cv_lib_gcc____chkstk = yes; then
19671
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE____CHKSTK 1
19674 _ACEOF
19675
19676 fi
19677
19678
19679   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19680 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19681 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19682   echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684   ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-lgcc  $LIBS"
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692
19693 /* Override any GCC internal prototype to avoid an error.
19694    Use char because int might match the return type of a GCC
19695    builtin and then its argument prototype would still apply.  */
19696 #ifdef __cplusplus
19697 extern "C"
19698 #endif
19699 char __ashldi3 ();
19700 int
19701 main ()
19702 {
19703 return __ashldi3 ();
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (ac_try="$ac_link"
19710 case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_link") 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } &&
19722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723   { (case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_try") 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; } &&
19732          { ac_try='test -s conftest$ac_exeext'
19733   { (case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_try") 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742   ac_cv_lib_gcc___ashldi3=yes
19743 else
19744   echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747         ac_cv_lib_gcc___ashldi3=no
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext \
19751       conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19753 fi
19754 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19755 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19756 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19757
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE___ASHLDI3 1
19760 _ACEOF
19761
19762 fi
19763
19764   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19765 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19766 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   ac_check_lib_save_LIBS=$LIBS
19770 LIBS="-lgcc  $LIBS"
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h.  */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h.  */
19777
19778 /* Override any GCC internal prototype to avoid an error.
19779    Use char because int might match the return type of a GCC
19780    builtin and then its argument prototype would still apply.  */
19781 #ifdef __cplusplus
19782 extern "C"
19783 #endif
19784 char __ashrdi3 ();
19785 int
19786 main ()
19787 {
19788 return __ashrdi3 ();
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_link") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808   { (case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_try") 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; } &&
19817          { ac_try='test -s conftest$ac_exeext'
19818   { (case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_try") 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; }; then
19827   ac_cv_lib_gcc___ashrdi3=yes
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832         ac_cv_lib_gcc___ashrdi3=no
19833 fi
19834
19835 rm -f core conftest.err conftest.$ac_objext \
19836       conftest$ac_exeext conftest.$ac_ext
19837 LIBS=$ac_check_lib_save_LIBS
19838 fi
19839 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19840 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19841 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19842
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE___ASHRDI3 1
19845 _ACEOF
19846
19847 fi
19848
19849   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19850 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19851 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   ac_check_lib_save_LIBS=$LIBS
19855 LIBS="-lgcc  $LIBS"
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h.  */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h.  */
19862
19863 /* Override any GCC internal prototype to avoid an error.
19864    Use char because int might match the return type of a GCC
19865    builtin and then its argument prototype would still apply.  */
19866 #ifdef __cplusplus
19867 extern "C"
19868 #endif
19869 char __divdi3 ();
19870 int
19871 main ()
19872 {
19873 return __divdi3 ();
19874   ;
19875   return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885   (eval "$ac_link") 2>conftest.er1
19886   ac_status=$?
19887   grep -v '^ *+' conftest.er1 >conftest.err
19888   rm -f conftest.er1
19889   cat conftest.err >&5
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } &&
19892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19893   { (case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_try") 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; } &&
19902          { ac_try='test -s conftest$ac_exeext'
19903   { (case "(($ac_try" in
19904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905   *) ac_try_echo=$ac_try;;
19906 esac
19907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908   (eval "$ac_try") 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; }; then
19912   ac_cv_lib_gcc___divdi3=yes
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917         ac_cv_lib_gcc___divdi3=no
19918 fi
19919
19920 rm -f core conftest.err conftest.$ac_objext \
19921       conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19925 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19926 if test $ac_cv_lib_gcc___divdi3 = yes; then
19927
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE___DIVDI3 1
19930 _ACEOF
19931
19932 fi
19933
19934   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19935 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19936 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   ac_check_lib_save_LIBS=$LIBS
19940 LIBS="-lgcc  $LIBS"
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947
19948 /* Override any GCC internal prototype to avoid an error.
19949    Use char because int might match the return type of a GCC
19950    builtin and then its argument prototype would still apply.  */
19951 #ifdef __cplusplus
19952 extern "C"
19953 #endif
19954 char __fixdfdi ();
19955 int
19956 main ()
19957 {
19958 return __fixdfdi ();
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_link") 2>conftest.er1
19971   ac_status=$?
19972   grep -v '^ *+' conftest.er1 >conftest.err
19973   rm -f conftest.er1
19974   cat conftest.err >&5
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); } &&
19977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19978   { (case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_try") 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest$ac_exeext'
19988   { (case "(($ac_try" in
19989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990   *) ac_try_echo=$ac_try;;
19991 esac
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993   (eval "$ac_try") 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; }; then
19997   ac_cv_lib_gcc___fixdfdi=yes
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002         ac_cv_lib_gcc___fixdfdi=no
20003 fi
20004
20005 rm -f core conftest.err conftest.$ac_objext \
20006       conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20008 fi
20009 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20010 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20011 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20012
20013 cat >>confdefs.h <<\_ACEOF
20014 #define HAVE___FIXDFDI 1
20015 _ACEOF
20016
20017 fi
20018
20019   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20020 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20021 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lgcc  $LIBS"
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032
20033 /* Override any GCC internal prototype to avoid an error.
20034    Use char because int might match the return type of a GCC
20035    builtin and then its argument prototype would still apply.  */
20036 #ifdef __cplusplus
20037 extern "C"
20038 #endif
20039 char __fixsfdi ();
20040 int
20041 main ()
20042 {
20043 return __fixsfdi ();
20044   ;
20045   return 0;
20046 }
20047 _ACEOF
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052   *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055   (eval "$ac_link") 2>conftest.er1
20056   ac_status=$?
20057   grep -v '^ *+' conftest.er1 >conftest.err
20058   rm -f conftest.er1
20059   cat conftest.err >&5
20060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061   (exit $ac_status); } &&
20062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20063   { (case "(($ac_try" in
20064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065   *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068   (eval "$ac_try") 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; } &&
20072          { ac_try='test -s conftest$ac_exeext'
20073   { (case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_try") 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; }; then
20082   ac_cv_lib_gcc___fixsfdi=yes
20083 else
20084   echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087         ac_cv_lib_gcc___fixsfdi=no
20088 fi
20089
20090 rm -f core conftest.err conftest.$ac_objext \
20091       conftest$ac_exeext conftest.$ac_ext
20092 LIBS=$ac_check_lib_save_LIBS
20093 fi
20094 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20095 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20096 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20097
20098 cat >>confdefs.h <<\_ACEOF
20099 #define HAVE___FIXSFDI 1
20100 _ACEOF
20101
20102 fi
20103
20104   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20105 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20106 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lgcc  $LIBS"
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117
20118 /* Override any GCC internal prototype to avoid an error.
20119    Use char because int might match the return type of a GCC
20120    builtin and then its argument prototype would still apply.  */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char __floatdidf ();
20125 int
20126 main ()
20127 {
20128 return __floatdidf ();
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137   *) ac_try_echo=$ac_try;;
20138 esac
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140   (eval "$ac_link") 2>conftest.er1
20141   ac_status=$?
20142   grep -v '^ *+' conftest.er1 >conftest.err
20143   rm -f conftest.er1
20144   cat conftest.err >&5
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } &&
20147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20148   { (case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_try") 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; } &&
20157          { ac_try='test -s conftest$ac_exeext'
20158   { (case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_try") 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; }; then
20167   ac_cv_lib_gcc___floatdidf=yes
20168 else
20169   echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172         ac_cv_lib_gcc___floatdidf=no
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext \
20176       conftest$ac_exeext conftest.$ac_ext
20177 LIBS=$ac_check_lib_save_LIBS
20178 fi
20179 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20180 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20181 if test $ac_cv_lib_gcc___floatdidf = yes; then
20182
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE___FLOATDIDF 1
20185 _ACEOF
20186
20187 fi
20188
20189   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20190 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20191 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20192   echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194   ac_check_lib_save_LIBS=$LIBS
20195 LIBS="-lgcc  $LIBS"
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202
20203 /* Override any GCC internal prototype to avoid an error.
20204    Use char because int might match the return type of a GCC
20205    builtin and then its argument prototype would still apply.  */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 char __lshrdi3 ();
20210 int
20211 main ()
20212 {
20213 return __lshrdi3 ();
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_link") 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } &&
20232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20233   { (case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_try") 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; } &&
20242          { ac_try='test -s conftest$ac_exeext'
20243   { (case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_try") 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   ac_cv_lib_gcc___lshrdi3=yes
20253 else
20254   echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20256
20257         ac_cv_lib_gcc___lshrdi3=no
20258 fi
20259
20260 rm -f core conftest.err conftest.$ac_objext \
20261       conftest$ac_exeext conftest.$ac_ext
20262 LIBS=$ac_check_lib_save_LIBS
20263 fi
20264 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20265 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20266 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20267
20268 cat >>confdefs.h <<\_ACEOF
20269 #define HAVE___LSHRDI3 1
20270 _ACEOF
20271
20272 fi
20273
20274   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20275 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20276 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20277   echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279   ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-lgcc  $LIBS"
20281 cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h.  */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h.  */
20287
20288 /* Override any GCC internal prototype to avoid an error.
20289    Use char because int might match the return type of a GCC
20290    builtin and then its argument prototype would still apply.  */
20291 #ifdef __cplusplus
20292 extern "C"
20293 #endif
20294 char __moddi3 ();
20295 int
20296 main ()
20297 {
20298 return __moddi3 ();
20299   ;
20300   return 0;
20301 }
20302 _ACEOF
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307   *) ac_try_echo=$ac_try;;
20308 esac
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310   (eval "$ac_link") 2>conftest.er1
20311   ac_status=$?
20312   grep -v '^ *+' conftest.er1 >conftest.err
20313   rm -f conftest.er1
20314   cat conftest.err >&5
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); } &&
20317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20318   { (case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323   (eval "$ac_try") 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); }; } &&
20327          { ac_try='test -s conftest$ac_exeext'
20328   { (case "(($ac_try" in
20329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330   *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333   (eval "$ac_try") 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; }; then
20337   ac_cv_lib_gcc___moddi3=yes
20338 else
20339   echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342         ac_cv_lib_gcc___moddi3=no
20343 fi
20344
20345 rm -f core conftest.err conftest.$ac_objext \
20346       conftest$ac_exeext conftest.$ac_ext
20347 LIBS=$ac_check_lib_save_LIBS
20348 fi
20349 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20350 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20351 if test $ac_cv_lib_gcc___moddi3 = yes; then
20352
20353 cat >>confdefs.h <<\_ACEOF
20354 #define HAVE___MODDI3 1
20355 _ACEOF
20356
20357 fi
20358
20359   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20360 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20361 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364   ac_check_lib_save_LIBS=$LIBS
20365 LIBS="-lgcc  $LIBS"
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372
20373 /* Override any GCC internal prototype to avoid an error.
20374    Use char because int might match the return type of a GCC
20375    builtin and then its argument prototype would still apply.  */
20376 #ifdef __cplusplus
20377 extern "C"
20378 #endif
20379 char __udivdi3 ();
20380 int
20381 main ()
20382 {
20383 return __udivdi3 ();
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392   *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395   (eval "$ac_link") 2>conftest.er1
20396   ac_status=$?
20397   grep -v '^ *+' conftest.er1 >conftest.err
20398   rm -f conftest.er1
20399   cat conftest.err >&5
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } &&
20402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403   { (case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_try") 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } &&
20412          { ac_try='test -s conftest$ac_exeext'
20413   { (case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_try") 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; }; then
20422   ac_cv_lib_gcc___udivdi3=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_lib_gcc___udivdi3=no
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext \
20431       conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20435 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20436 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE___UDIVDI3 1
20440 _ACEOF
20441
20442 fi
20443
20444   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20445 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20446 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449   ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-lgcc  $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457
20458 /* Override any GCC internal prototype to avoid an error.
20459    Use char because int might match the return type of a GCC
20460    builtin and then its argument prototype would still apply.  */
20461 #ifdef __cplusplus
20462 extern "C"
20463 #endif
20464 char __umoddi3 ();
20465 int
20466 main ()
20467 {
20468 return __umoddi3 ();
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_link") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } &&
20487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488   { (case "(($ac_try" in
20489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490   *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493   (eval "$ac_try") 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; } &&
20497          { ac_try='test -s conftest$ac_exeext'
20498   { (case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_try") 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507   ac_cv_lib_gcc___umoddi3=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_cv_lib_gcc___umoddi3=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext \
20516       conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20518 fi
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20520 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20521 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20522
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE___UMODDI3 1
20525 _ACEOF
20526
20527 fi
20528
20529
20530   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20531 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_gcc___main+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535   ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lgcc  $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543
20544 /* Override any GCC internal prototype to avoid an error.
20545    Use char because int might match the return type of a GCC
20546    builtin and then its argument prototype would still apply.  */
20547 #ifdef __cplusplus
20548 extern "C"
20549 #endif
20550 char __main ();
20551 int
20552 main ()
20553 {
20554 return __main ();
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_link") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } &&
20573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20574   { (case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_try") 2>&5
20580   ac_status=$?
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); }; } &&
20583          { ac_try='test -s conftest$ac_exeext'
20584   { (case "(($ac_try" in
20585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586   *) ac_try_echo=$ac_try;;
20587 esac
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589   (eval "$ac_try") 2>&5
20590   ac_status=$?
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); }; }; then
20593   ac_cv_lib_gcc___main=yes
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598         ac_cv_lib_gcc___main=no
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext \
20602       conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20604 fi
20605 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20606 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20607 if test $ac_cv_lib_gcc___main = yes; then
20608
20609 cat >>confdefs.h <<\_ACEOF
20610 #define HAVE___MAIN 1
20611 _ACEOF
20612
20613 fi
20614
20615   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20616 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20617 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-lgcc  $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628
20629 /* Override any GCC internal prototype to avoid an error.
20630    Use char because int might match the return type of a GCC
20631    builtin and then its argument prototype would still apply.  */
20632 #ifdef __cplusplus
20633 extern "C"
20634 #endif
20635 char __cmpdi2 ();
20636 int
20637 main ()
20638 {
20639 return __cmpdi2 ();
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651   (eval "$ac_link") 2>conftest.er1
20652   ac_status=$?
20653   grep -v '^ *+' conftest.er1 >conftest.err
20654   rm -f conftest.er1
20655   cat conftest.err >&5
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); } &&
20658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20659   { (case "(($ac_try" in
20660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661   *) ac_try_echo=$ac_try;;
20662 esac
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664   (eval "$ac_try") 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; } &&
20668          { ac_try='test -s conftest$ac_exeext'
20669   { (case "(($ac_try" in
20670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671   *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674   (eval "$ac_try") 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   ac_cv_lib_gcc___cmpdi2=yes
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683         ac_cv_lib_gcc___cmpdi2=no
20684 fi
20685
20686 rm -f core conftest.err conftest.$ac_objext \
20687       conftest$ac_exeext conftest.$ac_ext
20688 LIBS=$ac_check_lib_save_LIBS
20689 fi
20690 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20691 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20692 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20693
20694 cat >>confdefs.h <<\_ACEOF
20695 #define HAVE___CMPDI2 1
20696 _ACEOF
20697
20698 fi
20699
20700 fi
20701
20702 if test "$llvm_cv_os_type" = "MingW" ; then
20703   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20704 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20705   cat >conftest.$ac_ext <<_ACEOF
20706
20707   /* confdefs.h.  */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h.  */
20712
20713     #include <windows.h>
20714     #include <imagehlp.h>
20715     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20716     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20717
20718
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_compile") 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } &&
20734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20735   { (case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_try") 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); }; } &&
20744          { ac_try='test -s conftest.$ac_objext'
20745   { (case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_try") 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754
20755   { echo "$as_me:$LINENO: result: yes" >&5
20756 echo "${ECHO_T}yes" >&6; }
20757   llvm_cv_win32_elmcb_pcstr="PCSTR"
20758
20759 else
20760   echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763
20764   { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20766   llvm_cv_win32_elmcb_pcstr="PSTR"
20767
20768 fi
20769
20770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771
20772 cat >>confdefs.h <<_ACEOF
20773 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20774 _ACEOF
20775
20776 fi
20777
20778
20779
20780   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20781 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20782 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785
20786     ac_ext=cpp
20787 ac_cpp='$CXXCPP $CPPFLAGS'
20788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20791
20792     cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h.  */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h.  */
20798 #include <math.h>
20799 int
20800 main ()
20801 {
20802 float f; isnan(f);
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_compile") 2>conftest.er1
20815   ac_status=$?
20816   grep -v '^ *+' conftest.er1 >conftest.err
20817   rm -f conftest.er1
20818   cat conftest.err >&5
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } &&
20821          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20822   { (case "(($ac_try" in
20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824   *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827   (eval "$ac_try") 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; } &&
20831          { ac_try='test -s conftest.$ac_objext'
20832   { (case "(($ac_try" in
20833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834   *) ac_try_echo=$ac_try;;
20835 esac
20836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20837   (eval "$ac_try") 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; }; then
20841   ac_cv_func_isnan_in_math_h=yes
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846         ac_cv_func_isnan_in_math_h=no
20847 fi
20848
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850     ac_ext=c
20851 ac_cpp='$CPP $CPPFLAGS'
20852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20855
20856
20857 fi
20858 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20859 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20860
20861
20862 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20863
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_ISNAN_IN_MATH_H 1
20866 _ACEOF
20867
20868 fi
20869
20870
20871   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20872 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20873 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20874   echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20876
20877     ac_ext=cpp
20878 ac_cpp='$CXXCPP $CPPFLAGS'
20879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20882
20883     cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #include <cmath>
20890 int
20891 main ()
20892 {
20893 float f; isnan(f);
20894   ;
20895   return 0;
20896 }
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_compile") 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } &&
20912          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20913   { (case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918   (eval "$ac_try") 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; } &&
20922          { ac_try='test -s conftest.$ac_objext'
20923   { (case "(($ac_try" in
20924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925   *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928   (eval "$ac_try") 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); }; }; then
20932   ac_cv_func_isnan_in_cmath=yes
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_cv_func_isnan_in_cmath=no
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941     ac_ext=c
20942 ac_cpp='$CPP $CPPFLAGS'
20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946
20947
20948 fi
20949 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20950 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20951
20952 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20953
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_ISNAN_IN_CMATH 1
20956 _ACEOF
20957
20958 fi
20959
20960
20961   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20962 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20963 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966
20967     ac_ext=cpp
20968 ac_cpp='$CXXCPP $CPPFLAGS'
20969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20972
20973     cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979 #include <cmath>
20980 int
20981 main ()
20982 {
20983 float f; std::isnan(f);
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_compile") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } &&
21002          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21003   { (case "(($ac_try" in
21004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005   *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008   (eval "$ac_try") 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; } &&
21012          { ac_try='test -s conftest.$ac_objext'
21013   { (case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018   (eval "$ac_try") 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; }; then
21022   ac_cv_func_std_isnan_in_cmath=yes
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027         ac_cv_func_std_isnan_in_cmath=no
21028 fi
21029
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031     ac_ext=c
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036
21037
21038 fi
21039 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21040 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21041
21042 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21043
21044 cat >>confdefs.h <<\_ACEOF
21045 #define HAVE_STD_ISNAN_IN_CMATH 1
21046 _ACEOF
21047
21048 fi
21049
21050
21051
21052
21053   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21054 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21055 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058
21059     ac_ext=cpp
21060 ac_cpp='$CXXCPP $CPPFLAGS'
21061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21064
21065     cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071 #include <math.h>
21072 int
21073 main ()
21074 {
21075 float f; isinf(f);
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_compile") 2>conftest.er1
21088   ac_status=$?
21089   grep -v '^ *+' conftest.er1 >conftest.err
21090   rm -f conftest.er1
21091   cat conftest.err >&5
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); } &&
21094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21095   { (case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_try") 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; } &&
21104          { ac_try='test -s conftest.$ac_objext'
21105   { (case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110   (eval "$ac_try") 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); }; }; then
21114   ac_cv_func_isinf_in_math_h=yes
21115 else
21116   echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119         ac_cv_func_isinf_in_math_h=no
21120 fi
21121
21122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123     ac_ext=c
21124 ac_cpp='$CPP $CPPFLAGS'
21125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129
21130 fi
21131 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21132 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21133
21134 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21135
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_ISINF_IN_MATH_H 1
21138 _ACEOF
21139
21140 fi
21141
21142
21143   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21144 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21145 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21146   echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148
21149     ac_ext=cpp
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155     cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 #include <cmath>
21162 int
21163 main ()
21164 {
21165 float f; isinf(f);
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_compile") 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } &&
21184          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21185   { (case "(($ac_try" in
21186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187   *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190   (eval "$ac_try") 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; } &&
21194          { ac_try='test -s conftest.$ac_objext'
21195   { (case "(($ac_try" in
21196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197   *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200   (eval "$ac_try") 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); }; }; then
21204   ac_cv_func_isinf_in_cmath=yes
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209         ac_cv_func_isinf_in_cmath=no
21210 fi
21211
21212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213     ac_ext=c
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
21219
21220 fi
21221 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21222 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21223
21224 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21225
21226 cat >>confdefs.h <<\_ACEOF
21227 #define HAVE_ISINF_IN_CMATH 1
21228 _ACEOF
21229
21230 fi
21231
21232
21233   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21234 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21235 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21236   echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238
21239     ac_ext=cpp
21240 ac_cpp='$CXXCPP $CPPFLAGS'
21241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21244
21245     cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 #include <cmath>
21252 int
21253 main ()
21254 {
21255 float f; std::isinf(f);
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (ac_try="$ac_compile"
21262 case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_compile") 2>conftest.er1
21268   ac_status=$?
21269   grep -v '^ *+' conftest.er1 >conftest.err
21270   rm -f conftest.er1
21271   cat conftest.err >&5
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); } &&
21274          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21275   { (case "(($ac_try" in
21276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277   *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280   (eval "$ac_try") 2>&5
21281   ac_status=$?
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); }; } &&
21284          { ac_try='test -s conftest.$ac_objext'
21285   { (case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_try") 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; }; then
21294   ac_cv_func_std_isinf_in_cmath=yes
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299         ac_cv_func_std_isinf_in_cmath=no
21300 fi
21301
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303     ac_ext=c
21304 ac_cpp='$CPP $CPPFLAGS'
21305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21308
21309
21310 fi
21311 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21312 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21313
21314 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21315
21316 cat >>confdefs.h <<\_ACEOF
21317 #define HAVE_STD_ISINF_IN_CMATH 1
21318 _ACEOF
21319
21320 fi
21321
21322
21323   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21324 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21325 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328
21329     ac_ext=cpp
21330 ac_cpp='$CXXCPP $CPPFLAGS'
21331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21334
21335     cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <ieeefp.h>
21342 int
21343 main ()
21344 {
21345 float f; finite(f);
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 rm -f conftest.$ac_objext
21351 if { (ac_try="$ac_compile"
21352 case "(($ac_try" in
21353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354   *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357   (eval "$ac_compile") 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21365   { (case "(($ac_try" in
21366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367   *) ac_try_echo=$ac_try;;
21368 esac
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370   (eval "$ac_try") 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; } &&
21374          { ac_try='test -s conftest.$ac_objext'
21375   { (case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380   (eval "$ac_try") 2>&5
21381   ac_status=$?
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); }; }; then
21384   ac_cv_func_finite_in_ieeefp_h=yes
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389         ac_cv_func_finite_in_ieeefp_h=no
21390 fi
21391
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393     ac_ext=c
21394 ac_cpp='$CPP $CPPFLAGS'
21395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21398
21399
21400 fi
21401 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21402 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21403
21404 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21405
21406 cat >>confdefs.h <<\_ACEOF
21407 #define HAVE_FINITE_IN_IEEEFP_H 1
21408 _ACEOF
21409
21410 fi
21411
21412
21413
21414 if test "$llvm_cv_platform_type" = "Unix" ; then
21415
21416
21417 for ac_header in stdlib.h unistd.h
21418 do
21419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424   echo $ECHO_N "(cached) $ECHO_C" >&6
21425 fi
21426 ac_res=`eval echo '${'$as_ac_Header'}'`
21427                { echo "$as_me:$LINENO: result: $ac_res" >&5
21428 echo "${ECHO_T}$ac_res" >&6; }
21429 else
21430   # Is the header compilable?
21431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21433 cat >conftest.$ac_ext <<_ACEOF
21434 /* confdefs.h.  */
21435 _ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h.  */
21439 $ac_includes_default
21440 #include <$ac_header>
21441 _ACEOF
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_compile") 2>conftest.er1
21450   ac_status=$?
21451   grep -v '^ *+' conftest.er1 >conftest.err
21452   rm -f conftest.er1
21453   cat conftest.err >&5
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } &&
21456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21457   { (case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_try") 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; } &&
21466          { ac_try='test -s conftest.$ac_objext'
21467   { (case "(($ac_try" in
21468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469   *) ac_try_echo=$ac_try;;
21470 esac
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472   (eval "$ac_try") 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; }; then
21476   ac_header_compiler=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         ac_header_compiler=no
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21486 echo "${ECHO_T}$ac_header_compiler" >&6; }
21487
21488 # Is the header present?
21489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #include <$ac_header>
21498 _ACEOF
21499 if { (ac_try="$ac_cpp conftest.$ac_ext"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } >/dev/null; then
21512   if test -s conftest.err; then
21513     ac_cpp_err=$ac_c_preproc_warn_flag
21514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21515   else
21516     ac_cpp_err=
21517   fi
21518 else
21519   ac_cpp_err=yes
21520 fi
21521 if test -z "$ac_cpp_err"; then
21522   ac_header_preproc=yes
21523 else
21524   echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526
21527   ac_header_preproc=no
21528 fi
21529
21530 rm -f conftest.err conftest.$ac_ext
21531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21532 echo "${ECHO_T}$ac_header_preproc" >&6; }
21533
21534 # So?  What about this header?
21535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21536   yes:no: )
21537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21541     ac_header_preproc=yes
21542     ;;
21543   no:yes:* )
21544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21556     ( cat <<\_ASBOX
21557 ## ------------------------------------ ##
21558 ## Report this to http://llvm.org/bugs/ ##
21559 ## ------------------------------------ ##
21560 _ASBOX
21561      ) | sed "s/^/$as_me: WARNING:     /" >&2
21562     ;;
21563 esac
21564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   eval "$as_ac_Header=\$ac_header_preproc"
21570 fi
21571 ac_res=`eval echo '${'$as_ac_Header'}'`
21572                { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21574
21575 fi
21576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21577   cat >>confdefs.h <<_ACEOF
21578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21579 _ACEOF
21580
21581 fi
21582
21583 done
21584
21585
21586 for ac_func in getpagesize
21587 do
21588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21592   echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594   cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21602 #define $ac_func innocuous_$ac_func
21603
21604 /* System header to define __stub macros and hopefully few prototypes,
21605     which can conflict with char $ac_func (); below.
21606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607     <limits.h> exists even on freestanding compilers.  */
21608
21609 #ifdef __STDC__
21610 # include <limits.h>
21611 #else
21612 # include <assert.h>
21613 #endif
21614
21615 #undef $ac_func
21616
21617 /* Override any GCC internal prototype to avoid an error.
21618    Use char because int might match the return type of a GCC
21619    builtin and then its argument prototype would still apply.  */
21620 #ifdef __cplusplus
21621 extern "C"
21622 #endif
21623 char $ac_func ();
21624 /* The GNU C library defines this for functions which it implements
21625     to always fail with ENOSYS.  Some functions are actually named
21626     something starting with __ and the normal name is an alias.  */
21627 #if defined __stub_$ac_func || defined __stub___$ac_func
21628 choke me
21629 #endif
21630
21631 int
21632 main ()
21633 {
21634 return $ac_func ();
21635   ;
21636   return 0;
21637 }
21638 _ACEOF
21639 rm -f conftest.$ac_objext conftest$ac_exeext
21640 if { (ac_try="$ac_link"
21641 case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646   (eval "$ac_link") 2>conftest.er1
21647   ac_status=$?
21648   grep -v '^ *+' conftest.er1 >conftest.err
21649   rm -f conftest.er1
21650   cat conftest.err >&5
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); } &&
21653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21654   { (case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659   (eval "$ac_try") 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; } &&
21663          { ac_try='test -s conftest$ac_exeext'
21664   { (case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_try") 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   eval "$as_ac_var=yes"
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678         eval "$as_ac_var=no"
21679 fi
21680
21681 rm -f core conftest.err conftest.$ac_objext \
21682       conftest$ac_exeext conftest.$ac_ext
21683 fi
21684 ac_res=`eval echo '${'$as_ac_var'}'`
21685                { echo "$as_me:$LINENO: result: $ac_res" >&5
21686 echo "${ECHO_T}$ac_res" >&6; }
21687 if test `eval echo '${'$as_ac_var'}'` = yes; then
21688   cat >>confdefs.h <<_ACEOF
21689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21690 _ACEOF
21691
21692 fi
21693 done
21694
21695 { echo "$as_me:$LINENO: checking for working mmap" >&5
21696 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21697 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21698   echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700   if test "$cross_compiling" = yes; then
21701   ac_cv_func_mmap_fixed_mapped=no
21702 else
21703   cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709 $ac_includes_default
21710 /* malloc might have been renamed as rpl_malloc. */
21711 #undef malloc
21712
21713 /* Thanks to Mike Haertel and Jim Avera for this test.
21714    Here is a matrix of mmap possibilities:
21715         mmap private not fixed
21716         mmap private fixed at somewhere currently unmapped
21717         mmap private fixed at somewhere already mapped
21718         mmap shared not fixed
21719         mmap shared fixed at somewhere currently unmapped
21720         mmap shared fixed at somewhere already mapped
21721    For private mappings, we should verify that changes cannot be read()
21722    back from the file, nor mmap's back from the file at a different
21723    address.  (There have been systems where private was not correctly
21724    implemented like the infamous i386 svr4.0, and systems where the
21725    VM page cache was not coherent with the file system buffer cache
21726    like early versions of FreeBSD and possibly contemporary NetBSD.)
21727    For shared mappings, we should conversely verify that changes get
21728    propagated back to all the places they're supposed to be.
21729
21730    Grep wants private fixed already mapped.
21731    The main things grep needs to know about mmap are:
21732    * does it exist and is it safe to write into the mmap'd area
21733    * how to use it (BSD variants)  */
21734
21735 #include <fcntl.h>
21736 #include <sys/mman.h>
21737
21738 #if !STDC_HEADERS && !HAVE_STDLIB_H
21739 char *malloc ();
21740 #endif
21741
21742 /* This mess was copied from the GNU getpagesize.h.  */
21743 #if !HAVE_GETPAGESIZE
21744 /* Assume that all systems that can run configure have sys/param.h.  */
21745 # if !HAVE_SYS_PARAM_H
21746 #  define HAVE_SYS_PARAM_H 1
21747 # endif
21748
21749 # ifdef _SC_PAGESIZE
21750 #  define getpagesize() sysconf(_SC_PAGESIZE)
21751 # else /* no _SC_PAGESIZE */
21752 #  if HAVE_SYS_PARAM_H
21753 #   include <sys/param.h>
21754 #   ifdef EXEC_PAGESIZE
21755 #    define getpagesize() EXEC_PAGESIZE
21756 #   else /* no EXEC_PAGESIZE */
21757 #    ifdef NBPG
21758 #     define getpagesize() NBPG * CLSIZE
21759 #     ifndef CLSIZE
21760 #      define CLSIZE 1
21761 #     endif /* no CLSIZE */
21762 #    else /* no NBPG */
21763 #     ifdef NBPC
21764 #      define getpagesize() NBPC
21765 #     else /* no NBPC */
21766 #      ifdef PAGESIZE
21767 #       define getpagesize() PAGESIZE
21768 #      endif /* PAGESIZE */
21769 #     endif /* no NBPC */
21770 #    endif /* no NBPG */
21771 #   endif /* no EXEC_PAGESIZE */
21772 #  else /* no HAVE_SYS_PARAM_H */
21773 #   define getpagesize() 8192   /* punt totally */
21774 #  endif /* no HAVE_SYS_PARAM_H */
21775 # endif /* no _SC_PAGESIZE */
21776
21777 #endif /* no HAVE_GETPAGESIZE */
21778
21779 int
21780 main ()
21781 {
21782   char *data, *data2, *data3;
21783   int i, pagesize;
21784   int fd;
21785
21786   pagesize = getpagesize ();
21787
21788   /* First, make a file with some known garbage in it. */
21789   data = (char *) malloc (pagesize);
21790   if (!data)
21791     return 1;
21792   for (i = 0; i < pagesize; ++i)
21793     *(data + i) = rand ();
21794   umask (0);
21795   fd = creat ("conftest.mmap", 0600);
21796   if (fd < 0)
21797     return 1;
21798   if (write (fd, data, pagesize) != pagesize)
21799     return 1;
21800   close (fd);
21801
21802   /* Next, try to mmap the file at a fixed address which already has
21803      something else allocated at it.  If we can, also make sure that
21804      we see the same garbage.  */
21805   fd = open ("conftest.mmap", O_RDWR);
21806   if (fd < 0)
21807     return 1;
21808   data2 = (char *) malloc (2 * pagesize);
21809   if (!data2)
21810     return 1;
21811   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21812   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21813                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21814     return 1;
21815   for (i = 0; i < pagesize; ++i)
21816     if (*(data + i) != *(data2 + i))
21817       return 1;
21818
21819   /* Finally, make sure that changes to the mapped area do not
21820      percolate back to the file as seen by read().  (This is a bug on
21821      some variants of i386 svr4.0.)  */
21822   for (i = 0; i < pagesize; ++i)
21823     *(data2 + i) = *(data2 + i) + 1;
21824   data3 = (char *) malloc (pagesize);
21825   if (!data3)
21826     return 1;
21827   if (read (fd, data3, pagesize) != pagesize)
21828     return 1;
21829   for (i = 0; i < pagesize; ++i)
21830     if (*(data + i) != *(data3 + i))
21831       return 1;
21832   close (fd);
21833   return 0;
21834 }
21835 _ACEOF
21836 rm -f conftest$ac_exeext
21837 if { (ac_try="$ac_link"
21838 case "(($ac_try" in
21839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840   *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843   (eval "$ac_link") 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21847   { (case "(($ac_try" in
21848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849   *) ac_try_echo=$ac_try;;
21850 esac
21851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852   (eval "$ac_try") 2>&5
21853   ac_status=$?
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); }; }; then
21856   ac_cv_func_mmap_fixed_mapped=yes
21857 else
21858   echo "$as_me: program exited with status $ac_status" >&5
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ( exit $ac_status )
21863 ac_cv_func_mmap_fixed_mapped=no
21864 fi
21865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21866 fi
21867
21868
21869 fi
21870 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21871 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21872 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21873
21874 cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_MMAP 1
21876 _ACEOF
21877
21878 fi
21879 rm -f conftest.mmap
21880
21881   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21882 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21883 if test "${ac_cv_func_mmap_file+set}" = set; then
21884   echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886    ac_ext=c
21887 ac_cpp='$CPP $CPPFLAGS'
21888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21891
21892   if test "$cross_compiling" = yes; then
21893   ac_cv_func_mmap_file=no
21894 else
21895   cat >conftest.$ac_ext <<_ACEOF
21896
21897     /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902
21903 #include <sys/types.h>
21904 #include <sys/mman.h>
21905 #include <fcntl.h>
21906
21907 int
21908 main ()
21909 {
21910
21911   int fd;
21912   fd = creat ("foo",0777);
21913   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21914   unlink ("foo");
21915   return (fd != (int) MAP_FAILED);
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 rm -f conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924   *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927   (eval "$ac_link") 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21931   { (case "(($ac_try" in
21932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933   *) ac_try_echo=$ac_try;;
21934 esac
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936   (eval "$ac_try") 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; }; then
21940   ac_cv_func_mmap_file=yes
21941 else
21942   echo "$as_me: program exited with status $ac_status" >&5
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946 ( exit $ac_status )
21947 ac_cv_func_mmap_file=no
21948 fi
21949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21950 fi
21951
21952
21953   ac_ext=c
21954 ac_cpp='$CPP $CPPFLAGS'
21955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21958
21959
21960 fi
21961 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21962 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21963 if test "$ac_cv_func_mmap_file" = yes; then
21964
21965 cat >>confdefs.h <<\_ACEOF
21966 #define HAVE_MMAP_FILE
21967 _ACEOF
21968
21969    MMAP_FILE=yes
21970
21971 fi
21972
21973   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21974 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21975 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21976   echo $ECHO_N "(cached) $ECHO_C" >&6
21977 else
21978   if test "$llvm_cv_os_type" = "Interix" ; then
21979    ac_cv_need_dev_zero_for_mmap=yes
21980  else
21981    ac_cv_need_dev_zero_for_mmap=no
21982  fi
21983
21984 fi
21985 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21986 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21987 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21988
21989 cat >>confdefs.h <<\_ACEOF
21990 #define NEED_DEV_ZERO_FOR_MMAP 1
21991 _ACEOF
21992
21993 fi
21994
21995   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21996   then
21997     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21998 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21999   fi
22000   if test "$ac_cv_func_mmap_file" = "no"
22001   then
22002     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22003 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22004   fi
22005 fi
22006
22007 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22008 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22009 ac_ext=cpp
22010 ac_cpp='$CXXCPP $CPPFLAGS'
22011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014
22015 cat >conftest.$ac_ext <<_ACEOF
22016
22017   /* confdefs.h.  */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h.  */
22022
22023     int main() {
22024       volatile unsigned long val = 1;
22025       __sync_synchronize();
22026       __sync_val_compare_and_swap(&val, 1, 0);
22027       __sync_add_and_fetch(&val, 1);
22028       __sync_sub_and_fetch(&val, 1);
22029       return 0;
22030     }
22031
22032
22033 _ACEOF
22034 rm -f conftest.$ac_objext conftest$ac_exeext
22035 if { (ac_try="$ac_link"
22036 case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_link") 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } &&
22048          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22049   { (case "(($ac_try" in
22050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051   *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054   (eval "$ac_try") 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; } &&
22058          { ac_try='test -s conftest$ac_exeext'
22059   { (case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_try") 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068
22069   { echo "$as_me:$LINENO: result: yes" >&5
22070 echo "${ECHO_T}yes" >&6; }
22071
22072 cat >>confdefs.h <<\_ACEOF
22073 #define LLVM_HAS_ATOMICS 1
22074 _ACEOF
22075
22076
22077 else
22078   echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081
22082   { echo "$as_me:$LINENO: result: no" >&5
22083 echo "${ECHO_T}no" >&6; }
22084
22085 cat >>confdefs.h <<\_ACEOF
22086 #define LLVM_HAS_ATOMICS 0
22087 _ACEOF
22088
22089   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22090 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22091
22092 fi
22093
22094 rm -f core conftest.err conftest.$ac_objext \
22095       conftest$ac_exeext conftest.$ac_ext
22096 ac_ext=c
22097 ac_cpp='$CPP $CPPFLAGS'
22098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22101
22102
22103
22104 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22105   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22106 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22107 if test "${llvm_cv_linux_mixed+set}" = set; then
22108   echo $ECHO_N "(cached) $ECHO_C" >&6
22109 else
22110    ac_ext=c
22111 ac_cpp='$CPP $CPPFLAGS'
22112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22115
22116   cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 #ifndef __x86_64__
22123        error: Not x86-64 even if uname says so!
22124       #endif
22125
22126 int
22127 main ()
22128 {
22129
22130   ;
22131   return 0;
22132 }
22133 _ACEOF
22134 rm -f conftest.$ac_objext
22135 if { (ac_try="$ac_compile"
22136 case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_compile") 2>conftest.er1
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
22145   cat conftest.err >&5
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } &&
22148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22149   { (case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_try") 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; } &&
22158          { ac_try='test -s conftest.$ac_objext'
22159   { (case "(($ac_try" in
22160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161   *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164   (eval "$ac_try") 2>&5
22165   ac_status=$?
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); }; }; then
22168   llvm_cv_linux_mixed=no
22169 else
22170   echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173         llvm_cv_linux_mixed=yes
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177   ac_ext=c
22178 ac_cpp='$CPP $CPPFLAGS'
22179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22182
22183
22184 fi
22185 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22186 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22187
22188   if test "$llvm_cv_linux_mixed" = "yes"; then
22189     llvm_cv_target_arch="x86"
22190     ARCH="x86"
22191   fi
22192 fi
22193
22194
22195 for ac_func in __dso_handle
22196 do
22197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22201   echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203   cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22211 #define $ac_func innocuous_$ac_func
22212
22213 /* System header to define __stub macros and hopefully few prototypes,
22214     which can conflict with char $ac_func (); below.
22215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216     <limits.h> exists even on freestanding compilers.  */
22217
22218 #ifdef __STDC__
22219 # include <limits.h>
22220 #else
22221 # include <assert.h>
22222 #endif
22223
22224 #undef $ac_func
22225
22226 /* Override any GCC internal prototype to avoid an error.
22227    Use char because int might match the return type of a GCC
22228    builtin and then its argument prototype would still apply.  */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char $ac_func ();
22233 /* The GNU C library defines this for functions which it implements
22234     to always fail with ENOSYS.  Some functions are actually named
22235     something starting with __ and the normal name is an alias.  */
22236 #if defined __stub_$ac_func || defined __stub___$ac_func
22237 choke me
22238 #endif
22239
22240 int
22241 main ()
22242 {
22243 return $ac_func ();
22244   ;
22245   return 0;
22246 }
22247 _ACEOF
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (ac_try="$ac_link"
22250 case "(($ac_try" in
22251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252   *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255   (eval "$ac_link") 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } &&
22262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22263   { (case "(($ac_try" in
22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265   *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268   (eval "$ac_try") 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; } &&
22272          { ac_try='test -s conftest$ac_exeext'
22273   { (case "(($ac_try" in
22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275   *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278   (eval "$ac_try") 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; }; then
22282   eval "$as_ac_var=yes"
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287         eval "$as_ac_var=no"
22288 fi
22289
22290 rm -f core conftest.err conftest.$ac_objext \
22291       conftest$ac_exeext conftest.$ac_ext
22292 fi
22293 ac_res=`eval echo '${'$as_ac_var'}'`
22294                { echo "$as_me:$LINENO: result: $ac_res" >&5
22295 echo "${ECHO_T}$ac_res" >&6; }
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297   cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22299 _ACEOF
22300
22301 fi
22302 done
22303
22304
22305 SHLIBEXT=$libltdl_cv_shlibext
22306
22307
22308 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22309
22310
22311 if test "${prefix}" = "NONE" ; then
22312   prefix="/usr/local"
22313 fi
22314 eval LLVM_PREFIX="${prefix}";
22315 eval LLVM_BINDIR="${prefix}/bin";
22316 eval LLVM_DATADIR="${prefix}/share/llvm";
22317 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22318 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22319 eval LLVM_INCLUDEDIR="${prefix}/include";
22320 eval LLVM_INFODIR="${prefix}/info";
22321 eval LLVM_MANDIR="${prefix}/man";
22322 LLVM_CONFIGTIME=`date`
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22334   LLVM_CONFIGTIME="(timestamp not enabled)"
22335 fi
22336
22337
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_PREFIX "$LLVM_PREFIX"
22340 _ACEOF
22341
22342
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_BINDIR "$LLVM_BINDIR"
22345 _ACEOF
22346
22347
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_DATADIR "$LLVM_DATADIR"
22350 _ACEOF
22351
22352
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22355 _ACEOF
22356
22357
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22360 _ACEOF
22361
22362
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22365 _ACEOF
22366
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_INFODIR "$LLVM_INFODIR"
22370 _ACEOF
22371
22372
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_MANDIR "$LLVM_MANDIR"
22375 _ACEOF
22376
22377
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22380 _ACEOF
22381
22382
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_HOST_TRIPLE "$host"
22385 _ACEOF
22386
22387
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22390 _ACEOF
22391
22392
22393 if test "$BINDINGS_TO_BUILD" = auto ; then
22394   BINDINGS_TO_BUILD=""
22395   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22396     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22397   fi
22398 fi
22399 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22400
22401
22402 ALL_BINDINGS=ocaml
22403
22404
22405 binding_prereqs_failed=0
22406 for a_binding in $BINDINGS_TO_BUILD ; do
22407   case "$a_binding" in
22408   ocaml)
22409     if test "x$OCAMLC" = x ; then
22410       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22411 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22412       binding_prereqs_failed=1
22413     fi
22414     if test "x$OCAMLDEP" = x ; then
22415       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22416 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22417       binding_prereqs_failed=1
22418     fi
22419     if test "x$OCAMLOPT" = x ; then
22420       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22421 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22422           fi
22423     if test "x$with_ocaml_libdir" != xauto ; then
22424       OCAML_LIBDIR=$with_ocaml_libdir
22425
22426     else
22427       ocaml_stdlib="`"$OCAMLC" -where`"
22428       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22429       then
22430         # ocaml stdlib is beneath our prefix; use stdlib
22431         OCAML_LIBDIR=$ocaml_stdlib
22432
22433       else
22434         # ocaml stdlib is outside our prefix; use libdir/ocaml
22435         OCAML_LIBDIR=${prefix}/lib/ocaml
22436
22437       fi
22438     fi
22439     ;;
22440   esac
22441 done
22442 if test "$binding_prereqs_failed" = 1 ; then
22443   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22444 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22445    { (exit 1); exit 1; }; }
22446 fi
22447
22448 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22449 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22450 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22451   echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453    ac_ext=cpp
22454 ac_cpp='$CXXCPP $CPPFLAGS'
22455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22458
22459   oldcxxflags="$CXXFLAGS"
22460   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22468 int
22469 main ()
22470 {
22471 X<int>().f();
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480   *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483   (eval "$ac_compile") 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } &&
22490          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22491   { (case "(($ac_try" in
22492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493   *) ac_try_echo=$ac_try;;
22494 esac
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496   (eval "$ac_try") 2>&5
22497   ac_status=$?
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); }; } &&
22500          { ac_try='test -s conftest.$ac_objext'
22501   { (case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_try") 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); }; }; then
22510   llvm_cv_cxx_visibility_inlines_hidden=yes
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515         llvm_cv_cxx_visibility_inlines_hidden=no
22516 fi
22517
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519   CXXFLAGS="$oldcxxflags"
22520   ac_ext=c
22521 ac_cpp='$CPP $CPPFLAGS'
22522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22525
22526
22527 fi
22528 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22529 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22530 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22531   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22532
22533 else
22534   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22535
22536 fi
22537
22538
22539 if test "$llvm_cv_link_use_r" = "yes" ; then
22540   RPATH="-Wl,-R"
22541 else
22542   RPATH="-Wl,-rpath"
22543 fi
22544
22545
22546 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22547   RDYNAMIC="-rdynamic"
22548 else
22549   RDYNAMIC=""
22550 fi
22551
22552
22553
22554 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22555
22556
22557
22558
22559
22560
22561 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22562
22563 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22564
22565 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22566
22567 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22568
22569 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22570
22571
22572 ac_config_files="$ac_config_files Makefile.config"
22573
22574
22575 ac_config_files="$ac_config_files llvm.spec"
22576
22577
22578 ac_config_files="$ac_config_files docs/doxygen.cfg"
22579
22580
22581 if test "${clang_src_root}" = ""; then
22582   clang_src_root="$srcdir/tools/clang"
22583 fi
22584 if test -f ${clang_src_root}/README.txt; then
22585     configh="include/clang/Config/config.h"
22586   doxy="docs/doxygen.cfg"
22587   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22588
22589   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22590
22591 fi
22592
22593 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22594
22595
22596 test "x$program_prefix" = "xNONE" && program_prefix=""
22597
22598
22599
22600 ac_config_commands="$ac_config_commands setup"
22601
22602 ac_config_commands="$ac_config_commands Makefile"
22603
22604
22605 ac_config_commands="$ac_config_commands Makefile.common"
22606
22607
22608 ac_config_commands="$ac_config_commands examples/Makefile"
22609
22610
22611 ac_config_commands="$ac_config_commands lib/Makefile"
22612
22613
22614 ac_config_commands="$ac_config_commands test/Makefile"
22615
22616
22617 ac_config_commands="$ac_config_commands test/Makefile.tests"
22618
22619
22620 ac_config_commands="$ac_config_commands unittests/Makefile"
22621
22622
22623 ac_config_commands="$ac_config_commands tools/Makefile"
22624
22625
22626 ac_config_commands="$ac_config_commands utils/Makefile"
22627
22628
22629 ac_config_commands="$ac_config_commands projects/Makefile"
22630
22631
22632 ac_config_commands="$ac_config_commands bindings/Makefile"
22633
22634
22635 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22636
22637
22638
22639 cat >confcache <<\_ACEOF
22640 # This file is a shell script that caches the results of configure
22641 # tests run on this system so they can be shared between configure
22642 # scripts and configure runs, see configure's option --config-cache.
22643 # It is not useful on other systems.  If it contains results you don't
22644 # want to keep, you may remove or edit it.
22645 #
22646 # config.status only pays attention to the cache file if you give it
22647 # the --recheck option to rerun configure.
22648 #
22649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22651 # following values.
22652
22653 _ACEOF
22654
22655 # The following way of writing the cache mishandles newlines in values,
22656 # but we know of no workaround that is simple, portable, and efficient.
22657 # So, we kill variables containing newlines.
22658 # Ultrix sh set writes to stderr and can't be redirected directly,
22659 # and sets the high bit in the cache file unless we assign to the vars.
22660 (
22661   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22662     eval ac_val=\$$ac_var
22663     case $ac_val in #(
22664     *${as_nl}*)
22665       case $ac_var in #(
22666       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22667 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22668       esac
22669       case $ac_var in #(
22670       _ | IFS | as_nl) ;; #(
22671       *) $as_unset $ac_var ;;
22672       esac ;;
22673     esac
22674   done
22675
22676   (set) 2>&1 |
22677     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22678     *${as_nl}ac_space=\ *)
22679       # `set' does not quote correctly, so add quotes (double-quote
22680       # substitution turns \\\\ into \\, and sed turns \\ into \).
22681       sed -n \
22682         "s/'/'\\\\''/g;
22683           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22684       ;; #(
22685     *)
22686       # `set' quotes correctly as required by POSIX, so do not add quotes.
22687       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22688       ;;
22689     esac |
22690     sort
22691 ) |
22692   sed '
22693      /^ac_cv_env_/b end
22694      t clear
22695      :clear
22696      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22697      t end
22698      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22699      :end' >>confcache
22700 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22701   if test -w "$cache_file"; then
22702     test "x$cache_file" != "x/dev/null" &&
22703       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22704 echo "$as_me: updating cache $cache_file" >&6;}
22705     cat confcache >$cache_file
22706   else
22707     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22708 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22709   fi
22710 fi
22711 rm -f confcache
22712
22713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22714 # Let make expand exec_prefix.
22715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22716
22717 DEFS=-DHAVE_CONFIG_H
22718
22719 ac_libobjs=
22720 ac_ltlibobjs=
22721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22722   # 1. Remove the extension, and $U if already installed.
22723   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22724   ac_i=`echo "$ac_i" | sed "$ac_script"`
22725   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22726   #    will be set to the directory where LIBOBJS objects are built.
22727   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22728   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22729 done
22730 LIBOBJS=$ac_libobjs
22731
22732 LTLIBOBJS=$ac_ltlibobjs
22733
22734
22735 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22736   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22737 Usually this means the macro was only invoked conditionally." >&5
22738 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22739 Usually this means the macro was only invoked conditionally." >&2;}
22740    { (exit 1); exit 1; }; }
22741 fi
22742 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22743   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22744 Usually this means the macro was only invoked conditionally." >&5
22745 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22746 Usually this means the macro was only invoked conditionally." >&2;}
22747    { (exit 1); exit 1; }; }
22748 fi
22749
22750 : ${CONFIG_STATUS=./config.status}
22751 ac_clean_files_save=$ac_clean_files
22752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22753 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22754 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22755 cat >$CONFIG_STATUS <<_ACEOF
22756 #! $SHELL
22757 # Generated by $as_me.
22758 # Run this file to recreate the current configuration.
22759 # Compiler output produced by configure, useful for debugging
22760 # configure, is in config.log if it exists.
22761
22762 debug=false
22763 ac_cs_recheck=false
22764 ac_cs_silent=false
22765 SHELL=\${CONFIG_SHELL-$SHELL}
22766 _ACEOF
22767
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 ## --------------------- ##
22770 ## M4sh Initialization.  ##
22771 ## --------------------- ##
22772
22773 # Be Bourne compatible
22774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22775   emulate sh
22776   NULLCMD=:
22777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22778   # is contrary to our usage.  Disable this feature.
22779   alias -g '${1+"$@"}'='"$@"'
22780   setopt NO_GLOB_SUBST
22781 else
22782   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22783 fi
22784 BIN_SH=xpg4; export BIN_SH # for Tru64
22785 DUALCASE=1; export DUALCASE # for MKS sh
22786
22787
22788 # PATH needs CR
22789 # Avoid depending upon Character Ranges.
22790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22793 as_cr_digits='0123456789'
22794 as_cr_alnum=$as_cr_Letters$as_cr_digits
22795
22796 # The user is always right.
22797 if test "${PATH_SEPARATOR+set}" != set; then
22798   echo "#! /bin/sh" >conf$$.sh
22799   echo  "exit 0"   >>conf$$.sh
22800   chmod +x conf$$.sh
22801   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22802     PATH_SEPARATOR=';'
22803   else
22804     PATH_SEPARATOR=:
22805   fi
22806   rm -f conf$$.sh
22807 fi
22808
22809 # Support unset when possible.
22810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22811   as_unset=unset
22812 else
22813   as_unset=false
22814 fi
22815
22816
22817 # IFS
22818 # We need space, tab and new line, in precisely that order.  Quoting is
22819 # there to prevent editors from complaining about space-tab.
22820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22821 # splitting by setting IFS to empty value.)
22822 as_nl='
22823 '
22824 IFS=" ""        $as_nl"
22825
22826 # Find who we are.  Look in the path if we contain no directory separator.
22827 case $0 in
22828   *[\\/]* ) as_myself=$0 ;;
22829   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22830 for as_dir in $PATH
22831 do
22832   IFS=$as_save_IFS
22833   test -z "$as_dir" && as_dir=.
22834   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22835 done
22836 IFS=$as_save_IFS
22837
22838      ;;
22839 esac
22840 # We did not find ourselves, most probably we were run as `sh COMMAND'
22841 # in which case we are not to be found in the path.
22842 if test "x$as_myself" = x; then
22843   as_myself=$0
22844 fi
22845 if test ! -f "$as_myself"; then
22846   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22847   { (exit 1); exit 1; }
22848 fi
22849
22850 # Work around bugs in pre-3.0 UWIN ksh.
22851 for as_var in ENV MAIL MAILPATH
22852 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22853 done
22854 PS1='$ '
22855 PS2='> '
22856 PS4='+ '
22857
22858 # NLS nuisances.
22859 for as_var in \
22860   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22861   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22862   LC_TELEPHONE LC_TIME
22863 do
22864   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22865     eval $as_var=C; export $as_var
22866   else
22867     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22868   fi
22869 done
22870
22871 # Required to use basename.
22872 if expr a : '\(a\)' >/dev/null 2>&1 &&
22873    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22874   as_expr=expr
22875 else
22876   as_expr=false
22877 fi
22878
22879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22880   as_basename=basename
22881 else
22882   as_basename=false
22883 fi
22884
22885
22886 # Name of the executable.
22887 as_me=`$as_basename -- "$0" ||
22888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22889          X"$0" : 'X\(//\)$' \| \
22890          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22891 echo X/"$0" |
22892     sed '/^.*\/\([^/][^/]*\)\/*$/{
22893             s//\1/
22894             q
22895           }
22896           /^X\/\(\/\/\)$/{
22897             s//\1/
22898             q
22899           }
22900           /^X\/\(\/\).*/{
22901             s//\1/
22902             q
22903           }
22904           s/.*/./; q'`
22905
22906 # CDPATH.
22907 $as_unset CDPATH
22908
22909
22910
22911   as_lineno_1=$LINENO
22912   as_lineno_2=$LINENO
22913   test "x$as_lineno_1" != "x$as_lineno_2" &&
22914   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22915
22916   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22917   # uniformly replaced by the line number.  The first 'sed' inserts a
22918   # line-number line after each line using $LINENO; the second 'sed'
22919   # does the real work.  The second script uses 'N' to pair each
22920   # line-number line with the line containing $LINENO, and appends
22921   # trailing '-' during substitution so that $LINENO is not a special
22922   # case at line end.
22923   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22924   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22925   # E. McMahon (1931-1989) for sed's syntax.  :-)
22926   sed -n '
22927     p
22928     /[$]LINENO/=
22929   ' <$as_myself |
22930     sed '
22931       s/[$]LINENO.*/&-/
22932       t lineno
22933       b
22934       :lineno
22935       N
22936       :loop
22937       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22938       t loop
22939       s/-\n.*//
22940     ' >$as_me.lineno &&
22941   chmod +x "$as_me.lineno" ||
22942     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22943    { (exit 1); exit 1; }; }
22944
22945   # Don't try to exec as it changes $[0], causing all sort of problems
22946   # (the dirname of $[0] is not the place where we might find the
22947   # original and so on.  Autoconf is especially sensitive to this).
22948   . "./$as_me.lineno"
22949   # Exit status is that of the last command.
22950   exit
22951 }
22952
22953
22954 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22955   as_dirname=dirname
22956 else
22957   as_dirname=false
22958 fi
22959
22960 ECHO_C= ECHO_N= ECHO_T=
22961 case `echo -n x` in
22962 -n*)
22963   case `echo 'x\c'` in
22964   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22965   *)   ECHO_C='\c';;
22966   esac;;
22967 *)
22968   ECHO_N='-n';;
22969 esac
22970
22971 if expr a : '\(a\)' >/dev/null 2>&1 &&
22972    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22973   as_expr=expr
22974 else
22975   as_expr=false
22976 fi
22977
22978 rm -f conf$$ conf$$.exe conf$$.file
22979 if test -d conf$$.dir; then
22980   rm -f conf$$.dir/conf$$.file
22981 else
22982   rm -f conf$$.dir
22983   mkdir conf$$.dir
22984 fi
22985 echo >conf$$.file
22986 if ln -s conf$$.file conf$$ 2>/dev/null; then
22987   as_ln_s='ln -s'
22988   # ... but there are two gotchas:
22989   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22990   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22991   # In both cases, we have to default to `cp -p'.
22992   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22993     as_ln_s='cp -p'
22994 elif ln conf$$.file conf$$ 2>/dev/null; then
22995   as_ln_s=ln
22996 else
22997   as_ln_s='cp -p'
22998 fi
22999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23000 rmdir conf$$.dir 2>/dev/null
23001
23002 if mkdir -p . 2>/dev/null; then
23003   as_mkdir_p=:
23004 else
23005   test -d ./-p && rmdir ./-p
23006   as_mkdir_p=false
23007 fi
23008
23009 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23010 # systems may use methods other than mode bits to determine executability.
23011 cat >conf$$.file <<_ASEOF
23012 #! /bin/sh
23013 exit 0
23014 _ASEOF
23015 chmod +x conf$$.file
23016 if test -x conf$$.file >/dev/null 2>&1; then
23017   as_executable_p="test -x"
23018 else
23019   as_executable_p=:
23020 fi
23021 rm -f conf$$.file
23022
23023 # Sed expression to map a string onto a valid CPP name.
23024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23025
23026 # Sed expression to map a string onto a valid variable name.
23027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23028
23029
23030 exec 6>&1
23031
23032 # Save the log message, to keep $[0] and so on meaningful, and to
23033 # report actual input values of CONFIG_FILES etc. instead of their
23034 # values after options handling.
23035 ac_log="
23036 This file was extended by LLVM $as_me 3.5svn, which was
23037 generated by GNU Autoconf 2.60.  Invocation command line was
23038
23039   CONFIG_FILES    = $CONFIG_FILES
23040   CONFIG_HEADERS  = $CONFIG_HEADERS
23041   CONFIG_LINKS    = $CONFIG_LINKS
23042   CONFIG_COMMANDS = $CONFIG_COMMANDS
23043   $ $0 $@
23044
23045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23046 "
23047
23048 _ACEOF
23049
23050 cat >>$CONFIG_STATUS <<_ACEOF
23051 # Files that config.status was made for.
23052 config_files="$ac_config_files"
23053 config_headers="$ac_config_headers"
23054 config_commands="$ac_config_commands"
23055
23056 _ACEOF
23057
23058 cat >>$CONFIG_STATUS <<\_ACEOF
23059 ac_cs_usage="\
23060 \`$as_me' instantiates files from templates according to the
23061 current configuration.
23062
23063 Usage: $0 [OPTIONS] [FILE]...
23064
23065   -h, --help       print this help, then exit
23066   -V, --version    print version number, then exit
23067   -q, --quiet      do not print progress messages
23068   -d, --debug      don't remove temporary files
23069       --recheck    update $as_me by reconfiguring in the same conditions
23070   --file=FILE[:TEMPLATE]
23071                    instantiate the configuration file FILE
23072   --header=FILE[:TEMPLATE]
23073                    instantiate the configuration header FILE
23074
23075 Configuration files:
23076 $config_files
23077
23078 Configuration headers:
23079 $config_headers
23080
23081 Configuration commands:
23082 $config_commands
23083
23084 Report bugs to <bug-autoconf@gnu.org>."
23085
23086 _ACEOF
23087 cat >>$CONFIG_STATUS <<_ACEOF
23088 ac_cs_version="\\
23089 LLVM config.status 3.5svn
23090 configured by $0, generated by GNU Autoconf 2.60,
23091   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23092
23093 Copyright (C) 2006 Free Software Foundation, Inc.
23094 This config.status script is free software; the Free Software Foundation
23095 gives unlimited permission to copy, distribute and modify it."
23096
23097 ac_pwd='$ac_pwd'
23098 srcdir='$srcdir'
23099 INSTALL='$INSTALL'
23100 _ACEOF
23101
23102 cat >>$CONFIG_STATUS <<\_ACEOF
23103 # If no file are specified by the user, then we need to provide default
23104 # value.  By we need to know if files were specified by the user.
23105 ac_need_defaults=:
23106 while test $# != 0
23107 do
23108   case $1 in
23109   --*=*)
23110     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23111     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23112     ac_shift=:
23113     ;;
23114   *)
23115     ac_option=$1
23116     ac_optarg=$2
23117     ac_shift=shift
23118     ;;
23119   esac
23120
23121   case $ac_option in
23122   # Handling of the options.
23123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23124     ac_cs_recheck=: ;;
23125   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23126     echo "$ac_cs_version"; exit ;;
23127   --debug | --debu | --deb | --de | --d | -d )
23128     debug=: ;;
23129   --file | --fil | --fi | --f )
23130     $ac_shift
23131     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23132     ac_need_defaults=false;;
23133   --header | --heade | --head | --hea )
23134     $ac_shift
23135     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23136     ac_need_defaults=false;;
23137   --he | --h)
23138     # Conflict between --help and --header
23139     { echo "$as_me: error: ambiguous option: $1
23140 Try \`$0 --help' for more information." >&2
23141    { (exit 1); exit 1; }; };;
23142   --help | --hel | -h )
23143     echo "$ac_cs_usage"; exit ;;
23144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23145   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23146     ac_cs_silent=: ;;
23147
23148   # This is an error.
23149   -*) { echo "$as_me: error: unrecognized option: $1
23150 Try \`$0 --help' for more information." >&2
23151    { (exit 1); exit 1; }; } ;;
23152
23153   *) ac_config_targets="$ac_config_targets $1"
23154      ac_need_defaults=false ;;
23155
23156   esac
23157   shift
23158 done
23159
23160 ac_configure_extra_args=
23161
23162 if $ac_cs_silent; then
23163   exec 6>/dev/null
23164   ac_configure_extra_args="$ac_configure_extra_args --silent"
23165 fi
23166
23167 _ACEOF
23168 cat >>$CONFIG_STATUS <<_ACEOF
23169 if \$ac_cs_recheck; then
23170   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23171   CONFIG_SHELL=$SHELL
23172   export CONFIG_SHELL
23173   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23174 fi
23175
23176 _ACEOF
23177 cat >>$CONFIG_STATUS <<\_ACEOF
23178 exec 5>>config.log
23179 {
23180   echo
23181   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23182 ## Running $as_me. ##
23183 _ASBOX
23184   echo "$ac_log"
23185 } >&5
23186
23187 _ACEOF
23188 cat >>$CONFIG_STATUS <<_ACEOF
23189 #
23190 # INIT-COMMANDS
23191 #
23192 llvm_src="${srcdir}"
23193
23194 _ACEOF
23195
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23197
23198 # Handling of arguments.
23199 for ac_config_target in $ac_config_targets
23200 do
23201   case $ac_config_target in
23202     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23203     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23204     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23205     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23206     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23207     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23208     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23209     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23210     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23211     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23212     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23213     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23214     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23215     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23216     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23217     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23218     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23219     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23220     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23221     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23222     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23223     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23224     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23225     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23226     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23227     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23228
23229   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23231    { (exit 1); exit 1; }; };;
23232   esac
23233 done
23234
23235
23236 # If the user did not use the arguments to specify the items to instantiate,
23237 # then the envvar interface is used.  Set only those that are not.
23238 # We use the long form for the default assignment because of an extremely
23239 # bizarre bug on SunOS 4.1.3.
23240 if $ac_need_defaults; then
23241   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23242   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23243   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23244 fi
23245
23246 # Have a temporary directory for convenience.  Make it in the build tree
23247 # simply because there is no reason against having it here, and in addition,
23248 # creating and moving files from /tmp can sometimes cause problems.
23249 # Hook for its removal unless debugging.
23250 # Note that there is a small window in which the directory will not be cleaned:
23251 # after its creation but before its name has been assigned to `$tmp'.
23252 $debug ||
23253 {
23254   tmp=
23255   trap 'exit_status=$?
23256   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23257 ' 0
23258   trap '{ (exit 1); exit 1; }' 1 2 13 15
23259 }
23260 # Create a (secure) tmp directory for tmp files.
23261
23262 {
23263   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23264   test -n "$tmp" && test -d "$tmp"
23265 }  ||
23266 {
23267   tmp=./conf$$-$RANDOM
23268   (umask 077 && mkdir "$tmp")
23269 } ||
23270 {
23271    echo "$me: cannot create a temporary directory in ." >&2
23272    { (exit 1); exit 1; }
23273 }
23274
23275 #
23276 # Set up the sed scripts for CONFIG_FILES section.
23277 #
23278
23279 # No need to generate the scripts if there are no CONFIG_FILES.
23280 # This happens for instance when ./config.status config.h
23281 if test -n "$CONFIG_FILES"; then
23282
23283 _ACEOF
23284
23285
23286
23287 ac_delim='%!_!# '
23288 for ac_last_try in false false false false false :; do
23289   cat >conf$$subs.sed <<_ACEOF
23290 SHELL!$SHELL$ac_delim
23291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23297 exec_prefix!$exec_prefix$ac_delim
23298 prefix!$prefix$ac_delim
23299 program_transform_name!$program_transform_name$ac_delim
23300 bindir!$bindir$ac_delim
23301 sbindir!$sbindir$ac_delim
23302 libexecdir!$libexecdir$ac_delim
23303 datarootdir!$datarootdir$ac_delim
23304 datadir!$datadir$ac_delim
23305 sysconfdir!$sysconfdir$ac_delim
23306 sharedstatedir!$sharedstatedir$ac_delim
23307 localstatedir!$localstatedir$ac_delim
23308 includedir!$includedir$ac_delim
23309 oldincludedir!$oldincludedir$ac_delim
23310 docdir!$docdir$ac_delim
23311 infodir!$infodir$ac_delim
23312 htmldir!$htmldir$ac_delim
23313 dvidir!$dvidir$ac_delim
23314 pdfdir!$pdfdir$ac_delim
23315 psdir!$psdir$ac_delim
23316 libdir!$libdir$ac_delim
23317 localedir!$localedir$ac_delim
23318 mandir!$mandir$ac_delim
23319 DEFS!$DEFS$ac_delim
23320 ECHO_C!$ECHO_C$ac_delim
23321 ECHO_N!$ECHO_N$ac_delim
23322 ECHO_T!$ECHO_T$ac_delim
23323 LIBS!$LIBS$ac_delim
23324 build_alias!$build_alias$ac_delim
23325 host_alias!$host_alias$ac_delim
23326 target_alias!$target_alias$ac_delim
23327 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23328 CC!$CC$ac_delim
23329 CFLAGS!$CFLAGS$ac_delim
23330 LDFLAGS!$LDFLAGS$ac_delim
23331 CPPFLAGS!$CPPFLAGS$ac_delim
23332 ac_ct_CC!$ac_ct_CC$ac_delim
23333 EXEEXT!$EXEEXT$ac_delim
23334 OBJEXT!$OBJEXT$ac_delim
23335 CXX!$CXX$ac_delim
23336 CXXFLAGS!$CXXFLAGS$ac_delim
23337 ac_ct_CXX!$ac_ct_CXX$ac_delim
23338 CPP!$CPP$ac_delim
23339 subdirs!$subdirs$ac_delim
23340 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23342 build!$build$ac_delim
23343 build_cpu!$build_cpu$ac_delim
23344 build_vendor!$build_vendor$ac_delim
23345 build_os!$build_os$ac_delim
23346 host!$host$ac_delim
23347 host_cpu!$host_cpu$ac_delim
23348 host_vendor!$host_vendor$ac_delim
23349 host_os!$host_os$ac_delim
23350 target!$target$ac_delim
23351 target_cpu!$target_cpu$ac_delim
23352 target_vendor!$target_vendor$ac_delim
23353 target_os!$target_os$ac_delim
23354 OS!$OS$ac_delim
23355 HOST_OS!$HOST_OS$ac_delim
23356 TARGET_OS!$TARGET_OS$ac_delim
23357 LINKALL!$LINKALL$ac_delim
23358 NOLINKALL!$NOLINKALL$ac_delim
23359 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361 ARCH!$ARCH$ac_delim
23362 HOST_ARCH!$HOST_ARCH$ac_delim
23363 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23364 BUILD_CC!$BUILD_CC$ac_delim
23365 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23366 BUILD_CXX!$BUILD_CXX$ac_delim
23367 CVSBUILD!$CVSBUILD$ac_delim
23368 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23369 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23370 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23371 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23374 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23377 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23378 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23382 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23383 JIT!$JIT$ac_delim
23384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23385 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23386 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23387 _ACEOF
23388
23389   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23390     break
23391   elif $ac_last_try; then
23392     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23394    { (exit 1); exit 1; }; }
23395   else
23396     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23397   fi
23398 done
23399
23400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23401 if test -n "$ac_eof"; then
23402   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23403   ac_eof=`expr $ac_eof + 1`
23404 fi
23405
23406 cat >>$CONFIG_STATUS <<_ACEOF
23407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23409 _ACEOF
23410 sed '
23411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23412 s/^/s,@/; s/!/@,|#_!!_#|/
23413 :n
23414 t n
23415 s/'"$ac_delim"'$/,g/; t
23416 s/$/\\/; p
23417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23418 ' >>$CONFIG_STATUS <conf$$subs.sed
23419 rm -f conf$$subs.sed
23420 cat >>$CONFIG_STATUS <<_ACEOF
23421 CEOF$ac_eof
23422 _ACEOF
23423
23424
23425 ac_delim='%!_!# '
23426 for ac_last_try in false false false false false :; do
23427   cat >conf$$subs.sed <<_ACEOF
23428 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23429 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23430 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23431 ENABLE_PIC!$ENABLE_PIC$ac_delim
23432 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23433 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23434 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23435 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23436 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23437 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23438 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23439 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23440 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23441 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23442 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23443 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23444 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23445 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23446 NM!$NM$ac_delim
23447 ifGNUmake!$ifGNUmake$ac_delim
23448 LN_S!$LN_S$ac_delim
23449 CMP!$CMP$ac_delim
23450 CP!$CP$ac_delim
23451 DATE!$DATE$ac_delim
23452 FIND!$FIND$ac_delim
23453 GREP!$GREP$ac_delim
23454 MKDIR!$MKDIR$ac_delim
23455 MV!$MV$ac_delim
23456 RANLIB!$RANLIB$ac_delim
23457 AR!$AR$ac_delim
23458 RM!$RM$ac_delim
23459 SED!$SED$ac_delim
23460 TAR!$TAR$ac_delim
23461 BINPWD!$BINPWD$ac_delim
23462 GRAPHVIZ!$GRAPHVIZ$ac_delim
23463 DOT!$DOT$ac_delim
23464 FDP!$FDP$ac_delim
23465 NEATO!$NEATO$ac_delim
23466 TWOPI!$TWOPI$ac_delim
23467 CIRCO!$CIRCO$ac_delim
23468 GV!$GV$ac_delim
23469 DOTTY!$DOTTY$ac_delim
23470 XDOT!$XDOT$ac_delim
23471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473 INSTALL_DATA!$INSTALL_DATA$ac_delim
23474 BZIP2!$BZIP2$ac_delim
23475 CAT!$CAT$ac_delim
23476 DOXYGEN!$DOXYGEN$ac_delim
23477 GROFF!$GROFF$ac_delim
23478 GZIPBIN!$GZIPBIN$ac_delim
23479 PDFROFF!$PDFROFF$ac_delim
23480 ZIP!$ZIP$ac_delim
23481 OCAMLC!$OCAMLC$ac_delim
23482 OCAMLOPT!$OCAMLOPT$ac_delim
23483 OCAMLDEP!$OCAMLDEP$ac_delim
23484 OCAMLDOC!$OCAMLDOC$ac_delim
23485 GAS!$GAS$ac_delim
23486 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23487 EGREP!$EGREP$ac_delim
23488 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23489 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23490 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23491 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23492 LIBADD_DL!$LIBADD_DL$ac_delim
23493 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23494 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23495 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23496 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23497 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23498 PYTHON!$PYTHON$ac_delim
23499 USE_UDIS86!$USE_UDIS86$ac_delim
23500 USE_OPROFILE!$USE_OPROFILE$ac_delim
23501 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23502 XML2CONFIG!$XML2CONFIG$ac_delim
23503 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23504 LIBXML2_INC!$LIBXML2_INC$ac_delim
23505 CXXCPP!$CXXCPP$ac_delim
23506 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23507 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23508 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23509 MMAP_FILE!$MMAP_FILE$ac_delim
23510 SHLIBEXT!$SHLIBEXT$ac_delim
23511 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23512 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23513 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23514 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23515 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23516 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23517 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23518 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23519 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23520 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23521 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23522 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23523 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23524 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23525 _ACEOF
23526
23527   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23528     break
23529   elif $ac_last_try; then
23530     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23531 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23532    { (exit 1); exit 1; }; }
23533   else
23534     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23535   fi
23536 done
23537
23538 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23539 if test -n "$ac_eof"; then
23540   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23541   ac_eof=`expr $ac_eof + 1`
23542 fi
23543
23544 cat >>$CONFIG_STATUS <<_ACEOF
23545 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23547 _ACEOF
23548 sed '
23549 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23550 s/^/s,@/; s/!/@,|#_!!_#|/
23551 :n
23552 t n
23553 s/'"$ac_delim"'$/,g/; t
23554 s/$/\\/; p
23555 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23556 ' >>$CONFIG_STATUS <conf$$subs.sed
23557 rm -f conf$$subs.sed
23558 cat >>$CONFIG_STATUS <<_ACEOF
23559 CEOF$ac_eof
23560 _ACEOF
23561
23562
23563 ac_delim='%!_!# '
23564 for ac_last_try in false false false false false :; do
23565   cat >conf$$subs.sed <<_ACEOF
23566 RPATH!$RPATH$ac_delim
23567 RDYNAMIC!$RDYNAMIC$ac_delim
23568 program_prefix!$program_prefix$ac_delim
23569 LIBOBJS!$LIBOBJS$ac_delim
23570 LTLIBOBJS!$LTLIBOBJS$ac_delim
23571 _ACEOF
23572
23573   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23574     break
23575   elif $ac_last_try; then
23576     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23577 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23578    { (exit 1); exit 1; }; }
23579   else
23580     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23581   fi
23582 done
23583
23584 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23585 if test -n "$ac_eof"; then
23586   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23587   ac_eof=`expr $ac_eof + 1`
23588 fi
23589
23590 cat >>$CONFIG_STATUS <<_ACEOF
23591 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23593 _ACEOF
23594 sed '
23595 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23596 s/^/s,@/; s/!/@,|#_!!_#|/
23597 :n
23598 t n
23599 s/'"$ac_delim"'$/,g/; t
23600 s/$/\\/; p
23601 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23602 ' >>$CONFIG_STATUS <conf$$subs.sed
23603 rm -f conf$$subs.sed
23604 cat >>$CONFIG_STATUS <<_ACEOF
23605 :end
23606 s/|#_!!_#|//g
23607 CEOF$ac_eof
23608 _ACEOF
23609
23610
23611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23613 # trailing colons and then remove the whole line if VPATH becomes empty
23614 # (actually we leave an empty line to preserve line numbers).
23615 if test "x$srcdir" = x.; then
23616   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23617 s/:*\$(srcdir):*/:/
23618 s/:*\${srcdir}:*/:/
23619 s/:*@srcdir@:*/:/
23620 s/^\([^=]*=[     ]*\):*/\1/
23621 s/:*$//
23622 s/^[^=]*=[       ]*$//
23623 }'
23624 fi
23625
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 fi # test -n "$CONFIG_FILES"
23628
23629
23630 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23631 do
23632   case $ac_tag in
23633   :[FHLC]) ac_mode=$ac_tag; continue;;
23634   esac
23635   case $ac_mode$ac_tag in
23636   :[FHL]*:*);;
23637   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23638 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23639    { (exit 1); exit 1; }; };;
23640   :[FH]-) ac_tag=-:-;;
23641   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23642   esac
23643   ac_save_IFS=$IFS
23644   IFS=:
23645   set x $ac_tag
23646   IFS=$ac_save_IFS
23647   shift
23648   ac_file=$1
23649   shift
23650
23651   case $ac_mode in
23652   :L) ac_source=$1;;
23653   :[FH])
23654     ac_file_inputs=
23655     for ac_f
23656     do
23657       case $ac_f in
23658       -) ac_f="$tmp/stdin";;
23659       *) # Look for the file first in the build tree, then in the source tree
23660          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23661          # because $ac_f cannot contain `:'.
23662          test -f "$ac_f" ||
23663            case $ac_f in
23664            [\\/$]*) false;;
23665            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23666            esac ||
23667            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23668 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23669    { (exit 1); exit 1; }; };;
23670       esac
23671       ac_file_inputs="$ac_file_inputs $ac_f"
23672     done
23673
23674     # Let's still pretend it is `configure' which instantiates (i.e., don't
23675     # use $as_me), people would be surprised to read:
23676     #    /* config.h.  Generated by config.status.  */
23677     configure_input="Generated from "`IFS=:
23678           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23679     if test x"$ac_file" != x-; then
23680       configure_input="$ac_file.  $configure_input"
23681       { echo "$as_me:$LINENO: creating $ac_file" >&5
23682 echo "$as_me: creating $ac_file" >&6;}
23683     fi
23684
23685     case $ac_tag in
23686     *:-:* | *:-) cat >"$tmp/stdin";;
23687     esac
23688     ;;
23689   esac
23690
23691   ac_dir=`$as_dirname -- "$ac_file" ||
23692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23693          X"$ac_file" : 'X\(//\)[^/]' \| \
23694          X"$ac_file" : 'X\(//\)$' \| \
23695          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23696 echo X"$ac_file" |
23697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23698             s//\1/
23699             q
23700           }
23701           /^X\(\/\/\)[^/].*/{
23702             s//\1/
23703             q
23704           }
23705           /^X\(\/\/\)$/{
23706             s//\1/
23707             q
23708           }
23709           /^X\(\/\).*/{
23710             s//\1/
23711             q
23712           }
23713           s/.*/./; q'`
23714   { as_dir="$ac_dir"
23715   case $as_dir in #(
23716   -*) as_dir=./$as_dir;;
23717   esac
23718   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23719     as_dirs=
23720     while :; do
23721       case $as_dir in #(
23722       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23723       *) as_qdir=$as_dir;;
23724       esac
23725       as_dirs="'$as_qdir' $as_dirs"
23726       as_dir=`$as_dirname -- "$as_dir" ||
23727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23728          X"$as_dir" : 'X\(//\)[^/]' \| \
23729          X"$as_dir" : 'X\(//\)$' \| \
23730          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23731 echo X"$as_dir" |
23732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23733             s//\1/
23734             q
23735           }
23736           /^X\(\/\/\)[^/].*/{
23737             s//\1/
23738             q
23739           }
23740           /^X\(\/\/\)$/{
23741             s//\1/
23742             q
23743           }
23744           /^X\(\/\).*/{
23745             s//\1/
23746             q
23747           }
23748           s/.*/./; q'`
23749       test -d "$as_dir" && break
23750     done
23751     test -z "$as_dirs" || eval "mkdir $as_dirs"
23752   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23753 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23754    { (exit 1); exit 1; }; }; }
23755   ac_builddir=.
23756
23757 case "$ac_dir" in
23758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759 *)
23760   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23761   # A ".." for each directory in $ac_dir_suffix.
23762   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23763   case $ac_top_builddir_sub in
23764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23766   esac ;;
23767 esac
23768 ac_abs_top_builddir=$ac_pwd
23769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23770 # for backward compatibility:
23771 ac_top_builddir=$ac_top_build_prefix
23772
23773 case $srcdir in
23774   .)  # We are building in place.
23775     ac_srcdir=.
23776     ac_top_srcdir=$ac_top_builddir_sub
23777     ac_abs_top_srcdir=$ac_pwd ;;
23778   [\\/]* | ?:[\\/]* )  # Absolute name.
23779     ac_srcdir=$srcdir$ac_dir_suffix;
23780     ac_top_srcdir=$srcdir
23781     ac_abs_top_srcdir=$srcdir ;;
23782   *) # Relative name.
23783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23784     ac_top_srcdir=$ac_top_build_prefix$srcdir
23785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23786 esac
23787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23788
23789
23790   case $ac_mode in
23791   :F)
23792   #
23793   # CONFIG_FILE
23794   #
23795
23796   case $INSTALL in
23797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23799   esac
23800 _ACEOF
23801
23802 cat >>$CONFIG_STATUS <<\_ACEOF
23803 # If the template does not know about datarootdir, expand it.
23804 # FIXME: This hack should be removed a few years after 2.60.
23805 ac_datarootdir_hack=; ac_datarootdir_seen=
23806
23807 case `sed -n '/datarootdir/ {
23808   p
23809   q
23810 }
23811 /@datadir@/p
23812 /@docdir@/p
23813 /@infodir@/p
23814 /@localedir@/p
23815 /@mandir@/p
23816 ' $ac_file_inputs` in
23817 *datarootdir*) ac_datarootdir_seen=yes;;
23818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23819   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23820 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23821 _ACEOF
23822 cat >>$CONFIG_STATUS <<_ACEOF
23823   ac_datarootdir_hack='
23824   s&@datadir@&$datadir&g
23825   s&@docdir@&$docdir&g
23826   s&@infodir@&$infodir&g
23827   s&@localedir@&$localedir&g
23828   s&@mandir@&$mandir&g
23829     s&\\\${datarootdir}&$datarootdir&g' ;;
23830 esac
23831 _ACEOF
23832
23833 # Neutralize VPATH when `$srcdir' = `.'.
23834 # Shell code in configure.ac might set extrasub.
23835 # FIXME: do we really want to maintain this feature?
23836 cat >>$CONFIG_STATUS <<_ACEOF
23837   sed "$ac_vpsub
23838 $extrasub
23839 _ACEOF
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23841 :t
23842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23843 s&@configure_input@&$configure_input&;t t
23844 s&@top_builddir@&$ac_top_builddir_sub&;t t
23845 s&@srcdir@&$ac_srcdir&;t t
23846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23847 s&@top_srcdir@&$ac_top_srcdir&;t t
23848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23849 s&@builddir@&$ac_builddir&;t t
23850 s&@abs_builddir@&$ac_abs_builddir&;t t
23851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23852 s&@INSTALL@&$ac_INSTALL&;t t
23853 $ac_datarootdir_hack
23854 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23855
23856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860 which seems to be undefined.  Please make sure it is defined." >&5
23861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined.  Please make sure it is defined." >&2;}
23863
23864   rm -f "$tmp/stdin"
23865   case $ac_file in
23866   -) cat "$tmp/out"; rm -f "$tmp/out";;
23867   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23868   esac
23869  ;;
23870   :H)
23871   #
23872   # CONFIG_HEADER
23873   #
23874 _ACEOF
23875
23876 # Transform confdefs.h into a sed script `conftest.defines', that
23877 # substitutes the proper values into config.h.in to produce config.h.
23878 rm -f conftest.defines conftest.tail
23879 # First, append a space to every undef/define line, to ease matching.
23880 echo 's/$/ /' >conftest.defines
23881 # Then, protect against being on the right side of a sed subst, or in
23882 # an unquoted here document, in config.status.  If some macros were
23883 # called several times there might be several #defines for the same
23884 # symbol, which is useless.  But do not sort them, since the last
23885 # AC_DEFINE must be honored.
23886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23889 # PARAMS is the parameter list in the macro definition--in most cases, it's
23890 # just an empty string.
23891 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23892 ac_dB='\\)[      (].*,\\1define\\2'
23893 ac_dC=' '
23894 ac_dD=' ,'
23895
23896 uniq confdefs.h |
23897   sed -n '
23898         t rset
23899         :rset
23900         s/^[     ]*#[    ]*define[       ][      ]*//
23901         t ok
23902         d
23903         :ok
23904         s/[\\&,]/\\&/g
23905         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907   ' >>conftest.defines
23908
23909 # Remove the space that was appended to ease matching.
23910 # Then replace #undef with comments.  This is necessary, for
23911 # example, in the case of _POSIX_SOURCE, which is predefined and required
23912 # on some systems where configure will not decide to define it.
23913 # (The regexp can be short, since the line contains either #define or #undef.)
23914 echo 's/ $//
23915 s,^[     #]*u.*,/* & */,' >>conftest.defines
23916
23917 # Break up conftest.defines:
23918 ac_max_sed_lines=50
23919
23920 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923 # et cetera.
23924 ac_in='$ac_file_inputs'
23925 ac_out='"$tmp/out1"'
23926 ac_nxt='"$tmp/out2"'
23927
23928 while :
23929 do
23930   # Write a here document:
23931     cat >>$CONFIG_STATUS <<_ACEOF
23932     # First, check the format of the line:
23933     cat >"\$tmp/defines.sed" <<\\CEOF
23934 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23935 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23936 b
23937 :def
23938 _ACEOF
23939   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940   echo 'CEOF
23941     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944   grep . conftest.tail >/dev/null || break
23945   rm -f conftest.defines
23946   mv conftest.tail conftest.defines
23947 done
23948 rm -f conftest.defines conftest.tail
23949
23950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952   if test x"$ac_file" != x-; then
23953     echo "/* $configure_input  */" >"$tmp/config.h"
23954     cat "$ac_result" >>"$tmp/config.h"
23955     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957 echo "$as_me: $ac_file is unchanged" >&6;}
23958     else
23959       rm -f $ac_file
23960       mv "$tmp/config.h" $ac_file
23961     fi
23962   else
23963     echo "/* $configure_input  */"
23964     cat "$ac_result"
23965   fi
23966   rm -f "$tmp/out12"
23967  ;;
23968
23969   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23970 echo "$as_me: executing $ac_file commands" >&6;}
23971  ;;
23972   esac
23973
23974
23975   case $ac_file$ac_mode in
23976     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23977    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23978     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23979    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23980     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23982     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23984     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23986     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23988     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23990     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23992     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23994     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23996     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23998     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23999    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24000
24001   esac
24002 done # for ac_tag
24003
24004
24005 { (exit 0); exit 0; }
24006 _ACEOF
24007 chmod +x $CONFIG_STATUS
24008 ac_clean_files=$ac_clean_files_save
24009
24010
24011 # configure is writing to config.log, and then calls config.status.
24012 # config.status does its own redirection, appending to config.log.
24013 # Unfortunately, on DOS this fails, as config.log is still kept open
24014 # by configure, so config.status won't be able to write to it; its
24015 # output is simply discarded.  So we exec the FD to /dev/null,
24016 # effectively closing config.log, so it can be properly (re)opened and
24017 # appended to by config.status.  When coming back to configure, we
24018 # need to make the FD available again.
24019 if test "$no_create" != yes; then
24020   ac_cs_success=:
24021   ac_config_status_args=
24022   test "$silent" = yes &&
24023     ac_config_status_args="$ac_config_status_args --quiet"
24024   exec 5>/dev/null
24025   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24026   exec 5>>config.log
24027   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24028   # would make configure fail if this is the last instruction.
24029   $ac_cs_success || { (exit 1); exit 1; }
24030 fi
24031
24032 #
24033 # CONFIG_SUBDIRS section.
24034 #
24035 if test "$no_recursion" != yes; then
24036
24037   # Remove --cache-file and --srcdir arguments so they do not pile up.
24038   ac_sub_configure_args=
24039   ac_prev=
24040   eval "set x $ac_configure_args"
24041   shift
24042   for ac_arg
24043   do
24044     if test -n "$ac_prev"; then
24045       ac_prev=
24046       continue
24047     fi
24048     case $ac_arg in
24049     -cache-file | --cache-file | --cache-fil | --cache-fi \
24050     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24051       ac_prev=cache_file ;;
24052     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24053     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24054     | --c=*)
24055       ;;
24056     --config-cache | -C)
24057       ;;
24058     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24059       ac_prev=srcdir ;;
24060     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24061       ;;
24062     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24063       ac_prev=prefix ;;
24064     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24065       ;;
24066     *)
24067       case $ac_arg in
24068       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24069       esac
24070       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24071     esac
24072   done
24073
24074   # Always prepend --prefix to ensure using the same prefix
24075   # in subdir configurations.
24076   ac_arg="--prefix=$prefix"
24077   case $ac_arg in
24078   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24079   esac
24080   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24081
24082   ac_popdir=`pwd`
24083   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24084
24085     # Do not complain, so a configure script can configure whichever
24086     # parts of a large source tree are present.
24087     test -d "$srcdir/$ac_dir" || continue
24088
24089     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24090     echo "$as_me:$LINENO: $ac_msg" >&5
24091     echo "$ac_msg" >&6
24092     { as_dir="$ac_dir"
24093   case $as_dir in #(
24094   -*) as_dir=./$as_dir;;
24095   esac
24096   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24097     as_dirs=
24098     while :; do
24099       case $as_dir in #(
24100       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24101       *) as_qdir=$as_dir;;
24102       esac
24103       as_dirs="'$as_qdir' $as_dirs"
24104       as_dir=`$as_dirname -- "$as_dir" ||
24105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24106          X"$as_dir" : 'X\(//\)[^/]' \| \
24107          X"$as_dir" : 'X\(//\)$' \| \
24108          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24109 echo X"$as_dir" |
24110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24111             s//\1/
24112             q
24113           }
24114           /^X\(\/\/\)[^/].*/{
24115             s//\1/
24116             q
24117           }
24118           /^X\(\/\/\)$/{
24119             s//\1/
24120             q
24121           }
24122           /^X\(\/\).*/{
24123             s//\1/
24124             q
24125           }
24126           s/.*/./; q'`
24127       test -d "$as_dir" && break
24128     done
24129     test -z "$as_dirs" || eval "mkdir $as_dirs"
24130   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24131 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24132    { (exit 1); exit 1; }; }; }
24133     ac_builddir=.
24134
24135 case "$ac_dir" in
24136 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24137 *)
24138   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24139   # A ".." for each directory in $ac_dir_suffix.
24140   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24141   case $ac_top_builddir_sub in
24142   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24143   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24144   esac ;;
24145 esac
24146 ac_abs_top_builddir=$ac_pwd
24147 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24148 # for backward compatibility:
24149 ac_top_builddir=$ac_top_build_prefix
24150
24151 case $srcdir in
24152   .)  # We are building in place.
24153     ac_srcdir=.
24154     ac_top_srcdir=$ac_top_builddir_sub
24155     ac_abs_top_srcdir=$ac_pwd ;;
24156   [\\/]* | ?:[\\/]* )  # Absolute name.
24157     ac_srcdir=$srcdir$ac_dir_suffix;
24158     ac_top_srcdir=$srcdir
24159     ac_abs_top_srcdir=$srcdir ;;
24160   *) # Relative name.
24161     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24162     ac_top_srcdir=$ac_top_build_prefix$srcdir
24163     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24164 esac
24165 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24166
24167
24168     cd "$ac_dir"
24169
24170     # Check for guested configure; otherwise get Cygnus style configure.
24171     if test -f "$ac_srcdir/configure.gnu"; then
24172       ac_sub_configure=$ac_srcdir/configure.gnu
24173     elif test -f "$ac_srcdir/configure"; then
24174       ac_sub_configure=$ac_srcdir/configure
24175     elif test -f "$ac_srcdir/configure.in"; then
24176       # This should be Cygnus configure.
24177       ac_sub_configure=$ac_aux_dir/configure
24178     else
24179       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24180 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24181       ac_sub_configure=
24182     fi
24183
24184     # The recursion is here.
24185     if test -n "$ac_sub_configure"; then
24186       # Make the cache file name correct relative to the subdirectory.
24187       case $cache_file in
24188       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24189       *) # Relative name.
24190         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24191       esac
24192
24193       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24194 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24195       # The eval makes quoting arguments work.
24196       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24197            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24198         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24199 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24200    { (exit 1); exit 1; }; }
24201     fi
24202
24203     cd "$ac_popdir"
24204   done
24205 fi
24206