configure: Regenerate corresponding to r189026.
[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.4svn.
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-2013 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.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
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 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_CXX11
688 ENABLE_SPLIT_DWARF
689 ENABLE_CLANG_ARCMT
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
692 ENABLE_OPTIMIZED
693 ENABLE_PROFILING
694 DISABLE_ASSERTIONS
695 ENABLE_WERROR
696 ENABLE_EXPENSIVE_CHECKS
697 EXPENSIVE_CHECKS
698 DEBUG_RUNTIME
699 DEBUG_SYMBOLS
700 KEEP_SYMBOLS
701 JIT
702 TARGET_HAS_JIT
703 ENABLE_DOCS
704 ENABLE_DOXYGEN
705 LLVM_ENABLE_THREADS
706 ENABLE_PTHREADS
707 LLVM_ENABLE_ZLIB
708 ENABLE_PIC
709 ENABLE_SHARED
710 ENABLE_EMBED_STDCXX
711 ENABLE_TIMESTAMPS
712 ENABLE_BACKTRACES
713 TARGETS_TO_BUILD
714 LLVM_ENUM_TARGETS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
718 OPTIMIZE_OPTION
719 EXTRA_OPTIONS
720 EXTRA_LD_OPTIONS
721 CLANG_SRC_ROOT
722 BINUTILS_INCDIR
723 INTERNAL_PREFIX
724 NM
725 ifGNUmake
726 LN_S
727 CMP
728 CP
729 DATE
730 FIND
731 MKDIR
732 MV
733 RANLIB
734 AR
735 RM
736 SED
737 TAR
738 BINPWD
739 GRAPHVIZ
740 DOT
741 FDP
742 NEATO
743 TWOPI
744 CIRCO
745 GV
746 DOTTY
747 XDOT
748 INSTALL_PROGRAM
749 INSTALL_SCRIPT
750 INSTALL_DATA
751 BZIP2
752 CAT
753 DOXYGEN
754 GROFF
755 GZIPBIN
756 PDFROFF
757 ZIP
758 OCAMLC
759 OCAMLOPT
760 OCAMLDEP
761 OCAMLDOC
762 GAS
763 HAVE_LINK_VERSION_SCRIPT
764 INSTALL_LTDL_TRUE
765 INSTALL_LTDL_FALSE
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
768 LIBADD_DL
769 NO_VARIADIC_MACROS
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
773 NO_UNINITIALIZED
774 PYTHON
775 USE_UDIS86
776 USE_OPROFILE
777 USE_INTEL_JITEVENTS
778 XML2CONFIG
779 LIBXML2_LIBS
780 LIBXML2_INC
781 CXXCPP
782 HAVE_PTHREAD
783 HAVE_LIBZ
784 HUGE_VAL_SANITY
785 MMAP_FILE
786 SHLIBEXT
787 SHLIBPATH_VAR
788 LLVM_PREFIX
789 LLVM_BINDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 program_prefix
804 LIBOBJS
805 LTLIBOBJS'
806 ac_subst_files=''
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 CPPFLAGS
814 CXX
815 CXXFLAGS
816 CCC
817 CPP
818 CXXCPP'
819 ac_subdirs_all='projects/llvm-gcc
820 projects/test-suite
821 projects/llvm-test
822 projects/poolalloc
823 projects/llvm-poolalloc
824 projects/sample
825 projects/privbracket
826 projects/llvm-stacker
827 projects/llvm-reopt
828 projects/llvm-java
829 projects/llvm-tv
830 projects/safecode
831 projects/llvm-kernel
832 tools/polly'
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884   # If the previous option needs an argument, assign it.
885   if test -n "$ac_prev"; then
886     eval $ac_prev=\$ac_option
887     ac_prev=
888     continue
889   fi
890
891   case $ac_option in
892   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939    { (exit 1); exit 1; }; }
940     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941     eval enable_$ac_feature=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958    { (exit 1); exit 1; }; }
959     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960     eval enable_$ac_feature=\$ac_optarg ;;
961
962   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964   | --exec | --exe | --ex)
965     ac_prev=exec_prefix ;;
966   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968   | --exec=* | --exe=* | --ex=*)
969     exec_prefix=$ac_optarg ;;
970
971   -gas | --gas | --ga | --g)
972     # Obsolete; use --with-gas.
973     with_gas=yes ;;
974
975   -help | --help | --hel | --he | -h)
976     ac_init_help=long ;;
977   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978     ac_init_help=recursive ;;
979   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980     ac_init_help=short ;;
981
982   -host | --host | --hos | --ho)
983     ac_prev=host_alias ;;
984   -host=* | --host=* | --hos=* | --ho=*)
985     host_alias=$ac_optarg ;;
986
987   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988     ac_prev=htmldir ;;
989   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990   | --ht=*)
991     htmldir=$ac_optarg ;;
992
993   -includedir | --includedir | --includedi | --included | --include \
994   | --includ | --inclu | --incl | --inc)
995     ac_prev=includedir ;;
996   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997   | --includ=* | --inclu=* | --incl=* | --inc=*)
998     includedir=$ac_optarg ;;
999
1000   -infodir | --infodir | --infodi | --infod | --info | --inf)
1001     ac_prev=infodir ;;
1002   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003     infodir=$ac_optarg ;;
1004
1005   -libdir | --libdir | --libdi | --libd)
1006     ac_prev=libdir ;;
1007   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008     libdir=$ac_optarg ;;
1009
1010   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011   | --libexe | --libex | --libe)
1012     ac_prev=libexecdir ;;
1013   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014   | --libexe=* | --libex=* | --libe=*)
1015     libexecdir=$ac_optarg ;;
1016
1017   -localedir | --localedir | --localedi | --localed | --locale)
1018     ac_prev=localedir ;;
1019   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020     localedir=$ac_optarg ;;
1021
1022   -localstatedir | --localstatedir | --localstatedi | --localstated \
1023   | --localstate | --localstat | --localsta | --localst | --locals)
1024     ac_prev=localstatedir ;;
1025   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027     localstatedir=$ac_optarg ;;
1028
1029   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030     ac_prev=mandir ;;
1031   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032     mandir=$ac_optarg ;;
1033
1034   -nfp | --nfp | --nf)
1035     # Obsolete; use --without-fp.
1036     with_fp=no ;;
1037
1038   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039   | --no-cr | --no-c | -n)
1040     no_create=yes ;;
1041
1042   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044     no_recursion=yes ;;
1045
1046   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048   | --oldin | --oldi | --old | --ol | --o)
1049     ac_prev=oldincludedir ;;
1050   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053     oldincludedir=$ac_optarg ;;
1054
1055   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056     ac_prev=prefix ;;
1057   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058     prefix=$ac_optarg ;;
1059
1060   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061   | --program-pre | --program-pr | --program-p)
1062     ac_prev=program_prefix ;;
1063   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065     program_prefix=$ac_optarg ;;
1066
1067   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068   | --program-suf | --program-su | --program-s)
1069     ac_prev=program_suffix ;;
1070   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072     program_suffix=$ac_optarg ;;
1073
1074   -program-transform-name | --program-transform-name \
1075   | --program-transform-nam | --program-transform-na \
1076   | --program-transform-n | --program-transform- \
1077   | --program-transform | --program-transfor \
1078   | --program-transfo | --program-transf \
1079   | --program-trans | --program-tran \
1080   | --progr-tra | --program-tr | --program-t)
1081     ac_prev=program_transform_name ;;
1082   -program-transform-name=* | --program-transform-name=* \
1083   | --program-transform-nam=* | --program-transform-na=* \
1084   | --program-transform-n=* | --program-transform-=* \
1085   | --program-transform=* | --program-transfor=* \
1086   | --program-transfo=* | --program-transf=* \
1087   | --program-trans=* | --program-tran=* \
1088   | --progr-tra=* | --program-tr=* | --program-t=*)
1089     program_transform_name=$ac_optarg ;;
1090
1091   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092     ac_prev=pdfdir ;;
1093   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094     pdfdir=$ac_optarg ;;
1095
1096   -psdir | --psdir | --psdi | --psd | --ps)
1097     ac_prev=psdir ;;
1098   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099     psdir=$ac_optarg ;;
1100
1101   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102   | -silent | --silent | --silen | --sile | --sil)
1103     silent=yes ;;
1104
1105   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106     ac_prev=sbindir ;;
1107   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108   | --sbi=* | --sb=*)
1109     sbindir=$ac_optarg ;;
1110
1111   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113   | --sharedst | --shareds | --shared | --share | --shar \
1114   | --sha | --sh)
1115     ac_prev=sharedstatedir ;;
1116   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119   | --sha=* | --sh=*)
1120     sharedstatedir=$ac_optarg ;;
1121
1122   -site | --site | --sit)
1123     ac_prev=site ;;
1124   -site=* | --site=* | --sit=*)
1125     site=$ac_optarg ;;
1126
1127   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128     ac_prev=srcdir ;;
1129   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130     srcdir=$ac_optarg ;;
1131
1132   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133   | --syscon | --sysco | --sysc | --sys | --sy)
1134     ac_prev=sysconfdir ;;
1135   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137     sysconfdir=$ac_optarg ;;
1138
1139   -target | --target | --targe | --targ | --tar | --ta | --t)
1140     ac_prev=target_alias ;;
1141   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142     target_alias=$ac_optarg ;;
1143
1144   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145     verbose=yes ;;
1146
1147   -version | --version | --versio | --versi | --vers | -V)
1148     ac_init_version=: ;;
1149
1150   -with-* | --with-*)
1151     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid package name: $ac_package" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_package=`echo $ac_package | sed 's/-/_/g'`
1166     eval with_$ac_package=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188    { (exit 1); exit 1; }; }
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196    { (exit 1); exit 1; }; }
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   { echo "$as_me: error: missing argument to $ac_option" >&2
1214    { (exit 1); exit 1; }; }
1215 fi
1216
1217 # Be sure to have absolute directory names.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   case $ac_val in
1225     [\\/$]* | ?:[\\/]* )  continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227   esac
1228   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229    { (exit 1); exit 1; }; }
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used." >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   { echo "$as_me: error: Working directory cannot be determined" >&2
1260    { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262   { echo "$as_me: error: pwd does not report name of working directory" >&2
1263    { (exit 1); exit 1; }; }
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$0" : 'X\(//\)[^/]' \| \
1273          X"$0" : 'X\(//\)$' \| \
1274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 echo X"$0" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308    { (exit 1); exit 1; }; }
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR           user executables [EPREFIX/bin]
1369   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR       program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR           object code libraries [EPREFIX/lib]
1375   --includedir=DIR       C header files [PREFIX/include]
1376   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR          info documentation [DATAROOTDIR/info]
1380   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR           man documentation [DATAROOTDIR/man]
1382   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1383   --htmldir=DIR          html documentation [DOCDIR]
1384   --dvidir=DIR           dvi documentation [DOCDIR]
1385   --pdfdir=DIR           pdf documentation [DOCDIR]
1386   --psdir=DIR            ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 System types:
1392   --build=BUILD     configure for building on BUILD [guessed]
1393   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394   --target=TARGET   configure for building compilers for TARGET [HOST]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399   case $ac_init_help in
1400      short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1401    esac
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-polly          Use polly if available (default is YES)
1408   --enable-libcpp         Use libc++ if available (default is NO)
1409   --enable-cxx11          Use c++11 if available (default is NO)
1410   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1411   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-terminfo       Query the terminfo database if available (default is
1457                           YES)
1458   --enable-libffi         Check for the presence of libffi (default is NO)
1459   --enable-ltdl-install   install libltdl
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-optimize-option  Select the compiler options to use for optimized
1465                           builds
1466   --with-extra-options    Specify additional options to compile LLVM with
1467   --with-extra-ld-options Specify additional options to link LLVM with
1468   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1469                           is stdlib)
1470   --with-clang-srcdir     Directory to the out-of-tree Clang source
1471   --with-clang-resource-dir
1472                           Relative directory from the Clang binary for
1473                           resource files
1474   --with-c-include-dirs   Colon separated list of directories clang will
1475                           search for headers
1476   --with-gcc-toolchain    Directory where gcc is installed.
1477   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1478   --with-binutils-include Specify path to binutils/include/ containing
1479                           plugin-api.h file for gold plugin.
1480   --with-bug-report-url   Specify the URL where bug reports should be
1481                           submitted (default=http://llvm.org/bugs/)
1482   --with-internal-prefix  Installation directory for internal files
1483   --with-python           path to python
1484   --with-udis86=<path>    Use udis86 external x86 disassembler library
1485   --with-oprofile=<prefix>
1486                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1487   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1488
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CXX         C++ compiler command
1498   CXXFLAGS    C++ compiler flags
1499   CPP         C preprocessor
1500   CXXCPP      C++ preprocessor
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to <http://llvm.org/bugs/>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511   # If there are subdirs, report their specific --help.
1512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513     test -d "$ac_dir" || continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 LLVM configure 3.4svn
1567 generated by GNU Autoconf 2.60
1568
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573
1574 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1575 _ACEOF
1576   exit
1577 fi
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1581
1582 It was created by LLVM $as_me 3.4svn, which was
1583 generated by GNU Autoconf 2.60.  Invocation command line was
1584
1585   $ $0 $@
1586
1587 _ACEOF
1588 exec 5>>config.log
1589 {
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1594
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1603
1604 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1605 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1608 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1609 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1610 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1611
1612 _ASUNAME
1613
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1622
1623 } >&5
1624
1625 cat >&5 <<_ACEOF
1626
1627
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1631
1632 _ACEOF
1633
1634
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1645 do
1646   for ac_arg
1647   do
1648     case $ac_arg in
1649     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651     | -silent | --silent | --silen | --sile | --sil)
1652       continue ;;
1653     *\'*)
1654       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655     esac
1656     case $ac_pass in
1657     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658     2)
1659       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660       if test $ac_must_keep_next = true; then
1661         ac_must_keep_next=false # Got value, back to normal.
1662       else
1663         case $ac_arg in
1664           *=* | --config-cache | -C | -disable-* | --disable-* \
1665           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667           | -with-* | --with-* | -without-* | --without-* | --x)
1668             case "$ac_configure_args0 " in
1669               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670             esac
1671             ;;
1672           -* ) ac_must_keep_next=true ;;
1673         esac
1674       fi
1675       ac_configure_args="$ac_configure_args '$ac_arg'"
1676       ;;
1677     esac
1678   done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log.  We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689   # Save into config.log some information that might help in debugging.
1690   {
1691     echo
1692
1693     cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698     echo
1699     # The following way of writing the cache mishandles newlines in values,
1700 (
1701   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702     eval ac_val=\$$ac_var
1703     case $ac_val in #(
1704     *${as_nl}*)
1705       case $ac_var in #(
1706       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708       esac
1709       case $ac_var in #(
1710       _ | IFS | as_nl) ;; #(
1711       *) $as_unset $ac_var ;;
1712       esac ;;
1713     esac
1714   done
1715   (set) 2>&1 |
1716     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717     *${as_nl}ac_space=\ *)
1718       sed -n \
1719         "s/'\''/'\''\\\\'\'''\''/g;
1720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721       ;; #(
1722     *)
1723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724       ;;
1725     esac |
1726     sort
1727 )
1728     echo
1729
1730     cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735     echo
1736     for ac_var in $ac_subst_vars
1737     do
1738       eval ac_val=\$$ac_var
1739       case $ac_val in
1740       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741       esac
1742       echo "$ac_var='\''$ac_val'\''"
1743     done | sort
1744     echo
1745
1746     if test -n "$ac_subst_files"; then
1747       cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752       echo
1753       for ac_var in $ac_subst_files
1754       do
1755         eval ac_val=\$$ac_var
1756         case $ac_val in
1757         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758         esac
1759         echo "$ac_var='\''$ac_val'\''"
1760       done | sort
1761       echo
1762     fi
1763
1764     if test -s confdefs.h; then
1765       cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770       echo
1771       cat confdefs.h
1772       echo
1773     fi
1774     test "$ac_signal" != 0 &&
1775       echo "$as_me: caught signal $ac_signal"
1776     echo "$as_me: exit $exit_status"
1777   } >&5
1778   rm -f core *.core core.conftest.* &&
1779     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780     exit $exit_status
1781 ' 0
1782 for ac_signal in 1 2 13 15; do
1783   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1786
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1789
1790 # Predefined preprocessor variables.
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1815
1816
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820   set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824   set x "$ac_default_prefix/share/config.site" \
1825         "$ac_default_prefix/etc/config.site"
1826 fi
1827 shift
1828 for ac_site_file
1829 do
1830   if test -r "$ac_site_file"; then
1831     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833     sed 's/^/| /' "$ac_site_file" >&5
1834     . "$ac_site_file"
1835   fi
1836 done
1837
1838 if test -r "$cache_file"; then
1839   # Some versions of bash will fail to source /dev/null (special
1840   # files actually), so we avoid doing that.
1841   if test -f "$cache_file"; then
1842     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844     case $cache_file in
1845       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846       *)                      . "./$cache_file";;
1847     esac
1848   fi
1849 else
1850   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852   >$cache_file
1853 fi
1854
1855 # Check that the precious variables saved in the cache have kept the same
1856 # value.
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860   eval ac_new_set=\$ac_env_${ac_var}_set
1861   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862   eval ac_new_val=\$ac_env_${ac_var}_value
1863   case $ac_old_set,$ac_new_set in
1864     set,)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,set)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,);;
1873     *)
1874       if test "x$ac_old_val" != "x$ac_new_val"; then
1875         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1878 echo "$as_me:   former value:  $ac_old_val" >&2;}
1879         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1880 echo "$as_me:   current value: $ac_new_val" >&2;}
1881         ac_cache_corrupted=:
1882       fi;;
1883   esac
1884   # Pass precious variables to config.status.
1885   if test "$ac_new_set" = set; then
1886     case $ac_new_val in
1887     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888     *) ac_arg=$ac_var=$ac_new_val ;;
1889     esac
1890     case " $ac_configure_args " in
1891       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893     esac
1894   fi
1895 done
1896 if $ac_cache_corrupted; then
1897   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901    { (exit 1); exit 1; }; }
1902 fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935
1936 cat >>confdefs.h <<\_ACEOF
1937 #define LLVM_VERSION_MAJOR 3
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MINOR 4
1943 _ACEOF
1944
1945
1946 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1947
1948
1949
1950
1951
1952
1953
1954 ac_aux_dir=
1955 for ac_dir in autoconf "$srcdir"/autoconf; do
1956   if test -f "$ac_dir/install-sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install-sh -c"
1959     break
1960   elif test -f "$ac_dir/install.sh"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/install.sh -c"
1963     break
1964   elif test -f "$ac_dir/shtool"; then
1965     ac_aux_dir=$ac_dir
1966     ac_install_sh="$ac_aux_dir/shtool install -c"
1967     break
1968   fi
1969 done
1970 if test -z "$ac_aux_dir"; then
1971   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983
1984
1985
1986 if test ${srcdir} != "." ; then
1987   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1988     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1989 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1990    { (exit 1); exit 1; }; }
1991   fi
1992 fi
1993
1994 ${CFLAGS=}
1995 ${CXXFLAGS=}
1996
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003   for ac_prog in clang llvm-gcc gcc
2004   do
2005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$CC"; then
2013   ac_cv_prog_CC="$CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028 IFS=$as_save_IFS
2029
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034   { echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6; }
2036 else
2037   { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2039 fi
2040
2041
2042     test -n "$CC" && break
2043   done
2044 fi
2045 if test -z "$CC"; then
2046   ac_ct_CC=$CC
2047   for ac_prog in clang llvm-gcc gcc
2048 do
2049   # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$ac_ct_CC"; then
2057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066     ac_cv_prog_ac_ct_CC="$ac_prog"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072 IFS=$as_save_IFS
2073
2074 fi
2075 fi
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6; }
2080 else
2081   { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2083 fi
2084
2085
2086   test -n "$ac_ct_CC" && break
2087 done
2088
2089   if test "x$ac_ct_CC" = x; then
2090     CC=""
2091   else
2092     case $cross_compiling:$ac_tool_warned in
2093 yes:)
2094 { echo "$as_me:$LINENO: 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." >&5
2097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet.  If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2101 esac
2102     CC=$ac_ct_CC
2103   fi
2104 fi
2105
2106
2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&2;}
2111    { (exit 1); exit 1; }; }
2112
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO: checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (ac_try="$ac_compiler --version >&5"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122   (eval "$ac_compiler --version >&5") 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (ac_try="$ac_compiler -v >&5"
2127 case "(($ac_try" in
2128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129   *) ac_try_echo=$ac_try;;
2130 esac
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132   (eval "$ac_compiler -v >&5") 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }
2136 { (ac_try="$ac_compiler -V >&5"
2137 case "(($ac_try" in
2138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139   *) ac_try_echo=$ac_try;;
2140 esac
2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142   (eval "$ac_compiler -V >&5") 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }
2146
2147 cat >conftest.$ac_ext <<_ACEOF
2148 /* confdefs.h.  */
2149 _ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h.  */
2153
2154 int
2155 main ()
2156 {
2157
2158   ;
2159   return 0;
2160 }
2161 _ACEOF
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2166 # of exeext.
2167 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 #
2171 # List of possible output files, starting from the most likely.
2172 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2173 # only as a last resort.  b.out is created by i960 compilers.
2174 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2175 #
2176 # The IRIX 6 linker writes into existing files which may not be
2177 # executable, retaining their permissions.  Remove them first so a
2178 # subsequent execution test works.
2179 ac_rmfiles=
2180 for ac_file in $ac_files
2181 do
2182   case $ac_file in
2183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2184     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185   esac
2186 done
2187 rm -f $ac_rmfiles
2188
2189 if { (ac_try="$ac_link_default"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195   (eval "$ac_link_default") 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; then
2199   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2201 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2202 # so that the user can short-circuit this test for compilers unknown to
2203 # Autoconf.
2204 for ac_file in $ac_files
2205 do
2206   test -f "$ac_file" || continue
2207   case $ac_file in
2208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209         ;;
2210     [ab].out )
2211         # We found the default executable, but exeext='' is most
2212         # certainly right.
2213         break;;
2214     *.* )
2215         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2216         then :; else
2217            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218         fi
2219         # We set ac_cv_exeext here because the later test for it is not
2220         # safe: cross compilers may not add the suffix if given an `-o'
2221         # argument, so we may need to know it at that point already.
2222         # Even if this section looks crufty: it has the advantage of
2223         # actually working.
2224         break;;
2225     * )
2226         break;;
2227   esac
2228 done
2229 test "$ac_cv_exeext" = no && ac_cv_exeext=
2230
2231 else
2232   echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239    { (exit 77); exit 77; }; }
2240 fi
2241
2242 ac_exeext=$ac_cv_exeext
2243 { echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6; }
2245
2246 # Check that the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253   if { ac_try='./$ac_file'
2254   { (case "(($ac_try" in
2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256   *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259   (eval "$ac_try") 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263     cross_compiling=no
2264   else
2265     if test "$cross_compiling" = maybe; then
2266         cross_compiling=yes
2267     else
2268         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275     fi
2276   fi
2277 fi
2278 { echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6; }
2280
2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282 ac_clean_files=$ac_clean_files_save
2283 # Check that the compiler produces executables we can run.  If not, either
2284 # the compiler is broken, or we cross compile.
2285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288 echo "${ECHO_T}$cross_compiling" >&6; }
2289
2290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2292 if { (ac_try="$ac_link"
2293 case "(($ac_try" in
2294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295   *) ac_try_echo=$ac_try;;
2296 esac
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298   (eval "$ac_link") 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; then
2302   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2303 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2304 # work properly (i.e., refer to `conftest.exe'), while it won't with
2305 # `rm'.
2306 for ac_file in conftest.exe conftest conftest.*; do
2307   test -f "$ac_file" || continue
2308   case $ac_file in
2309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2311           break;;
2312     * ) break;;
2313   esac
2314 done
2315 else
2316   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320    { (exit 1); exit 1; }; }
2321 fi
2322
2323 rm -f conftest$ac_cv_exeext
2324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2326
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2329 ac_exeext=$EXEEXT
2330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2332 if test "${ac_cv_objext+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341
2342 int
2343 main ()
2344 {
2345
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.o conftest.obj
2351 if { (ac_try="$ac_compile"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357   (eval "$ac_compile") 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; then
2361   for ac_file in conftest.o conftest.obj conftest.*; do
2362   test -f "$ac_file" || continue;
2363   case $ac_file in
2364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2365     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366        break;;
2367   esac
2368 done
2369 else
2370   echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379
2380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381 fi
2382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383 echo "${ECHO_T}$ac_cv_objext" >&6; }
2384 OBJEXT=$ac_cv_objext
2385 ac_objext=$OBJEXT
2386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h.  */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h.  */
2397
2398 int
2399 main ()
2400 {
2401 #ifndef __GNUC__
2402        choke me
2403 #endif
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (ac_try="$ac_compile"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_compile") 2>conftest.er1
2417   ac_status=$?
2418   grep -v '^ *+' conftest.er1 >conftest.err
2419   rm -f conftest.er1
2420   cat conftest.err >&5
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); } &&
2423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2424   { (case "(($ac_try" in
2425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426   *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429   (eval "$ac_try") 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (case "(($ac_try" in
2435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436   *) ac_try_echo=$ac_try;;
2437 esac
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439   (eval "$ac_try") 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   ac_compiler_gnu=yes
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448         ac_compiler_gnu=no
2449 fi
2450
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454 fi
2455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457 GCC=`test $ac_compiler_gnu = yes && echo yes`
2458 ac_test_CFLAGS=${CFLAGS+set}
2459 ac_save_CFLAGS=$CFLAGS
2460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_cc_g+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   ac_save_c_werror_flag=$ac_c_werror_flag
2466    ac_c_werror_flag=yes
2467    ac_cv_prog_cc_g=no
2468    CFLAGS="-g"
2469    cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2486 case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_compile") 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
2495   cat conftest.err >&5
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499   { (case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504   (eval "$ac_try") 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; } &&
2508          { ac_try='test -s conftest.$ac_objext'
2509   { (case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514   (eval "$ac_try") 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; }; then
2518   ac_cv_prog_cc_g=yes
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523         CFLAGS=""
2524       cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h.  */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h.  */
2530
2531 int
2532 main ()
2533 {
2534
2535   ;
2536   return 0;
2537 }
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (ac_try="$ac_compile"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_compile") 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554   { (case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_try") 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; } &&
2563          { ac_try='test -s conftest.$ac_objext'
2564   { (case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_try") 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578         ac_c_werror_flag=$ac_save_c_werror_flag
2579          CFLAGS="-g"
2580          cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compile") 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610   { (case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_try") 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_try") 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_cv_prog_cc_g=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634
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 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644    ac_c_werror_flag=$ac_save_c_werror_flag
2645 fi
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649   CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651   if test "$GCC" = yes; then
2652     CFLAGS="-g -O2"
2653   else
2654     CFLAGS="-g"
2655   fi
2656 else
2657   if test "$GCC" = yes; then
2658     CFLAGS="-O2"
2659   else
2660     CFLAGS=
2661   fi
2662 fi
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   ac_cv_prog_cc_c89=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684      char **p;
2685      int i;
2686 {
2687   return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691   char *s;
2692   va_list v;
2693   va_start (v,p);
2694   s = g (p, va_arg (v,int));
2695   va_end (v);
2696   return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2700    function prototypes and stuff, but not '\xHH' hex character constants.
2701    These don't provoke an error unfortunately, instead are silently treated
2702    as 'x'.  The following induces an error, until -std is added to get
2703    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2704    array size at least.  It's necessary to write '\x00'==0 to get something
2705    that's true only with -std.  */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709    inside strings and character constants.  */
2710 #define FOO(x) 'x'
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2719 int
2720 main ()
2721 {
2722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 do
2730   CC="$ac_save_CC $ac_arg"
2731   rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746   { (case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_try") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_try") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   ac_cv_prog_cc_c89=$ac_arg
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext
2774   test "x$ac_cv_prog_cc_c89" != "xno" && break
2775 done
2776 rm -f conftest.$ac_ext
2777 CC=$ac_save_CC
2778
2779 fi
2780 # AC_CACHE_VAL
2781 case "x$ac_cv_prog_cc_c89" in
2782   x)
2783     { echo "$as_me:$LINENO: result: none needed" >&5
2784 echo "${ECHO_T}none needed" >&6; } ;;
2785   xno)
2786     { echo "$as_me:$LINENO: result: unsupported" >&5
2787 echo "${ECHO_T}unsupported" >&6; } ;;
2788   *)
2789     CC="$CC $ac_cv_prog_cc_c89"
2790     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 esac
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801 ac_ext=cpp
2802 ac_cpp='$CXXCPP $CPPFLAGS'
2803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2806 if test -z "$CXX"; then
2807   if test -n "$CCC"; then
2808     CXX=$CCC
2809   else
2810     if test -n "$ac_tool_prefix"; then
2811   for ac_prog in clang++ llvm-g++ g++
2812   do
2813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CXX+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$CXX"; then
2821   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CXX=$ac_cv_prog_CXX
2841 if test -n "$CXX"; then
2842   { echo "$as_me:$LINENO: result: $CXX" >&5
2843 echo "${ECHO_T}$CXX" >&6; }
2844 else
2845   { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2847 fi
2848
2849
2850     test -n "$CXX" && break
2851   done
2852 fi
2853 if test -z "$CXX"; then
2854   ac_ct_CXX=$CXX
2855   for ac_prog in clang++ llvm-g++ g++
2856 do
2857   # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864   if test -n "$ac_ct_CXX"; then
2865   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872   for ac_exec_ext in '' $ac_executable_extensions; do
2873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2874     ac_cv_prog_ac_ct_CXX="$ac_prog"
2875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876     break 2
2877   fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2885 if test -n "$ac_ct_CXX"; then
2886   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2887 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2888 else
2889   { echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6; }
2891 fi
2892
2893
2894   test -n "$ac_ct_CXX" && break
2895 done
2896
2897   if test "x$ac_ct_CXX" = x; then
2898     CXX="g++"
2899   else
2900     case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { echo "$as_me:$LINENO: 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." >&5
2905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2908 ac_tool_warned=yes ;;
2909 esac
2910     CXX=$ac_ct_CXX
2911   fi
2912 fi
2913
2914   fi
2915 fi
2916 # Provide some information about the compiler.
2917 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2918 ac_compiler=`set X $ac_compile; echo $2`
2919 { (ac_try="$ac_compiler --version >&5"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925   (eval "$ac_compiler --version >&5") 2>&5
2926   ac_status=$?
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); }
2929 { (ac_try="$ac_compiler -v >&5"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compiler -v >&5") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (ac_try="$ac_compiler -V >&5"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compiler -V >&5") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }
2949
2950 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2951 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2952 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961
2962 int
2963 main ()
2964 {
2965 #ifndef __GNUC__
2966        choke me
2967 #endif
2968
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_compile") 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2988   { (case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_try") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; } &&
2997          { ac_try='test -s conftest.$ac_objext'
2998   { (case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003   (eval "$ac_try") 2>&5
3004   ac_status=$?
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); }; }; then
3007   ac_compiler_gnu=yes
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012         ac_compiler_gnu=no
3013 fi
3014
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017
3018 fi
3019 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3020 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3021 GXX=`test $ac_compiler_gnu = yes && echo yes`
3022 ac_test_CXXFLAGS=${CXXFLAGS+set}
3023 ac_save_CXXFLAGS=$CXXFLAGS
3024 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3030    ac_cxx_werror_flag=yes
3031    ac_cv_prog_cxx_g=no
3032    CXXFLAGS="-g"
3033    cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compile") 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } &&
3062          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3063   { (case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_try") 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; } &&
3072          { ac_try='test -s conftest.$ac_objext'
3073   { (case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_try") 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; }; then
3082   ac_cv_prog_cxx_g=yes
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087         CXXFLAGS=""
3088       cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094
3095 int
3096 main ()
3097 {
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compile") 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3118   { (case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_try") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; } &&
3127          { ac_try='test -s conftest.$ac_objext'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   :
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3143          CXXFLAGS="-g"
3144          cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150
3151 int
3152 main ()
3153 {
3154
3155   ;
3156   return 0;
3157 }
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3174   { (case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_try") 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; } &&
3183          { ac_try='test -s conftest.$ac_objext'
3184   { (case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_try") 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; }; then
3193   ac_cv_prog_cxx_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
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 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213   CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215   if test "$GXX" = yes; then
3216     CXXFLAGS="-g -O2"
3217   else
3218     CXXFLAGS="-g"
3219   fi
3220 else
3221   if test "$GXX" = yes; then
3222     CXXFLAGS="-O2"
3223   else
3224     CXXFLAGS=
3225   fi
3226 fi
3227 ac_ext=c
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3242   CPP=
3243 fi
3244 if test -z "$CPP"; then
3245   if test "${ac_cv_prog_CPP+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248       # Double quotes because CPP needs to be expanded
3249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250     do
3251       ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3253 do
3254   # Use a header file that comes with gcc, so configuring glibc
3255   # with a fresh cross-compiler works.
3256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257   # <limits.h> exists even on freestanding compilers.
3258   # On the NeXT, cc -E runs the code through the compiler's parser,
3259   # not just through cpp. "Syntax error" is here to catch this case.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null; then
3286   if test -s conftest.err; then
3287     ac_cpp_err=$ac_c_preproc_warn_flag
3288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289   else
3290     ac_cpp_err=
3291   fi
3292 else
3293   ac_cpp_err=yes
3294 fi
3295 if test -z "$ac_cpp_err"; then
3296   :
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Broken: fails on valid input.
3302 continue
3303 fi
3304
3305 rm -f conftest.err conftest.$ac_ext
3306
3307   # OK, works on sane cases.  Now check whether nonexistent headers
3308   # can be detected and how.
3309   cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if { (ac_try="$ac_cpp conftest.$ac_ext"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } >/dev/null; then
3330   if test -s conftest.err; then
3331     ac_cpp_err=$ac_c_preproc_warn_flag
3332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333   else
3334     ac_cpp_err=
3335   fi
3336 else
3337   ac_cpp_err=yes
3338 fi
3339 if test -z "$ac_cpp_err"; then
3340   # Broken: success on invalid input.
3341 continue
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346   # Passes both tests.
3347 ac_preproc_ok=:
3348 break
3349 fi
3350
3351 rm -f conftest.err conftest.$ac_ext
3352
3353 done
3354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355 rm -f conftest.err conftest.$ac_ext
3356 if $ac_preproc_ok; then
3357   break
3358 fi
3359
3360     done
3361     ac_cv_prog_CPP=$CPP
3362
3363 fi
3364   CPP=$ac_cv_prog_CPP
3365 else
3366   ac_cv_prog_CPP=$CPP
3367 fi
3368 { echo "$as_me:$LINENO: result: $CPP" >&5
3369 echo "${ECHO_T}$CPP" >&6; }
3370 ac_preproc_ok=false
3371 for ac_c_preproc_warn_flag in '' yes
3372 do
3373   # Use a header file that comes with gcc, so configuring glibc
3374   # with a fresh cross-compiler works.
3375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376   # <limits.h> exists even on freestanding compilers.
3377   # On the NeXT, cc -E runs the code through the compiler's parser,
3378   # not just through cpp. "Syntax error" is here to catch this case.
3379   cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h.  */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h.  */
3385 #ifdef __STDC__
3386 # include <limits.h>
3387 #else
3388 # include <assert.h>
3389 #endif
3390                      Syntax error
3391 _ACEOF
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } >/dev/null; then
3405   if test -s conftest.err; then
3406     ac_cpp_err=$ac_c_preproc_warn_flag
3407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408   else
3409     ac_cpp_err=
3410   fi
3411 else
3412   ac_cpp_err=yes
3413 fi
3414 if test -z "$ac_cpp_err"; then
3415   :
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Broken: fails on valid input.
3421 continue
3422 fi
3423
3424 rm -f conftest.err conftest.$ac_ext
3425
3426   # OK, works on sane cases.  Now check whether nonexistent headers
3427   # can be detected and how.
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434 #include <ac_nonexistent.h>
3435 _ACEOF
3436 if { (ac_try="$ac_cpp conftest.$ac_ext"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443   ac_status=$?
3444   grep -v '^ *+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } >/dev/null; then
3449   if test -s conftest.err; then
3450     ac_cpp_err=$ac_c_preproc_warn_flag
3451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452   else
3453     ac_cpp_err=
3454   fi
3455 else
3456   ac_cpp_err=yes
3457 fi
3458 if test -z "$ac_cpp_err"; then
3459   # Broken: success on invalid input.
3460 continue
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465   # Passes both tests.
3466 ac_preproc_ok=:
3467 break
3468 fi
3469
3470 rm -f conftest.err conftest.$ac_ext
3471
3472 done
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3476   :
3477 else
3478   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492 if test "$CXX" = "clang++" ; then
3493   { echo "$as_me:$LINENO: checking whether clang works" >&5
3494 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3495   ac_ext=cpp
3496 ac_cpp='$CXXCPP $CPPFLAGS'
3497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500
3501
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #include <limits>
3509 #if __has_include (<cxxabi.h>)
3510 #include <cxxabi.h>
3511 #endif
3512 #if __has_include (<unwind.h>)
3513 #include <unwind.h>
3514 #endif
3515
3516 int
3517 main ()
3518 {
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_compile") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3539   { (case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_try") 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; } &&
3548          { ac_try='test -s conftest.$ac_objext'
3549   { (case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554   (eval "$ac_try") 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558
3559   { echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6; }
3561
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566
3567   { echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6; }
3569   { { 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
3570 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;}
3571    { (exit 1); exit 1; }; }
3572
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576   ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582 fi
3583
3584
3585
3586 if test -d ${srcdir}/projects/llvm-gcc ; then
3587   subdirs="$subdirs projects/llvm-gcc"
3588
3589 fi
3590
3591 if test -d ${srcdir}/projects/test-suite ; then
3592   subdirs="$subdirs projects/test-suite"
3593
3594 fi
3595
3596 if test -d ${srcdir}/projects/llvm-test ; then
3597   subdirs="$subdirs projects/llvm-test"
3598
3599 fi
3600
3601 if test -d ${srcdir}/projects/poolalloc ; then
3602   subdirs="$subdirs projects/poolalloc"
3603
3604 fi
3605
3606 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3607   subdirs="$subdirs projects/llvm-poolalloc"
3608
3609 fi
3610
3611 for i in `ls ${srcdir}/projects`
3612 do
3613   if test -d ${srcdir}/projects/${i} ; then
3614     case ${i} in
3615       sample)       subdirs="$subdirs projects/sample"
3616     ;;
3617       privbracket)  subdirs="$subdirs projects/privbracket"
3618  ;;
3619       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3620  ;;
3621       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3622 ;;
3623       llvm-java)    subdirs="$subdirs projects/llvm-java"
3624  ;;
3625       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3626    ;;
3627       safecode)     subdirs="$subdirs projects/safecode"
3628  ;;
3629       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3630  ;;
3631       compiler-rt)       ;;
3632       llvm-gcc)       ;;
3633       test-suite)     ;;
3634       llvm-test)      ;;
3635       poolalloc)      ;;
3636       llvm-poolalloc) ;;
3637       *)
3638         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3639 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3640         ;;
3641     esac
3642   fi
3643 done
3644
3645 # Check whether --enable-polly was given.
3646 if test "${enable_polly+set}" = set; then
3647   enableval=$enable_polly;
3648 else
3649   enableval=default
3650 fi
3651
3652 case "$enableval" in
3653   yes) ENABLE_POLLY=1
3654  ;;
3655   no)  ENABLE_POLLY=0
3656  ;;
3657   default) ENABLE_POLLY=1
3658  ;;
3659   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3660 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3661    { (exit 1); exit 1; }; } ;;
3662 esac
3663
3664
3665 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666   LLVM_HAS_POLLY=1
3667
3668   subdirs="$subdirs tools/polly"
3669
3670 fi
3671
3672
3673 # Make sure we can run config.sub.
3674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677    { (exit 1); exit 1; }; }
3678
3679 { echo "$as_me:$LINENO: checking build system type" >&5
3680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3681 if test "${ac_cv_build+set}" = set; then
3682   echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684   ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x &&
3688   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690    { (exit 1); exit 1; }; }
3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694    { (exit 1); exit 1; }; }
3695
3696 fi
3697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 echo "${ECHO_T}$ac_cv_build" >&6; }
3699 case $ac_cv_build in
3700 *-*-*) ;;
3701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702 echo "$as_me: error: invalid value of canonical build" >&2;}
3703    { (exit 1); exit 1; }; };;
3704 esac
3705 build=$ac_cv_build
3706 ac_save_IFS=$IFS; IFS='-'
3707 set x $ac_cv_build
3708 shift
3709 build_cpu=$1
3710 build_vendor=$2
3711 shift; shift
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3714 build_os=$*
3715 IFS=$ac_save_IFS
3716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717
3718
3719 { echo "$as_me:$LINENO: checking host system type" >&5
3720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_host+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   if test "x$host_alias" = x; then
3725   ac_cv_host=$ac_cv_build
3726 else
3727   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730    { (exit 1); exit 1; }; }
3731 fi
3732
3733 fi
3734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 echo "${ECHO_T}$ac_cv_host" >&6; }
3736 case $ac_cv_host in
3737 *-*-*) ;;
3738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739 echo "$as_me: error: invalid value of canonical host" >&2;}
3740    { (exit 1); exit 1; }; };;
3741 esac
3742 host=$ac_cv_host
3743 ac_save_IFS=$IFS; IFS='-'
3744 set x $ac_cv_host
3745 shift
3746 host_cpu=$1
3747 host_vendor=$2
3748 shift; shift
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3751 host_os=$*
3752 IFS=$ac_save_IFS
3753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754
3755
3756 { echo "$as_me:$LINENO: checking target system type" >&5
3757 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3758 if test "${ac_cv_target+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   if test "x$target_alias" = x; then
3762   ac_cv_target=$ac_cv_host
3763 else
3764   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3765     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 fi
3771 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3772 echo "${ECHO_T}$ac_cv_target" >&6; }
3773 case $ac_cv_target in
3774 *-*-*) ;;
3775 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3776 echo "$as_me: error: invalid value of canonical target" >&2;}
3777    { (exit 1); exit 1; }; };;
3778 esac
3779 target=$ac_cv_target
3780 ac_save_IFS=$IFS; IFS='-'
3781 set x $ac_cv_target
3782 shift
3783 target_cpu=$1
3784 target_vendor=$2
3785 shift; shift
3786 # Remember, the first character of IFS is used to create $*,
3787 # except with old shells:
3788 target_os=$*
3789 IFS=$ac_save_IFS
3790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791
3792
3793 # The aliases save the names the user supplied, while $host etc.
3794 # will get canonicalized.
3795 test -n "$target_alias" &&
3796   test "$program_prefix$program_suffix$program_transform_name" = \
3797     NONENONEs,x,x, &&
3798   program_prefix=${target_alias}-
3799
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3801 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3802 if test "${llvm_cv_os_type+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   case $host in
3806   *-*-aix*)
3807     llvm_cv_link_all_option="-Wl,--whole-archive"
3808     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809     llvm_cv_os_type="AIX"
3810     llvm_cv_platform_type="Unix" ;;
3811   *-*-irix*)
3812     llvm_cv_link_all_option="-Wl,--whole-archive"
3813     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3814     llvm_cv_os_type="IRIX"
3815     llvm_cv_platform_type="Unix" ;;
3816   *-*-cygwin*)
3817     llvm_cv_link_all_option="-Wl,--whole-archive"
3818     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3819     llvm_cv_os_type="Cygwin"
3820     llvm_cv_platform_type="Unix" ;;
3821   *-*-darwin*)
3822     llvm_cv_link_all_option="-Wl,-all_load"
3823     llvm_cv_no_link_all_option="-Wl,-noall_load"
3824     llvm_cv_os_type="Darwin"
3825     llvm_cv_platform_type="Unix" ;;
3826   *-*-minix*)
3827     llvm_cv_link_all_option="-Wl,-all_load"
3828     llvm_cv_no_link_all_option="-Wl,-noall_load"
3829     llvm_cv_os_type="Minix"
3830     llvm_cv_platform_type="Unix" ;;
3831   *-*-freebsd*)
3832     llvm_cv_link_all_option="-Wl,--whole-archive"
3833     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834     llvm_cv_os_type="FreeBSD"
3835     llvm_cv_platform_type="Unix" ;;
3836   *-*-kfreebsd-gnu)
3837     llvm_cv_link_all_option="-Wl,--whole-archive"
3838     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839     llvm_cv_os_type="GNU/kFreeBSD"
3840     llvm_cv_platform_type="Unix" ;;
3841   *-*-openbsd*)
3842     llvm_cv_link_all_option="-Wl,--whole-archive"
3843     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844     llvm_cv_os_type="OpenBSD"
3845     llvm_cv_platform_type="Unix" ;;
3846   *-*-netbsd*)
3847     llvm_cv_link_all_option="-Wl,--whole-archive"
3848     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849     llvm_cv_os_type="NetBSD"
3850     llvm_cv_platform_type="Unix" ;;
3851   *-*-dragonfly*)
3852     llvm_cv_link_all_option="-Wl,--whole-archive"
3853     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854     llvm_cv_os_type="DragonFly"
3855     llvm_cv_platform_type="Unix" ;;
3856   *-*-hpux*)
3857     llvm_cv_link_all_option="-Wl,--whole-archive"
3858     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859     llvm_cv_os_type="HP-UX"
3860     llvm_cv_platform_type="Unix" ;;
3861   *-*-interix*)
3862     llvm_cv_link_all_option="-Wl,--whole-archive"
3863     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3864     llvm_cv_os_type="Interix"
3865     llvm_cv_platform_type="Unix" ;;
3866   *-*-linux*)
3867     llvm_cv_link_all_option="-Wl,--whole-archive"
3868     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3869     llvm_cv_os_type="Linux"
3870     llvm_cv_platform_type="Unix" ;;
3871   *-*-gnu*)
3872     llvm_cv_link_all_option="-Wl,--whole-archive"
3873     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874     llvm_cv_os_type="GNU"
3875     llvm_cv_platform_type="Unix" ;;
3876   *-*-solaris*)
3877     llvm_cv_link_all_option="-Wl,-z,allextract"
3878     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3879     llvm_cv_os_type="SunOS"
3880     llvm_cv_platform_type="Unix" ;;
3881   *-*-auroraux*)
3882     llvm_cv_link_all_option="-Wl,-z,allextract"
3883     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3884     llvm_cv_os_type="AuroraUX"
3885     llvm_cv_platform_type="Unix" ;;
3886   *-*-win32*)
3887     llvm_cv_link_all_option="-Wl,--whole-archive"
3888     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889     llvm_cv_os_type="Win32"
3890     llvm_cv_platform_type="Win32" ;;
3891   *-*-mingw*)
3892     llvm_cv_link_all_option="-Wl,--whole-archive"
3893     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894     llvm_cv_os_type="MingW"
3895     llvm_cv_platform_type="Win32" ;;
3896   *-*-haiku*)
3897     llvm_cv_link_all_option="-Wl,--whole-archive"
3898     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3899     llvm_cv_os_type="Haiku"
3900     llvm_cv_platform_type="Unix" ;;
3901   *-unknown-eabi*)
3902     llvm_cv_link_all_option="-Wl,--whole-archive"
3903     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3904     llvm_cv_os_type="Freestanding"
3905     llvm_cv_platform_type="Unix" ;;
3906   *-unknown-elf*)
3907     llvm_cv_link_all_option="-Wl,--whole-archive"
3908     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3909     llvm_cv_os_type="Freestanding"
3910     llvm_cv_platform_type="Unix" ;;
3911   *)
3912     llvm_cv_link_all_option=""
3913     llvm_cv_no_link_all_option=""
3914     llvm_cv_os_type="Unknown"
3915     llvm_cv_platform_type="Unknown" ;;
3916 esac
3917 fi
3918 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3919 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3920
3921 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3922 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3923 if test "${llvm_cv_target_os_type+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   case $target in
3927   *-*-aix*)
3928     llvm_cv_target_os_type="AIX" ;;
3929   *-*-irix*)
3930     llvm_cv_target_os_type="IRIX" ;;
3931   *-*-cygwin*)
3932     llvm_cv_target_os_type="Cygwin" ;;
3933   *-*-darwin*)
3934     llvm_cv_target_os_type="Darwin" ;;
3935   *-*-minix*)
3936     llvm_cv_target_os_type="Minix" ;;
3937   *-*-freebsd*)
3938     llvm_cv_target_os_type="FreeBSD" ;;
3939   *-*-kfreebsd-gnu)
3940     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3941   *-*-openbsd*)
3942     llvm_cv_target_os_type="OpenBSD" ;;
3943   *-*-netbsd*)
3944     llvm_cv_target_os_type="NetBSD" ;;
3945   *-*-dragonfly*)
3946     llvm_cv_target_os_type="DragonFly" ;;
3947   *-*-hpux*)
3948     llvm_cv_target_os_type="HP-UX" ;;
3949   *-*-interix*)
3950     llvm_cv_target_os_type="Interix" ;;
3951   *-*-linux*)
3952     llvm_cv_target_os_type="Linux" ;;
3953   *-*-gnu*)
3954     llvm_cv_target_os_type="GNU" ;;
3955   *-*-solaris*)
3956     llvm_cv_target_os_type="SunOS" ;;
3957   *-*-auroraux*)
3958     llvm_cv_target_os_type="AuroraUX" ;;
3959   *-*-win32*)
3960     llvm_cv_target_os_type="Win32" ;;
3961   *-*-mingw*)
3962     llvm_cv_target_os_type="MingW" ;;
3963   *-*-haiku*)
3964     llvm_cv_target_os_type="Haiku" ;;
3965   *-*-rtems*)
3966     llvm_cv_target_os_type="RTEMS" ;;
3967   *-*-nacl*)
3968     llvm_cv_target_os_type="NativeClient" ;;
3969   *-unknown-eabi*)
3970     llvm_cv_target_os_type="Freestanding" ;;
3971   *)
3972     llvm_cv_target_os_type="Unknown" ;;
3973 esac
3974 fi
3975 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3976 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3977
3978 if test "$llvm_cv_os_type" = "Unknown" ; then
3979   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3980 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3981    { (exit 1); exit 1; }; }
3982 fi
3983
3984 OS=$llvm_cv_os_type
3985
3986 HOST_OS=$llvm_cv_os_type
3987
3988 TARGET_OS=$llvm_cv_target_os_type
3989
3990
3991 LINKALL=$llvm_cv_link_all_option
3992
3993 NOLINKALL=$llvm_cv_no_link_all_option
3994
3995
3996 case $llvm_cv_platform_type in
3997   Unix)
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_UNIX 1
4001 _ACEOF
4002
4003     LLVM_ON_UNIX=1
4004
4005     LLVM_ON_WIN32=0
4006
4007     ;;
4008   Win32)
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define LLVM_ON_WIN32 1
4012 _ACEOF
4013
4014     LLVM_ON_UNIX=0
4015
4016     LLVM_ON_WIN32=1
4017
4018     ;;
4019 esac
4020
4021 { echo "$as_me:$LINENO: checking target architecture" >&5
4022 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4023 if test "${llvm_cv_target_arch+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   case $target in
4027   i?86-*)                 llvm_cv_target_arch="x86" ;;
4028   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4029   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4030   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4031   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4032   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4033   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4034   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4035   xcore-*)                llvm_cv_target_arch="XCore" ;;
4036   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4037   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4038   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4039   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4040   *)                      llvm_cv_target_arch="Unknown" ;;
4041 esac
4042 fi
4043 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4044 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045
4046 if test "$llvm_cv_target_arch" = "Unknown" ; then
4047   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4048 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4049 fi
4050
4051 case "$llvm_cv_target_arch" in
4052     x86)     LLVM_NATIVE_ARCH="X86" ;;
4053     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4054     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4055 esac
4056
4057 ARCH=$llvm_cv_target_arch
4058
4059
4060 case $host in
4061   i?86-*)                 host_arch="x86" ;;
4062   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4063   sparc*-*)               host_arch="Sparc" ;;
4064   powerpc*-*)             host_arch="PowerPC" ;;
4065   arm*-*)                 host_arch="ARM" ;;
4066   aarch64*-*)             host_arch="AArch64" ;;
4067   mips-* | mips64-*)      host_arch="Mips" ;;
4068   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4069   xcore-*)                host_arch="XCore" ;;
4070   msp430-*)               host_arch="MSP430" ;;
4071   hexagon-*)              host_arch="Hexagon" ;;
4072   s390x-*)                host_arch="SystemZ" ;;
4073   *)                      host_arch="Unknown" ;;
4074 esac
4075
4076 if test "$host_arch" = "Unknown" ; then
4077   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4079 fi
4080
4081 HOST_ARCH=$host_arch
4082
4083
4084
4085
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104   for ac_prog in grep ggrep; do
4105   for ac_exec_ext in '' $ac_executable_extensions; do
4106     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108     # Check for GNU ac_path_GREP and select it if it is found.
4109   # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4111 *GNU*)
4112   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4113 *)
4114   ac_count=0
4115   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4116   while :
4117   do
4118     cat "conftest.in" "conftest.in" >"conftest.tmp"
4119     mv "conftest.tmp" "conftest.in"
4120     cp "conftest.in" "conftest.nl"
4121     echo 'GREP' >> "conftest.nl"
4122     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124     ac_count=`expr $ac_count + 1`
4125     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126       # Best one so far, save it but keep looking for a better one
4127       ac_cv_path_GREP="$ac_path_GREP"
4128       ac_path_GREP_max=$ac_count
4129     fi
4130     # 10*(2^10) chars as input seems more than enough
4131     test $ac_count -gt 10 && break
4132   done
4133   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136
4137     $ac_path_GREP_found && break 3
4138   done
4139 done
4140
4141 done
4142 IFS=$as_save_IFS
4143
4144
4145 fi
4146
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151    { (exit 1); exit 1; }; }
4152 fi
4153
4154 else
4155   ac_cv_path_GREP=$GREP
4156 fi
4157
4158
4159 fi
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162  GREP="$ac_cv_path_GREP"
4163
4164
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168   echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171    then ac_cv_path_EGREP="$GREP -E"
4172    else
4173      # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_prog in egrep; do
4187   for ac_exec_ext in '' $ac_executable_extensions; do
4188     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190     # Check for GNU ac_path_EGREP and select it if it is found.
4191   # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195 *)
4196   ac_count=0
4197   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4198   while :
4199   do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     echo 'EGREP' >> "conftest.nl"
4204     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     ac_count=`expr $ac_count + 1`
4207     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208       # Best one so far, save it but keep looking for a better one
4209       ac_cv_path_EGREP="$ac_path_EGREP"
4210       ac_path_EGREP_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214   done
4215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4217
4218
4219     $ac_path_EGREP_found && break 3
4220   done
4221 done
4222
4223 done
4224 IFS=$as_save_IFS
4225
4226
4227 fi
4228
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233    { (exit 1); exit 1; }; }
4234 fi
4235
4236 else
4237   ac_cv_path_EGREP=$EGREP
4238 fi
4239
4240
4241    fi
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245  EGREP="$ac_cv_path_EGREP"
4246
4247
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259 #include <stdlib.h>
4260 #include <stdarg.h>
4261 #include <string.h>
4262 #include <float.h>
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_compile") 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } &&
4286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_header_stdc=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311         ac_cv_header_stdc=no
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315
4316 if test $ac_cv_header_stdc = yes; then
4317   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318   cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324 #include <string.h>
4325
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328   $EGREP "memchr" >/dev/null 2>&1; then
4329   :
4330 else
4331   ac_cv_header_stdc=no
4332 fi
4333 rm -f conftest*
4334
4335 fi
4336
4337 if test $ac_cv_header_stdc = yes; then
4338   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #include <stdlib.h>
4346
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349   $EGREP "free" >/dev/null 2>&1; then
4350   :
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4355
4356 fi
4357
4358 if test $ac_cv_header_stdc = yes; then
4359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360   if test "$cross_compiling" = yes; then
4361   :
4362 else
4363   cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <ctype.h>
4370 #include <stdlib.h>
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374 #else
4375 # define ISLOWER(c) \
4376                    (('a' <= (c) && (c) <= 'i') \
4377                      || ('j' <= (c) && (c) <= 'r') \
4378                      || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #endif
4381
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4383 int
4384 main ()
4385 {
4386   int i;
4387   for (i = 0; i < 256; i++)
4388     if (XOR (islower (i), ISLOWER (i))
4389         || toupper (i) != TOUPPER (i))
4390       return 2;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_link") 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405   { (case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   :
4415 else
4416   echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ( exit $ac_status )
4421 ac_cv_header_stdc=no
4422 fi
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 fi
4425
4426
4427 fi
4428 fi
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4432
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4435 _ACEOF
4436
4437 fi
4438
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450                   inttypes.h stdint.h unistd.h
4451 do
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 $ac_includes_default
4465
4466 #include <$ac_header>
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest.$ac_objext'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   eval "$as_ac_Header=yes"
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         eval "$as_ac_Header=no"
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513                { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516   cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4519
4520 fi
4521
4522 done
4523
4524
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4539
4540 int
4541 main ()
4542 {
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4544  bogus endian macros
4545 #endif
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_compile") 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566   { (case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }; }; then
4585   # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4594
4595 int
4596 main ()
4597 {
4598 #if BYTE_ORDER != BIG_ENDIAN
4599  not big endian
4600 #endif
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_compile") 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } &&
4620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621   { (case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626   (eval "$ac_try") 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; } &&
4630          { ac_try='test -s conftest.$ac_objext'
4631   { (case "(($ac_try" in
4632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633   *) ac_try_echo=$ac_try;;
4634 esac
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636   (eval "$ac_try") 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; }; then
4640   ac_cv_c_bigendian=yes
4641 else
4642   echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645         ac_cv_c_bigendian=no
4646 fi
4647
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653         # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655   # try to guess the endianness by grepping values into an object file
4656   ac_cv_c_bigendian=unknown
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4669 int
4670 main ()
4671 {
4672  _ascii (); _ebcdic ();
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692   { (case "(($ac_try" in
4693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694   *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697   (eval "$ac_try") 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; } &&
4701          { ac_try='test -s conftest.$ac_objext'
4702   { (case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_try") 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712   ac_cv_c_bigendian=yes
4713 fi
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715   if test "$ac_cv_c_bigendian" = unknown; then
4716     ac_cv_c_bigendian=no
4717   else
4718     # finding both strings is unlikely to happen, but who knows?
4719     ac_cv_c_bigendian=unknown
4720   fi
4721 fi
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 else
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 $ac_includes_default
4738 int
4739 main ()
4740 {
4741
4742   /* Are we little or big endian?  From Harbison&Steele.  */
4743   union
4744   {
4745     long int l;
4746     char c[sizeof (long int)];
4747   } u;
4748   u.l = 1;
4749   return u.c[sizeof (long int) - 1] == 1;
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4757 case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_link") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766   { (case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771   (eval "$ac_try") 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   ac_cv_c_bigendian=no
4776 else
4777   echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 ( exit $ac_status )
4782 ac_cv_c_bigendian=yes
4783 fi
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4785 fi
4786
4787
4788 fi
4789
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4795   yes)
4796     ENDIAN=big
4797  ;;
4798   no)
4799     ENDIAN=little
4800  ;;
4801   *)
4802     { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806    { (exit 1); exit 1; }; } ;;
4807 esac
4808
4809
4810 if test "$cross_compiling" = yes; then
4811   LLVM_CROSS_COMPILING=1
4812
4813
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820   ac_cv_build_exeext=.exe
4821 else
4822   ac_build_prefix=${build_alias}-
4823
4824   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test -n "$BUILD_CC"; then
4832   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861   if test -z "$BUILD_CC"; then
4862      # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$BUILD_CC"; then
4870   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_BUILD_CC="gcc"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899      if test -z "$BUILD_CC"; then
4900        # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   if test -n "$BUILD_CC"; then
4908   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4909 else
4910   ac_prog_rejected=no
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916   for ac_exec_ext in '' $ac_executable_extensions; do
4917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919        ac_prog_rejected=yes
4920        continue
4921      fi
4922     ac_cv_prog_BUILD_CC="cc"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 if test $ac_prog_rejected = yes; then
4931   # We found a bogon in the path, so make sure we never use it.
4932   set dummy $ac_cv_prog_BUILD_CC
4933   shift
4934   if test $# != 0; then
4935     # We chose a different compiler from the bogus one.
4936     # However, it has the same basename, so the bogon will be chosen
4937     # first if we set BUILD_CC to just the basename; use the full file name.
4938     shift
4939     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4940   fi
4941 fi
4942 fi
4943 fi
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4948 else
4949   { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4951 fi
4952
4953
4954      fi
4955   fi
4956   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958    { (exit 1); exit 1; }; }
4959   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4960   rm -f conftest*
4961   echo 'int main () { return 0; }' > conftest.$ac_ext
4962   ac_cv_build_exeext=
4963   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964   (eval $ac_build_link) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; then
4968     for file in conftest.*; do
4969       case $file in
4970       *.c | *.o | *.obj | *.dSYM) ;;
4971       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4972       esac
4973     done
4974   else
4975     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977    { (exit 1); exit 1; }; }
4978   fi
4979   rm -f conftest*
4980   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4981 fi
4982 fi
4983
4984 BUILD_EXEEXT=""
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4989
4990   ac_build_prefix=${build_alias}-
4991   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   if test -n "$BUILD_CXX"; then
4999   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5026
5027
5028   if test -z "$BUILD_CXX"; then
5029      # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   if test -n "$BUILD_CXX"; then
5037   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_BUILD_CXX="g++"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5060 else
5061   { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066      if test -z "$BUILD_CXX"; then
5067        # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   if test -n "$BUILD_CXX"; then
5075   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5076 else
5077   ac_prog_rejected=no
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086        ac_prog_rejected=yes
5087        continue
5088      fi
5089     ac_cv_prog_BUILD_CXX="c++"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 if test $ac_prog_rejected = yes; then
5098   # We found a bogon in the path, so make sure we never use it.
5099   set dummy $ac_cv_prog_BUILD_CXX
5100   shift
5101   if test $# != 0; then
5102     # We chose a different compiler from the bogus one.
5103     # However, it has the same basename, so the bogon will be chosen
5104     # first if we set BUILD_CXX to just the basename; use the full file name.
5105     shift
5106     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5107   fi
5108 fi
5109 fi
5110 fi
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5115 else
5116   { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5118 fi
5119
5120
5121      fi
5122   fi
5123 else
5124   LLVM_CROSS_COMPILING=0
5125
5126 fi
5127
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5129   cvsbuild="yes"
5130   optimize="no"
5131   CVSBUILD=CVSBUILD=1
5132
5133 else
5134   cvsbuild="no"
5135   optimize="yes"
5136 fi
5137
5138
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141   enableval=$enable_libcpp;
5142 else
5143   enableval=default
5144 fi
5145
5146 case "$enableval" in
5147   yes) ENABLE_LIBCPP=1
5148  ;;
5149   no)  ENABLE_LIBCPP=0
5150  ;;
5151   default) ENABLE_LIBCPP=0
5152 ;;
5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5157
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160   enableval=$enable_cxx11;
5161 else
5162   enableval=default
5163 fi
5164
5165 case "$enableval" in
5166   yes) ENABLE_CXX11=1
5167  ;;
5168   no)  ENABLE_CXX11=0
5169  ;;
5170   default) ENABLE_CXX11=0
5171 ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5176
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179   enableval=$enable_split_dwarf;
5180 else
5181   enableval=default
5182 fi
5183
5184 case "$enableval" in
5185   yes) ENABLE_SPLIT_DWARF=1
5186  ;;
5187   no)  ENABLE_SPLIT_DWARF=0
5188  ;;
5189   default) ENABLE_SPLIT_DWARF=0
5190 ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5195
5196 clang_arcmt="yes"
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5200 else
5201   enableval="yes"
5202 fi
5203
5204 case "$enableval" in
5205   yes) ENABLE_CLANG_ARCMT=1
5206  ;;
5207   no)  ENABLE_CLANG_ARCMT=0
5208  ;;
5209   default) ENABLE_CLANG_ARCMT=1
5210 ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5220 else
5221   enableval="yes"
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5226  ;;
5227   no)
5228     if test ${clang_arcmt} != "no" ; then
5229       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
5230 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
5231    { (exit 1); exit 1; }; }
5232     fi
5233     ENABLE_CLANG_STATIC_ANALYZER=0
5234
5235     ;;
5236   default) ENABLE_CLANG_STATIC_ANALYZER=1
5237 ;;
5238   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5239 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5240    { (exit 1); exit 1; }; } ;;
5241 esac
5242
5243 # Check whether --enable-clang-rewriter was given.
5244 if test "${enable_clang_rewriter+set}" = set; then
5245   enableval=$enable_clang_rewriter;
5246 else
5247   enableval="yes"
5248 fi
5249
5250 case "$enableval" in
5251   yes) ENABLE_CLANG_REWRITER=1
5252  ;;
5253   no)
5254     if test ${clang_arcmt} != "no" ; then
5255       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5256 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5257    { (exit 1); exit 1; }; }
5258     fi
5259     if test ${clang_static_analyzer} != "no" ; then
5260       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5261 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5262    { (exit 1); exit 1; }; }
5263     fi
5264     ENABLE_CLANG_REWRITER=0
5265
5266     ;;
5267   default) ENABLE_CLANG_REWRITER=1
5268 ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 # Check whether --enable-optimized was given.
5275 if test "${enable_optimized+set}" = set; then
5276   enableval=$enable_optimized;
5277 else
5278   enableval=$optimize
5279 fi
5280
5281 if test ${enableval} = "no" ; then
5282   ENABLE_OPTIMIZED=
5283
5284 else
5285   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5286
5287 fi
5288
5289 # Check whether --enable-profiling was given.
5290 if test "${enable_profiling+set}" = set; then
5291   enableval=$enable_profiling;
5292 else
5293   enableval="no"
5294 fi
5295
5296 if test ${enableval} = "no" ; then
5297   ENABLE_PROFILING=
5298
5299 else
5300   ENABLE_PROFILING=ENABLE_PROFILING=1
5301
5302 fi
5303
5304 # Check whether --enable-assertions was given.
5305 if test "${enable_assertions+set}" = set; then
5306   enableval=$enable_assertions;
5307 else
5308   enableval="yes"
5309 fi
5310
5311 if test ${enableval} = "yes" ; then
5312   DISABLE_ASSERTIONS=
5313
5314 else
5315   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5316
5317 fi
5318
5319 # Check whether --enable-werror was given.
5320 if test "${enable_werror+set}" = set; then
5321   enableval=$enable_werror;
5322 else
5323   enableval="no"
5324 fi
5325
5326 case "$enableval" in
5327   yes) ENABLE_WERROR=1
5328  ;;
5329   no)  ENABLE_WERROR=0
5330  ;;
5331   default) ENABLE_WERROR=0
5332 ;;
5333   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5334 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5335    { (exit 1); exit 1; }; } ;;
5336 esac
5337
5338 # Check whether --enable-expensive-checks was given.
5339 if test "${enable_expensive_checks+set}" = set; then
5340   enableval=$enable_expensive_checks;
5341 else
5342   enableval="no"
5343 fi
5344
5345 if test ${enableval} = "yes" ; then
5346   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5347
5348   EXPENSIVE_CHECKS=yes
5349
5350 else
5351   ENABLE_EXPENSIVE_CHECKS=
5352
5353   EXPENSIVE_CHECKS=no
5354
5355 fi
5356
5357 # Check whether --enable-debug-runtime was given.
5358 if test "${enable_debug_runtime+set}" = set; then
5359   enableval=$enable_debug_runtime;
5360 else
5361   enableval=no
5362 fi
5363
5364 if test ${enableval} = "no" ; then
5365   DEBUG_RUNTIME=
5366
5367 else
5368   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5369
5370 fi
5371
5372 # Check whether --enable-debug-symbols was given.
5373 if test "${enable_debug_symbols+set}" = set; then
5374   enableval=$enable_debug_symbols;
5375 else
5376   enableval=no
5377 fi
5378
5379 if test ${enableval} = "no" ; then
5380   DEBUG_SYMBOLS=
5381
5382 else
5383   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5384
5385 fi
5386
5387 # Check whether --enable-keep-symbols was given.
5388 if test "${enable_keep_symbols+set}" = set; then
5389   enableval=$enable_keep_symbols;
5390 else
5391   enableval=no
5392 fi
5393
5394 if test ${enableval} = "no" ; then
5395   KEEP_SYMBOLS=
5396
5397 else
5398   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5399
5400 fi
5401
5402 # Check whether --enable-jit was given.
5403 if test "${enable_jit+set}" = set; then
5404   enableval=$enable_jit;
5405 else
5406   enableval=default
5407 fi
5408
5409 if test ${enableval} = "no"
5410 then
5411   JIT=
5412
5413 else
5414   case "$llvm_cv_target_arch" in
5415     x86)         TARGET_HAS_JIT=1
5416  ;;
5417     Sparc)       TARGET_HAS_JIT=0
5418  ;;
5419     PowerPC)     TARGET_HAS_JIT=1
5420  ;;
5421     x86_64)      TARGET_HAS_JIT=1
5422  ;;
5423     ARM)         TARGET_HAS_JIT=1
5424  ;;
5425     AArch64)     TARGET_HAS_JIT=0
5426  ;;
5427     Mips)        TARGET_HAS_JIT=1
5428  ;;
5429     XCore)       TARGET_HAS_JIT=0
5430  ;;
5431     MSP430)      TARGET_HAS_JIT=0
5432  ;;
5433     Hexagon)     TARGET_HAS_JIT=0
5434  ;;
5435     NVPTX)       TARGET_HAS_JIT=0
5436  ;;
5437     SystemZ)     TARGET_HAS_JIT=1
5438  ;;
5439     *)           TARGET_HAS_JIT=0
5440  ;;
5441   esac
5442 fi
5443
5444 # Check whether --enable-docs was given.
5445 if test "${enable_docs+set}" = set; then
5446   enableval=$enable_docs;
5447 else
5448   enableval=default
5449 fi
5450
5451 case "$enableval" in
5452   yes) ENABLE_DOCS=1
5453  ;;
5454   no)  ENABLE_DOCS=0
5455  ;;
5456   default) ENABLE_DOCS=1
5457  ;;
5458   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5459 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5460    { (exit 1); exit 1; }; } ;;
5461 esac
5462
5463 # Check whether --enable-doxygen was given.
5464 if test "${enable_doxygen+set}" = set; then
5465   enableval=$enable_doxygen;
5466 else
5467   enableval=default
5468 fi
5469
5470 case "$enableval" in
5471   yes) ENABLE_DOXYGEN=1
5472  ;;
5473   no)  ENABLE_DOXYGEN=0
5474  ;;
5475   default) ENABLE_DOXYGEN=0
5476  ;;
5477   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5478 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5479    { (exit 1); exit 1; }; } ;;
5480 esac
5481
5482 # Check whether --enable-threads was given.
5483 if test "${enable_threads+set}" = set; then
5484   enableval=$enable_threads;
5485 else
5486   enableval=default
5487 fi
5488
5489 case "$enableval" in
5490   yes) LLVM_ENABLE_THREADS=1
5491  ;;
5492   no)  LLVM_ENABLE_THREADS=0
5493  ;;
5494   default) LLVM_ENABLE_THREADS=1
5495  ;;
5496   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5497 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5498    { (exit 1); exit 1; }; } ;;
5499 esac
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5503 _ACEOF
5504
5505
5506 # Check whether --enable-pthreads was given.
5507 if test "${enable_pthreads+set}" = set; then
5508   enableval=$enable_pthreads;
5509 else
5510   enableval=default
5511 fi
5512
5513 case "$enableval" in
5514   yes) ENABLE_PTHREADS=1
5515  ;;
5516   no)  ENABLE_PTHREADS=0
5517  ;;
5518   default) ENABLE_PTHREADS=1
5519  ;;
5520   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5521 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5522    { (exit 1); exit 1; }; } ;;
5523 esac
5524
5525 # Check whether --enable-zlib was given.
5526 if test "${enable_zlib+set}" = set; then
5527   enableval=$enable_zlib;
5528 else
5529   enableval=default
5530 fi
5531
5532 case "$enableval" in
5533   yes) LLVM_ENABLE_ZLIB=1
5534  ;;
5535   no)  LLVM_ENABLE_ZLIB=0
5536  ;;
5537   default) LLVM_ENABLE_ZLIB=1
5538  ;;
5539   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5540 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5541    { (exit 1); exit 1; }; } ;;
5542 esac
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5546 _ACEOF
5547
5548
5549 # Check whether --enable-pic was given.
5550 if test "${enable_pic+set}" = set; then
5551   enableval=$enable_pic;
5552 else
5553   enableval=default
5554 fi
5555
5556 case "$enableval" in
5557   yes) ENABLE_PIC=1
5558  ;;
5559   no)  ENABLE_PIC=0
5560  ;;
5561   default) ENABLE_PIC=1
5562  ;;
5563   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5564 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5565    { (exit 1); exit 1; }; } ;;
5566 esac
5567
5568 cat >>confdefs.h <<_ACEOF
5569 #define ENABLE_PIC $ENABLE_PIC
5570 _ACEOF
5571
5572
5573 # Check whether --enable-shared was given.
5574 if test "${enable_shared+set}" = set; then
5575   enableval=$enable_shared;
5576 else
5577   enableval=default
5578 fi
5579
5580 case "$enableval" in
5581   yes) ENABLE_SHARED=1
5582  ;;
5583   no)  ENABLE_SHARED=0
5584  ;;
5585   default) ENABLE_SHARED=0
5586  ;;
5587   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5588 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5589    { (exit 1); exit 1; }; } ;;
5590 esac
5591
5592 # Check whether --enable-embed-stdcxx was given.
5593 if test "${enable_embed_stdcxx+set}" = set; then
5594   enableval=$enable_embed_stdcxx;
5595 else
5596   enableval=default
5597 fi
5598
5599 case "$enableval" in
5600   yes) ENABLE_EMBED_STDCXX=1
5601  ;;
5602   no)  ENABLE_EMBED_STDCXX=0
5603  ;;
5604   default) ENABLE_EMBED_STDCXX=0
5605  ;;
5606   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5607 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5608    { (exit 1); exit 1; }; } ;;
5609 esac
5610
5611 # Check whether --enable-timestamps was given.
5612 if test "${enable_timestamps+set}" = set; then
5613   enableval=$enable_timestamps;
5614 else
5615   enableval=default
5616 fi
5617
5618 case "$enableval" in
5619   yes) ENABLE_TIMESTAMPS=1
5620  ;;
5621   no)  ENABLE_TIMESTAMPS=0
5622  ;;
5623   default) ENABLE_TIMESTAMPS=1
5624  ;;
5625   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5626 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5627    { (exit 1); exit 1; }; } ;;
5628 esac
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5632 _ACEOF
5633
5634
5635
5636 # Check whether --enable-backtraces was given.
5637 if test "${enable_backtraces+set}" = set; then
5638   enableval=$enable_backtraces;
5639 else
5640   enableval=default
5641 fi
5642
5643 case "$enableval" in
5644   yes) ENABLE_BACKTRACES=1
5645  ;;
5646   no)  ENABLE_BACKTRACES=0
5647  ;;
5648   default) ENABLE_BACKTRACES=1
5649  ;;
5650   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5651 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5652    { (exit 1); exit 1; }; } ;;
5653 esac
5654
5655 cat >>confdefs.h <<_ACEOF
5656 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5657 _ACEOF
5658
5659
5660 TARGETS_TO_BUILD=""
5661 # Check whether --enable-targets was given.
5662 if test "${enable_targets+set}" = set; then
5663   enableval=$enable_targets;
5664 else
5665   enableval=all
5666 fi
5667
5668 if test "$enableval" = host-only ; then
5669   enableval=host
5670 fi
5671 case "$enableval" in
5672   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5673   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5674       case "$a_target" in
5675         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5676         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5677         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5678         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5679         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5680         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5681         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5682         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5683         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5684         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5685         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5686         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5687         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5688         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5689         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5690         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5691         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5692         host) case "$llvm_cv_target_arch" in
5693             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5695             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5696             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5697             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5698             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5699             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5700             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5701             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5702             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5703             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5704             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5705             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5706 echo "$as_me: error: Can not set target to build" >&2;}
5707    { (exit 1); exit 1; }; } ;;
5708           esac ;;
5709         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5710 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5711    { (exit 1); exit 1; }; } ;;
5712       esac
5713   done
5714   ;;
5715 esac
5716
5717 # Check whether --enable-experimental-targets was given.
5718 if test "${enable_experimental_targets+set}" = set; then
5719   enableval=$enable_experimental_targets;
5720 else
5721   enableval=disable
5722 fi
5723
5724
5725 if test ${enableval} != "disable"
5726 then
5727   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5728 fi
5729
5730 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5731
5732
5733 for a_target in $TARGETS_TO_BUILD; do
5734   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5735
5736 cat >>confdefs.h <<_ACEOF
5737 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5738 _ACEOF
5739
5740     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5741     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5742     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5743     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5744     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5745       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5746     fi
5747     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5749     fi
5750
5751 cat >>confdefs.h <<_ACEOF
5752 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5753 _ACEOF
5754
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5758 _ACEOF
5759
5760
5761 cat >>confdefs.h <<_ACEOF
5762 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5763 _ACEOF
5764
5765
5766 cat >>confdefs.h <<_ACEOF
5767 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5768 _ACEOF
5769
5770     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5774 _ACEOF
5775
5776     fi
5777     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5778
5779 cat >>confdefs.h <<_ACEOF
5780 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5781 _ACEOF
5782
5783     fi
5784   fi
5785 done
5786
5787 LLVM_ENUM_TARGETS=""
5788 LLVM_ENUM_ASM_PRINTERS=""
5789 LLVM_ENUM_ASM_PARSERS=""
5790 LLVM_ENUM_DISASSEMBLERS=""
5791 for target_to_build in $TARGETS_TO_BUILD; do
5792   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5793   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5794     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5795   fi
5796   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5797     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5798   fi
5799   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5800     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5801   fi
5802 done
5803
5804
5805
5806
5807
5808
5809 # Check whether --with-optimize-option was given.
5810 if test "${with_optimize_option+set}" = set; then
5811   withval=$with_optimize_option;
5812 else
5813   withval=default
5814 fi
5815
5816 { echo "$as_me:$LINENO: checking optimization flags" >&5
5817 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5818 case "$withval" in
5819   default)
5820     case "$llvm_cv_os_type" in
5821     FreeBSD) optimize_option=-O2 ;;
5822     MingW) optimize_option=-O2 ;;
5823     *)     optimize_option=-O3 ;;
5824     esac ;;
5825   *) optimize_option="$withval" ;;
5826 esac
5827 OPTIMIZE_OPTION=$optimize_option
5828
5829 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5830 echo "${ECHO_T}$optimize_option" >&6; }
5831
5832
5833 # Check whether --with-extra-options was given.
5834 if test "${with_extra_options+set}" = set; then
5835   withval=$with_extra_options;
5836 else
5837   withval=default
5838 fi
5839
5840 case "$withval" in
5841   default) EXTRA_OPTIONS= ;;
5842   *) EXTRA_OPTIONS=$withval ;;
5843 esac
5844 EXTRA_OPTIONS=$EXTRA_OPTIONS
5845
5846
5847
5848 # Check whether --with-extra-ld-options was given.
5849 if test "${with_extra_ld_options+set}" = set; then
5850   withval=$with_extra_ld_options;
5851 else
5852   withval=default
5853 fi
5854
5855 case "$withval" in
5856   default) EXTRA_LD_OPTIONS= ;;
5857   *) EXTRA_LD_OPTIONS=$withval ;;
5858 esac
5859 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5860
5861
5862 # Check whether --enable-bindings was given.
5863 if test "${enable_bindings+set}" = set; then
5864   enableval=$enable_bindings;
5865 else
5866   enableval=default
5867 fi
5868
5869 BINDINGS_TO_BUILD=""
5870 case "$enableval" in
5871   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5872   all ) BINDINGS_TO_BUILD="ocaml" ;;
5873   none | no) BINDINGS_TO_BUILD="" ;;
5874   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5875       case "$a_binding" in
5876         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5877         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5878 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5879    { (exit 1); exit 1; }; } ;;
5880       esac
5881   done
5882   ;;
5883 esac
5884
5885
5886 # Check whether --with-ocaml-libdir was given.
5887 if test "${with_ocaml_libdir+set}" = set; then
5888   withval=$with_ocaml_libdir;
5889 else
5890   withval=auto
5891 fi
5892
5893 case "$withval" in
5894   auto) with_ocaml_libdir="$withval" ;;
5895   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5896   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5897 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5898    { (exit 1); exit 1; }; } ;;
5899 esac
5900
5901
5902 # Check whether --with-clang-srcdir was given.
5903 if test "${with_clang_srcdir+set}" = set; then
5904   withval=$with_clang_srcdir;
5905 else
5906   withval="-"
5907 fi
5908
5909 case "$withval" in
5910   -) clang_src_root="" ;;
5911   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5912   *) clang_src_root="$ac_pwd/$withval" ;;
5913 esac
5914 CLANG_SRC_ROOT=$clang_src_root
5915
5916
5917
5918 # Check whether --with-clang-resource-dir was given.
5919 if test "${with_clang_resource_dir+set}" = set; then
5920   withval=$with_clang_resource_dir;
5921 else
5922   withval=""
5923 fi
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define CLANG_RESOURCE_DIR "$withval"
5928 _ACEOF
5929
5930
5931
5932 # Check whether --with-c-include-dirs was given.
5933 if test "${with_c_include_dirs+set}" = set; then
5934   withval=$with_c_include_dirs;
5935 else
5936   withval=""
5937 fi
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define C_INCLUDE_DIRS "$withval"
5942 _ACEOF
5943
5944
5945 # Clang normally uses the system c++ headers and libraries. With this option,
5946 # clang will use the ones provided by a gcc installation instead. This option should
5947 # be passed the same value that was used with --prefix when configuring gcc.
5948
5949 # Check whether --with-gcc-toolchain was given.
5950 if test "${with_gcc_toolchain+set}" = set; then
5951   withval=$with_gcc_toolchain;
5952 else
5953   withval=""
5954 fi
5955
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define GCC_INSTALL_PREFIX "$withval"
5959 _ACEOF
5960
5961
5962
5963 # Check whether --with-default-sysroot was given.
5964 if test "${with_default_sysroot+set}" = set; then
5965   withval=$with_default_sysroot;
5966 else
5967   withval=""
5968 fi
5969
5970
5971 cat >>confdefs.h <<_ACEOF
5972 #define DEFAULT_SYSROOT "$withval"
5973 _ACEOF
5974
5975
5976
5977 # Check whether --with-binutils-include was given.
5978 if test "${with_binutils_include+set}" = set; then
5979   withval=$with_binutils_include;
5980 else
5981   withval=default
5982 fi
5983
5984 case "$withval" in
5985   default) WITH_BINUTILS_INCDIR=default ;;
5986   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5987   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5988 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5989    { (exit 1); exit 1; }; } ;;
5990 esac
5991 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5992   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5993
5994   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5995      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5996      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5997 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5998    { (exit 1); exit 1; }; };
5999   fi
6000 fi
6001
6002
6003 # Check whether --with-bug-report-url was given.
6004 if test "${with_bug_report_url+set}" = set; then
6005   withval=$with_bug_report_url;
6006 else
6007   withval="http://llvm.org/bugs/"
6008 fi
6009
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define BUG_REPORT_URL "$withval"
6013 _ACEOF
6014
6015
6016 # Check whether --enable-terminfo was given.
6017 if test "${enable_terminfo+set}" = set; then
6018   enableval=$enable_terminfo; case "$enableval" in
6019     yes) llvm_cv_enable_terminfo="yes" ;;
6020     no)  llvm_cv_enable_terminfo="no"  ;;
6021     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6022 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6023    { (exit 1); exit 1; }; } ;;
6024   esac
6025 else
6026   llvm_cv_enable_terminfo="yes"
6027 fi
6028
6029
6030 # Check whether --enable-libffi was given.
6031 if test "${enable_libffi+set}" = set; then
6032   enableval=$enable_libffi; case "$enableval" in
6033     yes) llvm_cv_enable_libffi="yes" ;;
6034     no)  llvm_cv_enable_libffi="no"  ;;
6035     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6036 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6037    { (exit 1); exit 1; }; } ;;
6038   esac
6039 else
6040   llvm_cv_enable_libffi=no
6041 fi
6042
6043
6044
6045 # Check whether --with-internal-prefix was given.
6046 if test "${with_internal_prefix+set}" = set; then
6047   withval=$with_internal_prefix;
6048 else
6049   withval=""
6050 fi
6051
6052 INTERNAL_PREFIX=$withval
6053
6054
6055
6056 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6057 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6058 if test "${lt_cv_path_NM+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   if test -n "$NM"; then
6062   # Let the user override the test.
6063   lt_cv_path_NM="$NM"
6064 else
6065   lt_nm_to_check="${ac_tool_prefix}nm"
6066   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6067     lt_nm_to_check="$lt_nm_to_check nm"
6068   fi
6069   for lt_tmp_nm in $lt_nm_to_check; do
6070     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6071     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6072       IFS="$lt_save_ifs"
6073       test -z "$ac_dir" && ac_dir=.
6074       tmp_nm="$ac_dir/$lt_tmp_nm"
6075       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6076         # Check to see if the nm accepts a BSD-compat flag.
6077         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6078         #   nm: unknown option "B" ignored
6079         # Tru64's nm complains that /dev/null is an invalid object file
6080         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6081         */dev/null* | *'Invalid file or object type'*)
6082           lt_cv_path_NM="$tmp_nm -B"
6083           break
6084           ;;
6085         *)
6086           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6087           */dev/null*)
6088             lt_cv_path_NM="$tmp_nm -p"
6089             break
6090             ;;
6091           *)
6092             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6093             continue # so that we can try to find one that supports BSD flags
6094             ;;
6095           esac
6096           ;;
6097         esac
6098       fi
6099     done
6100     IFS="$lt_save_ifs"
6101   done
6102   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6103 fi
6104 fi
6105 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6106 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6107 NM="$lt_cv_path_NM"
6108
6109
6110
6111 { echo "$as_me:$LINENO: checking for GNU make" >&5
6112 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6113 if test "${llvm_cv_gnu_make_command+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   llvm_cv_gnu_make_command=''
6117  for a in "$MAKE" make gmake gnumake ; do
6118   if test -z "$a" ; then continue ; fi ;
6119   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6120   then
6121    llvm_cv_gnu_make_command=$a ;
6122    break;
6123   fi
6124  done
6125 fi
6126 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6127 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6128  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6129    ifGNUmake='' ;
6130  else
6131    ifGNUmake='#' ;
6132    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6133 echo "${ECHO_T}\"Not found\"" >&6; };
6134  fi
6135
6136
6137 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6139 LN_S=$as_ln_s
6140 if test "$LN_S" = "ln -s"; then
6141   { echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6; }
6143 else
6144   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6145 echo "${ECHO_T}no, using $LN_S" >&6; }
6146 fi
6147
6148 # Extract the first word of "cmp", so it can be a program name with args.
6149 set dummy cmp; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_path_CMP+set}" = set; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   case $CMP in
6156   [\\/]* | ?:[\\/]*)
6157   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6158   ;;
6159   *)
6160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165   for ac_exec_ext in '' $ac_executable_extensions; do
6166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6176   ;;
6177 esac
6178 fi
6179 CMP=$ac_cv_path_CMP
6180 if test -n "$CMP"; then
6181   { echo "$as_me:$LINENO: result: $CMP" >&5
6182 echo "${ECHO_T}$CMP" >&6; }
6183 else
6184   { echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6; }
6186 fi
6187
6188
6189 # Extract the first word of "cp", so it can be a program name with args.
6190 set dummy cp; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_CP+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   case $CP in
6197   [\\/]* | ?:[\\/]*)
6198   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6199   ;;
6200   *)
6201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6217   ;;
6218 esac
6219 fi
6220 CP=$ac_cv_path_CP
6221 if test -n "$CP"; then
6222   { echo "$as_me:$LINENO: result: $CP" >&5
6223 echo "${ECHO_T}$CP" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228
6229
6230 # Extract the first word of "date", so it can be a program name with args.
6231 set dummy date; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_DATE+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   case $DATE in
6238   [\\/]* | ?:[\\/]*)
6239   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6240   ;;
6241   *)
6242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6258   ;;
6259 esac
6260 fi
6261 DATE=$ac_cv_path_DATE
6262 if test -n "$DATE"; then
6263   { echo "$as_me:$LINENO: result: $DATE" >&5
6264 echo "${ECHO_T}$DATE" >&6; }
6265 else
6266   { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6268 fi
6269
6270
6271 # Extract the first word of "find", so it can be a program name with args.
6272 set dummy find; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_FIND+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   case $FIND in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6299   ;;
6300 esac
6301 fi
6302 FIND=$ac_cv_path_FIND
6303 if test -n "$FIND"; then
6304   { echo "$as_me:$LINENO: result: $FIND" >&5
6305 echo "${ECHO_T}$FIND" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312 # Extract the first word of "grep", so it can be a program name with args.
6313 set dummy grep; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_GREP+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   case $GREP in
6320   [\\/]* | ?:[\\/]*)
6321   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6322   ;;
6323   *)
6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329   for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6340   ;;
6341 esac
6342 fi
6343 GREP=$ac_cv_path_GREP
6344 if test -n "$GREP"; then
6345   { echo "$as_me:$LINENO: result: $GREP" >&5
6346 echo "${ECHO_T}$GREP" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353 # Extract the first word of "mkdir", so it can be a program name with args.
6354 set dummy mkdir; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_MKDIR+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   case $MKDIR in
6361   [\\/]* | ?:[\\/]*)
6362   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6363   ;;
6364   *)
6365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370   for ac_exec_ext in '' $ac_executable_extensions; do
6371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6381   ;;
6382 esac
6383 fi
6384 MKDIR=$ac_cv_path_MKDIR
6385 if test -n "$MKDIR"; then
6386   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6387 echo "${ECHO_T}$MKDIR" >&6; }
6388 else
6389   { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 fi
6392
6393
6394 # Extract the first word of "mv", so it can be a program name with args.
6395 set dummy mv; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_MV+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   case $MV in
6402   [\\/]* | ?:[\\/]*)
6403   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6404   ;;
6405   *)
6406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411   for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6422   ;;
6423 esac
6424 fi
6425 MV=$ac_cv_path_MV
6426 if test -n "$MV"; then
6427   { echo "$as_me:$LINENO: result: $MV" >&5
6428 echo "${ECHO_T}$MV" >&6; }
6429 else
6430   { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6432 fi
6433
6434
6435 if test -n "$ac_tool_prefix"; then
6436   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_RANLIB+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   if test -n "$RANLIB"; then
6444   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451   for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 RANLIB=$ac_cv_prog_RANLIB
6464 if test -n "$RANLIB"; then
6465   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6466 echo "${ECHO_T}$RANLIB" >&6; }
6467 else
6468   { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_RANLIB"; then
6475   ac_ct_RANLIB=$RANLIB
6476   # Extract the first word of "ranlib", so it can be a program name with args.
6477 set dummy ranlib; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   if test -n "$ac_ct_RANLIB"; then
6484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_ac_ct_RANLIB="ranlib"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6504 if test -n "$ac_ct_RANLIB"; then
6505   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6506 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6510 fi
6511
6512   if test "x$ac_ct_RANLIB" = x; then
6513     RANLIB=":"
6514   else
6515     case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet.  If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&5
6520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521 whose name does not start with the host triplet.  If you think this
6522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525     RANLIB=$ac_ct_RANLIB
6526   fi
6527 else
6528   RANLIB="$ac_cv_prog_RANLIB"
6529 fi
6530
6531 if test -n "$ac_tool_prefix"; then
6532   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}ar; ac_word=$2
6534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6536 if test "${ac_cv_prog_AR+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   if test -n "$AR"; then
6540   ac_cv_prog_AR="$AR" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547   for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_AR="${ac_tool_prefix}ar"
6550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 AR=$ac_cv_prog_AR
6560 if test -n "$AR"; then
6561   { echo "$as_me:$LINENO: result: $AR" >&5
6562 echo "${ECHO_T}$AR" >&6; }
6563 else
6564   { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_AR"; then
6571   ac_ct_AR=$AR
6572   # Extract the first word of "ar", so it can be a program name with args.
6573 set dummy ar; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   if test -n "$ac_ct_AR"; then
6580   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_ac_ct_AR="ar"
6590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600 if test -n "$ac_ct_AR"; then
6601   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6602 echo "${ECHO_T}$ac_ct_AR" >&6; }
6603 else
6604   { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6606 fi
6607
6608   if test "x$ac_ct_AR" = x; then
6609     AR="false"
6610   else
6611     case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet.  If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&5
6616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet.  If you think this
6618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6619 ac_tool_warned=yes ;;
6620 esac
6621     AR=$ac_ct_AR
6622   fi
6623 else
6624   AR="$ac_cv_prog_AR"
6625 fi
6626
6627 # Extract the first word of "rm", so it can be a program name with args.
6628 set dummy rm; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_path_RM+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634   case $RM in
6635   [\\/]* | ?:[\\/]*)
6636   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6637   ;;
6638   *)
6639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642   IFS=$as_save_IFS
6643   test -z "$as_dir" && as_dir=.
6644   for ac_exec_ext in '' $ac_executable_extensions; do
6645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648     break 2
6649   fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6655   ;;
6656 esac
6657 fi
6658 RM=$ac_cv_path_RM
6659 if test -n "$RM"; then
6660   { echo "$as_me:$LINENO: result: $RM" >&5
6661 echo "${ECHO_T}$RM" >&6; }
6662 else
6663   { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6665 fi
6666
6667
6668 # Extract the first word of "sed", so it can be a program name with args.
6669 set dummy sed; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_SED+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   case $SED in
6676   [\\/]* | ?:[\\/]*)
6677   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6678   ;;
6679   *)
6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685   for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6696   ;;
6697 esac
6698 fi
6699 SED=$ac_cv_path_SED
6700 if test -n "$SED"; then
6701   { echo "$as_me:$LINENO: result: $SED" >&5
6702 echo "${ECHO_T}$SED" >&6; }
6703 else
6704   { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6706 fi
6707
6708
6709 # Extract the first word of "tar", so it can be a program name with args.
6710 set dummy tar; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_TAR+set}" = set; then
6714   echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716   case $TAR in
6717   [\\/]* | ?:[\\/]*)
6718   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6719   ;;
6720   *)
6721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724   IFS=$as_save_IFS
6725   test -z "$as_dir" && as_dir=.
6726   for ac_exec_ext in '' $ac_executable_extensions; do
6727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730     break 2
6731   fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6737   ;;
6738 esac
6739 fi
6740 TAR=$ac_cv_path_TAR
6741 if test -n "$TAR"; then
6742   { echo "$as_me:$LINENO: result: $TAR" >&5
6743 echo "${ECHO_T}$TAR" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749
6750 # Extract the first word of "pwd", so it can be a program name with args.
6751 set dummy pwd; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_path_BINPWD+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   case $BINPWD in
6758   [\\/]* | ?:[\\/]*)
6759   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6760   ;;
6761   *)
6762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767   for ac_exec_ext in '' $ac_executable_extensions; do
6768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6769     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6778   ;;
6779 esac
6780 fi
6781 BINPWD=$ac_cv_path_BINPWD
6782 if test -n "$BINPWD"; then
6783   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6784 echo "${ECHO_T}$BINPWD" >&6; }
6785 else
6786   { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6788 fi
6789
6790
6791
6792 # Extract the first word of "Graphviz", so it can be a program name with args.
6793 set dummy Graphviz; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   case $GRAPHVIZ in
6800   [\\/]* | ?:[\\/]*)
6801   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6802   ;;
6803   *)
6804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6820   ;;
6821 esac
6822 fi
6823 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6824 if test -n "$GRAPHVIZ"; then
6825   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6826 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832
6833 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_GRAPHVIZ 1
6837 _ACEOF
6838
6839     if test "$llvm_cv_os_type" = "MingW" ; then
6840     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841   fi
6842
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6845 _ACEOF
6846
6847 fi
6848 # Extract the first word of "dot", so it can be a program name with args.
6849 set dummy dot; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_DOT+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   case $DOT in
6856   [\\/]* | ?:[\\/]*)
6857   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6858   ;;
6859   *)
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6876   ;;
6877 esac
6878 fi
6879 DOT=$ac_cv_path_DOT
6880 if test -n "$DOT"; then
6881   { echo "$as_me:$LINENO: result: $DOT" >&5
6882 echo "${ECHO_T}$DOT" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 if test "$DOT" != "echo dot" ; then
6890
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_DOT 1
6893 _ACEOF
6894
6895     if test "$llvm_cv_os_type" = "MingW" ; then
6896     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6897   fi
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6901 _ACEOF
6902
6903 fi
6904 # Extract the first word of "fdp", so it can be a program name with args.
6905 set dummy fdp; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_FDP+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   case $FDP in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6932   ;;
6933 esac
6934 fi
6935 FDP=$ac_cv_path_FDP
6936 if test -n "$FDP"; then
6937   { echo "$as_me:$LINENO: result: $FDP" >&5
6938 echo "${ECHO_T}$FDP" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 if test "$FDP" != "echo fdp" ; then
6946
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_FDP 1
6949 _ACEOF
6950
6951     if test "$llvm_cv_os_type" = "MingW" ; then
6952     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6953   fi
6954
6955 cat >>confdefs.h <<_ACEOF
6956 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6957 _ACEOF
6958
6959 fi
6960 # Extract the first word of "neato", so it can be a program name with args.
6961 set dummy neato; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_NEATO+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   case $NEATO in
6968   [\\/]* | ?:[\\/]*)
6969   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6970   ;;
6971   *)
6972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977   for ac_exec_ext in '' $ac_executable_extensions; do
6978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6988   ;;
6989 esac
6990 fi
6991 NEATO=$ac_cv_path_NEATO
6992 if test -n "$NEATO"; then
6993   { echo "$as_me:$LINENO: result: $NEATO" >&5
6994 echo "${ECHO_T}$NEATO" >&6; }
6995 else
6996   { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
6998 fi
6999
7000
7001 if test "$NEATO" != "echo neato" ; then
7002
7003 cat >>confdefs.h <<\_ACEOF
7004 #define HAVE_NEATO 1
7005 _ACEOF
7006
7007     if test "$llvm_cv_os_type" = "MingW" ; then
7008     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7009   fi
7010
7011 cat >>confdefs.h <<_ACEOF
7012 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7013 _ACEOF
7014
7015 fi
7016 # Extract the first word of "twopi", so it can be a program name with args.
7017 set dummy twopi; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_TWOPI+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   case $TWOPI in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7044   ;;
7045 esac
7046 fi
7047 TWOPI=$ac_cv_path_TWOPI
7048 if test -n "$TWOPI"; then
7049   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7050 echo "${ECHO_T}$TWOPI" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056
7057 if test "$TWOPI" != "echo twopi" ; then
7058
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_TWOPI 1
7061 _ACEOF
7062
7063     if test "$llvm_cv_os_type" = "MingW" ; then
7064     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7065   fi
7066
7067 cat >>confdefs.h <<_ACEOF
7068 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7069 _ACEOF
7070
7071 fi
7072 # Extract the first word of "circo", so it can be a program name with args.
7073 set dummy circo; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_CIRCO+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   case $CIRCO in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7100   ;;
7101 esac
7102 fi
7103 CIRCO=$ac_cv_path_CIRCO
7104 if test -n "$CIRCO"; then
7105   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7106 echo "${ECHO_T}$CIRCO" >&6; }
7107 else
7108   { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 fi
7111
7112
7113 if test "$CIRCO" != "echo circo" ; then
7114
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_CIRCO 1
7117 _ACEOF
7118
7119     if test "$llvm_cv_os_type" = "MingW" ; then
7120     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7121   fi
7122
7123 cat >>confdefs.h <<_ACEOF
7124 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7125 _ACEOF
7126
7127 fi
7128 for ac_prog in gv gsview32
7129 do
7130   # Extract the first word of "$ac_prog", so it can be a program name with args.
7131 set dummy $ac_prog; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_GV+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   case $GV in
7138   [\\/]* | ?:[\\/]*)
7139   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7140   ;;
7141   *)
7142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157   ;;
7158 esac
7159 fi
7160 GV=$ac_cv_path_GV
7161 if test -n "$GV"; then
7162   { echo "$as_me:$LINENO: result: $GV" >&5
7163 echo "${ECHO_T}$GV" >&6; }
7164 else
7165   { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7167 fi
7168
7169
7170   test -n "$GV" && break
7171 done
7172 test -n "$GV" || GV="echo gv"
7173
7174 if test "$GV" != "echo gv" ; then
7175
7176 cat >>confdefs.h <<\_ACEOF
7177 #define HAVE_GV 1
7178 _ACEOF
7179
7180     if test "$llvm_cv_os_type" = "MingW" ; then
7181     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7182   fi
7183
7184 cat >>confdefs.h <<_ACEOF
7185 #define LLVM_PATH_GV "$GV${EXEEXT}"
7186 _ACEOF
7187
7188 fi
7189 # Extract the first word of "dotty", so it can be a program name with args.
7190 set dummy dotty; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_DOTTY+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $DOTTY in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7217   ;;
7218 esac
7219 fi
7220 DOTTY=$ac_cv_path_DOTTY
7221 if test -n "$DOTTY"; then
7222   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7223 echo "${ECHO_T}$DOTTY" >&6; }
7224 else
7225   { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7227 fi
7228
7229
7230 if test "$DOTTY" != "echo dotty" ; then
7231
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_DOTTY 1
7234 _ACEOF
7235
7236     if test "$llvm_cv_os_type" = "MingW" ; then
7237     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7238   fi
7239
7240 cat >>confdefs.h <<_ACEOF
7241 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7242 _ACEOF
7243
7244 fi
7245 for ac_prog in xdot xdot.py
7246 do
7247   # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_XDOT+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   case $XDOT in
7255   [\\/]* | ?:[\\/]*)
7256   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7257   ;;
7258   *)
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264   for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274   ;;
7275 esac
7276 fi
7277 XDOT=$ac_cv_path_XDOT
7278 if test -n "$XDOT"; then
7279   { echo "$as_me:$LINENO: result: $XDOT" >&5
7280 echo "${ECHO_T}$XDOT" >&6; }
7281 else
7282   { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7284 fi
7285
7286
7287   test -n "$XDOT" && break
7288 done
7289 test -n "$XDOT" || XDOT="echo xdot"
7290
7291 if test "$XDOT" != "echo xdot" ; then
7292
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_XDOT 1
7295 _ACEOF
7296
7297     if test "$llvm_cv_os_type" = "MingW" ; then
7298     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7299   fi
7300
7301 cat >>confdefs.h <<_ACEOF
7302 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7303 _ACEOF
7304
7305 fi
7306
7307 # Find a good install program.  We prefer a C program (faster),
7308 # so one script is as good as another.  But avoid the broken or
7309 # incompatible versions:
7310 # SysV /etc/install, /usr/sbin/install
7311 # SunOS /usr/etc/install
7312 # IRIX /sbin/install
7313 # AIX /bin/install
7314 # AmigaOS /C/install, which installs bootblocks on floppy discs
7315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7318 # OS/2's system install, which has a completely different semantic
7319 # ./install, which can be erroneously created by make from ./install.sh.
7320 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7322 if test -z "$INSTALL"; then
7323 if test "${ac_cv_path_install+set}" = set; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331   # Account for people who put trailing slashes in PATH elements.
7332 case $as_dir/ in
7333   ./ | .// | /cC/* | \
7334   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7335   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7336   /usr/ucb/* ) ;;
7337   *)
7338     # OSF1 and SCO ODT 3.0 have their own names for install.
7339     # Don't use installbsd from OSF since it installs stuff as root
7340     # by default.
7341     for ac_prog in ginstall scoinst install; do
7342       for ac_exec_ext in '' $ac_executable_extensions; do
7343         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7344           if test $ac_prog = install &&
7345             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346             # AIX install.  It has an incompatible calling convention.
7347             :
7348           elif test $ac_prog = install &&
7349             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350             # program-specific install script used by HP pwplus--don't use.
7351             :
7352           else
7353             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7354             break 3
7355           fi
7356         fi
7357       done
7358     done
7359     ;;
7360 esac
7361 done
7362 IFS=$as_save_IFS
7363
7364
7365 fi
7366   if test "${ac_cv_path_install+set}" = set; then
7367     INSTALL=$ac_cv_path_install
7368   else
7369     # As a last resort, use the slow shell script.  Don't cache a
7370     # value for INSTALL within a source directory, because that will
7371     # break other packages using the cache if that directory is
7372     # removed, or if the value is a relative name.
7373     INSTALL=$ac_install_sh
7374   fi
7375 fi
7376 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7377 echo "${ECHO_T}$INSTALL" >&6; }
7378
7379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7380 # It thinks the first close brace ends the variable substitution.
7381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7382
7383 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7384
7385 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7386
7387 case "$INSTALL" in
7388  [\\/$]* | ?:[\\/]* ) ;;
7389  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7390 esac
7391
7392 # Extract the first word of "bzip2", so it can be a program name with args.
7393 set dummy bzip2; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_BZIP2+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   case $BZIP2 in
7400   [\\/]* | ?:[\\/]*)
7401   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7402   ;;
7403   *)
7404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419   ;;
7420 esac
7421 fi
7422 BZIP2=$ac_cv_path_BZIP2
7423 if test -n "$BZIP2"; then
7424   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7425 echo "${ECHO_T}$BZIP2" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432 # Extract the first word of "cat", so it can be a program name with args.
7433 set dummy cat; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_CAT+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $CAT in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   ;;
7460 esac
7461 fi
7462 CAT=$ac_cv_path_CAT
7463 if test -n "$CAT"; then
7464   { echo "$as_me:$LINENO: result: $CAT" >&5
7465 echo "${ECHO_T}$CAT" >&6; }
7466 else
7467   { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7469 fi
7470
7471
7472 # Extract the first word of "doxygen", so it can be a program name with args.
7473 set dummy doxygen; ac_word=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7477   echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479   case $DOXYGEN in
7480   [\\/]* | ?:[\\/]*)
7481   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7482   ;;
7483   *)
7484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489   for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499   ;;
7500 esac
7501 fi
7502 DOXYGEN=$ac_cv_path_DOXYGEN
7503 if test -n "$DOXYGEN"; then
7504   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7505 echo "${ECHO_T}$DOXYGEN" >&6; }
7506 else
7507   { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7509 fi
7510
7511
7512 # Extract the first word of "groff", so it can be a program name with args.
7513 set dummy groff; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_GROFF+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   case $GROFF in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539   ;;
7540 esac
7541 fi
7542 GROFF=$ac_cv_path_GROFF
7543 if test -n "$GROFF"; then
7544   { echo "$as_me:$LINENO: result: $GROFF" >&5
7545 echo "${ECHO_T}$GROFF" >&6; }
7546 else
7547   { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7549 fi
7550
7551
7552 # Extract the first word of "gzip", so it can be a program name with args.
7553 set dummy gzip; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   case $GZIPBIN in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569   for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579   ;;
7580 esac
7581 fi
7582 GZIPBIN=$ac_cv_path_GZIPBIN
7583 if test -n "$GZIPBIN"; then
7584   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7585 echo "${ECHO_T}$GZIPBIN" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591
7592 # Extract the first word of "pdfroff", so it can be a program name with args.
7593 set dummy pdfroff; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_PDFROFF+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case $PDFROFF in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619   ;;
7620 esac
7621 fi
7622 PDFROFF=$ac_cv_path_PDFROFF
7623 if test -n "$PDFROFF"; then
7624   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7625 echo "${ECHO_T}$PDFROFF" >&6; }
7626 else
7627   { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7629 fi
7630
7631
7632 # Extract the first word of "zip", so it can be a program name with args.
7633 set dummy zip; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_path_ZIP+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   case $ZIP in
7640   [\\/]* | ?:[\\/]*)
7641   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7642   ;;
7643   *)
7644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659   ;;
7660 esac
7661 fi
7662 ZIP=$ac_cv_path_ZIP
7663 if test -n "$ZIP"; then
7664   { echo "$as_me:$LINENO: result: $ZIP" >&5
7665 echo "${ECHO_T}$ZIP" >&6; }
7666 else
7667   { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7669 fi
7670
7671
7672 for ac_prog in ocamlc
7673 do
7674   # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_OCAMLC+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   case $OCAMLC in
7682   [\\/]* | ?:[\\/]*)
7683   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7684   ;;
7685   *)
7686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_exec_ext in '' $ac_executable_extensions; do
7692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695     break 2
7696   fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701   ;;
7702 esac
7703 fi
7704 OCAMLC=$ac_cv_path_OCAMLC
7705 if test -n "$OCAMLC"; then
7706   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7707 echo "${ECHO_T}$OCAMLC" >&6; }
7708 else
7709   { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7711 fi
7712
7713
7714   test -n "$OCAMLC" && break
7715 done
7716
7717 for ac_prog in ocamlopt
7718 do
7719   # Extract the first word of "$ac_prog", so it can be a program name with args.
7720 set dummy $ac_prog; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   case $OCAMLOPT in
7727   [\\/]* | ?:[\\/]*)
7728   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7729   ;;
7730   *)
7731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734   IFS=$as_save_IFS
7735   test -z "$as_dir" && as_dir=.
7736   for ac_exec_ext in '' $ac_executable_extensions; do
7737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740     break 2
7741   fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746   ;;
7747 esac
7748 fi
7749 OCAMLOPT=$ac_cv_path_OCAMLOPT
7750 if test -n "$OCAMLOPT"; then
7751   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7752 echo "${ECHO_T}$OCAMLOPT" >&6; }
7753 else
7754   { echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6; }
7756 fi
7757
7758
7759   test -n "$OCAMLOPT" && break
7760 done
7761
7762 for ac_prog in ocamldep
7763 do
7764   # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   case $OCAMLDEP in
7772   [\\/]* | ?:[\\/]*)
7773   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7774   ;;
7775   *)
7776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779   IFS=$as_save_IFS
7780   test -z "$as_dir" && as_dir=.
7781   for ac_exec_ext in '' $ac_executable_extensions; do
7782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7783     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785     break 2
7786   fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791   ;;
7792 esac
7793 fi
7794 OCAMLDEP=$ac_cv_path_OCAMLDEP
7795 if test -n "$OCAMLDEP"; then
7796   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7797 echo "${ECHO_T}$OCAMLDEP" >&6; }
7798 else
7799   { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7801 fi
7802
7803
7804   test -n "$OCAMLDEP" && break
7805 done
7806
7807 for ac_prog in ocamldoc
7808 do
7809   # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   case $OCAMLDOC in
7817   [\\/]* | ?:[\\/]*)
7818   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7819   ;;
7820   *)
7821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826   for ac_exec_ext in '' $ac_executable_extensions; do
7827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7828     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833 done
7834 IFS=$as_save_IFS
7835
7836   ;;
7837 esac
7838 fi
7839 OCAMLDOC=$ac_cv_path_OCAMLDOC
7840 if test -n "$OCAMLDOC"; then
7841   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7842 echo "${ECHO_T}$OCAMLDOC" >&6; }
7843 else
7844   { echo "$as_me:$LINENO: result: no" >&5
7845 echo "${ECHO_T}no" >&6; }
7846 fi
7847
7848
7849   test -n "$OCAMLDOC" && break
7850 done
7851
7852 for ac_prog in gas as
7853 do
7854   # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_path_GAS+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   case $GAS in
7862   [\\/]* | ?:[\\/]*)
7863   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7864   ;;
7865   *)
7866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871   for ac_exec_ext in '' $ac_executable_extensions; do
7872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881   ;;
7882 esac
7883 fi
7884 GAS=$ac_cv_path_GAS
7885 if test -n "$GAS"; then
7886   { echo "$as_me:$LINENO: result: $GAS" >&5
7887 echo "${ECHO_T}$GAS" >&6; }
7888 else
7889   { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7891 fi
7892
7893
7894   test -n "$GAS" && break
7895 done
7896
7897
7898 { echo "$as_me:$LINENO: checking for linker version" >&5
7899 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7900 if test "${llvm_cv_link_version+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903
7904    version_string="$(ld -v 2>&1 | head -1)"
7905
7906    # Check for ld64.
7907    if (echo "$version_string" | grep -q "ld64"); then
7908      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7909    else
7910      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7911    fi
7912
7913 fi
7914 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7915 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7919 _ACEOF
7920
7921
7922
7923 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7924 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7925 if test "${llvm_cv_link_use_r+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928    ac_ext=c
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934   oldcflags="$CFLAGS"
7935   CFLAGS="$CFLAGS -Wl,-R."
7936   cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h.  */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h.  */
7942
7943 int
7944 main ()
7945 {
7946
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (ac_try="$ac_link"
7953 case "(($ac_try" in
7954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955   *) ac_try_echo=$ac_try;;
7956 esac
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958   (eval "$ac_link") 2>conftest.er1
7959   ac_status=$?
7960   grep -v '^ *+' conftest.er1 >conftest.err
7961   rm -f conftest.er1
7962   cat conftest.err >&5
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } &&
7965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7966   { (case "(($ac_try" in
7967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968   *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971   (eval "$ac_try") 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; } &&
7975          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7985   llvm_cv_link_use_r=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990         llvm_cv_link_use_r=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext \
7994       conftest$ac_exeext conftest.$ac_ext
7995   CFLAGS="$oldcflags"
7996   ac_ext=c
7997 ac_cpp='$CPP $CPPFLAGS'
7998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001
8002
8003 fi
8004 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8005 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8006 if test "$llvm_cv_link_use_r" = yes ; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LINK_R 1
8010 _ACEOF
8011
8012   fi
8013
8014
8015 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8016 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8017 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020    ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026   oldcflags="$CFLAGS"
8027   CFLAGS="$CFLAGS -rdynamic"
8028   cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h.  */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h.  */
8034
8035 int
8036 main ()
8037 {
8038
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8045 case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050   (eval "$ac_link") 2>conftest.er1
8051   ac_status=$?
8052   grep -v '^ *+' conftest.er1 >conftest.err
8053   rm -f conftest.er1
8054   cat conftest.err >&5
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } &&
8057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8058   { (case "(($ac_try" in
8059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060   *) ac_try_echo=$ac_try;;
8061 esac
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063   (eval "$ac_try") 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest$ac_exeext'
8068   { (case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_try") 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; }; then
8077   llvm_cv_link_use_export_dynamic=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082         llvm_cv_link_use_export_dynamic=no
8083 fi
8084
8085 rm -f core conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087   CFLAGS="$oldcflags"
8088   ac_ext=c
8089 ac_cpp='$CPP $CPPFLAGS'
8090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8093
8094
8095 fi
8096 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8097 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8098 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8099
8100 cat >>confdefs.h <<\_ACEOF
8101 #define HAVE_LINK_EXPORT_DYNAMIC 1
8102 _ACEOF
8103
8104   fi
8105
8106
8107 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8108 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8109 if test "${llvm_cv_link_use_version_script+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112    ac_ext=c
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117
8118   oldcflags="$CFLAGS"
8119
8120   # The following code is from the autoconf manual,
8121   # "11.13: Limitations of Usual Tools".
8122   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8123   # Use mktemp if possible; otherwise fall back on mkdir,
8124   # with $RANDOM to make collisions less likely.
8125   : ${TMPDIR=/tmp}
8126   {
8127     tmp=`
8128       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8129     ` &&
8130     test -n "$tmp" && test -d "$tmp"
8131   } || {
8132     tmp=$TMPDIR/foo$$-$RANDOM
8133     (umask 077 && mkdir "$tmp")
8134   } || exit $?
8135
8136   echo "{" > "$tmp/export.map"
8137   echo "  global: main;" >> "$tmp/export.map"
8138   echo "  local: *;" >> "$tmp/export.map"
8139   echo "};" >> "$tmp/export.map"
8140
8141   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8142   cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h.  */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h.  */
8148
8149 int
8150 main ()
8151 {
8152
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8159 case "(($ac_try" in
8160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161   *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164   (eval "$ac_link") 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8172   { (case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_try") 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; } &&
8181          { ac_try='test -s conftest$ac_exeext'
8182   { (case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187   (eval "$ac_try") 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; }; then
8191   llvm_cv_link_use_version_script=yes
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196         llvm_cv_link_use_version_script=no
8197 fi
8198
8199 rm -f core conftest.err conftest.$ac_objext \
8200       conftest$ac_exeext conftest.$ac_ext
8201   rm "$tmp/export.map"
8202   rmdir "$tmp"
8203   CFLAGS="$oldcflags"
8204   ac_ext=c
8205 ac_cpp='$CPP $CPPFLAGS'
8206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8209
8210
8211 fi
8212 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8213 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8214 if test "$llvm_cv_link_use_version_script" = yes ; then
8215   HAVE_LINK_VERSION_SCRIPT=1
8216
8217   fi
8218
8219
8220
8221
8222 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8223 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8224 if test "${ac_cv_c_const+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233
8234 int
8235 main ()
8236 {
8237 /* FIXME: Include the comments suggested by Paul. */
8238 #ifndef __cplusplus
8239   /* Ultrix mips cc rejects this.  */
8240   typedef int charset[2];
8241   const charset x;
8242   /* SunOS 4.1.1 cc rejects this.  */
8243   char const *const *ccp;
8244   char **p;
8245   /* NEC SVR4.0.2 mips cc rejects this.  */
8246   struct point {int x, y;};
8247   static struct point const zero = {0,0};
8248   /* AIX XL C 1.02.0.0 rejects this.
8249      It does not let you subtract one const X* pointer from another in
8250      an arm of an if-expression whose if-part is not a constant
8251      expression */
8252   const char *g = "string";
8253   ccp = &g + (g ? g-g : 0);
8254   /* HPUX 7.0 cc rejects these. */
8255   ++ccp;
8256   p = (char**) ccp;
8257   ccp = (char const *const *) p;
8258   { /* SCO 3.2v4 cc rejects this.  */
8259     char *t;
8260     char const *s = 0 ? (char *) 0 : (char const *) 0;
8261
8262     *t++ = 0;
8263     if (s) return 0;
8264   }
8265   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8266     int x[] = {25, 17};
8267     const int *foo = &x[0];
8268     ++foo;
8269   }
8270   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8271     typedef const int *iptr;
8272     iptr p = 0;
8273     ++p;
8274   }
8275   { /* AIX XL C 1.02.0.0 rejects this saying
8276        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8277     struct s { int j; const int *ap[3]; };
8278     struct s *b; b->j = 5;
8279   }
8280   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8281     const int foo = 10;
8282     if (!foo) return 0;
8283   }
8284   return !x[0] && !zero.x;
8285 #endif
8286
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8293 case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_compile") 2>conftest.er1
8299   ac_status=$?
8300   grep -v '^ *+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } &&
8305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8306   { (case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_try") 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; } &&
8315          { ac_try='test -s conftest.$ac_objext'
8316   { (case "(($ac_try" in
8317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318   *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321   (eval "$ac_try") 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; }; then
8325   ac_cv_c_const=yes
8326 else
8327   echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330         ac_cv_c_const=no
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8336 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8337 if test $ac_cv_c_const = no; then
8338
8339 cat >>confdefs.h <<\_ACEOF
8340 #define const
8341 _ACEOF
8342
8343 fi
8344
8345
8346
8347
8348
8349
8350 ac_header_dirent=no
8351 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8352   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8353 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8354 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h.  */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h.  */
8364 #include <sys/types.h>
8365 #include <$ac_hdr>
8366
8367 int
8368 main ()
8369 {
8370 if ((DIR *) 0)
8371 return 0;
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_compile") 2>conftest.er1
8384   ac_status=$?
8385   grep -v '^ *+' conftest.er1 >conftest.err
8386   rm -f conftest.er1
8387   cat conftest.err >&5
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); } &&
8390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391   { (case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_try") 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest.$ac_objext'
8401   { (case "(($ac_try" in
8402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403   *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406   (eval "$ac_try") 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   eval "$as_ac_Header=yes"
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         eval "$as_ac_Header=no"
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420 ac_res=`eval echo '${'$as_ac_Header'}'`
8421                { echo "$as_me:$LINENO: result: $ac_res" >&5
8422 echo "${ECHO_T}$ac_res" >&6; }
8423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8424   cat >>confdefs.h <<_ACEOF
8425 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8426 _ACEOF
8427
8428 ac_header_dirent=$ac_hdr; break
8429 fi
8430
8431 done
8432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8433 if test $ac_header_dirent = dirent.h; then
8434   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8435 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8436 if test "${ac_cv_search_opendir+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   ac_func_search_save_LIBS=$LIBS
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 /* Override any GCC internal prototype to avoid an error.
8448    Use char because int might match the return type of a GCC
8449    builtin and then its argument prototype would still apply.  */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 char opendir ();
8454 int
8455 main ()
8456 {
8457 return opendir ();
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 for ac_lib in '' dir; do
8463   if test -z "$ac_lib"; then
8464     ac_res="none required"
8465   else
8466     ac_res=-l$ac_lib
8467     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8468   fi
8469   rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (ac_try="$ac_link"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_link") 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8484   { (case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_try") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; } &&
8493          { ac_try='test -s conftest$ac_exeext'
8494   { (case "(($ac_try" in
8495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496   *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499   (eval "$ac_try") 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   ac_cv_search_opendir=$ac_res
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508
8509 fi
8510
8511 rm -f core conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext
8513   if test "${ac_cv_search_opendir+set}" = set; then
8514   break
8515 fi
8516 done
8517 if test "${ac_cv_search_opendir+set}" = set; then
8518   :
8519 else
8520   ac_cv_search_opendir=no
8521 fi
8522 rm conftest.$ac_ext
8523 LIBS=$ac_func_search_save_LIBS
8524 fi
8525 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8527 ac_res=$ac_cv_search_opendir
8528 if test "$ac_res" != no; then
8529   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8530
8531 fi
8532
8533 else
8534   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8536 if test "${ac_cv_search_opendir+set}" = set; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   ac_func_search_save_LIBS=$LIBS
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546
8547 /* Override any GCC internal prototype to avoid an error.
8548    Use char because int might match the return type of a GCC
8549    builtin and then its argument prototype would still apply.  */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 char opendir ();
8554 int
8555 main ()
8556 {
8557 return opendir ();
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 for ac_lib in '' x; do
8563   if test -z "$ac_lib"; then
8564     ac_res="none required"
8565   else
8566     ac_res=-l$ac_lib
8567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8568   fi
8569   rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (ac_try="$ac_link"
8571 case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_link") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } &&
8583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8584   { (case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589   (eval "$ac_try") 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; } &&
8593          { ac_try='test -s conftest$ac_exeext'
8594   { (case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_try") 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; }; then
8603   ac_cv_search_opendir=$ac_res
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext \
8612       conftest$ac_exeext
8613   if test "${ac_cv_search_opendir+set}" = set; then
8614   break
8615 fi
8616 done
8617 if test "${ac_cv_search_opendir+set}" = set; then
8618   :
8619 else
8620   ac_cv_search_opendir=no
8621 fi
8622 rm conftest.$ac_ext
8623 LIBS=$ac_func_search_save_LIBS
8624 fi
8625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8627 ac_res=$ac_cv_search_opendir
8628 if test "$ac_res" != no; then
8629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8630
8631 fi
8632
8633 fi
8634
8635
8636 for ac_header in dlfcn.h
8637 do
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8640   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8643   echo $ECHO_N "(cached) $ECHO_C" >&6
8644 fi
8645 ac_res=`eval echo '${'$as_ac_Header'}'`
8646                { echo "$as_me:$LINENO: result: $ac_res" >&5
8647 echo "${ECHO_T}$ac_res" >&6; }
8648 else
8649   # Is the header compilable?
8650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658 $ac_includes_default
8659 #include <$ac_header>
8660 _ACEOF
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8663 case "(($ac_try" in
8664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665   *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668   (eval "$ac_compile") 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } &&
8675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8676   { (case "(($ac_try" in
8677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678   *) ac_try_echo=$ac_try;;
8679 esac
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681   (eval "$ac_try") 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; } &&
8685          { ac_try='test -s conftest.$ac_objext'
8686   { (case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_try") 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; }; then
8695   ac_header_compiler=yes
8696 else
8697   echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700         ac_header_compiler=no
8701 fi
8702
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8705 echo "${ECHO_T}$ac_header_compiler" >&6; }
8706
8707 # Is the header present?
8708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716 #include <$ac_header>
8717 _ACEOF
8718 if { (ac_try="$ac_cpp conftest.$ac_ext"
8719 case "(($ac_try" in
8720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721   *) ac_try_echo=$ac_try;;
8722 esac
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } >/dev/null; then
8731   if test -s conftest.err; then
8732     ac_cpp_err=$ac_c_preproc_warn_flag
8733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8734   else
8735     ac_cpp_err=
8736   fi
8737 else
8738   ac_cpp_err=yes
8739 fi
8740 if test -z "$ac_cpp_err"; then
8741   ac_header_preproc=yes
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746   ac_header_preproc=no
8747 fi
8748
8749 rm -f conftest.err conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8751 echo "${ECHO_T}$ac_header_preproc" >&6; }
8752
8753 # So?  What about this header?
8754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8755   yes:no: )
8756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8760     ac_header_preproc=yes
8761     ;;
8762   no:yes:* )
8763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8775     ( cat <<\_ASBOX
8776 ## ------------------------------------ ##
8777 ## Report this to http://llvm.org/bugs/ ##
8778 ## ------------------------------------ ##
8779 _ASBOX
8780      ) | sed "s/^/$as_me: WARNING:     /" >&2
8781     ;;
8782 esac
8783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   eval "$as_ac_Header=\$ac_header_preproc"
8789 fi
8790 ac_res=`eval echo '${'$as_ac_Header'}'`
8791                { echo "$as_me:$LINENO: result: $ac_res" >&5
8792 echo "${ECHO_T}$ac_res" >&6; }
8793
8794 fi
8795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796   cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8799
8800 fi
8801
8802 done
8803
8804 # Check whether --enable-ltdl-install was given.
8805 if test "${enable_ltdl_install+set}" = set; then
8806   enableval=$enable_ltdl_install;
8807 fi
8808
8809
8810
8811
8812 if test x"${enable_ltdl_install-no}" != xno; then
8813   INSTALL_LTDL_TRUE=
8814   INSTALL_LTDL_FALSE='#'
8815 else
8816   INSTALL_LTDL_TRUE='#'
8817   INSTALL_LTDL_FALSE=
8818 fi
8819
8820
8821
8822 if test x"${enable_ltdl_convenience-no}" != xno; then
8823   CONVENIENCE_LTDL_TRUE=
8824   CONVENIENCE_LTDL_FALSE='#'
8825 else
8826   CONVENIENCE_LTDL_TRUE='#'
8827   CONVENIENCE_LTDL_FALSE=
8828 fi
8829
8830
8831 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8833 library_names_spec=
8834 libname_spec='lib$name'
8835 soname_spec=
8836 shrext_cmds=".so"
8837 postinstall_cmds=
8838 postuninstall_cmds=
8839 finish_cmds=
8840 finish_eval=
8841 shlibpath_var=
8842 shlibpath_overrides_runpath=unknown
8843 version_type=none
8844 dynamic_linker="$host_os ld.so"
8845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8846 if test "$GCC" = yes; then
8847   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8848   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8849     # if the path contains ";" then we assume it to be the separator
8850     # otherwise default to the standard path separator (i.e. ":") - it is
8851     # assumed that no part of a normal pathname contains ";" but that should
8852     # okay in the real world where ";" in dirpaths is itself problematic.
8853     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8854   else
8855     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8856   fi
8857 else
8858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8859 fi
8860 need_lib_prefix=unknown
8861 hardcode_into_libs=no
8862
8863 # when you set need_version to no, make sure it does not cause -set_version
8864 # flags to be left without arguments
8865 need_version=unknown
8866
8867 case $host_os in
8868 aix3*)
8869   version_type=linux
8870   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8871   shlibpath_var=LIBPATH
8872
8873   # AIX 3 has no versioning support, so we append a major version to the name.
8874   soname_spec='${libname}${release}${shared_ext}$major'
8875   ;;
8876
8877 aix4* | aix5*)
8878   version_type=linux
8879   need_lib_prefix=no
8880   need_version=no
8881   hardcode_into_libs=yes
8882   if test "$host_cpu" = ia64; then
8883     # AIX 5 supports IA64
8884     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8885     shlibpath_var=LD_LIBRARY_PATH
8886   else
8887     # With GCC up to 2.95.x, collect2 would create an import file
8888     # for dependence libraries.  The import file would start with
8889     # the line `#! .'.  This would cause the generated library to
8890     # depend on `.', always an invalid library.  This was fixed in
8891     # development snapshots of GCC prior to 3.0.
8892     case $host_os in
8893       aix4 | aix4.[01] | aix4.[01].*)
8894       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8895            echo ' yes '
8896            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8897         :
8898       else
8899         can_build_shared=no
8900       fi
8901       ;;
8902     esac
8903     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8904     # soname into executable. Probably we can add versioning support to
8905     # collect2, so additional links can be useful in future.
8906     if test "$aix_use_runtimelinking" = yes; then
8907       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8908       # instead of lib<name>.a to let people know that these are not
8909       # typical AIX shared libraries.
8910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911     else
8912       # We preserve .a as extension for shared libraries through AIX4.2
8913       # and later when we are not doing run time linking.
8914       library_names_spec='${libname}${release}.a $libname.a'
8915       soname_spec='${libname}${release}${shared_ext}$major'
8916     fi
8917     shlibpath_var=LIBPATH
8918   fi
8919   ;;
8920
8921 amigaos*)
8922   library_names_spec='$libname.ixlibrary $libname.a'
8923   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8924   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'
8925   ;;
8926
8927 beos*)
8928   library_names_spec='${libname}${shared_ext}'
8929   dynamic_linker="$host_os ld.so"
8930   shlibpath_var=LIBRARY_PATH
8931   ;;
8932
8933 bsdi[45]*)
8934   version_type=linux
8935   need_version=no
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8939   shlibpath_var=LD_LIBRARY_PATH
8940   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8941   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8942   # the default ld.so.conf also contains /usr/contrib/lib and
8943   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8944   # libtool to hard-code these into programs
8945   ;;
8946
8947 cygwin* | mingw* | pw32*)
8948   version_type=windows
8949   shrext_cmds=".dll"
8950   need_version=no
8951   need_lib_prefix=no
8952
8953   case $GCC,$host_os in
8954   yes,cygwin* | yes,mingw* | yes,pw32*)
8955     library_names_spec='$libname.dll.a'
8956     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8957     postinstall_cmds='base_file=`basename \${file}`~
8958       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8959       dldir=$destdir/`dirname \$dlpath`~
8960       test -d \$dldir || mkdir -p \$dldir~
8961       $install_prog $dir/$dlname \$dldir/$dlname~
8962       chmod a+x \$dldir/$dlname'
8963     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8964       dlpath=$dir/\$dldll~
8965        $rm \$dlpath'
8966     shlibpath_overrides_runpath=yes
8967
8968     case $host_os in
8969     cygwin*)
8970       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8971       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8972       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8973       ;;
8974     mingw*)
8975       # MinGW DLLs use traditional 'lib' prefix
8976       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8977       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8979         # It is most probably a Windows format PATH printed by
8980         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8981         # path with ; separators, and with drive letters. We can handle the
8982         # drive letters (cygwin fileutils understands them), so leave them,
8983         # especially as we might pass files found there to a mingw objdump,
8984         # which wouldn't understand a cygwinified path. Ahh.
8985         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8986       else
8987         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8988       fi
8989       ;;
8990     pw32*)
8991       # pw32 DLLs use 'pw' prefix rather than 'lib'
8992       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993       ;;
8994     esac
8995     ;;
8996
8997   *)
8998     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8999     ;;
9000   esac
9001   dynamic_linker='Win32 ld.exe'
9002   # FIXME: first we should search . and the directory the executable is in
9003   shlibpath_var=PATH
9004   ;;
9005
9006 darwin* | rhapsody*)
9007   dynamic_linker="$host_os dyld"
9008   version_type=darwin
9009   need_lib_prefix=no
9010   need_version=no
9011   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9012   soname_spec='${libname}${release}${major}$shared_ext'
9013   shlibpath_overrides_runpath=yes
9014   shlibpath_var=DYLD_LIBRARY_PATH
9015   shrext_cmds='.dylib'
9016   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9017   if test "$GCC" = yes; then
9018     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"`
9019   else
9020     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9021   fi
9022   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9023   ;;
9024
9025 dgux*)
9026   version_type=linux
9027   need_lib_prefix=no
9028   need_version=no
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9030   soname_spec='${libname}${release}${shared_ext}$major'
9031   shlibpath_var=LD_LIBRARY_PATH
9032   ;;
9033
9034 freebsd1.*)
9035   dynamic_linker=no
9036   ;;
9037
9038 kfreebsd*-gnu)
9039   version_type=linux
9040   need_lib_prefix=no
9041   need_version=no
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043   soname_spec='${libname}${release}${shared_ext}$major'
9044   shlibpath_var=LD_LIBRARY_PATH
9045   shlibpath_overrides_runpath=no
9046   hardcode_into_libs=yes
9047   dynamic_linker='GNU ld.so'
9048   ;;
9049
9050 freebsd* | dragonfly*)
9051   # DragonFly does not have aout.  When/if they implement a new
9052   # versioning mechanism, adjust this.
9053   if test -x /usr/bin/objformat; then
9054     objformat=`/usr/bin/objformat`
9055   else
9056     case $host_os in
9057     freebsd[123].*) objformat=aout ;;
9058     *) objformat=elf ;;
9059     esac
9060   fi
9061   version_type=freebsd-$objformat
9062   case $version_type in
9063     freebsd-elf*)
9064       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9065       need_version=no
9066       need_lib_prefix=no
9067       ;;
9068     freebsd-*)
9069       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9070       need_version=yes
9071       ;;
9072   esac
9073   shlibpath_var=LD_LIBRARY_PATH
9074   case $host_os in
9075   freebsd2.*)
9076     shlibpath_overrides_runpath=yes
9077     ;;
9078   freebsd3.[01]* | freebsdelf3.[01]*)
9079     shlibpath_overrides_runpath=yes
9080     hardcode_into_libs=yes
9081     ;;
9082   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9083   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9084     shlibpath_overrides_runpath=no
9085     hardcode_into_libs=yes
9086     ;;
9087   freebsd*) # from 4.6 on
9088     shlibpath_overrides_runpath=yes
9089     hardcode_into_libs=yes
9090     ;;
9091   esac
9092   ;;
9093
9094 gnu*)
9095   version_type=linux
9096   need_lib_prefix=no
9097   need_version=no
9098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9099   soname_spec='${libname}${release}${shared_ext}$major'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   hardcode_into_libs=yes
9102   ;;
9103
9104 hpux9* | hpux10* | hpux11*)
9105   # Give a soname corresponding to the major version so that dld.sl refuses to
9106   # link against other versions.
9107   version_type=sunos
9108   need_lib_prefix=no
9109   need_version=no
9110   case $host_cpu in
9111   ia64*)
9112     shrext_cmds='.so'
9113     hardcode_into_libs=yes
9114     dynamic_linker="$host_os dld.so"
9115     shlibpath_var=LD_LIBRARY_PATH
9116     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118     soname_spec='${libname}${release}${shared_ext}$major'
9119     if test "X$HPUX_IA64_MODE" = X32; then
9120       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121     else
9122       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9123     fi
9124     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125     ;;
9126    hppa*64*)
9127      shrext_cmds='.sl'
9128      hardcode_into_libs=yes
9129      dynamic_linker="$host_os dld.sl"
9130      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9131      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133      soname_spec='${libname}${release}${shared_ext}$major'
9134      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9135      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9136      ;;
9137    *)
9138     shrext_cmds='.sl'
9139     dynamic_linker="$host_os dld.sl"
9140     shlibpath_var=SHLIB_PATH
9141     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143     soname_spec='${libname}${release}${shared_ext}$major'
9144     ;;
9145   esac
9146   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9147   postinstall_cmds='chmod 555 $lib'
9148   ;;
9149
9150 interix3*)
9151   version_type=linux
9152   need_lib_prefix=no
9153   need_version=no
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155   soname_spec='${libname}${release}${shared_ext}$major'
9156   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   shlibpath_overrides_runpath=no
9159   hardcode_into_libs=yes
9160   ;;
9161
9162 irix5* | irix6* | nonstopux*)
9163   case $host_os in
9164     nonstopux*) version_type=nonstopux ;;
9165     *)
9166         if test "$lt_cv_prog_gnu_ld" = yes; then
9167                 version_type=linux
9168         else
9169                 version_type=irix
9170         fi ;;
9171   esac
9172   need_lib_prefix=no
9173   need_version=no
9174   soname_spec='${libname}${release}${shared_ext}$major'
9175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176   case $host_os in
9177   irix5* | nonstopux*)
9178     libsuff= shlibsuff=
9179     ;;
9180   *)
9181     case $LD in # libtool.m4 will add one of these switches to LD
9182     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9183       libsuff= shlibsuff= libmagic=32-bit;;
9184     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9185       libsuff=32 shlibsuff=N32 libmagic=N32;;
9186     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9187       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9188     *) libsuff= shlibsuff= libmagic=never-match;;
9189     esac
9190     ;;
9191   esac
9192   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9193   shlibpath_overrides_runpath=no
9194   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9195   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9196   hardcode_into_libs=yes
9197   ;;
9198
9199 # No shared lib support for Linux oldld, aout, or coff.
9200 linux*oldld* | linux*aout* | linux*coff*)
9201   dynamic_linker=no
9202   ;;
9203
9204 # This must be Linux ELF.
9205 linux*)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9212   shlibpath_var=LD_LIBRARY_PATH
9213   shlibpath_overrides_runpath=no
9214   # This implies no fast_install, which is unacceptable.
9215   # Some rework will be needed to allow for fast_install
9216   # before this can be enabled.
9217   hardcode_into_libs=yes
9218
9219   # Append ld.so.conf contents to the search path
9220   if test -f /etc/ld.so.conf; then
9221     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' ' '`
9222     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9223   fi
9224
9225   # We used to test for /lib/ld.so.1 and disable shared libraries on
9226   # powerpc, because MkLinux only supported shared libraries with the
9227   # GNU dynamic linker.  Since this was broken with cross compilers,
9228   # most powerpc-linux boxes support dynamic linking these days and
9229   # people can always --disable-shared, the test was removed, and we
9230   # assume the GNU/Linux dynamic linker is in use.
9231   dynamic_linker='GNU/Linux ld.so'
9232   ;;
9233
9234 knetbsd*-gnu)
9235   version_type=linux
9236   need_lib_prefix=no
9237   need_version=no
9238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239   soname_spec='${libname}${release}${shared_ext}$major'
9240   shlibpath_var=LD_LIBRARY_PATH
9241   shlibpath_overrides_runpath=no
9242   hardcode_into_libs=yes
9243   dynamic_linker='GNU ld.so'
9244   ;;
9245
9246 netbsd*)
9247   version_type=sunos
9248   need_lib_prefix=no
9249   need_version=no
9250   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9253     dynamic_linker='NetBSD (a.out) ld.so'
9254   else
9255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9256     soname_spec='${libname}${release}${shared_ext}$major'
9257     dynamic_linker='NetBSD ld.elf_so'
9258   fi
9259   shlibpath_var=LD_LIBRARY_PATH
9260   shlibpath_overrides_runpath=yes
9261   hardcode_into_libs=yes
9262   ;;
9263
9264 newsos6)
9265   version_type=linux
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   shlibpath_overrides_runpath=yes
9269   ;;
9270
9271 nto-qnx*)
9272   version_type=linux
9273   need_lib_prefix=no
9274   need_version=no
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   shlibpath_overrides_runpath=yes
9279   ;;
9280
9281 openbsd* | bitrig*)
9282   version_type=sunos
9283   sys_lib_dlsearch_path_spec="/usr/lib"
9284   need_lib_prefix=no
9285   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9286   case $host_os in
9287     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9288     *)                         need_version=no  ;;
9289   esac
9290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9291   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9292   shlibpath_var=LD_LIBRARY_PATH
9293   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9294     case $host_os in
9295       openbsd2.[89] | openbsd2.[89].*)
9296         shlibpath_overrides_runpath=no
9297         ;;
9298       *)
9299         shlibpath_overrides_runpath=yes
9300         ;;
9301       esac
9302   else
9303     shlibpath_overrides_runpath=yes
9304   fi
9305   ;;
9306
9307 os2*)
9308   libname_spec='$name'
9309   shrext_cmds=".dll"
9310   need_lib_prefix=no
9311   library_names_spec='$libname${shared_ext} $libname.a'
9312   dynamic_linker='OS/2 ld.exe'
9313   shlibpath_var=LIBPATH
9314   ;;
9315
9316 osf3* | osf4* | osf5*)
9317   version_type=osf
9318   need_lib_prefix=no
9319   need_version=no
9320   soname_spec='${libname}${release}${shared_ext}$major'
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9324   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9325   ;;
9326
9327 solaris*)
9328   version_type=linux
9329   need_lib_prefix=no
9330   need_version=no
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332   soname_spec='${libname}${release}${shared_ext}$major'
9333   shlibpath_var=LD_LIBRARY_PATH
9334   shlibpath_overrides_runpath=yes
9335   hardcode_into_libs=yes
9336   # ldd complains unless libraries are executable
9337   postinstall_cmds='chmod +x $lib'
9338   ;;
9339
9340 sunos4*)
9341   version_type=sunos
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9343   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9344   shlibpath_var=LD_LIBRARY_PATH
9345   shlibpath_overrides_runpath=yes
9346   if test "$with_gnu_ld" = yes; then
9347     need_lib_prefix=no
9348   fi
9349   need_version=yes
9350   ;;
9351
9352 sysv4 | sysv4.3*)
9353   version_type=linux
9354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355   soname_spec='${libname}${release}${shared_ext}$major'
9356   shlibpath_var=LD_LIBRARY_PATH
9357   case $host_vendor in
9358     sni)
9359       shlibpath_overrides_runpath=no
9360       need_lib_prefix=no
9361       export_dynamic_flag_spec='${wl}-Blargedynsym'
9362       runpath_var=LD_RUN_PATH
9363       ;;
9364     siemens)
9365       need_lib_prefix=no
9366       ;;
9367     motorola)
9368       need_lib_prefix=no
9369       need_version=no
9370       shlibpath_overrides_runpath=no
9371       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9372       ;;
9373   esac
9374   ;;
9375
9376 sysv4*MP*)
9377   if test -d /usr/nec ;then
9378     version_type=linux
9379     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9380     soname_spec='$libname${shared_ext}.$major'
9381     shlibpath_var=LD_LIBRARY_PATH
9382   fi
9383   ;;
9384
9385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9386   version_type=freebsd-elf
9387   need_lib_prefix=no
9388   need_version=no
9389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9390   soname_spec='${libname}${release}${shared_ext}$major'
9391   shlibpath_var=LD_LIBRARY_PATH
9392   hardcode_into_libs=yes
9393   if test "$with_gnu_ld" = yes; then
9394     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9395     shlibpath_overrides_runpath=no
9396   else
9397     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9398     shlibpath_overrides_runpath=yes
9399     case $host_os in
9400       sco3.2v5*)
9401         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9402         ;;
9403     esac
9404   fi
9405   sys_lib_dlsearch_path_spec='/usr/lib'
9406   ;;
9407
9408 uts4*)
9409   version_type=linux
9410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411   soname_spec='${libname}${release}${shared_ext}$major'
9412   shlibpath_var=LD_LIBRARY_PATH
9413   ;;
9414
9415 *)
9416   dynamic_linker=no
9417   ;;
9418 esac
9419 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9420 echo "${ECHO_T}$dynamic_linker" >&6; }
9421 test "$dynamic_linker" = no && can_build_shared=no
9422
9423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9424 if test "$GCC" = yes; then
9425   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9426 fi
9427
9428
9429 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9430 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9431 if test "${libltdl_cv_shlibext+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434
9435 module=yes
9436 eval libltdl_cv_shlibext=$shrext_cmds
9437
9438 fi
9439 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9440 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9441 if test -n "$libltdl_cv_shlibext"; then
9442
9443 cat >>confdefs.h <<_ACEOF
9444 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9445 _ACEOF
9446
9447 fi
9448
9449
9450 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9451 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9452 if test "${libltdl_cv_sys_search_path+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9456 fi
9457 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9458 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9459 if test -n "$libltdl_cv_sys_search_path"; then
9460   sys_search_path=
9461   for dir in $libltdl_cv_sys_search_path; do
9462     if test -z "$sys_search_path"; then
9463       sys_search_path="$dir"
9464     else
9465       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9466     fi
9467   done
9468
9469 cat >>confdefs.h <<_ACEOF
9470 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9471 _ACEOF
9472
9473 fi
9474
9475 { echo "$as_me:$LINENO: checking for objdir" >&5
9476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9477 if test "${libltdl_cv_objdir+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   libltdl_cv_objdir="$objdir"
9481   if test -n "$objdir"; then
9482     :
9483   else
9484     rm -f .libs 2>/dev/null
9485     mkdir .libs 2>/dev/null
9486     if test -d .libs; then
9487       libltdl_cv_objdir=.libs
9488     else
9489       # MS-DOS does not allow filenames that begin with a dot.
9490       libltdl_cv_objdir=_libs
9491     fi
9492   rmdir .libs 2>/dev/null
9493   fi
9494
9495 fi
9496 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9497 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9498
9499 cat >>confdefs.h <<_ACEOF
9500 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9501 _ACEOF
9502
9503
9504
9505
9506
9507
9508 # Check for command to grab the raw symbol name followed by C symbol from nm.
9509 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9510 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9511 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514
9515 # These are sane defaults that work on at least a few old systems.
9516 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9517
9518 # Character class describing NM global symbol codes.
9519 symcode='[BCDEGRST]'
9520
9521 # Regexp to match symbols that can be accessed directly from C.
9522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9523
9524 # Transform an extracted symbol line into a proper C declaration
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9526
9527 # Transform an extracted symbol line into symbol name and symbol address
9528 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'"
9529
9530 # Define system-specific variables.
9531 case $host_os in
9532 aix*)
9533   symcode='[BCDT]'
9534   ;;
9535 cygwin* | mingw* | pw32*)
9536   symcode='[ABCDGISTW]'
9537   ;;
9538 hpux*) # Its linker distinguishes data from code symbols
9539   if test "$host_cpu" = ia64; then
9540     symcode='[ABCDEGRST]'
9541   fi
9542   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9543   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'"
9544   ;;
9545 linux*)
9546   if test "$host_cpu" = ia64; then
9547     symcode='[ABCDGIRSTW]'
9548     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9549     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'"
9550   fi
9551   ;;
9552 irix* | nonstopux*)
9553   symcode='[BCDEGRST]'
9554   ;;
9555 osf*)
9556   symcode='[BCDEGQRST]'
9557   ;;
9558 solaris*)
9559   symcode='[BDRT]'
9560   ;;
9561 sco3.2v5*)
9562   symcode='[DT]'
9563   ;;
9564 sysv4.2uw2*)
9565   symcode='[DT]'
9566   ;;
9567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9568   symcode='[ABDT]'
9569   ;;
9570 sysv4)
9571   symcode='[DFNSTU]'
9572   ;;
9573 esac
9574
9575 # Handle CRLF in mingw tool chain
9576 opt_cr=
9577 case $build_os in
9578 mingw*)
9579   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9580   ;;
9581 esac
9582
9583 # If we're using GNU nm, then use its standard symbol codes.
9584 case `$NM -V 2>&1` in
9585 *GNU* | *'with BFD'*)
9586   symcode='[ABCDGIRSTW]' ;;
9587 esac
9588
9589 # Try without a prefix undercore, then with it.
9590 for ac_symprfx in "" "_"; do
9591
9592   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9593   symxfrm="\\1 $ac_symprfx\\2 \\2"
9594
9595   # Write the raw and C identifiers.
9596   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9597
9598   # Check to see that the pipe works correctly.
9599   pipe_works=no
9600
9601   rm -f conftest*
9602   cat > conftest.$ac_ext <<EOF
9603 #ifdef __cplusplus
9604 extern "C" {
9605 #endif
9606 char nm_test_var;
9607 void nm_test_func(){}
9608 #ifdef __cplusplus
9609 }
9610 #endif
9611 int main(){nm_test_var='a';nm_test_func();return(0);}
9612 EOF
9613
9614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615   (eval $ac_compile) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; then
9619     # Now try to grab the symbols.
9620     nlist=conftest.nm
9621     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9622   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } && test -s "$nlist"; then
9626       # Try sorting and uniquifying the output.
9627       if sort "$nlist" | uniq > "$nlist"T; then
9628         mv -f "$nlist"T "$nlist"
9629       else
9630         rm -f "$nlist"T
9631       fi
9632
9633       # Make sure that we snagged all the symbols we need.
9634       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9635         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9636           cat <<EOF > conftest.$ac_ext
9637 #ifdef __cplusplus
9638 extern "C" {
9639 #endif
9640
9641 EOF
9642           # Now generate the symbol file.
9643           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9644
9645           cat <<EOF >> conftest.$ac_ext
9646 #if defined (__STDC__) && __STDC__
9647 # define lt_ptr_t void *
9648 #else
9649 # define lt_ptr_t char *
9650 # define const
9651 #endif
9652
9653 /* The mapping between symbol names and symbols. */
9654 const struct {
9655   const char *name;
9656   lt_ptr_t address;
9657 }
9658 lt_preloaded_symbols[] =
9659 {
9660 EOF
9661           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9662           cat <<\EOF >> conftest.$ac_ext
9663   {0, (lt_ptr_t) 0}
9664 };
9665
9666 #ifdef __cplusplus
9667 }
9668 #endif
9669 EOF
9670           # Now try linking the two files.
9671           mv conftest.$ac_objext conftstm.$ac_objext
9672           lt_save_LIBS="$LIBS"
9673           lt_save_CFLAGS="$CFLAGS"
9674           LIBS="conftstm.$ac_objext"
9675           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9676           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677   (eval $ac_link) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9681             pipe_works=yes
9682           fi
9683           LIBS="$lt_save_LIBS"
9684           CFLAGS="$lt_save_CFLAGS"
9685         else
9686           echo "cannot find nm_test_func in $nlist" >&5
9687         fi
9688       else
9689         echo "cannot find nm_test_var in $nlist" >&5
9690       fi
9691     else
9692       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9693     fi
9694   else
9695     echo "$progname: failed program was:" >&5
9696     cat conftest.$ac_ext >&5
9697   fi
9698   rm -f conftest* conftst*
9699
9700   # Do not use the global_symbol_pipe unless it works.
9701   if test "$pipe_works" = yes; then
9702     break
9703   else
9704     lt_cv_sys_global_symbol_pipe=
9705   fi
9706 done
9707
9708 fi
9709
9710 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9711   lt_cv_sys_global_symbol_to_cdecl=
9712 fi
9713 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9714   { echo "$as_me:$LINENO: result: failed" >&5
9715 echo "${ECHO_T}failed" >&6; }
9716 else
9717   { echo "$as_me:$LINENO: result: ok" >&5
9718 echo "${ECHO_T}ok" >&6; }
9719 fi
9720
9721
9722 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9723 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9724 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9728     libltdl_cv_preloaded_symbols=yes
9729   else
9730     libltdl_cv_preloaded_symbols=no
9731   fi
9732
9733 fi
9734 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9735 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9736 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9737
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_PRELOADED_SYMBOLS 1
9740 _ACEOF
9741
9742 fi
9743
9744 LIBADD_DL=
9745
9746 ac_ext=c
9747 ac_cpp='$CPP $CPPFLAGS'
9748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751
9752
9753 { echo "$as_me:$LINENO: checking for shl_load" >&5
9754 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9755 if test "${ac_cv_func_shl_load+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9766 #define shl_load innocuous_shl_load
9767
9768 /* System header to define __stub macros and hopefully few prototypes,
9769     which can conflict with char shl_load (); below.
9770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9771     <limits.h> exists even on freestanding compilers.  */
9772
9773 #ifdef __STDC__
9774 # include <limits.h>
9775 #else
9776 # include <assert.h>
9777 #endif
9778
9779 #undef shl_load
9780
9781 /* Override any GCC internal prototype to avoid an error.
9782    Use char because int might match the return type of a GCC
9783    builtin and then its argument prototype would still apply.  */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 char shl_load ();
9788 /* The GNU C library defines this for functions which it implements
9789     to always fail with ENOSYS.  Some functions are actually named
9790     something starting with __ and the normal name is an alias.  */
9791 #if defined __stub_shl_load || defined __stub___shl_load
9792 choke me
9793 #endif
9794
9795 int
9796 main ()
9797 {
9798 return shl_load ();
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9805 case "(($ac_try" in
9806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807   *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810   (eval "$ac_link") 2>conftest.er1
9811   ac_status=$?
9812   grep -v '^ *+' conftest.er1 >conftest.err
9813   rm -f conftest.er1
9814   cat conftest.err >&5
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818   { (case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_try") 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; } &&
9827          { ac_try='test -s conftest$ac_exeext'
9828   { (case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_try") 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; }; then
9837   ac_cv_func_shl_load=yes
9838 else
9839   echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842         ac_cv_func_shl_load=no
9843 fi
9844
9845 rm -f core conftest.err conftest.$ac_objext \
9846       conftest$ac_exeext conftest.$ac_ext
9847 fi
9848 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9850 if test $ac_cv_func_shl_load = yes; then
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_SHL_LOAD 1
9854 _ACEOF
9855
9856 else
9857   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9858 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9859 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9860   echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862   ac_check_lib_save_LIBS=$LIBS
9863 LIBS="-ldld  $LIBS"
9864 cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870
9871 /* Override any GCC internal prototype to avoid an error.
9872    Use char because int might match the return type of a GCC
9873    builtin and then its argument prototype would still apply.  */
9874 #ifdef __cplusplus
9875 extern "C"
9876 #endif
9877 char shl_load ();
9878 int
9879 main ()
9880 {
9881 return shl_load ();
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9888 case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_link") 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901   { (case "(($ac_try" in
9902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903   *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906   (eval "$ac_try") 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; } &&
9910          { ac_try='test -s conftest$ac_exeext'
9911   { (case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_try") 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   ac_cv_lib_dld_shl_load=yes
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925         ac_cv_lib_dld_shl_load=no
9926 fi
9927
9928 rm -f core conftest.err conftest.$ac_objext \
9929       conftest$ac_exeext conftest.$ac_ext
9930 LIBS=$ac_check_lib_save_LIBS
9931 fi
9932 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9933 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9934 if test $ac_cv_lib_dld_shl_load = yes; then
9935
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_SHL_LOAD 1
9938 _ACEOF
9939
9940         LIBADD_DL="$LIBADD_DL -ldld"
9941 else
9942   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947   ac_check_lib_save_LIBS=$LIBS
9948 LIBS="-ldl  $LIBS"
9949 cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h.  */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h.  */
9955
9956 /* Override any GCC internal prototype to avoid an error.
9957    Use char because int might match the return type of a GCC
9958    builtin and then its argument prototype would still apply.  */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char dlopen ();
9963 int
9964 main ()
9965 {
9966 return dlopen ();
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9973 case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_link") 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } &&
9985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986   { (case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991   (eval "$ac_try") 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; } &&
9995          { ac_try='test -s conftest$ac_exeext'
9996   { (case "(($ac_try" in
9997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998   *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001   (eval "$ac_try") 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_lib_dl_dlopen=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010         ac_cv_lib_dl_dlopen=no
10011 fi
10012
10013 rm -f core conftest.err conftest.$ac_objext \
10014       conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_lib_save_LIBS
10016 fi
10017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10019 if test $ac_cv_lib_dl_dlopen = yes; then
10020
10021 cat >>confdefs.h <<\_ACEOF
10022 #define HAVE_LIBDL 1
10023 _ACEOF
10024
10025                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033 #if HAVE_DLFCN_H
10034 #  include <dlfcn.h>
10035 #endif
10036
10037 int
10038 main ()
10039 {
10040 dlopen(0, 0);
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049   *) ac_try_echo=$ac_try;;
10050 esac
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052   (eval "$ac_link") 2>conftest.er1
10053   ac_status=$?
10054   grep -v '^ *+' conftest.er1 >conftest.err
10055   rm -f conftest.er1
10056   cat conftest.err >&5
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } &&
10059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10060   { (case "(($ac_try" in
10061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062   *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065   (eval "$ac_try") 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; } &&
10069          { ac_try='test -s conftest$ac_exeext'
10070   { (case "(($ac_try" in
10071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072   *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075   (eval "$ac_try") 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; }; then
10079
10080 cat >>confdefs.h <<\_ACEOF
10081 #define HAVE_LIBDL 1
10082 _ACEOF
10083  libltdl_cv_func_dlopen="yes"
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10089 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10090 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-lsvld  $LIBS"
10095 cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101
10102 /* Override any GCC internal prototype to avoid an error.
10103    Use char because int might match the return type of a GCC
10104    builtin and then its argument prototype would still apply.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 char dlopen ();
10109 int
10110 main ()
10111 {
10112 return dlopen ();
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (ac_try="$ac_link"
10119 case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124   (eval "$ac_link") 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } &&
10131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10132   { (case "(($ac_try" in
10133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134   *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137   (eval "$ac_try") 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; } &&
10141          { ac_try='test -s conftest$ac_exeext'
10142   { (case "(($ac_try" in
10143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144   *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147   (eval "$ac_try") 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   ac_cv_lib_svld_dlopen=yes
10152 else
10153   echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156         ac_cv_lib_svld_dlopen=no
10157 fi
10158
10159 rm -f core conftest.err conftest.$ac_objext \
10160       conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10162 fi
10163 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10164 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10165 if test $ac_cv_lib_svld_dlopen = yes; then
10166
10167 cat >>confdefs.h <<\_ACEOF
10168 #define HAVE_LIBDL 1
10169 _ACEOF
10170
10171                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10172 else
10173   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10174 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10175 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   ac_check_lib_save_LIBS=$LIBS
10179 LIBS="-ldld  $LIBS"
10180 cat >conftest.$ac_ext <<_ACEOF
10181 /* confdefs.h.  */
10182 _ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h.  */
10186
10187 /* Override any GCC internal prototype to avoid an error.
10188    Use char because int might match the return type of a GCC
10189    builtin and then its argument prototype would still apply.  */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char dld_link ();
10194 int
10195 main ()
10196 {
10197 return dld_link ();
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_link") 2>conftest.er1
10210   ac_status=$?
10211   grep -v '^ *+' conftest.er1 >conftest.err
10212   rm -f conftest.er1
10213   cat conftest.err >&5
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } &&
10216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10217   { (case "(($ac_try" in
10218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219   *) ac_try_echo=$ac_try;;
10220 esac
10221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222   (eval "$ac_try") 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; } &&
10226          { ac_try='test -s conftest$ac_exeext'
10227   { (case "(($ac_try" in
10228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229   *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232   (eval "$ac_try") 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; }; then
10236   ac_cv_lib_dld_dld_link=yes
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241         ac_cv_lib_dld_dld_link=no
10242 fi
10243
10244 rm -f core conftest.err conftest.$ac_objext \
10245       conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10247 fi
10248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10250 if test $ac_cv_lib_dld_dld_link = yes; then
10251
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_DLD 1
10254 _ACEOF
10255
10256                 LIBADD_DL="$LIBADD_DL -ldld"
10257 else
10258   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10259 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10260 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10271 #define _dyld_func_lookup innocuous__dyld_func_lookup
10272
10273 /* System header to define __stub macros and hopefully few prototypes,
10274     which can conflict with char _dyld_func_lookup (); below.
10275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10276     <limits.h> exists even on freestanding compilers.  */
10277
10278 #ifdef __STDC__
10279 # include <limits.h>
10280 #else
10281 # include <assert.h>
10282 #endif
10283
10284 #undef _dyld_func_lookup
10285
10286 /* Override any GCC internal prototype to avoid an error.
10287    Use char because int might match the return type of a GCC
10288    builtin and then its argument prototype would still apply.  */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 char _dyld_func_lookup ();
10293 /* The GNU C library defines this for functions which it implements
10294     to always fail with ENOSYS.  Some functions are actually named
10295     something starting with __ and the normal name is an alias.  */
10296 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10297 choke me
10298 #endif
10299
10300 int
10301 main ()
10302 {
10303 return _dyld_func_lookup ();
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315   (eval "$ac_link") 2>conftest.er1
10316   ac_status=$?
10317   grep -v '^ *+' conftest.er1 >conftest.err
10318   rm -f conftest.er1
10319   cat conftest.err >&5
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } &&
10322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10323   { (case "(($ac_try" in
10324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325   *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328   (eval "$ac_try") 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; } &&
10332          { ac_try='test -s conftest$ac_exeext'
10333   { (case "(($ac_try" in
10334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335   *) ac_try_echo=$ac_try;;
10336 esac
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338   (eval "$ac_try") 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; }; then
10342   ac_cv_func__dyld_func_lookup=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347         ac_cv_func__dyld_func_lookup=no
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext \
10351       conftest$ac_exeext conftest.$ac_ext
10352 fi
10353 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10354 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10355 if test $ac_cv_func__dyld_func_lookup = yes; then
10356
10357 cat >>confdefs.h <<\_ACEOF
10358 #define HAVE_DYLD 1
10359 _ACEOF
10360
10361 fi
10362
10363
10364 fi
10365
10366
10367 fi
10368
10369
10370 fi
10371
10372 rm -f core conftest.err conftest.$ac_objext \
10373       conftest$ac_exeext conftest.$ac_ext
10374
10375 fi
10376
10377
10378 fi
10379
10380
10381 fi
10382
10383
10384 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10385 then
10386   lt_save_LIBS="$LIBS"
10387   LIBS="$LIBS $LIBADD_DL"
10388
10389 for ac_func in dlerror
10390 do
10391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397   cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10405 #define $ac_func innocuous_$ac_func
10406
10407 /* System header to define __stub macros and hopefully few prototypes,
10408     which can conflict with char $ac_func (); below.
10409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410     <limits.h> exists even on freestanding compilers.  */
10411
10412 #ifdef __STDC__
10413 # include <limits.h>
10414 #else
10415 # include <assert.h>
10416 #endif
10417
10418 #undef $ac_func
10419
10420 /* Override any GCC internal prototype to avoid an error.
10421    Use char because int might match the return type of a GCC
10422    builtin and then its argument prototype would still apply.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 char $ac_func ();
10427 /* The GNU C library defines this for functions which it implements
10428     to always fail with ENOSYS.  Some functions are actually named
10429     something starting with __ and the normal name is an alias.  */
10430 #if defined __stub_$ac_func || defined __stub___$ac_func
10431 choke me
10432 #endif
10433
10434 int
10435 main ()
10436 {
10437 return $ac_func ();
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_link") 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10457   { (case "(($ac_try" in
10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459   *) ac_try_echo=$ac_try;;
10460 esac
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462   (eval "$ac_try") 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); }; } &&
10466          { ac_try='test -s conftest$ac_exeext'
10467   { (case "(($ac_try" in
10468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469   *) ac_try_echo=$ac_try;;
10470 esac
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472   (eval "$ac_try") 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; }; then
10476   eval "$as_ac_var=yes"
10477 else
10478   echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481         eval "$as_ac_var=no"
10482 fi
10483
10484 rm -f core conftest.err conftest.$ac_objext \
10485       conftest$ac_exeext conftest.$ac_ext
10486 fi
10487 ac_res=`eval echo '${'$as_ac_var'}'`
10488                { echo "$as_me:$LINENO: result: $ac_res" >&5
10489 echo "${ECHO_T}$ac_res" >&6; }
10490 if test `eval echo '${'$as_ac_var'}'` = yes; then
10491   cat >>confdefs.h <<_ACEOF
10492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10493 _ACEOF
10494
10495 fi
10496 done
10497
10498   LIBS="$lt_save_LIBS"
10499 fi
10500 ac_ext=c
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10505
10506
10507
10508 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10509 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10510 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513   ac_cv_sys_symbol_underscore=no
10514   cat > conftest.$ac_ext <<EOF
10515 void nm_test_func(){}
10516 int main(){nm_test_func;return 0;}
10517 EOF
10518   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519   (eval $ac_compile) 2>&5
10520   ac_status=$?
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); }; then
10523     # Now try to grab the symbols.
10524     ac_nlist=conftest.nm
10525     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10526   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } && test -s "$ac_nlist"; then
10530       # See whether the symbols have a leading underscore.
10531       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10532         ac_cv_sys_symbol_underscore=yes
10533       else
10534         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10535           :
10536         else
10537           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10538         fi
10539       fi
10540     else
10541       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10542     fi
10543   else
10544     echo "configure: failed program was:" >&5
10545     cat conftest.c >&5
10546   fi
10547   rm -rf conftest*
10548
10549 fi
10550 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10551 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10552
10553
10554 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10555   if test x"$libltdl_cv_func_dlopen" = xyes ||
10556      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10557         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10558 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10559 if test "${libltdl_cv_need_uscore+set}" = set; then
10560   echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562   libltdl_cv_need_uscore=unknown
10563           save_LIBS="$LIBS"
10564           LIBS="$LIBS $LIBADD_DL"
10565           if test "$cross_compiling" = yes; then :
10566   libltdl_cv_need_uscore=cross
10567 else
10568   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10569   lt_status=$lt_dlunknown
10570   cat > conftest.$ac_ext <<EOF
10571 #line 10571 "configure"
10572 #include "confdefs.h"
10573
10574 #if HAVE_DLFCN_H
10575 #include <dlfcn.h>
10576 #endif
10577
10578 #include <stdio.h>
10579
10580 #ifdef RTLD_GLOBAL
10581 #  define LT_DLGLOBAL           RTLD_GLOBAL
10582 #else
10583 #  ifdef DL_GLOBAL
10584 #    define LT_DLGLOBAL         DL_GLOBAL
10585 #  else
10586 #    define LT_DLGLOBAL         0
10587 #  endif
10588 #endif
10589
10590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10591    find out it does not work in some platform. */
10592 #ifndef LT_DLLAZY_OR_NOW
10593 #  ifdef RTLD_LAZY
10594 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10595 #  else
10596 #    ifdef DL_LAZY
10597 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10598 #    else
10599 #      ifdef RTLD_NOW
10600 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10601 #      else
10602 #        ifdef DL_NOW
10603 #          define LT_DLLAZY_OR_NOW      DL_NOW
10604 #        else
10605 #          define LT_DLLAZY_OR_NOW      0
10606 #        endif
10607 #      endif
10608 #    endif
10609 #  endif
10610 #endif
10611
10612 #ifdef __cplusplus
10613 extern "C" void exit (int);
10614 #endif
10615
10616 void fnord() { int i=42;}
10617 int main ()
10618 {
10619   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10620   int status = $lt_dlunknown;
10621
10622   if (self)
10623     {
10624       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10625       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10626       /* dlclose (self); */
10627     }
10628   else
10629     puts (dlerror ());
10630
10631     exit (status);
10632 }
10633 EOF
10634   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635   (eval $ac_link) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10639     (./conftest; exit; ) >&5 2>/dev/null
10640     lt_status=$?
10641     case x$lt_status in
10642       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10643       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10644       x$lt_dlunknown|x*)  ;;
10645     esac
10646   else :
10647     # compilation failed
10648
10649   fi
10650 fi
10651 rm -fr conftest*
10652
10653           LIBS="$save_LIBS"
10654
10655 fi
10656 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10657 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10658   fi
10659 fi
10660
10661 if test x"$libltdl_cv_need_uscore" = xyes; then
10662
10663 cat >>confdefs.h <<\_ACEOF
10664 #define NEED_USCORE 1
10665 _ACEOF
10666
10667 fi
10668
10669
10670 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10671 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10672 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   # PORTME does your system automatically load deplibs for dlopen?
10676   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10677   # For now, we just catch OSes we know something about -- in the
10678   # future, we'll try test this programmatically.
10679   libltdl_cv_sys_dlopen_deplibs=unknown
10680   case "$host_os" in
10681   aix3*|aix4.1.*|aix4.2.*)
10682     # Unknown whether this is true for these versions of AIX, but
10683     # we want this `case' here to explicitly catch those versions.
10684     libltdl_cv_sys_dlopen_deplibs=unknown
10685     ;;
10686   aix[45]*)
10687     libltdl_cv_sys_dlopen_deplibs=yes
10688     ;;
10689   darwin*)
10690     # Assuming the user has installed a libdl from somewhere, this is true
10691     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10692     libltdl_cv_sys_dlopen_deplibs=yes
10693     ;;
10694   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10695     # GNU and its variants, using gnu ld.so (Glibc)
10696     libltdl_cv_sys_dlopen_deplibs=yes
10697     ;;
10698   hpux10*|hpux11*)
10699     libltdl_cv_sys_dlopen_deplibs=yes
10700     ;;
10701   interix*)
10702     libltdl_cv_sys_dlopen_deplibs=yes
10703     ;;
10704   irix[12345]*|irix6.[01]*)
10705     # Catch all versions of IRIX before 6.2, and indicate that we don't
10706     # know how it worked for any of those versions.
10707     libltdl_cv_sys_dlopen_deplibs=unknown
10708     ;;
10709   irix*)
10710     # The case above catches anything before 6.2, and it's known that
10711     # at 6.2 and later dlopen does load deplibs.
10712     libltdl_cv_sys_dlopen_deplibs=yes
10713     ;;
10714   netbsd*)
10715     libltdl_cv_sys_dlopen_deplibs=yes
10716     ;;
10717   openbsd*)
10718     libltdl_cv_sys_dlopen_deplibs=yes
10719     ;;
10720   osf[1234]*)
10721     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10722     # it did *not* use an RPATH in a shared library to find objects the
10723     # library depends on, so we explicitly say `no'.
10724     libltdl_cv_sys_dlopen_deplibs=no
10725     ;;
10726   osf5.0|osf5.0a|osf5.1)
10727     # dlopen *does* load deplibs and with the right loader patch applied
10728     # it even uses RPATH in a shared library to search for shared objects
10729     # that the library depends on, but there's no easy way to know if that
10730     # patch is installed.  Since this is the case, all we can really
10731     # say is unknown -- it depends on the patch being installed.  If
10732     # it is, this changes to `yes'.  Without it, it would be `no'.
10733     libltdl_cv_sys_dlopen_deplibs=unknown
10734     ;;
10735   osf*)
10736     # the two cases above should catch all versions of osf <= 5.1.  Read
10737     # the comments above for what we know about them.
10738     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10739     # is used to find them so we can finally say `yes'.
10740     libltdl_cv_sys_dlopen_deplibs=yes
10741     ;;
10742   solaris*)
10743     libltdl_cv_sys_dlopen_deplibs=yes
10744     ;;
10745   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10746     libltdl_cv_sys_dlopen_deplibs=yes
10747     ;;
10748   esac
10749
10750 fi
10751 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10752 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10753 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10754
10755 cat >>confdefs.h <<\_ACEOF
10756 #define LTDL_DLOPEN_DEPLIBS 1
10757 _ACEOF
10758
10759 fi
10760
10761
10762 for ac_header in argz.h
10763 do
10764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10766   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 fi
10771 ac_res=`eval echo '${'$as_ac_Header'}'`
10772                { echo "$as_me:$LINENO: result: $ac_res" >&5
10773 echo "${ECHO_T}$ac_res" >&6; }
10774 else
10775   # Is the header compilable?
10776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 $ac_includes_default
10785 #include <$ac_header>
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_compile") 2>conftest.er1
10795   ac_status=$?
10796   grep -v '^ *+' conftest.er1 >conftest.err
10797   rm -f conftest.er1
10798   cat conftest.err >&5
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } &&
10801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10802   { (case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_try") 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; } &&
10811          { ac_try='test -s conftest.$ac_objext'
10812   { (case "(($ac_try" in
10813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814   *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817   (eval "$ac_try") 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; }; then
10821   ac_header_compiler=yes
10822 else
10823   echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10825
10826         ac_header_compiler=no
10827 fi
10828
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10831 echo "${ECHO_T}$ac_header_compiler" >&6; }
10832
10833 # Is the header present?
10834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 #include <$ac_header>
10843 _ACEOF
10844 if { (ac_try="$ac_cpp conftest.$ac_ext"
10845 case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10851   ac_status=$?
10852   grep -v '^ *+' conftest.er1 >conftest.err
10853   rm -f conftest.er1
10854   cat conftest.err >&5
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } >/dev/null; then
10857   if test -s conftest.err; then
10858     ac_cpp_err=$ac_c_preproc_warn_flag
10859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10860   else
10861     ac_cpp_err=
10862   fi
10863 else
10864   ac_cpp_err=yes
10865 fi
10866 if test -z "$ac_cpp_err"; then
10867   ac_header_preproc=yes
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872   ac_header_preproc=no
10873 fi
10874
10875 rm -f conftest.err conftest.$ac_ext
10876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877 echo "${ECHO_T}$ac_header_preproc" >&6; }
10878
10879 # So?  What about this header?
10880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10881   yes:no: )
10882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10886     ac_header_preproc=yes
10887     ;;
10888   no:yes:* )
10889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10901     ( cat <<\_ASBOX
10902 ## ------------------------------------ ##
10903 ## Report this to http://llvm.org/bugs/ ##
10904 ## ------------------------------------ ##
10905 _ASBOX
10906      ) | sed "s/^/$as_me: WARNING:     /" >&2
10907     ;;
10908 esac
10909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   eval "$as_ac_Header=\$ac_header_preproc"
10915 fi
10916 ac_res=`eval echo '${'$as_ac_Header'}'`
10917                { echo "$as_me:$LINENO: result: $ac_res" >&5
10918 echo "${ECHO_T}$ac_res" >&6; }
10919
10920 fi
10921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10922   cat >>confdefs.h <<_ACEOF
10923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10924 _ACEOF
10925
10926 fi
10927
10928 done
10929
10930
10931 { echo "$as_me:$LINENO: checking for error_t" >&5
10932 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10933 if test "${ac_cv_type_error_t+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   cat >conftest.$ac_ext <<_ACEOF
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942 #if HAVE_ARGZ_H
10943 #  include <argz.h>
10944 #endif
10945
10946 typedef error_t ac__type_new_;
10947 int
10948 main ()
10949 {
10950 if ((ac__type_new_ *) 0)
10951   return 0;
10952 if (sizeof (ac__type_new_))
10953   return 0;
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_compile") 2>conftest.er1
10966   ac_status=$?
10967   grep -v '^ *+' conftest.er1 >conftest.err
10968   rm -f conftest.er1
10969   cat conftest.err >&5
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } &&
10972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10973   { (case "(($ac_try" in
10974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975   *) ac_try_echo=$ac_try;;
10976 esac
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978   (eval "$ac_try") 2>&5
10979   ac_status=$?
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); }; } &&
10982          { ac_try='test -s conftest.$ac_objext'
10983   { (case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_try") 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }; }; then
10992   ac_cv_type_error_t=yes
10993 else
10994   echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10996
10997         ac_cv_type_error_t=no
10998 fi
10999
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 fi
11002 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11003 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11004 if test $ac_cv_type_error_t = yes; then
11005
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_ERROR_T 1
11008 _ACEOF
11009
11010
11011 else
11012
11013 cat >>confdefs.h <<\_ACEOF
11014 #define error_t int
11015 _ACEOF
11016
11017 fi
11018
11019
11020
11021
11022
11023
11024
11025 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11026 do
11027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033   cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11041 #define $ac_func innocuous_$ac_func
11042
11043 /* System header to define __stub macros and hopefully few prototypes,
11044     which can conflict with char $ac_func (); below.
11045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046     <limits.h> exists even on freestanding compilers.  */
11047
11048 #ifdef __STDC__
11049 # include <limits.h>
11050 #else
11051 # include <assert.h>
11052 #endif
11053
11054 #undef $ac_func
11055
11056 /* Override any GCC internal prototype to avoid an error.
11057    Use char because int might match the return type of a GCC
11058    builtin and then its argument prototype would still apply.  */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char $ac_func ();
11063 /* The GNU C library defines this for functions which it implements
11064     to always fail with ENOSYS.  Some functions are actually named
11065     something starting with __ and the normal name is an alias.  */
11066 #if defined __stub_$ac_func || defined __stub___$ac_func
11067 choke me
11068 #endif
11069
11070 int
11071 main ()
11072 {
11073 return $ac_func ();
11074   ;
11075   return 0;
11076 }
11077 _ACEOF
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (ac_try="$ac_link"
11080 case "(($ac_try" in
11081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082   *) ac_try_echo=$ac_try;;
11083 esac
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085   (eval "$ac_link") 2>conftest.er1
11086   ac_status=$?
11087   grep -v '^ *+' conftest.er1 >conftest.err
11088   rm -f conftest.er1
11089   cat conftest.err >&5
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } &&
11092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11102          { ac_try='test -s conftest$ac_exeext'
11103   { (case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_try") 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; }; then
11112   eval "$as_ac_var=yes"
11113 else
11114   echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117         eval "$as_ac_var=no"
11118 fi
11119
11120 rm -f core conftest.err conftest.$ac_objext \
11121       conftest$ac_exeext conftest.$ac_ext
11122 fi
11123 ac_res=`eval echo '${'$as_ac_var'}'`
11124                { echo "$as_me:$LINENO: result: $ac_res" >&5
11125 echo "${ECHO_T}$ac_res" >&6; }
11126 if test `eval echo '${'$as_ac_var'}'` = yes; then
11127   cat >>confdefs.h <<_ACEOF
11128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11129 _ACEOF
11130
11131 fi
11132 done
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 for ac_header in errno.h malloc.h memory.h unistd.h
11157 do
11158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11163   echo $ECHO_N "(cached) $ECHO_C" >&6
11164 fi
11165 ac_res=`eval echo '${'$as_ac_Header'}'`
11166                { echo "$as_me:$LINENO: result: $ac_res" >&5
11167 echo "${ECHO_T}$ac_res" >&6; }
11168 else
11169   # Is the header compilable?
11170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 $ac_includes_default
11179 #include <$ac_header>
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (ac_try="$ac_compile"
11183 case "(($ac_try" in
11184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185   *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188   (eval "$ac_compile") 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } &&
11195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196   { (case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_try") 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; } &&
11205          { ac_try='test -s conftest.$ac_objext'
11206   { (case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_try") 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; }; then
11215   ac_header_compiler=yes
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220         ac_header_compiler=no
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11225 echo "${ECHO_T}$ac_header_compiler" >&6; }
11226
11227 # Is the header present?
11228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236 #include <$ac_header>
11237 _ACEOF
11238 if { (ac_try="$ac_cpp conftest.$ac_ext"
11239 case "(($ac_try" in
11240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241   *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } >/dev/null; then
11251   if test -s conftest.err; then
11252     ac_cpp_err=$ac_c_preproc_warn_flag
11253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11254   else
11255     ac_cpp_err=
11256   fi
11257 else
11258   ac_cpp_err=yes
11259 fi
11260 if test -z "$ac_cpp_err"; then
11261   ac_header_preproc=yes
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266   ac_header_preproc=no
11267 fi
11268
11269 rm -f conftest.err conftest.$ac_ext
11270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11271 echo "${ECHO_T}$ac_header_preproc" >&6; }
11272
11273 # So?  What about this header?
11274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11275   yes:no: )
11276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11280     ac_header_preproc=yes
11281     ;;
11282   no:yes:* )
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11295     ( cat <<\_ASBOX
11296 ## ------------------------------------ ##
11297 ## Report this to http://llvm.org/bugs/ ##
11298 ## ------------------------------------ ##
11299 _ASBOX
11300      ) | sed "s/^/$as_me: WARNING:     /" >&2
11301     ;;
11302 esac
11303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   eval "$as_ac_Header=\$ac_header_preproc"
11309 fi
11310 ac_res=`eval echo '${'$as_ac_Header'}'`
11311                { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11313
11314 fi
11315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316   cat >>confdefs.h <<_ACEOF
11317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11318 _ACEOF
11319
11320 fi
11321
11322 done
11323
11324
11325 for ac_header in mach-o/dyld.h
11326 do
11327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332   echo $ECHO_N "(cached) $ECHO_C" >&6
11333 fi
11334 ac_res=`eval echo '${'$as_ac_Header'}'`
11335                { echo "$as_me:$LINENO: result: $ac_res" >&5
11336 echo "${ECHO_T}$ac_res" >&6; }
11337 else
11338   # Is the header compilable?
11339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 $ac_includes_default
11348 #include <$ac_header>
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_compile") 2>conftest.er1
11358   ac_status=$?
11359   grep -v '^ *+' conftest.er1 >conftest.err
11360   rm -f conftest.er1
11361   cat conftest.err >&5
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); } &&
11364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11365   { (case "(($ac_try" in
11366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367   *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370   (eval "$ac_try") 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; } &&
11374          { ac_try='test -s conftest.$ac_objext'
11375   { (case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_try") 2>&5
11381   ac_status=$?
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); }; }; then
11384   ac_header_compiler=yes
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389         ac_header_compiler=no
11390 fi
11391
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11394 echo "${ECHO_T}$ac_header_compiler" >&6; }
11395
11396 # Is the header present?
11397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h.  */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h.  */
11405 #include <$ac_header>
11406 _ACEOF
11407 if { (ac_try="$ac_cpp conftest.$ac_ext"
11408 case "(($ac_try" in
11409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410   *) ac_try_echo=$ac_try;;
11411 esac
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11414   ac_status=$?
11415   grep -v '^ *+' conftest.er1 >conftest.err
11416   rm -f conftest.er1
11417   cat conftest.err >&5
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); } >/dev/null; then
11420   if test -s conftest.err; then
11421     ac_cpp_err=$ac_c_preproc_warn_flag
11422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11423   else
11424     ac_cpp_err=
11425   fi
11426 else
11427   ac_cpp_err=yes
11428 fi
11429 if test -z "$ac_cpp_err"; then
11430   ac_header_preproc=yes
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435   ac_header_preproc=no
11436 fi
11437
11438 rm -f conftest.err conftest.$ac_ext
11439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11440 echo "${ECHO_T}$ac_header_preproc" >&6; }
11441
11442 # So?  What about this header?
11443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11444   yes:no: )
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11449     ac_header_preproc=yes
11450     ;;
11451   no:yes:* )
11452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11464     ( cat <<\_ASBOX
11465 ## ------------------------------------ ##
11466 ## Report this to http://llvm.org/bugs/ ##
11467 ## ------------------------------------ ##
11468 _ASBOX
11469      ) | sed "s/^/$as_me: WARNING:     /" >&2
11470     ;;
11471 esac
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477   eval "$as_ac_Header=\$ac_header_preproc"
11478 fi
11479 ac_res=`eval echo '${'$as_ac_Header'}'`
11480                { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482
11483 fi
11484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11485   cat >>confdefs.h <<_ACEOF
11486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11487 _ACEOF
11488
11489 fi
11490
11491 done
11492
11493
11494
11495
11496
11497 for ac_func in closedir opendir readdir
11498 do
11499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505   cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11513 #define $ac_func innocuous_$ac_func
11514
11515 /* System header to define __stub macros and hopefully few prototypes,
11516     which can conflict with char $ac_func (); below.
11517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11518     <limits.h> exists even on freestanding compilers.  */
11519
11520 #ifdef __STDC__
11521 # include <limits.h>
11522 #else
11523 # include <assert.h>
11524 #endif
11525
11526 #undef $ac_func
11527
11528 /* Override any GCC internal prototype to avoid an error.
11529    Use char because int might match the return type of a GCC
11530    builtin and then its argument prototype would still apply.  */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char $ac_func ();
11535 /* The GNU C library defines this for functions which it implements
11536     to always fail with ENOSYS.  Some functions are actually named
11537     something starting with __ and the normal name is an alias.  */
11538 #if defined __stub_$ac_func || defined __stub___$ac_func
11539 choke me
11540 #endif
11541
11542 int
11543 main ()
11544 {
11545 return $ac_func ();
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554   *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557   (eval "$ac_link") 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } &&
11564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565   { (case "(($ac_try" in
11566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567   *) ac_try_echo=$ac_try;;
11568 esac
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570   (eval "$ac_try") 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest$ac_exeext'
11575   { (case "(($ac_try" in
11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577   *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_try") 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; }; then
11584   eval "$as_ac_var=yes"
11585 else
11586   echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589         eval "$as_ac_var=no"
11590 fi
11591
11592 rm -f core conftest.err conftest.$ac_objext \
11593       conftest$ac_exeext conftest.$ac_ext
11594 fi
11595 ac_res=`eval echo '${'$as_ac_var'}'`
11596                { echo "$as_me:$LINENO: result: $ac_res" >&5
11597 echo "${ECHO_T}$ac_res" >&6; }
11598 if test `eval echo '${'$as_ac_var'}'` = yes; then
11599   cat >>confdefs.h <<_ACEOF
11600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 _ACEOF
11602
11603 fi
11604 done
11605
11606
11607
11608 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11609 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11610
11611 ICC=no
11612 IXX=no
11613 case $CC in
11614   icc*|icpc*)
11615     ICC=yes
11616     IXX=yes
11617     ;;
11618    *)
11619     ;;
11620 esac
11621
11622 if test "$GCC" != "yes" && test "$ICC" != "yes"
11623 then
11624   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11625 echo "$as_me: error: gcc|icc required but not found" >&2;}
11626    { (exit 1); exit 1; }; }
11627 fi
11628
11629 if test "$GXX" != "yes" && test "$IXX" != "yes"
11630 then
11631   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11632 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11633    { (exit 1); exit 1; }; }
11634 fi
11635
11636 if test "$GCC" = "yes"
11637 then
11638   cat >conftest.$ac_ext <<_ACEOF
11639
11640   /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645
11646     #if !defined(__GNUC__) || __GNUC__ < 3
11647     #error Unsupported GCC version
11648     #endif
11649
11650
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_compile") 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest.$ac_objext'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   :
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11692 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11693    { (exit 1); exit 1; }; }
11694 fi
11695
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 fi
11698
11699 if test -z "$llvm_cv_gnu_make_command"
11700 then
11701   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11702 echo "$as_me: error: GNU Make required but not found" >&2;}
11703    { (exit 1); exit 1; }; }
11704 fi
11705
11706 { echo "$as_me:$LINENO: result: ok" >&5
11707 echo "${ECHO_T}ok" >&6; }
11708
11709 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11710 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11711 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11712
11713 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11714
11715 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11716
11717
11718 NO_UNINITIALIZED=
11719 NO_MAYBE_UNINITIALIZED=
11720 if test "$GXX" = "yes"
11721 then
11722   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11723
11724         if test -z "$NO_MAYBE_UNINITIALIZED"
11725   then
11726     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11727
11728   fi
11729 fi
11730 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11731 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11732
11733
11734 # Check whether --with-python was given.
11735 if test "${with_python+set}" = set; then
11736   withval=$with_python; PYTHON="$withval"
11737 fi
11738
11739
11740 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11741   { echo "$as_me:$LINENO: checking for python" >&5
11742 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11743   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11744 echo "${ECHO_T}user defined: $with_python" >&6; }
11745 else
11746   if test -n "$PYTHON" ; then
11747     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11748 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11749   fi
11750
11751   # Extract the first word of "python python2 python26", so it can be a program name with args.
11752 set dummy python python2 python26; ac_word=$2
11753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11755 if test "${ac_cv_path_PYTHON+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   case $PYTHON in
11759   [\\/]* | ?:[\\/]*)
11760   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11761   ;;
11762   *)
11763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11765 do
11766   IFS=$as_save_IFS
11767   test -z "$as_dir" && as_dir=.
11768   for ac_exec_ext in '' $ac_executable_extensions; do
11769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11770     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11772     break 2
11773   fi
11774 done
11775 done
11776 IFS=$as_save_IFS
11777
11778   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11779 echo "${ECHO_T}not found" >&6; }
11780                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11781 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11782    { (exit 1); exit 1; }; }"
11783   ;;
11784 esac
11785 fi
11786 PYTHON=$ac_cv_path_PYTHON
11787 if test -n "$PYTHON"; then
11788   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11789 echo "${ECHO_T}$PYTHON" >&6; }
11790 else
11791   { echo "$as_me:$LINENO: result: no" >&5
11792 echo "${ECHO_T}no" >&6; }
11793 fi
11794
11795
11796 fi
11797
11798 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11799 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11800 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11801 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11802 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11803 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11804 if   test "$ac_python_version_major" -eq "2" \
11805    && test "$ac_python_version_minor" -ge "5" ; then
11806   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11807 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11808 else
11809   { echo "$as_me:$LINENO: result: not found" >&5
11810 echo "${ECHO_T}not found" >&6; }
11811   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11812 See \`config.log' for more details." >&5
11813 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11814 See \`config.log' for more details." >&2;}
11815    { (exit 1); exit 1; }; }
11816 fi
11817
11818
11819
11820 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11821 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11822 if test "${ac_cv_lib_m_sin+set}" = set; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   ac_check_lib_save_LIBS=$LIBS
11826 LIBS="-lm  $LIBS"
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h.  */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h.  */
11833
11834 /* Override any GCC internal prototype to avoid an error.
11835    Use char because int might match the return type of a GCC
11836    builtin and then its argument prototype would still apply.  */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char sin ();
11841 int
11842 main ()
11843 {
11844 return sin ();
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (ac_try="$ac_link"
11851 case "(($ac_try" in
11852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853   *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856   (eval "$ac_link") 2>conftest.er1
11857   ac_status=$?
11858   grep -v '^ *+' conftest.er1 >conftest.err
11859   rm -f conftest.er1
11860   cat conftest.err >&5
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } &&
11863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11864   { (case "(($ac_try" in
11865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866   *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869   (eval "$ac_try") 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; } &&
11873          { ac_try='test -s conftest$ac_exeext'
11874   { (case "(($ac_try" in
11875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876   *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879   (eval "$ac_try") 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; }; then
11883   ac_cv_lib_m_sin=yes
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888         ac_cv_lib_m_sin=no
11889 fi
11890
11891 rm -f core conftest.err conftest.$ac_objext \
11892       conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11894 fi
11895 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11896 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11897 if test $ac_cv_lib_m_sin = yes; then
11898   cat >>confdefs.h <<_ACEOF
11899 #define HAVE_LIBM 1
11900 _ACEOF
11901
11902   LIBS="-lm $LIBS"
11903
11904 fi
11905
11906 if test "$llvm_cv_os_type" = "MingW" ; then
11907
11908 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11909 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11910 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-limagehlp  $LIBS"
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921
11922
11923 int
11924 main ()
11925 {
11926 return main ();
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_link") 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946   { (case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951   (eval "$ac_try") 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; } &&
11955          { ac_try='test -s conftest$ac_exeext'
11956   { (case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_try") 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   ac_cv_lib_imagehlp_main=yes
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970         ac_cv_lib_imagehlp_main=no
11971 fi
11972
11973 rm -f core conftest.err conftest.$ac_objext \
11974       conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11976 fi
11977 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11978 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11979 if test $ac_cv_lib_imagehlp_main = yes; then
11980   cat >>confdefs.h <<_ACEOF
11981 #define HAVE_LIBIMAGEHLP 1
11982 _ACEOF
11983
11984   LIBS="-limagehlp $LIBS"
11985
11986 fi
11987
11988
11989 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11990 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11991 if test "${ac_cv_lib_psapi_main+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-lpsapi  $LIBS"
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002
12003
12004 int
12005 main ()
12006 {
12007 return main ();
12008   ;
12009   return 0;
12010 }
12011 _ACEOF
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019   (eval "$ac_link") 2>conftest.er1
12020   ac_status=$?
12021   grep -v '^ *+' conftest.er1 >conftest.err
12022   rm -f conftest.er1
12023   cat conftest.err >&5
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027   { (case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_try") 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest$ac_exeext'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046   ac_cv_lib_psapi_main=yes
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         ac_cv_lib_psapi_main=no
12052 fi
12053
12054 rm -f core conftest.err conftest.$ac_objext \
12055       conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12057 fi
12058 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12059 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12060 if test $ac_cv_lib_psapi_main = yes; then
12061   cat >>confdefs.h <<_ACEOF
12062 #define HAVE_LIBPSAPI 1
12063 _ACEOF
12064
12065   LIBS="-lpsapi $LIBS"
12066
12067 fi
12068
12069 fi
12070
12071 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12072 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12073 if test "${ac_cv_search_dlopen+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   ac_func_search_save_LIBS=$LIBS
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083
12084 /* Override any GCC internal prototype to avoid an error.
12085    Use char because int might match the return type of a GCC
12086    builtin and then its argument prototype would still apply.  */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char dlopen ();
12091 int
12092 main ()
12093 {
12094 return dlopen ();
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 for ac_lib in '' dl; do
12100   if test -z "$ac_lib"; then
12101     ac_res="none required"
12102   else
12103     ac_res=-l$ac_lib
12104     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12105   fi
12106   rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_link") 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121   { (case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_try") 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; } &&
12130          { ac_try='test -s conftest$ac_exeext'
12131   { (case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_try") 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   ac_cv_search_dlopen=$ac_res
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext \
12149       conftest$ac_exeext
12150   if test "${ac_cv_search_dlopen+set}" = set; then
12151   break
12152 fi
12153 done
12154 if test "${ac_cv_search_dlopen+set}" = set; then
12155   :
12156 else
12157   ac_cv_search_dlopen=no
12158 fi
12159 rm conftest.$ac_ext
12160 LIBS=$ac_func_search_save_LIBS
12161 fi
12162 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12163 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12164 ac_res=$ac_cv_search_dlopen
12165 if test "$ac_res" != no; then
12166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12167
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_DLOPEN 1
12170 _ACEOF
12171
12172 else
12173   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12174 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12175 fi
12176
12177
12178 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12179 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12180 if test "${ac_cv_search_clock_gettime+set}" = set; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183   ac_func_search_save_LIBS=$LIBS
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190
12191 /* Override any GCC internal prototype to avoid an error.
12192    Use char because int might match the return type of a GCC
12193    builtin and then its argument prototype would still apply.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char clock_gettime ();
12198 int
12199 main ()
12200 {
12201 return clock_gettime ();
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 for ac_lib in '' rt; do
12207   if test -z "$ac_lib"; then
12208     ac_res="none required"
12209   else
12210     ac_res=-l$ac_lib
12211     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12212   fi
12213   rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_link") 2>conftest.er1
12221   ac_status=$?
12222   grep -v '^ *+' conftest.er1 >conftest.err
12223   rm -f conftest.er1
12224   cat conftest.err >&5
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); } &&
12227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12228   { (case "(($ac_try" in
12229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230   *) ac_try_echo=$ac_try;;
12231 esac
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233   (eval "$ac_try") 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; } &&
12237          { ac_try='test -s conftest$ac_exeext'
12238   { (case "(($ac_try" in
12239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240   *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243   (eval "$ac_try") 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; }; then
12247   ac_cv_search_clock_gettime=$ac_res
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252
12253 fi
12254
12255 rm -f core conftest.err conftest.$ac_objext \
12256       conftest$ac_exeext
12257   if test "${ac_cv_search_clock_gettime+set}" = set; then
12258   break
12259 fi
12260 done
12261 if test "${ac_cv_search_clock_gettime+set}" = set; then
12262   :
12263 else
12264   ac_cv_search_clock_gettime=no
12265 fi
12266 rm conftest.$ac_ext
12267 LIBS=$ac_func_search_save_LIBS
12268 fi
12269 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12270 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12271 ac_res=$ac_cv_search_clock_gettime
12272 if test "$ac_res" != no; then
12273   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12274
12275 fi
12276
12277
12278 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12279     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12280 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12281 if test "${ac_cv_search_setupterm+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   ac_func_search_save_LIBS=$LIBS
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291
12292 /* Override any GCC internal prototype to avoid an error.
12293    Use char because int might match the return type of a GCC
12294    builtin and then its argument prototype would still apply.  */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char setupterm ();
12299 int
12300 main ()
12301 {
12302 return setupterm ();
12303   ;
12304   return 0;
12305 }
12306 _ACEOF
12307 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12308   if test -z "$ac_lib"; then
12309     ac_res="none required"
12310   else
12311     ac_res=-l$ac_lib
12312     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12313   fi
12314   rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_link") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } &&
12328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329   { (case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_try") 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; } &&
12338          { ac_try='test -s conftest$ac_exeext'
12339   { (case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344   (eval "$ac_try") 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); }; }; then
12348   ac_cv_search_setupterm=$ac_res
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext \
12357       conftest$ac_exeext
12358   if test "${ac_cv_search_setupterm+set}" = set; then
12359   break
12360 fi
12361 done
12362 if test "${ac_cv_search_setupterm+set}" = set; then
12363   :
12364 else
12365   ac_cv_search_setupterm=no
12366 fi
12367 rm conftest.$ac_ext
12368 LIBS=$ac_func_search_save_LIBS
12369 fi
12370 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12371 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12372 ac_res=$ac_cv_search_setupterm
12373 if test "$ac_res" != no; then
12374   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12375
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_TERMINFO 1
12378 _ACEOF
12379
12380 fi
12381
12382 fi
12383
12384 if test "$llvm_cv_enable_libffi" = "yes" ; then
12385   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12386 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12387 if test "${ac_cv_search_ffi_call+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   ac_func_search_save_LIBS=$LIBS
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397
12398 /* Override any GCC internal prototype to avoid an error.
12399    Use char because int might match the return type of a GCC
12400    builtin and then its argument prototype would still apply.  */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char ffi_call ();
12405 int
12406 main ()
12407 {
12408 return ffi_call ();
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 for ac_lib in '' ffi; do
12414   if test -z "$ac_lib"; then
12415     ac_res="none required"
12416   else
12417     ac_res=-l$ac_lib
12418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12419   fi
12420   rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_link") 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435   { (case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_try") 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); }; } &&
12444          { ac_try='test -s conftest$ac_exeext'
12445   { (case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_try") 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   ac_cv_search_ffi_call=$ac_res
12455 else
12456   echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459
12460 fi
12461
12462 rm -f core conftest.err conftest.$ac_objext \
12463       conftest$ac_exeext
12464   if test "${ac_cv_search_ffi_call+set}" = set; then
12465   break
12466 fi
12467 done
12468 if test "${ac_cv_search_ffi_call+set}" = set; then
12469   :
12470 else
12471   ac_cv_search_ffi_call=no
12472 fi
12473 rm conftest.$ac_ext
12474 LIBS=$ac_func_search_save_LIBS
12475 fi
12476 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12477 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12478 ac_res=$ac_cv_search_ffi_call
12479 if test "$ac_res" != no; then
12480   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12481
12482 cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_FFI_CALL 1
12484 _ACEOF
12485
12486 else
12487   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12488 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12489    { (exit 1); exit 1; }; }
12490 fi
12491
12492 fi
12493
12494 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12495 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12496 if test "${ac_cv_search_mallinfo+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   ac_func_search_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508    Use char because int might match the return type of a GCC
12509    builtin and then its argument prototype would still apply.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char mallinfo ();
12514 int
12515 main ()
12516 {
12517 return mallinfo ();
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 for ac_lib in '' malloc; do
12523   if test -z "$ac_lib"; then
12524     ac_res="none required"
12525   else
12526     ac_res=-l$ac_lib
12527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12528   fi
12529   rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544   { (case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_try") 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest$ac_exeext'
12554   { (case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_try") 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_cv_search_mallinfo=$ac_res
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext \
12572       conftest$ac_exeext
12573   if test "${ac_cv_search_mallinfo+set}" = set; then
12574   break
12575 fi
12576 done
12577 if test "${ac_cv_search_mallinfo+set}" = set; then
12578   :
12579 else
12580   ac_cv_search_mallinfo=no
12581 fi
12582 rm conftest.$ac_ext
12583 LIBS=$ac_func_search_save_LIBS
12584 fi
12585 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12586 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12587 ac_res=$ac_cv_search_mallinfo
12588 if test "$ac_res" != no; then
12589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12590
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_MALLINFO 1
12593 _ACEOF
12594
12595 fi
12596
12597
12598 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12599
12600 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12601 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12602 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605   ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lpthread  $LIBS"
12607 cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613
12614 /* Override any GCC internal prototype to avoid an error.
12615    Use char because int might match the return type of a GCC
12616    builtin and then its argument prototype would still apply.  */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 char pthread_mutex_init ();
12621 int
12622 main ()
12623 {
12624 return pthread_mutex_init ();
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_link") 2>conftest.er1
12637   ac_status=$?
12638   grep -v '^ *+' conftest.er1 >conftest.err
12639   rm -f conftest.er1
12640   cat conftest.err >&5
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); } &&
12643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644   { (case "(($ac_try" in
12645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646   *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649   (eval "$ac_try") 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; } &&
12653          { ac_try='test -s conftest$ac_exeext'
12654   { (case "(($ac_try" in
12655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656   *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659   (eval "$ac_try") 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; }; then
12663   ac_cv_lib_pthread_pthread_mutex_init=yes
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668         ac_cv_lib_pthread_pthread_mutex_init=no
12669 fi
12670
12671 rm -f core conftest.err conftest.$ac_objext \
12672       conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12674 fi
12675 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12676 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12677 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12678   cat >>confdefs.h <<_ACEOF
12679 #define HAVE_LIBPTHREAD 1
12680 _ACEOF
12681
12682   LIBS="-lpthread $LIBS"
12683
12684 fi
12685
12686   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12687 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12688 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   ac_func_search_save_LIBS=$LIBS
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698
12699 /* Override any GCC internal prototype to avoid an error.
12700    Use char because int might match the return type of a GCC
12701    builtin and then its argument prototype would still apply.  */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char pthread_mutex_lock ();
12706 int
12707 main ()
12708 {
12709 return pthread_mutex_lock ();
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 for ac_lib in '' pthread; do
12715   if test -z "$ac_lib"; then
12716     ac_res="none required"
12717   else
12718     ac_res=-l$ac_lib
12719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12720   fi
12721   rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_link") 2>conftest.er1
12729   ac_status=$?
12730   grep -v '^ *+' conftest.er1 >conftest.err
12731   rm -f conftest.er1
12732   cat conftest.err >&5
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); } &&
12735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736   { (case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_try") 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; } &&
12745          { ac_try='test -s conftest$ac_exeext'
12746   { (case "(($ac_try" in
12747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748   *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751   (eval "$ac_try") 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   ac_cv_search_pthread_mutex_lock=$ac_res
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760
12761 fi
12762
12763 rm -f core conftest.err conftest.$ac_objext \
12764       conftest$ac_exeext
12765   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12766   break
12767 fi
12768 done
12769 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12770   :
12771 else
12772   ac_cv_search_pthread_mutex_lock=no
12773 fi
12774 rm conftest.$ac_ext
12775 LIBS=$ac_func_search_save_LIBS
12776 fi
12777 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12778 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12779 ac_res=$ac_cv_search_pthread_mutex_lock
12780 if test "$ac_res" != no; then
12781   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12782
12783 cat >>confdefs.h <<\_ACEOF
12784 #define HAVE_PTHREAD_MUTEX_LOCK 1
12785 _ACEOF
12786
12787 fi
12788
12789   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12790 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12791 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12792   echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794   ac_func_search_save_LIBS=$LIBS
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801
12802 /* Override any GCC internal prototype to avoid an error.
12803    Use char because int might match the return type of a GCC
12804    builtin and then its argument prototype would still apply.  */
12805 #ifdef __cplusplus
12806 extern "C"
12807 #endif
12808 char pthread_rwlock_init ();
12809 int
12810 main ()
12811 {
12812 return pthread_rwlock_init ();
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 for ac_lib in '' pthread; do
12818   if test -z "$ac_lib"; then
12819     ac_res="none required"
12820   else
12821     ac_res=-l$ac_lib
12822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12823   fi
12824   rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (ac_try="$ac_link"
12826 case "(($ac_try" in
12827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828   *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831   (eval "$ac_link") 2>conftest.er1
12832   ac_status=$?
12833   grep -v '^ *+' conftest.er1 >conftest.err
12834   rm -f conftest.er1
12835   cat conftest.err >&5
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); } &&
12838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12839   { (case "(($ac_try" in
12840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841   *) ac_try_echo=$ac_try;;
12842 esac
12843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12844   (eval "$ac_try") 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; } &&
12848          { ac_try='test -s conftest$ac_exeext'
12849   { (case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854   (eval "$ac_try") 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_search_pthread_rwlock_init=$ac_res
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863
12864 fi
12865
12866 rm -f core conftest.err conftest.$ac_objext \
12867       conftest$ac_exeext
12868   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12869   break
12870 fi
12871 done
12872 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12873   :
12874 else
12875   ac_cv_search_pthread_rwlock_init=no
12876 fi
12877 rm conftest.$ac_ext
12878 LIBS=$ac_func_search_save_LIBS
12879 fi
12880 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12881 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12882 ac_res=$ac_cv_search_pthread_rwlock_init
12883 if test "$ac_res" != no; then
12884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_PTHREAD_RWLOCK_INIT 1
12888 _ACEOF
12889
12890 fi
12891
12892   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12893 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12894 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12895   echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897   ac_func_search_save_LIBS=$LIBS
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h.  */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h.  */
12904
12905 /* Override any GCC internal prototype to avoid an error.
12906    Use char because int might match the return type of a GCC
12907    builtin and then its argument prototype would still apply.  */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char pthread_getspecific ();
12912 int
12913 main ()
12914 {
12915 return pthread_getspecific ();
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 for ac_lib in '' pthread; do
12921   if test -z "$ac_lib"; then
12922     ac_res="none required"
12923   else
12924     ac_res=-l$ac_lib
12925     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12926   fi
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_search_pthread_getspecific=$ac_res
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966
12967 fi
12968
12969 rm -f core conftest.err conftest.$ac_objext \
12970       conftest$ac_exeext
12971   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12972   break
12973 fi
12974 done
12975 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12976   :
12977 else
12978   ac_cv_search_pthread_getspecific=no
12979 fi
12980 rm conftest.$ac_ext
12981 LIBS=$ac_func_search_save_LIBS
12982 fi
12983 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12984 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12985 ac_res=$ac_cv_search_pthread_getspecific
12986 if test "$ac_res" != no; then
12987   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12988
12989 cat >>confdefs.h <<\_ACEOF
12990 #define HAVE_PTHREAD_GETSPECIFIC 1
12991 _ACEOF
12992
12993 fi
12994
12995 fi
12996
12997 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12998
12999 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13000 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13001 if test "${ac_cv_lib_z_compress2+set}" = set; then
13002   echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004   ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-lz  $LIBS"
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h.  */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h.  */
13012
13013 /* Override any GCC internal prototype to avoid an error.
13014    Use char because int might match the return type of a GCC
13015    builtin and then its argument prototype would still apply.  */
13016 #ifdef __cplusplus
13017 extern "C"
13018 #endif
13019 char compress2 ();
13020 int
13021 main ()
13022 {
13023 return compress2 ();
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_link") 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } &&
13042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043   { (case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_try") 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; } &&
13052          { ac_try='test -s conftest$ac_exeext'
13053   { (case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_try") 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; }; then
13062   ac_cv_lib_z_compress2=yes
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067         ac_cv_lib_z_compress2=no
13068 fi
13069
13070 rm -f core conftest.err conftest.$ac_objext \
13071       conftest$ac_exeext conftest.$ac_ext
13072 LIBS=$ac_check_lib_save_LIBS
13073 fi
13074 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13075 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13076 if test $ac_cv_lib_z_compress2 = yes; then
13077   cat >>confdefs.h <<_ACEOF
13078 #define HAVE_LIBZ 1
13079 _ACEOF
13080
13081   LIBS="-lz $LIBS"
13082
13083 fi
13084
13085 fi
13086
13087
13088 # Check whether --with-udis86 was given.
13089 if test "${with_udis86+set}" = set; then
13090   withval=$with_udis86;
13091       USE_UDIS86=1
13092
13093       case "$withval" in
13094         /usr/lib|yes) ;;
13095         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13096       esac
13097
13098 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13099 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13100 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13101   echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103   ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-ludis86  $LIBS"
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h.  */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h.  */
13111
13112 /* Override any GCC internal prototype to avoid an error.
13113    Use char because int might match the return type of a GCC
13114    builtin and then its argument prototype would still apply.  */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 char ud_init ();
13119 int
13120 main ()
13121 {
13122 return ud_init ();
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_link") 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142   { (case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_try") 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_try") 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   ac_cv_lib_udis86_ud_init=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166         ac_cv_lib_udis86_ud_init=no
13167 fi
13168
13169 rm -f core conftest.err conftest.$ac_objext \
13170       conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13172 fi
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13174 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13175 if test $ac_cv_lib_udis86_ud_init = yes; then
13176   cat >>confdefs.h <<_ACEOF
13177 #define HAVE_LIBUDIS86 1
13178 _ACEOF
13179
13180   LIBS="-ludis86 $LIBS"
13181
13182 else
13183
13184         echo "Error! You need to have libudis86 around."
13185         exit -1
13186
13187 fi
13188
13189
13190 else
13191   USE_UDIS86=0
13192
13193 fi
13194
13195
13196 cat >>confdefs.h <<_ACEOF
13197 #define USE_UDIS86 $USE_UDIS86
13198 _ACEOF
13199
13200
13201
13202 # Check whether --with-oprofile was given.
13203 if test "${with_oprofile+set}" = set; then
13204   withval=$with_oprofile;
13205       USE_OPROFILE=1
13206
13207       case "$withval" in
13208         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13209         no) llvm_cv_oppath=
13210             USE_OPROFILE=0
13211  ;;
13212         *) llvm_cv_oppath="${withval}/lib/oprofile"
13213            CPPFLAGS="-I${withval}/include";;
13214       esac
13215       case $llvm_cv_os_type in
13216         Linux)
13217           if test -n "$llvm_cv_oppath" ; then
13218             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13219                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13220 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13221 if test "${ac_cv_search_bfd_init+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   ac_func_search_save_LIBS=$LIBS
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231
13232 /* Override any GCC internal prototype to avoid an error.
13233    Use char because int might match the return type of a GCC
13234    builtin and then its argument prototype would still apply.  */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char bfd_init ();
13239 int
13240 main ()
13241 {
13242 return bfd_init ();
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 for ac_lib in '' bfd; do
13248   if test -z "$ac_lib"; then
13249     ac_res="none required"
13250   else
13251     ac_res=-l$ac_lib
13252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13253   fi
13254   rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_link") 2>conftest.er1
13262   ac_status=$?
13263   grep -v '^ *+' conftest.er1 >conftest.err
13264   rm -f conftest.er1
13265   cat conftest.err >&5
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); } &&
13268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269   { (case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_try") 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); }; } &&
13278          { ac_try='test -s conftest$ac_exeext'
13279   { (case "(($ac_try" in
13280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281   *) ac_try_echo=$ac_try;;
13282 esac
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284   (eval "$ac_try") 2>&5
13285   ac_status=$?
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); }; }; then
13288   ac_cv_search_bfd_init=$ac_res
13289 else
13290   echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293
13294 fi
13295
13296 rm -f core conftest.err conftest.$ac_objext \
13297       conftest$ac_exeext
13298   if test "${ac_cv_search_bfd_init+set}" = set; then
13299   break
13300 fi
13301 done
13302 if test "${ac_cv_search_bfd_init+set}" = set; then
13303   :
13304 else
13305   ac_cv_search_bfd_init=no
13306 fi
13307 rm conftest.$ac_ext
13308 LIBS=$ac_func_search_save_LIBS
13309 fi
13310 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13311 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13312 ac_res=$ac_cv_search_bfd_init
13313 if test "$ac_res" != no; then
13314   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13315
13316 fi
13317
13318             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13319 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13320 if test "${ac_cv_search_op_open_agent+set}" = set; then
13321   echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323   ac_func_search_save_LIBS=$LIBS
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13330
13331 /* Override any GCC internal prototype to avoid an error.
13332    Use char because int might match the return type of a GCC
13333    builtin and then its argument prototype would still apply.  */
13334 #ifdef __cplusplus
13335 extern "C"
13336 #endif
13337 char op_open_agent ();
13338 int
13339 main ()
13340 {
13341 return op_open_agent ();
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 for ac_lib in '' opagent; do
13347   if test -z "$ac_lib"; then
13348     ac_res="none required"
13349   else
13350     ac_res=-l$ac_lib
13351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13352   fi
13353   rm -f conftest.$ac_objext conftest$ac_exeext
13354 if { (ac_try="$ac_link"
13355 case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_link") 2>conftest.er1
13361   ac_status=$?
13362   grep -v '^ *+' conftest.er1 >conftest.err
13363   rm -f conftest.er1
13364   cat conftest.err >&5
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } &&
13367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13368   { (case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_try") 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; } &&
13377          { ac_try='test -s conftest$ac_exeext'
13378   { (case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383   (eval "$ac_try") 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }; then
13387   ac_cv_search_op_open_agent=$ac_res
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392
13393 fi
13394
13395 rm -f core conftest.err conftest.$ac_objext \
13396       conftest$ac_exeext
13397   if test "${ac_cv_search_op_open_agent+set}" = set; then
13398   break
13399 fi
13400 done
13401 if test "${ac_cv_search_op_open_agent+set}" = set; then
13402   :
13403 else
13404   ac_cv_search_op_open_agent=no
13405 fi
13406 rm conftest.$ac_ext
13407 LIBS=$ac_func_search_save_LIBS
13408 fi
13409 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13410 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13411 ac_res=$ac_cv_search_op_open_agent
13412 if test "$ac_res" != no; then
13413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13414
13415 else
13416
13417               echo "Error! You need to have libopagent around."
13418               exit -1
13419
13420 fi
13421
13422             if test "${ac_cv_header_opagent_h+set}" = set; then
13423   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13424 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13425 if test "${ac_cv_header_opagent_h+set}" = set; then
13426   echo $ECHO_N "(cached) $ECHO_C" >&6
13427 fi
13428 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13429 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13430 else
13431   # Is the header compilable?
13432 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13433 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h.  */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h.  */
13440 $ac_includes_default
13441 #include <opagent.h>
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447   *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450   (eval "$ac_compile") 2>conftest.er1
13451   ac_status=$?
13452   grep -v '^ *+' conftest.er1 >conftest.err
13453   rm -f conftest.er1
13454   cat conftest.err >&5
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } &&
13457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13458   { (case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_try") 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; } &&
13467          { ac_try='test -s conftest.$ac_objext'
13468   { (case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_try") 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; }; then
13477   ac_header_compiler=yes
13478 else
13479   echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13481
13482         ac_header_compiler=no
13483 fi
13484
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 echo "${ECHO_T}$ac_header_compiler" >&6; }
13488
13489 # Is the header present?
13490 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13491 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498 #include <opagent.h>
13499 _ACEOF
13500 if { (ac_try="$ac_cpp conftest.$ac_ext"
13501 case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507   ac_status=$?
13508   grep -v '^ *+' conftest.er1 >conftest.err
13509   rm -f conftest.er1
13510   cat conftest.err >&5
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } >/dev/null; then
13513   if test -s conftest.err; then
13514     ac_cpp_err=$ac_c_preproc_warn_flag
13515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13516   else
13517     ac_cpp_err=
13518   fi
13519 else
13520   ac_cpp_err=yes
13521 fi
13522 if test -z "$ac_cpp_err"; then
13523   ac_header_preproc=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528   ac_header_preproc=no
13529 fi
13530
13531 rm -f conftest.err conftest.$ac_ext
13532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533 echo "${ECHO_T}$ac_header_preproc" >&6; }
13534
13535 # So?  What about this header?
13536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537   yes:no: )
13538     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13539 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13540     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13541 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13542     ac_header_preproc=yes
13543     ;;
13544   no:yes:* )
13545     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13547     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13549     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13550 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13551     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13552 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13553     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13554 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13555     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13556 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13557     ( cat <<\_ASBOX
13558 ## ------------------------------------ ##
13559 ## Report this to http://llvm.org/bugs/ ##
13560 ## ------------------------------------ ##
13561 _ASBOX
13562      ) | sed "s/^/$as_me: WARNING:     /" >&2
13563     ;;
13564 esac
13565 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13566 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13567 if test "${ac_cv_header_opagent_h+set}" = set; then
13568   echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570   ac_cv_header_opagent_h=$ac_header_preproc
13571 fi
13572 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13573 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13574
13575 fi
13576 if test $ac_cv_header_opagent_h = yes; then
13577   :
13578 else
13579
13580               echo "Error! You need to have opagent.h around."
13581               exit -1
13582
13583 fi
13584
13585
13586           fi ;;
13587         *)
13588           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13589 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13590    { (exit 1); exit 1; }; } ;;
13591       esac
13592
13593 else
13594
13595       USE_OPROFILE=0
13596
13597
13598 fi
13599
13600
13601 cat >>confdefs.h <<_ACEOF
13602 #define LLVM_USE_OPROFILE $USE_OPROFILE
13603 _ACEOF
13604
13605
13606
13607 # Check whether --with-intel-jitevents was given.
13608 if test "${with_intel_jitevents+set}" = set; then
13609   withval=$with_intel_jitevents;
13610        case "$withval" in
13611           yes) USE_INTEL_JITEVENTS=1
13612 ;;
13613           no)  USE_INTEL_JITEVENTS=0
13614 ;;
13615           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13616 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13617    { (exit 1); exit 1; }; };;
13618        esac
13619
13620       case $llvm_cv_os_type in
13621         Linux|Win32|Cygwin|MingW) ;;
13622         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13623 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13624    { (exit 1); exit 1; }; };;
13625       esac
13626
13627       case "$llvm_cv_target_arch" in
13628         x86|x86_64) ;;
13629         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13630 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13631    { (exit 1); exit 1; }; };;
13632       esac
13633
13634 else
13635
13636       USE_INTEL_JITEVENTS=0
13637
13638
13639 fi
13640
13641
13642 cat >>confdefs.h <<_ACEOF
13643 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13644 _ACEOF
13645
13646
13647 for ac_prog in xml2-config
13648 do
13649   # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13653 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   if test -n "$XML2CONFIG"; then
13657   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13661 do
13662   IFS=$as_save_IFS
13663   test -z "$as_dir" && as_dir=.
13664   for ac_exec_ext in '' $ac_executable_extensions; do
13665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13666     ac_cv_prog_XML2CONFIG="$ac_prog"
13667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13668     break 2
13669   fi
13670 done
13671 done
13672 IFS=$as_save_IFS
13673
13674 fi
13675 fi
13676 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13677 if test -n "$XML2CONFIG"; then
13678   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13679 echo "${ECHO_T}$XML2CONFIG" >&6; }
13680 else
13681   { echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6; }
13683 fi
13684
13685
13686   test -n "$XML2CONFIG" && break
13687 done
13688
13689
13690 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13691 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13692 if test "x$XML2CONFIG" = "x"; then
13693  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13694 echo "${ECHO_T}xml2-config not found" >&6; }
13695 else
13696  LIBXML2_INC=`$XML2CONFIG --cflags`
13697  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13698 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13699  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13700 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13701 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 else
13704   ac_check_lib_save_LIBS=$LIBS
13705 LIBS="-lxml2  $LIBS"
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712
13713 /* Override any GCC internal prototype to avoid an error.
13714    Use char because int might match the return type of a GCC
13715    builtin and then its argument prototype would still apply.  */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 char xmlReadFile ();
13720 int
13721 main ()
13722 {
13723 return xmlReadFile ();
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (ac_try="$ac_link"
13730 case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735   (eval "$ac_link") 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest$ac_exeext'
13753   { (case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_try") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }; then
13762   ac_cv_lib_xml2_xmlReadFile=yes
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767         ac_cv_lib_xml2_xmlReadFile=no
13768 fi
13769
13770 rm -f core conftest.err conftest.$ac_objext \
13771       conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13773 fi
13774 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13775 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13776 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13777
13778 cat >>confdefs.h <<\_ACEOF
13779 #define CLANG_HAVE_LIBXML 1
13780 _ACEOF
13781
13782                                 LIBXML2_LIBS="-lxml2"
13783 fi
13784
13785 fi
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795 ac_header_dirent=no
13796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13797   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13798 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13799 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801   echo $ECHO_N "(cached) $ECHO_C" >&6
13802 else
13803   cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 #include <sys/types.h>
13810 #include <$ac_hdr>
13811
13812 int
13813 main ()
13814 {
13815 if ((DIR *) 0)
13816 return 0;
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 rm -f conftest.$ac_objext
13822 if { (ac_try="$ac_compile"
13823 case "(($ac_try" in
13824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825   *) ac_try_echo=$ac_try;;
13826 esac
13827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828   (eval "$ac_compile") 2>conftest.er1
13829   ac_status=$?
13830   grep -v '^ *+' conftest.er1 >conftest.err
13831   rm -f conftest.er1
13832   cat conftest.err >&5
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } &&
13835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836   { (case "(($ac_try" in
13837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838   *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841   (eval "$ac_try") 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; } &&
13845          { ac_try='test -s conftest.$ac_objext'
13846   { (case "(($ac_try" in
13847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848   *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851   (eval "$ac_try") 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; }; then
13855   eval "$as_ac_Header=yes"
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860         eval "$as_ac_Header=no"
13861 fi
13862
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 fi
13865 ac_res=`eval echo '${'$as_ac_Header'}'`
13866                { echo "$as_me:$LINENO: result: $ac_res" >&5
13867 echo "${ECHO_T}$ac_res" >&6; }
13868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13869   cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13871 _ACEOF
13872
13873 ac_header_dirent=$ac_hdr; break
13874 fi
13875
13876 done
13877 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13878 if test $ac_header_dirent = dirent.h; then
13879   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13880 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13881 if test "${ac_cv_search_opendir+set}" = set; then
13882   echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884   ac_func_search_save_LIBS=$LIBS
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h.  */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h.  */
13891
13892 /* Override any GCC internal prototype to avoid an error.
13893    Use char because int might match the return type of a GCC
13894    builtin and then its argument prototype would still apply.  */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 char opendir ();
13899 int
13900 main ()
13901 {
13902 return opendir ();
13903   ;
13904   return 0;
13905 }
13906 _ACEOF
13907 for ac_lib in '' dir; do
13908   if test -z "$ac_lib"; then
13909     ac_res="none required"
13910   else
13911     ac_res=-l$ac_lib
13912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13913   fi
13914   rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921   (eval "$ac_link") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929   { (case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_try") 2>&5
13935   ac_status=$?
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); }; } &&
13938          { ac_try='test -s conftest$ac_exeext'
13939   { (case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_try") 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948   ac_cv_search_opendir=$ac_res
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953
13954 fi
13955
13956 rm -f core conftest.err conftest.$ac_objext \
13957       conftest$ac_exeext
13958   if test "${ac_cv_search_opendir+set}" = set; then
13959   break
13960 fi
13961 done
13962 if test "${ac_cv_search_opendir+set}" = set; then
13963   :
13964 else
13965   ac_cv_search_opendir=no
13966 fi
13967 rm conftest.$ac_ext
13968 LIBS=$ac_func_search_save_LIBS
13969 fi
13970 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13971 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13972 ac_res=$ac_cv_search_opendir
13973 if test "$ac_res" != no; then
13974   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13975
13976 fi
13977
13978 else
13979   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13981 if test "${ac_cv_search_opendir+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   ac_func_search_save_LIBS=$LIBS
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991
13992 /* Override any GCC internal prototype to avoid an error.
13993    Use char because int might match the return type of a GCC
13994    builtin and then its argument prototype would still apply.  */
13995 #ifdef __cplusplus
13996 extern "C"
13997 #endif
13998 char opendir ();
13999 int
14000 main ()
14001 {
14002 return opendir ();
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 for ac_lib in '' x; do
14008   if test -z "$ac_lib"; then
14009     ac_res="none required"
14010   else
14011     ac_res=-l$ac_lib
14012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14013   fi
14014   rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018   *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021   (eval "$ac_link") 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14029   { (case "(($ac_try" in
14030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031   *) ac_try_echo=$ac_try;;
14032 esac
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034   (eval "$ac_try") 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_try") 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; }; then
14048   ac_cv_search_opendir=$ac_res
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext \
14057       conftest$ac_exeext
14058   if test "${ac_cv_search_opendir+set}" = set; then
14059   break
14060 fi
14061 done
14062 if test "${ac_cv_search_opendir+set}" = set; then
14063   :
14064 else
14065   ac_cv_search_opendir=no
14066 fi
14067 rm conftest.$ac_ext
14068 LIBS=$ac_func_search_save_LIBS
14069 fi
14070 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14071 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14072 ac_res=$ac_cv_search_opendir
14073 if test "$ac_res" != no; then
14074   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14075
14076 fi
14077
14078 fi
14079
14080 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14081 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14082 if test "${ac_cv_header_mmap_anon+set}" = set; then
14083   echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085    ac_ext=c
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091   cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 #include <sys/mman.h>
14098 #include <unistd.h>
14099 #include <fcntl.h>
14100 int
14101 main ()
14102 {
14103 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14104   ;
14105   return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112   *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115   (eval "$ac_compile") 2>conftest.er1
14116   ac_status=$?
14117   grep -v '^ *+' conftest.er1 >conftest.err
14118   rm -f conftest.er1
14119   cat conftest.err >&5
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); } &&
14122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123   { (case "(($ac_try" in
14124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125   *) ac_try_echo=$ac_try;;
14126 esac
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128   (eval "$ac_try") 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } &&
14132          { ac_try='test -s conftest.$ac_objext'
14133   { (case "(($ac_try" in
14134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135   *) ac_try_echo=$ac_try;;
14136 esac
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138   (eval "$ac_try") 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   ac_cv_header_mmap_anon=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147         ac_cv_header_mmap_anon=no
14148 fi
14149
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151   ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157
14158 fi
14159 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14160 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14161 if test "$ac_cv_header_mmap_anon" = yes; then
14162
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_MMAP_ANONYMOUS 1
14165 _ACEOF
14166
14167 fi
14168
14169 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14170 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14171 if test "${ac_cv_header_stat_broken+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 #include <sys/types.h>
14181 #include <sys/stat.h>
14182
14183 #if defined S_ISBLK && defined S_IFDIR
14184 # if S_ISBLK (S_IFDIR)
14185 You lose.
14186 # endif
14187 #endif
14188
14189 #if defined S_ISBLK && defined S_IFCHR
14190 # if S_ISBLK (S_IFCHR)
14191 You lose.
14192 # endif
14193 #endif
14194
14195 #if defined S_ISLNK && defined S_IFREG
14196 # if S_ISLNK (S_IFREG)
14197 You lose.
14198 # endif
14199 #endif
14200
14201 #if defined S_ISSOCK && defined S_IFREG
14202 # if S_ISSOCK (S_IFREG)
14203 You lose.
14204 # endif
14205 #endif
14206
14207 _ACEOF
14208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14209   $EGREP "You lose" >/dev/null 2>&1; then
14210   ac_cv_header_stat_broken=yes
14211 else
14212   ac_cv_header_stat_broken=no
14213 fi
14214 rm -f conftest*
14215
14216 fi
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14218 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14219 if test $ac_cv_header_stat_broken = yes; then
14220
14221 cat >>confdefs.h <<\_ACEOF
14222 #define STAT_MACROS_BROKEN 1
14223 _ACEOF
14224
14225 fi
14226
14227 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14228 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 #include <sys/types.h>
14239 #include <sys/wait.h>
14240 #ifndef WEXITSTATUS
14241 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14242 #endif
14243 #ifndef WIFEXITED
14244 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14245 #endif
14246
14247 int
14248 main ()
14249 {
14250   int s;
14251   wait (&s);
14252   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_compile") 2>conftest.er1
14265   ac_status=$?
14266   grep -v '^ *+' conftest.er1 >conftest.err
14267   rm -f conftest.er1
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest.$ac_objext'
14282   { (case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_try") 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_cv_header_sys_wait_h=yes
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296         ac_cv_header_sys_wait_h=no
14297 fi
14298
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300 fi
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14303 if test $ac_cv_header_sys_wait_h = yes; then
14304
14305 cat >>confdefs.h <<\_ACEOF
14306 #define HAVE_SYS_WAIT_H 1
14307 _ACEOF
14308
14309 fi
14310
14311 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14312 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14313 if test "${ac_cv_header_time+set}" = set; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 #include <sys/types.h>
14323 #include <sys/time.h>
14324 #include <time.h>
14325
14326 int
14327 main ()
14328 {
14329 if ((struct tm *) 0)
14330 return 0;
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14343   ac_status=$?
14344   grep -v '^ *+' conftest.er1 >conftest.err
14345   rm -f conftest.er1
14346   cat conftest.err >&5
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } &&
14349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350   { (case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_try") 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; } &&
14359          { ac_try='test -s conftest.$ac_objext'
14360   { (case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365   (eval "$ac_try") 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; }; then
14369   ac_cv_header_time=yes
14370 else
14371   echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374         ac_cv_header_time=no
14375 fi
14376
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 fi
14379 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14380 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14381 if test $ac_cv_header_time = yes; then
14382
14383 cat >>confdefs.h <<\_ACEOF
14384 #define TIME_WITH_SYS_TIME 1
14385 _ACEOF
14386
14387 fi
14388
14389
14390 ac_ext=cpp
14391 ac_cpp='$CXXCPP $CPPFLAGS'
14392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14395
14396 ac_ext=cpp
14397 ac_cpp='$CXXCPP $CPPFLAGS'
14398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14401 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14402 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14403 if test -z "$CXXCPP"; then
14404   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407       # Double quotes because CXXCPP needs to be expanded
14408     for CXXCPP in "$CXX -E" "/lib/cpp"
14409     do
14410       ac_preproc_ok=false
14411 for ac_cxx_preproc_warn_flag in '' yes
14412 do
14413   # Use a header file that comes with gcc, so configuring glibc
14414   # with a fresh cross-compiler works.
14415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14416   # <limits.h> exists even on freestanding compilers.
14417   # On the NeXT, cc -E runs the code through the compiler's parser,
14418   # not just through cpp. "Syntax error" is here to catch this case.
14419   cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425 #ifdef __STDC__
14426 # include <limits.h>
14427 #else
14428 # include <assert.h>
14429 #endif
14430                      Syntax error
14431 _ACEOF
14432 if { (ac_try="$ac_cpp conftest.$ac_ext"
14433 case "(($ac_try" in
14434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435   *) ac_try_echo=$ac_try;;
14436 esac
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } >/dev/null; then
14445   if test -s conftest.err; then
14446     ac_cpp_err=$ac_cxx_preproc_warn_flag
14447     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14448   else
14449     ac_cpp_err=
14450   fi
14451 else
14452   ac_cpp_err=yes
14453 fi
14454 if test -z "$ac_cpp_err"; then
14455   :
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460   # Broken: fails on valid input.
14461 continue
14462 fi
14463
14464 rm -f conftest.err conftest.$ac_ext
14465
14466   # OK, works on sane cases.  Now check whether nonexistent headers
14467   # can be detected and how.
14468   cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h.  */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h.  */
14474 #include <ac_nonexistent.h>
14475 _ACEOF
14476 if { (ac_try="$ac_cpp conftest.$ac_ext"
14477 case "(($ac_try" in
14478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479   *) ac_try_echo=$ac_try;;
14480 esac
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14483   ac_status=$?
14484   grep -v '^ *+' conftest.er1 >conftest.err
14485   rm -f conftest.er1
14486   cat conftest.err >&5
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } >/dev/null; then
14489   if test -s conftest.err; then
14490     ac_cpp_err=$ac_cxx_preproc_warn_flag
14491     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14492   else
14493     ac_cpp_err=
14494   fi
14495 else
14496   ac_cpp_err=yes
14497 fi
14498 if test -z "$ac_cpp_err"; then
14499   # Broken: success on invalid input.
14500 continue
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505   # Passes both tests.
14506 ac_preproc_ok=:
14507 break
14508 fi
14509
14510 rm -f conftest.err conftest.$ac_ext
14511
14512 done
14513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14514 rm -f conftest.err conftest.$ac_ext
14515 if $ac_preproc_ok; then
14516   break
14517 fi
14518
14519     done
14520     ac_cv_prog_CXXCPP=$CXXCPP
14521
14522 fi
14523   CXXCPP=$ac_cv_prog_CXXCPP
14524 else
14525   ac_cv_prog_CXXCPP=$CXXCPP
14526 fi
14527 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14528 echo "${ECHO_T}$CXXCPP" >&6; }
14529 ac_preproc_ok=false
14530 for ac_cxx_preproc_warn_flag in '' yes
14531 do
14532   # Use a header file that comes with gcc, so configuring glibc
14533   # with a fresh cross-compiler works.
14534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14535   # <limits.h> exists even on freestanding compilers.
14536   # On the NeXT, cc -E runs the code through the compiler's parser,
14537   # not just through cpp. "Syntax error" is here to catch this case.
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 #ifdef __STDC__
14545 # include <limits.h>
14546 #else
14547 # include <assert.h>
14548 #endif
14549                      Syntax error
14550 _ACEOF
14551 if { (ac_try="$ac_cpp conftest.$ac_ext"
14552 case "(($ac_try" in
14553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554   *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14558   ac_status=$?
14559   grep -v '^ *+' conftest.er1 >conftest.err
14560   rm -f conftest.er1
14561   cat conftest.err >&5
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); } >/dev/null; then
14564   if test -s conftest.err; then
14565     ac_cpp_err=$ac_cxx_preproc_warn_flag
14566     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14567   else
14568     ac_cpp_err=
14569   fi
14570 else
14571   ac_cpp_err=yes
14572 fi
14573 if test -z "$ac_cpp_err"; then
14574   :
14575 else
14576   echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579   # Broken: fails on valid input.
14580 continue
14581 fi
14582
14583 rm -f conftest.err conftest.$ac_ext
14584
14585   # OK, works on sane cases.  Now check whether nonexistent headers
14586   # can be detected and how.
14587   cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593 #include <ac_nonexistent.h>
14594 _ACEOF
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } >/dev/null; then
14608   if test -s conftest.err; then
14609     ac_cpp_err=$ac_cxx_preproc_warn_flag
14610     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14611   else
14612     ac_cpp_err=
14613   fi
14614 else
14615   ac_cpp_err=yes
14616 fi
14617 if test -z "$ac_cpp_err"; then
14618   # Broken: success on invalid input.
14619 continue
14620 else
14621   echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624   # Passes both tests.
14625 ac_preproc_ok=:
14626 break
14627 fi
14628
14629 rm -f conftest.err conftest.$ac_ext
14630
14631 done
14632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14633 rm -f conftest.err conftest.$ac_ext
14634 if $ac_preproc_ok; then
14635   :
14636 else
14637   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14638 See \`config.log' for more details." >&5
14639 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14640 See \`config.log' for more details." >&2;}
14641    { (exit 1); exit 1; }; }
14642 fi
14643
14644 ac_ext=cpp
14645 ac_cpp='$CXXCPP $CPPFLAGS'
14646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14649
14650
14651
14652 for ac_header in cxxabi.h
14653 do
14654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 fi
14661 ac_res=`eval echo '${'$as_ac_Header'}'`
14662                { echo "$as_me:$LINENO: result: $ac_res" >&5
14663 echo "${ECHO_T}$ac_res" >&6; }
14664 else
14665   # Is the header compilable?
14666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h.  */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h.  */
14674 $ac_includes_default
14675 #include <$ac_header>
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681   *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684   (eval "$ac_compile") 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14692   { (case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_try") 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; } &&
14701          { ac_try='test -s conftest.$ac_objext'
14702   { (case "(($ac_try" in
14703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704   *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707   (eval "$ac_try") 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_header_compiler=yes
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716         ac_header_compiler=no
14717 fi
14718
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14721 echo "${ECHO_T}$ac_header_compiler" >&6; }
14722
14723 # Is the header present?
14724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14726 cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 #include <$ac_header>
14733 _ACEOF
14734 if { (ac_try="$ac_cpp conftest.$ac_ext"
14735 case "(($ac_try" in
14736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737   *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } >/dev/null; then
14747   if test -s conftest.err; then
14748     ac_cpp_err=$ac_cxx_preproc_warn_flag
14749     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14750   else
14751     ac_cpp_err=
14752   fi
14753 else
14754   ac_cpp_err=yes
14755 fi
14756 if test -z "$ac_cpp_err"; then
14757   ac_header_preproc=yes
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762   ac_header_preproc=no
14763 fi
14764
14765 rm -f conftest.err conftest.$ac_ext
14766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14767 echo "${ECHO_T}$ac_header_preproc" >&6; }
14768
14769 # So?  What about this header?
14770 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14771   yes:no: )
14772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14776     ac_header_preproc=yes
14777     ;;
14778   no:yes:* )
14779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14791     ( cat <<\_ASBOX
14792 ## ------------------------------------ ##
14793 ## Report this to http://llvm.org/bugs/ ##
14794 ## ------------------------------------ ##
14795 _ASBOX
14796      ) | sed "s/^/$as_me: WARNING:     /" >&2
14797     ;;
14798 esac
14799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   eval "$as_ac_Header=\$ac_header_preproc"
14805 fi
14806 ac_res=`eval echo '${'$as_ac_Header'}'`
14807                { echo "$as_me:$LINENO: result: $ac_res" >&5
14808 echo "${ECHO_T}$ac_res" >&6; }
14809
14810 fi
14811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14812   cat >>confdefs.h <<_ACEOF
14813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14814 _ACEOF
14815
14816 fi
14817
14818 done
14819
14820 ac_ext=c
14821 ac_cpp='$CPP $CPPFLAGS'
14822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825
14826
14827
14828
14829
14830
14831 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14832 do
14833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14838   echo $ECHO_N "(cached) $ECHO_C" >&6
14839 fi
14840 ac_res=`eval echo '${'$as_ac_Header'}'`
14841                { echo "$as_me:$LINENO: result: $ac_res" >&5
14842 echo "${ECHO_T}$ac_res" >&6; }
14843 else
14844   # Is the header compilable?
14845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853 $ac_includes_default
14854 #include <$ac_header>
14855 _ACEOF
14856 rm -f conftest.$ac_objext
14857 if { (ac_try="$ac_compile"
14858 case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_compile") 2>conftest.er1
14864   ac_status=$?
14865   grep -v '^ *+' conftest.er1 >conftest.err
14866   rm -f conftest.er1
14867   cat conftest.err >&5
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); } &&
14870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14871   { (case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876   (eval "$ac_try") 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; } &&
14880          { ac_try='test -s conftest.$ac_objext'
14881   { (case "(($ac_try" in
14882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883   *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886   (eval "$ac_try") 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; }; then
14890   ac_header_compiler=yes
14891 else
14892   echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14894
14895         ac_header_compiler=no
14896 fi
14897
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14900 echo "${ECHO_T}$ac_header_compiler" >&6; }
14901
14902 # Is the header present?
14903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911 #include <$ac_header>
14912 _ACEOF
14913 if { (ac_try="$ac_cpp conftest.$ac_ext"
14914 case "(($ac_try" in
14915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916   *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } >/dev/null; then
14926   if test -s conftest.err; then
14927     ac_cpp_err=$ac_c_preproc_warn_flag
14928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14929   else
14930     ac_cpp_err=
14931   fi
14932 else
14933   ac_cpp_err=yes
14934 fi
14935 if test -z "$ac_cpp_err"; then
14936   ac_header_preproc=yes
14937 else
14938   echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14940
14941   ac_header_preproc=no
14942 fi
14943
14944 rm -f conftest.err conftest.$ac_ext
14945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14946 echo "${ECHO_T}$ac_header_preproc" >&6; }
14947
14948 # So?  What about this header?
14949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14950   yes:no: )
14951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14955     ac_header_preproc=yes
14956     ;;
14957   no:yes:* )
14958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14970     ( cat <<\_ASBOX
14971 ## ------------------------------------ ##
14972 ## Report this to http://llvm.org/bugs/ ##
14973 ## ------------------------------------ ##
14974 _ASBOX
14975      ) | sed "s/^/$as_me: WARNING:     /" >&2
14976     ;;
14977 esac
14978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   eval "$as_ac_Header=\$ac_header_preproc"
14984 fi
14985 ac_res=`eval echo '${'$as_ac_Header'}'`
14986                { echo "$as_me:$LINENO: result: $ac_res" >&5
14987 echo "${ECHO_T}$ac_res" >&6; }
14988
14989 fi
14990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14991   cat >>confdefs.h <<_ACEOF
14992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14993 _ACEOF
14994
14995 fi
14996
14997 done
14998
14999
15000
15001
15002
15003
15004
15005 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15006 do
15007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15009   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 fi
15014 ac_res=`eval echo '${'$as_ac_Header'}'`
15015                { echo "$as_me:$LINENO: result: $ac_res" >&5
15016 echo "${ECHO_T}$ac_res" >&6; }
15017 else
15018   # Is the header compilable?
15019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h.  */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h.  */
15027 $ac_includes_default
15028 #include <$ac_header>
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034   *) ac_try_echo=$ac_try;;
15035 esac
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037   (eval "$ac_compile") 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } &&
15044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045   { (case "(($ac_try" in
15046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047   *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050   (eval "$ac_try") 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; } &&
15054          { ac_try='test -s conftest.$ac_objext'
15055   { (case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_try") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; }; then
15064   ac_header_compiler=yes
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069         ac_header_compiler=no
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15074 echo "${ECHO_T}$ac_header_compiler" >&6; }
15075
15076 # Is the header present?
15077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15079 cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 #include <$ac_header>
15086 _ACEOF
15087 if { (ac_try="$ac_cpp conftest.$ac_ext"
15088 case "(($ac_try" in
15089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090   *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15094   ac_status=$?
15095   grep -v '^ *+' conftest.er1 >conftest.err
15096   rm -f conftest.er1
15097   cat conftest.err >&5
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); } >/dev/null; then
15100   if test -s conftest.err; then
15101     ac_cpp_err=$ac_c_preproc_warn_flag
15102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15103   else
15104     ac_cpp_err=
15105   fi
15106 else
15107   ac_cpp_err=yes
15108 fi
15109 if test -z "$ac_cpp_err"; then
15110   ac_header_preproc=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115   ac_header_preproc=no
15116 fi
15117
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15121
15122 # So?  What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15124   yes:no: )
15125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15129     ac_header_preproc=yes
15130     ;;
15131   no:yes:* )
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15144     ( cat <<\_ASBOX
15145 ## ------------------------------------ ##
15146 ## Report this to http://llvm.org/bugs/ ##
15147 ## ------------------------------------ ##
15148 _ASBOX
15149      ) | sed "s/^/$as_me: WARNING:     /" >&2
15150     ;;
15151 esac
15152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   eval "$as_ac_Header=\$ac_header_preproc"
15158 fi
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160                { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162
15163 fi
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165   cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15167 _ACEOF
15168
15169 fi
15170
15171 done
15172
15173
15174 for ac_header in utime.h
15175 do
15176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15178   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15181   echo $ECHO_N "(cached) $ECHO_C" >&6
15182 fi
15183 ac_res=`eval echo '${'$as_ac_Header'}'`
15184                { echo "$as_me:$LINENO: result: $ac_res" >&5
15185 echo "${ECHO_T}$ac_res" >&6; }
15186 else
15187   # Is the header compilable?
15188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15190 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 $ac_includes_default
15197 #include <$ac_header>
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (ac_try="$ac_compile"
15201 case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_compile") 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214   { (case "(($ac_try" in
15215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216   *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219   (eval "$ac_try") 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; } &&
15223          { ac_try='test -s conftest.$ac_objext'
15224   { (case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_try") 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   ac_header_compiler=yes
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238         ac_header_compiler=no
15239 fi
15240
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15244
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h.  */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h.  */
15254 #include <$ac_header>
15255 _ACEOF
15256 if { (ac_try="$ac_cpp conftest.$ac_ext"
15257 case "(($ac_try" in
15258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259   *) ac_try_echo=$ac_try;;
15260 esac
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15263   ac_status=$?
15264   grep -v '^ *+' conftest.er1 >conftest.err
15265   rm -f conftest.er1
15266   cat conftest.err >&5
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } >/dev/null; then
15269   if test -s conftest.err; then
15270     ac_cpp_err=$ac_c_preproc_warn_flag
15271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15272   else
15273     ac_cpp_err=
15274   fi
15275 else
15276   ac_cpp_err=yes
15277 fi
15278 if test -z "$ac_cpp_err"; then
15279   ac_header_preproc=yes
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284   ac_header_preproc=no
15285 fi
15286
15287 rm -f conftest.err conftest.$ac_ext
15288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15289 echo "${ECHO_T}$ac_header_preproc" >&6; }
15290
15291 # So?  What about this header?
15292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15293   yes:no: )
15294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15298     ac_header_preproc=yes
15299     ;;
15300   no:yes:* )
15301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15313     ( cat <<\_ASBOX
15314 ## ------------------------------------ ##
15315 ## Report this to http://llvm.org/bugs/ ##
15316 ## ------------------------------------ ##
15317 _ASBOX
15318      ) | sed "s/^/$as_me: WARNING:     /" >&2
15319     ;;
15320 esac
15321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324   echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326   eval "$as_ac_Header=\$ac_header_preproc"
15327 fi
15328 ac_res=`eval echo '${'$as_ac_Header'}'`
15329                { echo "$as_me:$LINENO: result: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15331
15332 fi
15333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15334   cat >>confdefs.h <<_ACEOF
15335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15336 _ACEOF
15337
15338 fi
15339
15340 done
15341
15342
15343
15344
15345
15346
15347 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15348 do
15349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354   echo $ECHO_N "(cached) $ECHO_C" >&6
15355 fi
15356 ac_res=`eval echo '${'$as_ac_Header'}'`
15357                { echo "$as_me:$LINENO: result: $ac_res" >&5
15358 echo "${ECHO_T}$ac_res" >&6; }
15359 else
15360   # Is the header compilable?
15361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369 $ac_includes_default
15370 #include <$ac_header>
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (ac_try="$ac_compile"
15374 case "(($ac_try" in
15375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376   *) ac_try_echo=$ac_try;;
15377 esac
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379   (eval "$ac_compile") 2>conftest.er1
15380   ac_status=$?
15381   grep -v '^ *+' conftest.er1 >conftest.err
15382   rm -f conftest.er1
15383   cat conftest.err >&5
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); } &&
15386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387   { (case "(($ac_try" in
15388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389   *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392   (eval "$ac_try") 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; } &&
15396          { ac_try='test -s conftest.$ac_objext'
15397   { (case "(($ac_try" in
15398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399   *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402   (eval "$ac_try") 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; }; then
15406   ac_header_compiler=yes
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411         ac_header_compiler=no
15412 fi
15413
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6; }
15417
15418 # Is the header present?
15419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h.  */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h.  */
15427 #include <$ac_header>
15428 _ACEOF
15429 if { (ac_try="$ac_cpp conftest.$ac_ext"
15430 case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15436   ac_status=$?
15437   grep -v '^ *+' conftest.er1 >conftest.err
15438   rm -f conftest.er1
15439   cat conftest.err >&5
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); } >/dev/null; then
15442   if test -s conftest.err; then
15443     ac_cpp_err=$ac_c_preproc_warn_flag
15444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15445   else
15446     ac_cpp_err=
15447   fi
15448 else
15449   ac_cpp_err=yes
15450 fi
15451 if test -z "$ac_cpp_err"; then
15452   ac_header_preproc=yes
15453 else
15454   echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457   ac_header_preproc=no
15458 fi
15459
15460 rm -f conftest.err conftest.$ac_ext
15461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462 echo "${ECHO_T}$ac_header_preproc" >&6; }
15463
15464 # So?  What about this header?
15465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15466   yes:no: )
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15471     ac_header_preproc=yes
15472     ;;
15473   no:yes:* )
15474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15486     ( cat <<\_ASBOX
15487 ## ------------------------------------ ##
15488 ## Report this to http://llvm.org/bugs/ ##
15489 ## ------------------------------------ ##
15490 _ASBOX
15491      ) | sed "s/^/$as_me: WARNING:     /" >&2
15492     ;;
15493 esac
15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499   eval "$as_ac_Header=\$ac_header_preproc"
15500 fi
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502                { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504
15505 fi
15506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507   cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 _ACEOF
15510
15511 fi
15512
15513 done
15514
15515
15516
15517
15518 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15519 do
15520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525   echo $ECHO_N "(cached) $ECHO_C" >&6
15526 fi
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528                { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15530 else
15531   # Is the header compilable?
15532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 $ac_includes_default
15541 #include <$ac_header>
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_compile") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } &&
15557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558   { (case "(($ac_try" in
15559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560   *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563   (eval "$ac_try") 2>&5
15564   ac_status=$?
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); }; } &&
15567          { ac_try='test -s conftest.$ac_objext'
15568   { (case "(($ac_try" in
15569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570   *) ac_try_echo=$ac_try;;
15571 esac
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573   (eval "$ac_try") 2>&5
15574   ac_status=$?
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); }; }; then
15577   ac_header_compiler=yes
15578 else
15579   echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582         ac_header_compiler=no
15583 fi
15584
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15588
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h.  */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h.  */
15598 #include <$ac_header>
15599 _ACEOF
15600 if { (ac_try="$ac_cpp conftest.$ac_ext"
15601 case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15607   ac_status=$?
15608   grep -v '^ *+' conftest.er1 >conftest.err
15609   rm -f conftest.er1
15610   cat conftest.err >&5
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); } >/dev/null; then
15613   if test -s conftest.err; then
15614     ac_cpp_err=$ac_c_preproc_warn_flag
15615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616   else
15617     ac_cpp_err=
15618   fi
15619 else
15620   ac_cpp_err=yes
15621 fi
15622 if test -z "$ac_cpp_err"; then
15623   ac_header_preproc=yes
15624 else
15625   echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15627
15628   ac_header_preproc=no
15629 fi
15630
15631 rm -f conftest.err conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6; }
15634
15635 # So?  What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637   yes:no: )
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642     ac_header_preproc=yes
15643     ;;
15644   no:yes:* )
15645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657     ( cat <<\_ASBOX
15658 ## ------------------------------------ ##
15659 ## Report this to http://llvm.org/bugs/ ##
15660 ## ------------------------------------ ##
15661 _ASBOX
15662      ) | sed "s/^/$as_me: WARNING:     /" >&2
15663     ;;
15664 esac
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670   eval "$as_ac_Header=\$ac_header_preproc"
15671 fi
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673                { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15675
15676 fi
15677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15678   cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15680 _ACEOF
15681
15682 fi
15683
15684 done
15685
15686
15687 for ac_header in valgrind/valgrind.h
15688 do
15689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694   echo $ECHO_N "(cached) $ECHO_C" >&6
15695 fi
15696 ac_res=`eval echo '${'$as_ac_Header'}'`
15697                { echo "$as_me:$LINENO: result: $ac_res" >&5
15698 echo "${ECHO_T}$ac_res" >&6; }
15699 else
15700   # Is the header compilable?
15701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709 $ac_includes_default
15710 #include <$ac_header>
15711 _ACEOF
15712 rm -f conftest.$ac_objext
15713 if { (ac_try="$ac_compile"
15714 case "(($ac_try" in
15715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716   *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719   (eval "$ac_compile") 2>conftest.er1
15720   ac_status=$?
15721   grep -v '^ *+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } &&
15726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15727   { (case "(($ac_try" in
15728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729   *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732   (eval "$ac_try") 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; } &&
15736          { ac_try='test -s conftest.$ac_objext'
15737   { (case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_try") 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; }; then
15746   ac_header_compiler=yes
15747 else
15748   echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751         ac_header_compiler=no
15752 fi
15753
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15756 echo "${ECHO_T}$ac_header_compiler" >&6; }
15757
15758 # Is the header present?
15759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767 #include <$ac_header>
15768 _ACEOF
15769 if { (ac_try="$ac_cpp conftest.$ac_ext"
15770 case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15776   ac_status=$?
15777   grep -v '^ *+' conftest.er1 >conftest.err
15778   rm -f conftest.er1
15779   cat conftest.err >&5
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); } >/dev/null; then
15782   if test -s conftest.err; then
15783     ac_cpp_err=$ac_c_preproc_warn_flag
15784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15785   else
15786     ac_cpp_err=
15787   fi
15788 else
15789   ac_cpp_err=yes
15790 fi
15791 if test -z "$ac_cpp_err"; then
15792   ac_header_preproc=yes
15793 else
15794   echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797   ac_header_preproc=no
15798 fi
15799
15800 rm -f conftest.err conftest.$ac_ext
15801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15802 echo "${ECHO_T}$ac_header_preproc" >&6; }
15803
15804 # So?  What about this header?
15805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15806   yes:no: )
15807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15811     ac_header_preproc=yes
15812     ;;
15813   no:yes:* )
15814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15816     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15817 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15818     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15820     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15821 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15824     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15826     ( cat <<\_ASBOX
15827 ## ------------------------------------ ##
15828 ## Report this to http://llvm.org/bugs/ ##
15829 ## ------------------------------------ ##
15830 _ASBOX
15831      ) | sed "s/^/$as_me: WARNING:     /" >&2
15832     ;;
15833 esac
15834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   eval "$as_ac_Header=\$ac_header_preproc"
15840 fi
15841 ac_res=`eval echo '${'$as_ac_Header'}'`
15842                { echo "$as_me:$LINENO: result: $ac_res" >&5
15843 echo "${ECHO_T}$ac_res" >&6; }
15844
15845 fi
15846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15847   cat >>confdefs.h <<_ACEOF
15848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15849 _ACEOF
15850
15851 fi
15852
15853 done
15854
15855
15856 for ac_header in fenv.h
15857 do
15858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 fi
15865 ac_res=`eval echo '${'$as_ac_Header'}'`
15866                { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15868 else
15869   # Is the header compilable?
15870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h.  */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h.  */
15878 $ac_includes_default
15879 #include <$ac_header>
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888   (eval "$ac_compile") 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } &&
15895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15896   { (case "(($ac_try" in
15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898   *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901   (eval "$ac_try") 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; } &&
15905          { ac_try='test -s conftest.$ac_objext'
15906   { (case "(($ac_try" in
15907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908   *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911   (eval "$ac_try") 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; }; then
15915   ac_header_compiler=yes
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920         ac_header_compiler=no
15921 fi
15922
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6; }
15926
15927 # Is the header present?
15928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936 #include <$ac_header>
15937 _ACEOF
15938 if { (ac_try="$ac_cpp conftest.$ac_ext"
15939 case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } >/dev/null; then
15951   if test -s conftest.err; then
15952     ac_cpp_err=$ac_c_preproc_warn_flag
15953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15954   else
15955     ac_cpp_err=
15956   fi
15957 else
15958   ac_cpp_err=yes
15959 fi
15960 if test -z "$ac_cpp_err"; then
15961   ac_header_preproc=yes
15962 else
15963   echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966   ac_header_preproc=no
15967 fi
15968
15969 rm -f conftest.err conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15971 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972
15973 # So?  What about this header?
15974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15975   yes:no: )
15976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15980     ac_header_preproc=yes
15981     ;;
15982   no:yes:* )
15983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15995     ( cat <<\_ASBOX
15996 ## ------------------------------------ ##
15997 ## Report this to http://llvm.org/bugs/ ##
15998 ## ------------------------------------ ##
15999 _ASBOX
16000      ) | sed "s/^/$as_me: WARNING:     /" >&2
16001     ;;
16002 esac
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008   eval "$as_ac_Header=\$ac_header_preproc"
16009 fi
16010 ac_res=`eval echo '${'$as_ac_Header'}'`
16011                { echo "$as_me:$LINENO: result: $ac_res" >&5
16012 echo "${ECHO_T}$ac_res" >&6; }
16013
16014 fi
16015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16016   cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16018 _ACEOF
16019
16020 fi
16021
16022 done
16023
16024 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16025 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16026 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16027   echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029   cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h.  */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h.  */
16035 #include <fenv.h>
16036
16037 int
16038 main ()
16039 {
16040 #ifndef FE_ALL_EXCEPT
16041   char *p = (char *) FE_ALL_EXCEPT;
16042   return !p;
16043 #endif
16044
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_compile") 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } &&
16063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064   { (case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_try") 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; } &&
16073          { ac_try='test -s conftest.$ac_objext'
16074   { (case "(($ac_try" in
16075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076   *) ac_try_echo=$ac_try;;
16077 esac
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079   (eval "$ac_try") 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088         ac_cv_have_decl_FE_ALL_EXCEPT=no
16089 fi
16090
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 fi
16093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16094 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16095 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16096
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_DECL_FE_ALL_EXCEPT 1
16099 _ACEOF
16100
16101
16102 else
16103   cat >>confdefs.h <<_ACEOF
16104 #define HAVE_DECL_FE_ALL_EXCEPT 0
16105 _ACEOF
16106
16107
16108 fi
16109 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16110 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16111 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16112   echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114   cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 #include <fenv.h>
16121
16122 int
16123 main ()
16124 {
16125 #ifndef FE_INEXACT
16126   char *p = (char *) FE_INEXACT;
16127   return !p;
16128 #endif
16129
16130   ;
16131   return 0;
16132 }
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (ac_try="$ac_compile"
16136 case "(($ac_try" in
16137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138   *) ac_try_echo=$ac_try;;
16139 esac
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141   (eval "$ac_compile") 2>conftest.er1
16142   ac_status=$?
16143   grep -v '^ *+' conftest.er1 >conftest.err
16144   rm -f conftest.er1
16145   cat conftest.err >&5
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); } &&
16148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16149   { (case "(($ac_try" in
16150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151   *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154   (eval "$ac_try") 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; } &&
16158          { ac_try='test -s conftest.$ac_objext'
16159   { (case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164   (eval "$ac_try") 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; }; then
16168   ac_cv_have_decl_FE_INEXACT=yes
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173         ac_cv_have_decl_FE_INEXACT=no
16174 fi
16175
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 fi
16178 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16179 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16180 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16181
16182 cat >>confdefs.h <<_ACEOF
16183 #define HAVE_DECL_FE_INEXACT 1
16184 _ACEOF
16185
16186
16187 else
16188   cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL_FE_INEXACT 0
16190 _ACEOF
16191
16192
16193 fi
16194
16195
16196 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16197
16198 for ac_header in pthread.h
16199 do
16200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 fi
16207 ac_res=`eval echo '${'$as_ac_Header'}'`
16208                { echo "$as_me:$LINENO: result: $ac_res" >&5
16209 echo "${ECHO_T}$ac_res" >&6; }
16210 else
16211   # Is the header compilable?
16212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220 $ac_includes_default
16221 #include <$ac_header>
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_compile") 2>conftest.er1
16231   ac_status=$?
16232   grep -v '^ *+' conftest.er1 >conftest.err
16233   rm -f conftest.er1
16234   cat conftest.err >&5
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); } &&
16237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238   { (case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_try") 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; } &&
16247          { ac_try='test -s conftest.$ac_objext'
16248   { (case "(($ac_try" in
16249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250   *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253   (eval "$ac_try") 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; }; then
16257   ac_header_compiler=yes
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262         ac_header_compiler=no
16263 fi
16264
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16267 echo "${ECHO_T}$ac_header_compiler" >&6; }
16268
16269 # Is the header present?
16270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16272 cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h.  */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h.  */
16278 #include <$ac_header>
16279 _ACEOF
16280 if { (ac_try="$ac_cpp conftest.$ac_ext"
16281 case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16287   ac_status=$?
16288   grep -v '^ *+' conftest.er1 >conftest.err
16289   rm -f conftest.er1
16290   cat conftest.err >&5
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } >/dev/null; then
16293   if test -s conftest.err; then
16294     ac_cpp_err=$ac_c_preproc_warn_flag
16295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16296   else
16297     ac_cpp_err=
16298   fi
16299 else
16300   ac_cpp_err=yes
16301 fi
16302 if test -z "$ac_cpp_err"; then
16303   ac_header_preproc=yes
16304 else
16305   echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16307
16308   ac_header_preproc=no
16309 fi
16310
16311 rm -f conftest.err conftest.$ac_ext
16312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16313 echo "${ECHO_T}$ac_header_preproc" >&6; }
16314
16315 # So?  What about this header?
16316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16317   yes:no: )
16318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16322     ac_header_preproc=yes
16323     ;;
16324   no:yes:* )
16325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16337     ( cat <<\_ASBOX
16338 ## ------------------------------------ ##
16339 ## Report this to http://llvm.org/bugs/ ##
16340 ## ------------------------------------ ##
16341 _ASBOX
16342      ) | sed "s/^/$as_me: WARNING:     /" >&2
16343     ;;
16344 esac
16345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348   echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350   eval "$as_ac_Header=\$ac_header_preproc"
16351 fi
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353                { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16355
16356 fi
16357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16358   cat >>confdefs.h <<_ACEOF
16359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16360 _ACEOF
16361  HAVE_PTHREAD=1
16362
16363 else
16364   HAVE_PTHREAD=0
16365
16366 fi
16367
16368 done
16369
16370 else
16371   HAVE_PTHREAD=0
16372
16373 fi
16374 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16375
16376 for ac_header in zlib.h
16377 do
16378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 fi
16385 ac_res=`eval echo '${'$as_ac_Header'}'`
16386                { echo "$as_me:$LINENO: result: $ac_res" >&5
16387 echo "${ECHO_T}$ac_res" >&6; }
16388 else
16389   # Is the header compilable?
16390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h.  */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h.  */
16398 $ac_includes_default
16399 #include <$ac_header>
16400 _ACEOF
16401 rm -f conftest.$ac_objext
16402 if { (ac_try="$ac_compile"
16403 case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_compile") 2>conftest.er1
16409   ac_status=$?
16410   grep -v '^ *+' conftest.er1 >conftest.err
16411   rm -f conftest.er1
16412   cat conftest.err >&5
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); } &&
16415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416   { (case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_try") 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; } &&
16425          { ac_try='test -s conftest.$ac_objext'
16426   { (case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_try") 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; }; then
16435   ac_header_compiler=yes
16436 else
16437   echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440         ac_header_compiler=no
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16445 echo "${ECHO_T}$ac_header_compiler" >&6; }
16446
16447 # Is the header present?
16448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 #include <$ac_header>
16457 _ACEOF
16458 if { (ac_try="$ac_cpp conftest.$ac_ext"
16459 case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } >/dev/null; then
16471   if test -s conftest.err; then
16472     ac_cpp_err=$ac_c_preproc_warn_flag
16473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16474   else
16475     ac_cpp_err=
16476   fi
16477 else
16478   ac_cpp_err=yes
16479 fi
16480 if test -z "$ac_cpp_err"; then
16481   ac_header_preproc=yes
16482 else
16483   echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486   ac_header_preproc=no
16487 fi
16488
16489 rm -f conftest.err conftest.$ac_ext
16490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491 echo "${ECHO_T}$ac_header_preproc" >&6; }
16492
16493 # So?  What about this header?
16494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495   yes:no: )
16496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16500     ac_header_preproc=yes
16501     ;;
16502   no:yes:* )
16503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16515     ( cat <<\_ASBOX
16516 ## ------------------------------------ ##
16517 ## Report this to http://llvm.org/bugs/ ##
16518 ## ------------------------------------ ##
16519 _ASBOX
16520      ) | sed "s/^/$as_me: WARNING:     /" >&2
16521     ;;
16522 esac
16523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528   eval "$as_ac_Header=\$ac_header_preproc"
16529 fi
16530 ac_res=`eval echo '${'$as_ac_Header'}'`
16531                { echo "$as_me:$LINENO: result: $ac_res" >&5
16532 echo "${ECHO_T}$ac_res" >&6; }
16533
16534 fi
16535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16536   cat >>confdefs.h <<_ACEOF
16537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16538 _ACEOF
16539  HAVE_LIBZ=1
16540
16541 else
16542   HAVE_LIBZ=0
16543
16544 fi
16545
16546 done
16547
16548 else
16549   HAVE_LIBZ=0
16550
16551 fi
16552
16553 if test "$llvm_cv_enable_libffi" = "yes" ; then
16554
16555
16556 for ac_header in ffi.h ffi/ffi.h
16557 do
16558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16560   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 fi
16565 ac_res=`eval echo '${'$as_ac_Header'}'`
16566                { echo "$as_me:$LINENO: result: $ac_res" >&5
16567 echo "${ECHO_T}$ac_res" >&6; }
16568 else
16569   # Is the header compilable?
16570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h.  */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h.  */
16578 $ac_includes_default
16579 #include <$ac_header>
16580 _ACEOF
16581 rm -f conftest.$ac_objext
16582 if { (ac_try="$ac_compile"
16583 case "(($ac_try" in
16584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585   *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588   (eval "$ac_compile") 2>conftest.er1
16589   ac_status=$?
16590   grep -v '^ *+' conftest.er1 >conftest.err
16591   rm -f conftest.er1
16592   cat conftest.err >&5
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } &&
16595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596   { (case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_try") 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; } &&
16605          { ac_try='test -s conftest.$ac_objext'
16606   { (case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611   (eval "$ac_try") 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   ac_header_compiler=yes
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620         ac_header_compiler=no
16621 fi
16622
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16625 echo "${ECHO_T}$ac_header_compiler" >&6; }
16626
16627 # Is the header present?
16628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16630 cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h.  */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h.  */
16636 #include <$ac_header>
16637 _ACEOF
16638 if { (ac_try="$ac_cpp conftest.$ac_ext"
16639 case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } >/dev/null; then
16651   if test -s conftest.err; then
16652     ac_cpp_err=$ac_c_preproc_warn_flag
16653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16654   else
16655     ac_cpp_err=
16656   fi
16657 else
16658   ac_cpp_err=yes
16659 fi
16660 if test -z "$ac_cpp_err"; then
16661   ac_header_preproc=yes
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666   ac_header_preproc=no
16667 fi
16668
16669 rm -f conftest.err conftest.$ac_ext
16670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16671 echo "${ECHO_T}$ac_header_preproc" >&6; }
16672
16673 # So?  What about this header?
16674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16675   yes:no: )
16676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16680     ac_header_preproc=yes
16681     ;;
16682   no:yes:* )
16683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16695     ( cat <<\_ASBOX
16696 ## ------------------------------------ ##
16697 ## Report this to http://llvm.org/bugs/ ##
16698 ## ------------------------------------ ##
16699 _ASBOX
16700      ) | sed "s/^/$as_me: WARNING:     /" >&2
16701     ;;
16702 esac
16703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   eval "$as_ac_Header=\$ac_header_preproc"
16709 fi
16710 ac_res=`eval echo '${'$as_ac_Header'}'`
16711                { echo "$as_me:$LINENO: result: $ac_res" >&5
16712 echo "${ECHO_T}$ac_res" >&6; }
16713
16714 fi
16715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16716   cat >>confdefs.h <<_ACEOF
16717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16718 _ACEOF
16719
16720 fi
16721
16722 done
16723
16724 fi
16725
16726
16727 for ac_header in CrashReporterClient.h
16728 do
16729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16731   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 fi
16736 ac_res=`eval echo '${'$as_ac_Header'}'`
16737                { echo "$as_me:$LINENO: result: $ac_res" >&5
16738 echo "${ECHO_T}$ac_res" >&6; }
16739 else
16740   # Is the header compilable?
16741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
16744 /* confdefs.h.  */
16745 _ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h.  */
16749 $ac_includes_default
16750 #include <$ac_header>
16751 _ACEOF
16752 rm -f conftest.$ac_objext
16753 if { (ac_try="$ac_compile"
16754 case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_compile") 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } &&
16766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767   { (case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_try") 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest.$ac_objext'
16777   { (case "(($ac_try" in
16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779   *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782   (eval "$ac_try") 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; }; then
16786   ac_header_compiler=yes
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791         ac_header_compiler=no
16792 fi
16793
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16796 echo "${ECHO_T}$ac_header_compiler" >&6; }
16797
16798 # Is the header present?
16799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16801 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807 #include <$ac_header>
16808 _ACEOF
16809 if { (ac_try="$ac_cpp conftest.$ac_ext"
16810 case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16816   ac_status=$?
16817   grep -v '^ *+' conftest.er1 >conftest.err
16818   rm -f conftest.er1
16819   cat conftest.err >&5
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); } >/dev/null; then
16822   if test -s conftest.err; then
16823     ac_cpp_err=$ac_c_preproc_warn_flag
16824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16825   else
16826     ac_cpp_err=
16827   fi
16828 else
16829   ac_cpp_err=yes
16830 fi
16831 if test -z "$ac_cpp_err"; then
16832   ac_header_preproc=yes
16833 else
16834   echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837   ac_header_preproc=no
16838 fi
16839
16840 rm -f conftest.err conftest.$ac_ext
16841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16842 echo "${ECHO_T}$ac_header_preproc" >&6; }
16843
16844 # So?  What about this header?
16845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16846   yes:no: )
16847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16851     ac_header_preproc=yes
16852     ;;
16853   no:yes:* )
16854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16866     ( cat <<\_ASBOX
16867 ## ------------------------------------ ##
16868 ## Report this to http://llvm.org/bugs/ ##
16869 ## ------------------------------------ ##
16870 _ASBOX
16871      ) | sed "s/^/$as_me: WARNING:     /" >&2
16872     ;;
16873 esac
16874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877   echo $ECHO_N "(cached) $ECHO_C" >&6
16878 else
16879   eval "$as_ac_Header=\$ac_header_preproc"
16880 fi
16881 ac_res=`eval echo '${'$as_ac_Header'}'`
16882                { echo "$as_me:$LINENO: result: $ac_res" >&5
16883 echo "${ECHO_T}$ac_res" >&6; }
16884
16885 fi
16886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16887   cat >>confdefs.h <<_ACEOF
16888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16889 _ACEOF
16890
16891 fi
16892
16893 done
16894
16895
16896 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16897 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16899
16900   /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906     extern const char *__crashreporter_info__;
16907     int main() {
16908       __crashreporter_info__ = "test";
16909       return 0;
16910     }
16911
16912
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921   (eval "$ac_link") 2>conftest.er1
16922   ac_status=$?
16923   grep -v '^ *+' conftest.er1 >conftest.err
16924   rm -f conftest.er1
16925   cat conftest.err >&5
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); } &&
16928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929   { (case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_try") 2>&5
16935   ac_status=$?
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); }; } &&
16938          { ac_try='test -s conftest$ac_exeext'
16939   { (case "(($ac_try" in
16940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941   *) ac_try_echo=$ac_try;;
16942 esac
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944   (eval "$ac_try") 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948
16949   { echo "$as_me:$LINENO: result: yes" >&5
16950 echo "${ECHO_T}yes" >&6; }
16951
16952 cat >>confdefs.h <<\_ACEOF
16953 #define HAVE_CRASHREPORTER_INFO 1
16954 _ACEOF
16955
16956
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961
16962   { echo "$as_me:$LINENO: result: no" >&5
16963 echo "${ECHO_T}no" >&6; }
16964
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_CRASHREPORTER_INFO 0
16967 _ACEOF
16968
16969
16970 fi
16971
16972 rm -f core conftest.err conftest.$ac_objext \
16973       conftest$ac_exeext conftest.$ac_ext
16974
16975
16976
16977   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16978 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16979 if test "${ac_cv_huge_val_sanity+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982
16983     ac_ext=cpp
16984 ac_cpp='$CXXCPP $CPPFLAGS'
16985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16988
16989     ac_save_CXXFLAGS=$CXXFLAGS
16990     CXXFLAGS="$CXXFLAGS -pedantic"
16991     if test "$cross_compiling" = yes; then
16992   ac_cv_huge_val_sanity=yes
16993 else
16994   cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000 #include <math.h>
17001 int
17002 main ()
17003 {
17004 double x = HUGE_VAL; return x != x;
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016   (eval "$ac_link") 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17020   { (case "(($ac_try" in
17021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022   *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025   (eval "$ac_try") 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; }; then
17029   ac_cv_huge_val_sanity=yes
17030 else
17031   echo "$as_me: program exited with status $ac_status" >&5
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 ( exit $ac_status )
17036 ac_cv_huge_val_sanity=no
17037 fi
17038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17039 fi
17040
17041
17042     CXXFLAGS=$ac_save_CXXFLAGS
17043     ac_ext=c
17044 ac_cpp='$CPP $CPPFLAGS'
17045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17048
17049
17050 fi
17051 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17052 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17053   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17054
17055
17056 { echo "$as_me:$LINENO: checking for pid_t" >&5
17057 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17058 if test "${ac_cv_type_pid_t+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 $ac_includes_default
17068 typedef pid_t ac__type_new_;
17069 int
17070 main ()
17071 {
17072 if ((ac__type_new_ *) 0)
17073   return 0;
17074 if (sizeof (ac__type_new_))
17075   return 0;
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_compile") 2>conftest.er1
17088   ac_status=$?
17089   grep -v '^ *+' conftest.er1 >conftest.err
17090   rm -f conftest.er1
17091   cat conftest.err >&5
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095   { (case "(($ac_try" in
17096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097   *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100   (eval "$ac_try") 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; } &&
17104          { ac_try='test -s conftest.$ac_objext'
17105   { (case "(($ac_try" in
17106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107   *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110   (eval "$ac_try") 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); }; }; then
17114   ac_cv_type_pid_t=yes
17115 else
17116   echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119         ac_cv_type_pid_t=no
17120 fi
17121
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17123 fi
17124 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17125 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17126 if test $ac_cv_type_pid_t = yes; then
17127   :
17128 else
17129
17130 cat >>confdefs.h <<_ACEOF
17131 #define pid_t int
17132 _ACEOF
17133
17134 fi
17135
17136 { echo "$as_me:$LINENO: checking for size_t" >&5
17137 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17138 if test "${ac_cv_type_size_t+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141   cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147 $ac_includes_default
17148 typedef size_t ac__type_new_;
17149 int
17150 main ()
17151 {
17152 if ((ac__type_new_ *) 0)
17153   return 0;
17154 if (sizeof (ac__type_new_))
17155   return 0;
17156   ;
17157   return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest.$ac_objext
17161 if { (ac_try="$ac_compile"
17162 case "(($ac_try" in
17163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164   *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167   (eval "$ac_compile") 2>conftest.er1
17168   ac_status=$?
17169   grep -v '^ *+' conftest.er1 >conftest.err
17170   rm -f conftest.er1
17171   cat conftest.err >&5
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); } &&
17174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175   { (case "(($ac_try" in
17176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177   *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180   (eval "$ac_try") 2>&5
17181   ac_status=$?
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); }; } &&
17184          { ac_try='test -s conftest.$ac_objext'
17185   { (case "(($ac_try" in
17186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187   *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190   (eval "$ac_try") 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; }; then
17194   ac_cv_type_size_t=yes
17195 else
17196   echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199         ac_cv_type_size_t=no
17200 fi
17201
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203 fi
17204 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17205 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17206 if test $ac_cv_type_size_t = yes; then
17207   :
17208 else
17209
17210 cat >>confdefs.h <<_ACEOF
17211 #define size_t unsigned int
17212 _ACEOF
17213
17214 fi
17215
17216
17217 cat >>confdefs.h <<_ACEOF
17218 #define RETSIGTYPE void
17219 _ACEOF
17220
17221 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17222 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17223 if test "${ac_cv_struct_tm+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 #include <sys/types.h>
17233 #include <time.h>
17234
17235 int
17236 main ()
17237 {
17238 struct tm *tp; tp->tm_sec;
17239   ;
17240   return 0;
17241 }
17242 _ACEOF
17243 rm -f conftest.$ac_objext
17244 if { (ac_try="$ac_compile"
17245 case "(($ac_try" in
17246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247   *) ac_try_echo=$ac_try;;
17248 esac
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250   (eval "$ac_compile") 2>conftest.er1
17251   ac_status=$?
17252   grep -v '^ *+' conftest.er1 >conftest.err
17253   rm -f conftest.er1
17254   cat conftest.err >&5
17255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256   (exit $ac_status); } &&
17257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17258   { (case "(($ac_try" in
17259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260   *) ac_try_echo=$ac_try;;
17261 esac
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263   (eval "$ac_try") 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; } &&
17267          { ac_try='test -s conftest.$ac_objext'
17268   { (case "(($ac_try" in
17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270   *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273   (eval "$ac_try") 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); }; }; then
17277   ac_cv_struct_tm=time.h
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282         ac_cv_struct_tm=sys/time.h
17283 fi
17284
17285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17286 fi
17287 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17288 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17289 if test $ac_cv_struct_tm = sys/time.h; then
17290
17291 cat >>confdefs.h <<\_ACEOF
17292 #define TM_IN_SYS_TIME 1
17293 _ACEOF
17294
17295 fi
17296
17297 { echo "$as_me:$LINENO: checking for int64_t" >&5
17298 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17299 if test "${ac_cv_type_int64_t+set}" = set; then
17300   echo $ECHO_N "(cached) $ECHO_C" >&6
17301 else
17302   cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h.  */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h.  */
17308 $ac_includes_default
17309 typedef int64_t ac__type_new_;
17310 int
17311 main ()
17312 {
17313 if ((ac__type_new_ *) 0)
17314   return 0;
17315 if (sizeof (ac__type_new_))
17316   return 0;
17317   ;
17318   return 0;
17319 }
17320 _ACEOF
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325   *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328   (eval "$ac_compile") 2>conftest.er1
17329   ac_status=$?
17330   grep -v '^ *+' conftest.er1 >conftest.err
17331   rm -f conftest.er1
17332   cat conftest.err >&5
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); } &&
17335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336   { (case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341   (eval "$ac_try") 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; } &&
17345          { ac_try='test -s conftest.$ac_objext'
17346   { (case "(($ac_try" in
17347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348   *) ac_try_echo=$ac_try;;
17349 esac
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351   (eval "$ac_try") 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); }; }; then
17355   ac_cv_type_int64_t=yes
17356 else
17357   echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360         ac_cv_type_int64_t=no
17361 fi
17362
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 fi
17365 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17366 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17367 if test $ac_cv_type_int64_t = yes; then
17368
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_INT64_T 1
17371 _ACEOF
17372
17373
17374 else
17375   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17376 echo "$as_me: error: Type int64_t required but not found" >&2;}
17377    { (exit 1); exit 1; }; }
17378 fi
17379
17380 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17381 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17382 if test "${ac_cv_type_uint64_t+set}" = set; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391 $ac_includes_default
17392 typedef uint64_t ac__type_new_;
17393 int
17394 main ()
17395 {
17396 if ((ac__type_new_ *) 0)
17397   return 0;
17398 if (sizeof (ac__type_new_))
17399   return 0;
17400   ;
17401   return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_compile") 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } &&
17418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419   { (case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_try") 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; } &&
17428          { ac_try='test -s conftest.$ac_objext'
17429   { (case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_try") 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438   ac_cv_type_uint64_t=yes
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         ac_cv_type_uint64_t=no
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 fi
17448 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17449 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17450 if test $ac_cv_type_uint64_t = yes; then
17451
17452 cat >>confdefs.h <<_ACEOF
17453 #define HAVE_UINT64_T 1
17454 _ACEOF
17455
17456
17457 else
17458   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17459 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17460 if test "${ac_cv_type_u_int64_t+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 $ac_includes_default
17470 typedef u_int64_t ac__type_new_;
17471 int
17472 main ()
17473 {
17474 if ((ac__type_new_ *) 0)
17475   return 0;
17476 if (sizeof (ac__type_new_))
17477   return 0;
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_compile") 2>conftest.er1
17490   ac_status=$?
17491   grep -v '^ *+' conftest.er1 >conftest.err
17492   rm -f conftest.er1
17493   cat conftest.err >&5
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } &&
17496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497   { (case "(($ac_try" in
17498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499   *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502   (eval "$ac_try") 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; } &&
17506          { ac_try='test -s conftest.$ac_objext'
17507   { (case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_try") 2>&5
17513   ac_status=$?
17514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); }; }; then
17516   ac_cv_type_u_int64_t=yes
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521         ac_cv_type_u_int64_t=no
17522 fi
17523
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525 fi
17526 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17527 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17528 if test $ac_cv_type_u_int64_t = yes; then
17529
17530 cat >>confdefs.h <<_ACEOF
17531 #define HAVE_U_INT64_T 1
17532 _ACEOF
17533
17534
17535 else
17536   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17537 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17538    { (exit 1); exit 1; }; }
17539 fi
17540
17541 fi
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17553 do
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17568 #define $ac_func innocuous_$ac_func
17569
17570 /* System header to define __stub macros and hopefully few prototypes,
17571     which can conflict with char $ac_func (); below.
17572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573     <limits.h> exists even on freestanding compilers.  */
17574
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17580
17581 #undef $ac_func
17582
17583 /* Override any GCC internal prototype to avoid an error.
17584    Use char because int might match the return type of a GCC
17585    builtin and then its argument prototype would still apply.  */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char $ac_func ();
17590 /* The GNU C library defines this for functions which it implements
17591     to always fail with ENOSYS.  Some functions are actually named
17592     something starting with __ and the normal name is an alias.  */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17594 choke me
17595 #endif
17596
17597 int
17598 main ()
17599 {
17600 return $ac_func ();
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_link") 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } &&
17619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620   { (case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625   (eval "$ac_try") 2>&5
17626   ac_status=$?
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); }; } &&
17629          { ac_try='test -s conftest$ac_exeext'
17630   { (case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635   (eval "$ac_try") 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   eval "$as_ac_var=yes"
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644         eval "$as_ac_var=no"
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext \
17648       conftest$ac_exeext conftest.$ac_ext
17649 fi
17650 ac_res=`eval echo '${'$as_ac_var'}'`
17651                { echo "$as_me:$LINENO: result: $ac_res" >&5
17652 echo "${ECHO_T}$ac_res" >&6; }
17653 if test `eval echo '${'$as_ac_var'}'` = yes; then
17654   cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656 _ACEOF
17657
17658 fi
17659 done
17660
17661
17662
17663
17664
17665 for ac_func in powf fmodf strtof round
17666 do
17667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671   echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673   cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17681 #define $ac_func innocuous_$ac_func
17682
17683 /* System header to define __stub macros and hopefully few prototypes,
17684     which can conflict with char $ac_func (); below.
17685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686     <limits.h> exists even on freestanding compilers.  */
17687
17688 #ifdef __STDC__
17689 # include <limits.h>
17690 #else
17691 # include <assert.h>
17692 #endif
17693
17694 #undef $ac_func
17695
17696 /* Override any GCC internal prototype to avoid an error.
17697    Use char because int might match the return type of a GCC
17698    builtin and then its argument prototype would still apply.  */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char $ac_func ();
17703 /* The GNU C library defines this for functions which it implements
17704     to always fail with ENOSYS.  Some functions are actually named
17705     something starting with __ and the normal name is an alias.  */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17707 choke me
17708 #endif
17709
17710 int
17711 main ()
17712 {
17713 return $ac_func ();
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722   *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725   (eval "$ac_link") 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733   { (case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_try") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; } &&
17742          { ac_try='test -s conftest$ac_exeext'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   eval "$as_ac_var=yes"
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757         eval "$as_ac_var=no"
17758 fi
17759
17760 rm -f core conftest.err conftest.$ac_objext \
17761       conftest$ac_exeext conftest.$ac_ext
17762 fi
17763 ac_res=`eval echo '${'$as_ac_var'}'`
17764                { echo "$as_me:$LINENO: result: $ac_res" >&5
17765 echo "${ECHO_T}$ac_res" >&6; }
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767   cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17769 _ACEOF
17770
17771 fi
17772 done
17773
17774
17775
17776
17777
17778
17779 for ac_func in log log2 log10 exp exp2
17780 do
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17785   echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787   cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h.  */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h.  */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17795 #define $ac_func innocuous_$ac_func
17796
17797 /* System header to define __stub macros and hopefully few prototypes,
17798     which can conflict with char $ac_func (); below.
17799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800     <limits.h> exists even on freestanding compilers.  */
17801
17802 #ifdef __STDC__
17803 # include <limits.h>
17804 #else
17805 # include <assert.h>
17806 #endif
17807
17808 #undef $ac_func
17809
17810 /* Override any GCC internal prototype to avoid an error.
17811    Use char because int might match the return type of a GCC
17812    builtin and then its argument prototype would still apply.  */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char $ac_func ();
17817 /* The GNU C library defines this for functions which it implements
17818     to always fail with ENOSYS.  Some functions are actually named
17819     something starting with __ and the normal name is an alias.  */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17821 choke me
17822 #endif
17823
17824 int
17825 main ()
17826 {
17827 return $ac_func ();
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_link") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847   { (case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852   (eval "$ac_try") 2>&5
17853   ac_status=$?
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); }; } &&
17856          { ac_try='test -s conftest$ac_exeext'
17857   { (case "(($ac_try" in
17858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859   *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862   (eval "$ac_try") 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   eval "$as_ac_var=yes"
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871         eval "$as_ac_var=no"
17872 fi
17873
17874 rm -f core conftest.err conftest.$ac_objext \
17875       conftest$ac_exeext conftest.$ac_ext
17876 fi
17877 ac_res=`eval echo '${'$as_ac_var'}'`
17878                { echo "$as_me:$LINENO: result: $ac_res" >&5
17879 echo "${ECHO_T}$ac_res" >&6; }
17880 if test `eval echo '${'$as_ac_var'}'` = yes; then
17881   cat >>confdefs.h <<_ACEOF
17882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17883 _ACEOF
17884
17885 fi
17886 done
17887
17888
17889
17890
17891
17892
17893 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17894 do
17895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17899   echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17909 #define $ac_func innocuous_$ac_func
17910
17911 /* System header to define __stub macros and hopefully few prototypes,
17912     which can conflict with char $ac_func (); below.
17913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914     <limits.h> exists even on freestanding compilers.  */
17915
17916 #ifdef __STDC__
17917 # include <limits.h>
17918 #else
17919 # include <assert.h>
17920 #endif
17921
17922 #undef $ac_func
17923
17924 /* Override any GCC internal prototype to avoid an error.
17925    Use char because int might match the return type of a GCC
17926    builtin and then its argument prototype would still apply.  */
17927 #ifdef __cplusplus
17928 extern "C"
17929 #endif
17930 char $ac_func ();
17931 /* The GNU C library defines this for functions which it implements
17932     to always fail with ENOSYS.  Some functions are actually named
17933     something starting with __ and the normal name is an alias.  */
17934 #if defined __stub_$ac_func || defined __stub___$ac_func
17935 choke me
17936 #endif
17937
17938 int
17939 main ()
17940 {
17941 return $ac_func ();
17942   ;
17943   return 0;
17944 }
17945 _ACEOF
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (ac_try="$ac_link"
17948 case "(($ac_try" in
17949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950   *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953   (eval "$ac_link") 2>conftest.er1
17954   ac_status=$?
17955   grep -v '^ *+' conftest.er1 >conftest.err
17956   rm -f conftest.er1
17957   cat conftest.err >&5
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); } &&
17960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17961   { (case "(($ac_try" in
17962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963   *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966   (eval "$ac_try") 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; } &&
17970          { ac_try='test -s conftest$ac_exeext'
17971   { (case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_try") 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; }; then
17980   eval "$as_ac_var=yes"
17981 else
17982   echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985         eval "$as_ac_var=no"
17986 fi
17987
17988 rm -f core conftest.err conftest.$ac_objext \
17989       conftest$ac_exeext conftest.$ac_ext
17990 fi
17991 ac_res=`eval echo '${'$as_ac_var'}'`
17992                { echo "$as_me:$LINENO: result: $ac_res" >&5
17993 echo "${ECHO_T}$ac_res" >&6; }
17994 if test `eval echo '${'$as_ac_var'}'` = yes; then
17995   cat >>confdefs.h <<_ACEOF
17996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17997 _ACEOF
17998
17999 fi
18000 done
18001
18002
18003
18004
18005 for ac_func in isatty mkdtemp mkstemp
18006 do
18007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18011   echo $ECHO_N "(cached) $ECHO_C" >&6
18012 else
18013   cat >conftest.$ac_ext <<_ACEOF
18014 /* confdefs.h.  */
18015 _ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h.  */
18019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18021 #define $ac_func innocuous_$ac_func
18022
18023 /* System header to define __stub macros and hopefully few prototypes,
18024     which can conflict with char $ac_func (); below.
18025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18026     <limits.h> exists even on freestanding compilers.  */
18027
18028 #ifdef __STDC__
18029 # include <limits.h>
18030 #else
18031 # include <assert.h>
18032 #endif
18033
18034 #undef $ac_func
18035
18036 /* Override any GCC internal prototype to avoid an error.
18037    Use char because int might match the return type of a GCC
18038    builtin and then its argument prototype would still apply.  */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char $ac_func ();
18043 /* The GNU C library defines this for functions which it implements
18044     to always fail with ENOSYS.  Some functions are actually named
18045     something starting with __ and the normal name is an alias.  */
18046 #if defined __stub_$ac_func || defined __stub___$ac_func
18047 choke me
18048 #endif
18049
18050 int
18051 main ()
18052 {
18053 return $ac_func ();
18054   ;
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_link") 2>conftest.er1
18066   ac_status=$?
18067   grep -v '^ *+' conftest.er1 >conftest.err
18068   rm -f conftest.er1
18069   cat conftest.err >&5
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); } &&
18072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18073   { (case "(($ac_try" in
18074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075   *) ac_try_echo=$ac_try;;
18076 esac
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078   (eval "$ac_try") 2>&5
18079   ac_status=$?
18080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081   (exit $ac_status); }; } &&
18082          { ac_try='test -s conftest$ac_exeext'
18083   { (case "(($ac_try" in
18084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085   *) ac_try_echo=$ac_try;;
18086 esac
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088   (eval "$ac_try") 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; }; then
18092   eval "$as_ac_var=yes"
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097         eval "$as_ac_var=no"
18098 fi
18099
18100 rm -f core conftest.err conftest.$ac_objext \
18101       conftest$ac_exeext conftest.$ac_ext
18102 fi
18103 ac_res=`eval echo '${'$as_ac_var'}'`
18104                { echo "$as_me:$LINENO: result: $ac_res" >&5
18105 echo "${ECHO_T}$ac_res" >&6; }
18106 if test `eval echo '${'$as_ac_var'}'` = yes; then
18107   cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18109 _ACEOF
18110
18111 fi
18112 done
18113
18114
18115
18116
18117
18118
18119
18120 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18121 do
18122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18126   echo $ECHO_N "(cached) $ECHO_C" >&6
18127 else
18128   cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h.  */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h.  */
18134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18136 #define $ac_func innocuous_$ac_func
18137
18138 /* System header to define __stub macros and hopefully few prototypes,
18139     which can conflict with char $ac_func (); below.
18140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18141     <limits.h> exists even on freestanding compilers.  */
18142
18143 #ifdef __STDC__
18144 # include <limits.h>
18145 #else
18146 # include <assert.h>
18147 #endif
18148
18149 #undef $ac_func
18150
18151 /* Override any GCC internal prototype to avoid an error.
18152    Use char because int might match the return type of a GCC
18153    builtin and then its argument prototype would still apply.  */
18154 #ifdef __cplusplus
18155 extern "C"
18156 #endif
18157 char $ac_func ();
18158 /* The GNU C library defines this for functions which it implements
18159     to always fail with ENOSYS.  Some functions are actually named
18160     something starting with __ and the normal name is an alias.  */
18161 #if defined __stub_$ac_func || defined __stub___$ac_func
18162 choke me
18163 #endif
18164
18165 int
18166 main ()
18167 {
18168 return $ac_func ();
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_link") 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } &&
18187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18188   { (case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193   (eval "$ac_try") 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; } &&
18197          { ac_try='test -s conftest$ac_exeext'
18198   { (case "(($ac_try" in
18199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200   *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203   (eval "$ac_try") 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; }; then
18207   eval "$as_ac_var=yes"
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212         eval "$as_ac_var=no"
18213 fi
18214
18215 rm -f core conftest.err conftest.$ac_objext \
18216       conftest$ac_exeext conftest.$ac_ext
18217 fi
18218 ac_res=`eval echo '${'$as_ac_var'}'`
18219                { echo "$as_me:$LINENO: result: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18221 if test `eval echo '${'$as_ac_var'}'` = yes; then
18222   cat >>confdefs.h <<_ACEOF
18223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18224 _ACEOF
18225
18226 fi
18227 done
18228
18229
18230
18231
18232
18233 for ac_func in strerror strerror_r setenv arc4random
18234 do
18235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18239   echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241   cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h.  */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h.  */
18247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18249 #define $ac_func innocuous_$ac_func
18250
18251 /* System header to define __stub macros and hopefully few prototypes,
18252     which can conflict with char $ac_func (); below.
18253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18254     <limits.h> exists even on freestanding compilers.  */
18255
18256 #ifdef __STDC__
18257 # include <limits.h>
18258 #else
18259 # include <assert.h>
18260 #endif
18261
18262 #undef $ac_func
18263
18264 /* Override any GCC internal prototype to avoid an error.
18265    Use char because int might match the return type of a GCC
18266    builtin and then its argument prototype would still apply.  */
18267 #ifdef __cplusplus
18268 extern "C"
18269 #endif
18270 char $ac_func ();
18271 /* The GNU C library defines this for functions which it implements
18272     to always fail with ENOSYS.  Some functions are actually named
18273     something starting with __ and the normal name is an alias.  */
18274 #if defined __stub_$ac_func || defined __stub___$ac_func
18275 choke me
18276 #endif
18277
18278 int
18279 main ()
18280 {
18281 return $ac_func ();
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (ac_try="$ac_link"
18288 case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_link") 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301   { (case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_try") 2>&5
18307   ac_status=$?
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); }; } &&
18310          { ac_try='test -s conftest$ac_exeext'
18311   { (case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316   (eval "$ac_try") 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); }; }; then
18320   eval "$as_ac_var=yes"
18321 else
18322   echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325         eval "$as_ac_var=no"
18326 fi
18327
18328 rm -f core conftest.err conftest.$ac_objext \
18329       conftest$ac_exeext conftest.$ac_ext
18330 fi
18331 ac_res=`eval echo '${'$as_ac_var'}'`
18332                { echo "$as_me:$LINENO: result: $ac_res" >&5
18333 echo "${ECHO_T}$ac_res" >&6; }
18334 if test `eval echo '${'$as_ac_var'}'` = yes; then
18335   cat >>confdefs.h <<_ACEOF
18336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18337 _ACEOF
18338
18339 fi
18340 done
18341
18342
18343
18344
18345
18346 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18347 do
18348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18352   echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354   cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h.  */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h.  */
18360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18362 #define $ac_func innocuous_$ac_func
18363
18364 /* System header to define __stub macros and hopefully few prototypes,
18365     which can conflict with char $ac_func (); below.
18366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18367     <limits.h> exists even on freestanding compilers.  */
18368
18369 #ifdef __STDC__
18370 # include <limits.h>
18371 #else
18372 # include <assert.h>
18373 #endif
18374
18375 #undef $ac_func
18376
18377 /* Override any GCC internal prototype to avoid an error.
18378    Use char because int might match the return type of a GCC
18379    builtin and then its argument prototype would still apply.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char $ac_func ();
18384 /* The GNU C library defines this for functions which it implements
18385     to always fail with ENOSYS.  Some functions are actually named
18386     something starting with __ and the normal name is an alias.  */
18387 #if defined __stub_$ac_func || defined __stub___$ac_func
18388 choke me
18389 #endif
18390
18391 int
18392 main ()
18393 {
18394 return $ac_func ();
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_link") 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } &&
18413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18414   { (case "(($ac_try" in
18415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416   *) ac_try_echo=$ac_try;;
18417 esac
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419   (eval "$ac_try") 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; } &&
18423          { ac_try='test -s conftest$ac_exeext'
18424   { (case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_try") 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; }; then
18433   eval "$as_ac_var=yes"
18434 else
18435   echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438         eval "$as_ac_var=no"
18439 fi
18440
18441 rm -f core conftest.err conftest.$ac_objext \
18442       conftest$ac_exeext conftest.$ac_ext
18443 fi
18444 ac_res=`eval echo '${'$as_ac_var'}'`
18445                { echo "$as_me:$LINENO: result: $ac_res" >&5
18446 echo "${ECHO_T}$ac_res" >&6; }
18447 if test `eval echo '${'$as_ac_var'}'` = yes; then
18448   cat >>confdefs.h <<_ACEOF
18449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18450 _ACEOF
18451
18452 fi
18453 done
18454
18455
18456
18457
18458
18459
18460 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18461 do
18462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468   cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h.  */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h.  */
18474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18476 #define $ac_func innocuous_$ac_func
18477
18478 /* System header to define __stub macros and hopefully few prototypes,
18479     which can conflict with char $ac_func (); below.
18480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18481     <limits.h> exists even on freestanding compilers.  */
18482
18483 #ifdef __STDC__
18484 # include <limits.h>
18485 #else
18486 # include <assert.h>
18487 #endif
18488
18489 #undef $ac_func
18490
18491 /* Override any GCC internal prototype to avoid an error.
18492    Use char because int might match the return type of a GCC
18493    builtin and then its argument prototype would still apply.  */
18494 #ifdef __cplusplus
18495 extern "C"
18496 #endif
18497 char $ac_func ();
18498 /* The GNU C library defines this for functions which it implements
18499     to always fail with ENOSYS.  Some functions are actually named
18500     something starting with __ and the normal name is an alias.  */
18501 #if defined __stub_$ac_func || defined __stub___$ac_func
18502 choke me
18503 #endif
18504
18505 int
18506 main ()
18507 {
18508 return $ac_func ();
18509   ;
18510   return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517   *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520   (eval "$ac_link") 2>conftest.er1
18521   ac_status=$?
18522   grep -v '^ *+' conftest.er1 >conftest.err
18523   rm -f conftest.er1
18524   cat conftest.err >&5
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); } &&
18527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528   { (case "(($ac_try" in
18529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530   *) ac_try_echo=$ac_try;;
18531 esac
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533   (eval "$ac_try") 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; } &&
18537          { ac_try='test -s conftest$ac_exeext'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; }; then
18547   eval "$as_ac_var=yes"
18548 else
18549   echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552         eval "$as_ac_var=no"
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext \
18556       conftest$ac_exeext conftest.$ac_ext
18557 fi
18558 ac_res=`eval echo '${'$as_ac_var'}'`
18559                { echo "$as_me:$LINENO: result: $ac_res" >&5
18560 echo "${ECHO_T}$ac_res" >&6; }
18561 if test `eval echo '${'$as_ac_var'}'` = yes; then
18562   cat >>confdefs.h <<_ACEOF
18563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18564 _ACEOF
18565
18566 fi
18567 done
18568
18569
18570
18571 for ac_func in futimes futimens
18572 do
18573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18587 #define $ac_func innocuous_$ac_func
18588
18589 /* System header to define __stub macros and hopefully few prototypes,
18590     which can conflict with char $ac_func (); below.
18591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592     <limits.h> exists even on freestanding compilers.  */
18593
18594 #ifdef __STDC__
18595 # include <limits.h>
18596 #else
18597 # include <assert.h>
18598 #endif
18599
18600 #undef $ac_func
18601
18602 /* Override any GCC internal prototype to avoid an error.
18603    Use char because int might match the return type of a GCC
18604    builtin and then its argument prototype would still apply.  */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 char $ac_func ();
18609 /* The GNU C library defines this for functions which it implements
18610     to always fail with ENOSYS.  Some functions are actually named
18611     something starting with __ and the normal name is an alias.  */
18612 #if defined __stub_$ac_func || defined __stub___$ac_func
18613 choke me
18614 #endif
18615
18616 int
18617 main ()
18618 {
18619 return $ac_func ();
18620   ;
18621   return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (ac_try="$ac_link"
18626 case "(($ac_try" in
18627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628   *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631   (eval "$ac_link") 2>conftest.er1
18632   ac_status=$?
18633   grep -v '^ *+' conftest.er1 >conftest.err
18634   rm -f conftest.er1
18635   cat conftest.err >&5
18636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637   (exit $ac_status); } &&
18638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18639   { (case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_try") 2>&5
18645   ac_status=$?
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); }; } &&
18648          { ac_try='test -s conftest$ac_exeext'
18649   { (case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_try") 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); }; }; then
18658   eval "$as_ac_var=yes"
18659 else
18660   echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18662
18663         eval "$as_ac_var=no"
18664 fi
18665
18666 rm -f core conftest.err conftest.$ac_objext \
18667       conftest$ac_exeext conftest.$ac_ext
18668 fi
18669 ac_res=`eval echo '${'$as_ac_var'}'`
18670                { echo "$as_me:$LINENO: result: $ac_res" >&5
18671 echo "${ECHO_T}$ac_res" >&6; }
18672 if test `eval echo '${'$as_ac_var'}'` = yes; then
18673   cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18675 _ACEOF
18676
18677 fi
18678 done
18679
18680 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18681 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18682 if test "${llvm_cv_c_printf_a+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   ac_ext=c
18686 ac_cpp='$CPP $CPPFLAGS'
18687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18690
18691  if test "$cross_compiling" = yes; then
18692   llvmac_cv_c_printf_a=no
18693 else
18694   cat >conftest.$ac_ext <<_ACEOF
18695
18696   /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701
18702 #include <stdio.h>
18703 #include <stdlib.h>
18704
18705 int
18706 main ()
18707 {
18708
18709 volatile double A, B;
18710 char Buffer[100];
18711 A = 1;
18712 A /= 10.0;
18713 sprintf(Buffer, "%a", A);
18714 B = atof(Buffer);
18715 if (A != B)
18716   return (1);
18717 if (A != 0x1.999999999999ap-4)
18718   return (1);
18719 return (0);
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728   *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731   (eval "$ac_link") 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18735   { (case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_try") 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; }; then
18744   llvm_cv_c_printf_a=yes
18745 else
18746   echo "$as_me: program exited with status $ac_status" >&5
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ( exit $ac_status )
18751 llvmac_cv_c_printf_a=no
18752 fi
18753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18754 fi
18755
18756
18757  ac_ext=c
18758 ac_cpp='$CPP $CPPFLAGS'
18759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18762
18763 fi
18764 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18765 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18766  if test "$llvm_cv_c_printf_a" = "yes"; then
18767
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE_PRINTF_A 1
18770 _ACEOF
18771
18772  fi
18773
18774
18775
18776   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18777 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18778 if test "${ac_cv_func_rand48+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781
18782     ac_ext=cpp
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787
18788     cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h.  */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h.  */
18794 #include <stdlib.h>
18795 int
18796 main ()
18797 {
18798 srand48(0);lrand48();drand48();
18799   ;
18800   return 0;
18801 }
18802 _ACEOF
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807   *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810   (eval "$ac_compile") 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } &&
18817          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18818   { (case "(($ac_try" in
18819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820   *) ac_try_echo=$ac_try;;
18821 esac
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823   (eval "$ac_try") 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; } &&
18827          { ac_try='test -s conftest.$ac_objext'
18828   { (case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_try") 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; }; then
18837   ac_cv_func_rand48=yes
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842         ac_cv_func_rand48=no
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846     ac_ext=c
18847 ac_cpp='$CPP $CPPFLAGS'
18848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18851
18852
18853 fi
18854 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18855 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18856
18857 if test "$ac_cv_func_rand48" = "yes" ; then
18858
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_RAND48 1
18861 _ACEOF
18862
18863 fi
18864
18865
18866 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18867 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18868 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18869   echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871   cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h.  */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h.  */
18877 $ac_includes_default
18878 int
18879 main ()
18880 {
18881 #ifndef strerror_s
18882   char *p = (char *) strerror_s;
18883   return !p;
18884 #endif
18885
18886   ;
18887   return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (ac_try="$ac_compile"
18892 case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_compile") 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } &&
18904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18905   { (case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_try") 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; } &&
18914          { ac_try='test -s conftest.$ac_objext'
18915   { (case "(($ac_try" in
18916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917   *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920   (eval "$ac_try") 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; }; then
18924   ac_cv_have_decl_strerror_s=yes
18925 else
18926   echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929         ac_cv_have_decl_strerror_s=no
18930 fi
18931
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 fi
18934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18935 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18936 if test $ac_cv_have_decl_strerror_s = yes; then
18937
18938 cat >>confdefs.h <<_ACEOF
18939 #define HAVE_DECL_STRERROR_S 1
18940 _ACEOF
18941
18942
18943 else
18944   cat >>confdefs.h <<_ACEOF
18945 #define HAVE_DECL_STRERROR_S 0
18946 _ACEOF
18947
18948
18949 fi
18950
18951
18952
18953 if test "$llvm_cv_os_type" = "MingW" ; then
18954   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18955 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18956 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   ac_check_lib_save_LIBS=$LIBS
18960 LIBS="-lgcc  $LIBS"
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967
18968 /* Override any GCC internal prototype to avoid an error.
18969    Use char because int might match the return type of a GCC
18970    builtin and then its argument prototype would still apply.  */
18971 #ifdef __cplusplus
18972 extern "C"
18973 #endif
18974 char _alloca ();
18975 int
18976 main ()
18977 {
18978 return _alloca ();
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_link") 2>conftest.er1
18991   ac_status=$?
18992   grep -v '^ *+' conftest.er1 >conftest.err
18993   rm -f conftest.er1
18994   cat conftest.err >&5
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); } &&
18997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998   { (case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_try") 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; } &&
19007          { ac_try='test -s conftest$ac_exeext'
19008   { (case "(($ac_try" in
19009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010   *) ac_try_echo=$ac_try;;
19011 esac
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013   (eval "$ac_try") 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   ac_cv_lib_gcc__alloca=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022         ac_cv_lib_gcc__alloca=no
19023 fi
19024
19025 rm -f core conftest.err conftest.$ac_objext \
19026       conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19028 fi
19029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19030 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19031 if test $ac_cv_lib_gcc__alloca = yes; then
19032
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE__ALLOCA 1
19035 _ACEOF
19036
19037 fi
19038
19039   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19040 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19041 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-lgcc  $LIBS"
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052
19053 /* Override any GCC internal prototype to avoid an error.
19054    Use char because int might match the return type of a GCC
19055    builtin and then its argument prototype would still apply.  */
19056 #ifdef __cplusplus
19057 extern "C"
19058 #endif
19059 char __alloca ();
19060 int
19061 main ()
19062 {
19063 return __alloca ();
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_link") 2>conftest.er1
19076   ac_status=$?
19077   grep -v '^ *+' conftest.er1 >conftest.err
19078   rm -f conftest.er1
19079   cat conftest.err >&5
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); } &&
19082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083   { (case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_try") 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; } &&
19092          { ac_try='test -s conftest$ac_exeext'
19093   { (case "(($ac_try" in
19094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095   *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098   (eval "$ac_try") 2>&5
19099   ac_status=$?
19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101   (exit $ac_status); }; }; then
19102   ac_cv_lib_gcc___alloca=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         ac_cv_lib_gcc___alloca=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext \
19111       conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19113 fi
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19115 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19116 if test $ac_cv_lib_gcc___alloca = yes; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE___ALLOCA 1
19120 _ACEOF
19121
19122 fi
19123
19124   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19125 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19126 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   ac_check_lib_save_LIBS=$LIBS
19130 LIBS="-lgcc  $LIBS"
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h.  */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h.  */
19137
19138 /* Override any GCC internal prototype to avoid an error.
19139    Use char because int might match the return type of a GCC
19140    builtin and then its argument prototype would still apply.  */
19141 #ifdef __cplusplus
19142 extern "C"
19143 #endif
19144 char __chkstk ();
19145 int
19146 main ()
19147 {
19148 return __chkstk ();
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (ac_try="$ac_link"
19155 case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_link") 2>conftest.er1
19161   ac_status=$?
19162   grep -v '^ *+' conftest.er1 >conftest.err
19163   rm -f conftest.er1
19164   cat conftest.err >&5
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); } &&
19167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19168   { (case "(($ac_try" in
19169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170   *) ac_try_echo=$ac_try;;
19171 esac
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173   (eval "$ac_try") 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; } &&
19177          { ac_try='test -s conftest$ac_exeext'
19178   { (case "(($ac_try" in
19179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180   *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183   (eval "$ac_try") 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; }; then
19187   ac_cv_lib_gcc___chkstk=yes
19188 else
19189   echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192         ac_cv_lib_gcc___chkstk=no
19193 fi
19194
19195 rm -f core conftest.err conftest.$ac_objext \
19196       conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19198 fi
19199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19200 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19201 if test $ac_cv_lib_gcc___chkstk = yes; then
19202
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE___CHKSTK 1
19205 _ACEOF
19206
19207 fi
19208
19209   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19210 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19211 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19212   echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214   ac_check_lib_save_LIBS=$LIBS
19215 LIBS="-lgcc  $LIBS"
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h.  */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h.  */
19222
19223 /* Override any GCC internal prototype to avoid an error.
19224    Use char because int might match the return type of a GCC
19225    builtin and then its argument prototype would still apply.  */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 char ___chkstk ();
19230 int
19231 main ()
19232 {
19233 return ___chkstk ();
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_link") 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } &&
19252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19253   { (case "(($ac_try" in
19254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255   *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258   (eval "$ac_try") 2>&5
19259   ac_status=$?
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); }; } &&
19262          { ac_try='test -s conftest$ac_exeext'
19263   { (case "(($ac_try" in
19264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265   *) ac_try_echo=$ac_try;;
19266 esac
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268   (eval "$ac_try") 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272   ac_cv_lib_gcc____chkstk=yes
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277         ac_cv_lib_gcc____chkstk=no
19278 fi
19279
19280 rm -f core conftest.err conftest.$ac_objext \
19281       conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19283 fi
19284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19285 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19286 if test $ac_cv_lib_gcc____chkstk = yes; then
19287
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE____CHKSTK 1
19290 _ACEOF
19291
19292 fi
19293
19294
19295   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19296 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   ac_check_lib_save_LIBS=$LIBS
19301 LIBS="-lgcc  $LIBS"
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308
19309 /* Override any GCC internal prototype to avoid an error.
19310    Use char because int might match the return type of a GCC
19311    builtin and then its argument prototype would still apply.  */
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 char __ashldi3 ();
19316 int
19317 main ()
19318 {
19319 return __ashldi3 ();
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_link") 2>conftest.er1
19332   ac_status=$?
19333   grep -v '^ *+' conftest.er1 >conftest.err
19334   rm -f conftest.er1
19335   cat conftest.err >&5
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } &&
19338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339   { (case "(($ac_try" in
19340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341   *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344   (eval "$ac_try") 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; } &&
19348          { ac_try='test -s conftest$ac_exeext'
19349   { (case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_try") 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; }; then
19358   ac_cv_lib_gcc___ashldi3=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363         ac_cv_lib_gcc___ashldi3=no
19364 fi
19365
19366 rm -f core conftest.err conftest.$ac_objext \
19367       conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19369 fi
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19371 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19372 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19373
19374 cat >>confdefs.h <<\_ACEOF
19375 #define HAVE___ASHLDI3 1
19376 _ACEOF
19377
19378 fi
19379
19380   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19381 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lgcc  $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 /* Override any GCC internal prototype to avoid an error.
19395    Use char because int might match the return type of a GCC
19396    builtin and then its argument prototype would still apply.  */
19397 #ifdef __cplusplus
19398 extern "C"
19399 #endif
19400 char __ashrdi3 ();
19401 int
19402 main ()
19403 {
19404 return __ashrdi3 ();
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_link") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } &&
19423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424   { (case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_try") 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; } &&
19433          { ac_try='test -s conftest$ac_exeext'
19434   { (case "(($ac_try" in
19435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436   *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439   (eval "$ac_try") 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; }; then
19443   ac_cv_lib_gcc___ashrdi3=yes
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448         ac_cv_lib_gcc___ashrdi3=no
19449 fi
19450
19451 rm -f core conftest.err conftest.$ac_objext \
19452       conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19454 fi
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19456 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19457 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19458
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE___ASHRDI3 1
19461 _ACEOF
19462
19463 fi
19464
19465   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19466 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19467 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lgcc  $LIBS"
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478
19479 /* Override any GCC internal prototype to avoid an error.
19480    Use char because int might match the return type of a GCC
19481    builtin and then its argument prototype would still apply.  */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char __divdi3 ();
19486 int
19487 main ()
19488 {
19489 return __divdi3 ();
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (ac_try="$ac_link"
19496 case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_link") 2>conftest.er1
19502   ac_status=$?
19503   grep -v '^ *+' conftest.er1 >conftest.err
19504   rm -f conftest.er1
19505   cat conftest.err >&5
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } &&
19508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509   { (case "(($ac_try" in
19510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511   *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514   (eval "$ac_try") 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; } &&
19518          { ac_try='test -s conftest$ac_exeext'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   ac_cv_lib_gcc___divdi3=yes
19529 else
19530   echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533         ac_cv_lib_gcc___divdi3=no
19534 fi
19535
19536 rm -f core conftest.err conftest.$ac_objext \
19537       conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19539 fi
19540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19541 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19542 if test $ac_cv_lib_gcc___divdi3 = yes; then
19543
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE___DIVDI3 1
19546 _ACEOF
19547
19548 fi
19549
19550   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19551 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19553   echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555   ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-lgcc  $LIBS"
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563
19564 /* Override any GCC internal prototype to avoid an error.
19565    Use char because int might match the return type of a GCC
19566    builtin and then its argument prototype would still apply.  */
19567 #ifdef __cplusplus
19568 extern "C"
19569 #endif
19570 char __fixdfdi ();
19571 int
19572 main ()
19573 {
19574 return __fixdfdi ();
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_link") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } &&
19593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19594   { (case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_try") 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; } &&
19603          { ac_try='test -s conftest$ac_exeext'
19604   { (case "(($ac_try" in
19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606   *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609   (eval "$ac_try") 2>&5
19610   ac_status=$?
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); }; }; then
19613   ac_cv_lib_gcc___fixdfdi=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618         ac_cv_lib_gcc___fixdfdi=no
19619 fi
19620
19621 rm -f core conftest.err conftest.$ac_objext \
19622       conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19624 fi
19625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19626 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19627 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19628
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE___FIXDFDI 1
19631 _ACEOF
19632
19633 fi
19634
19635   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19636 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19637 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19638   echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640   ac_check_lib_save_LIBS=$LIBS
19641 LIBS="-lgcc  $LIBS"
19642 cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648
19649 /* Override any GCC internal prototype to avoid an error.
19650    Use char because int might match the return type of a GCC
19651    builtin and then its argument prototype would still apply.  */
19652 #ifdef __cplusplus
19653 extern "C"
19654 #endif
19655 char __fixsfdi ();
19656 int
19657 main ()
19658 {
19659 return __fixsfdi ();
19660   ;
19661   return 0;
19662 }
19663 _ACEOF
19664 rm -f conftest.$ac_objext conftest$ac_exeext
19665 if { (ac_try="$ac_link"
19666 case "(($ac_try" in
19667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668   *) ac_try_echo=$ac_try;;
19669 esac
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671   (eval "$ac_link") 2>conftest.er1
19672   ac_status=$?
19673   grep -v '^ *+' conftest.er1 >conftest.err
19674   rm -f conftest.er1
19675   cat conftest.err >&5
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); } &&
19678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19679   { (case "(($ac_try" in
19680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681   *) ac_try_echo=$ac_try;;
19682 esac
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684   (eval "$ac_try") 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; } &&
19688          { ac_try='test -s conftest$ac_exeext'
19689   { (case "(($ac_try" in
19690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691   *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694   (eval "$ac_try") 2>&5
19695   ac_status=$?
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; }; then
19698   ac_cv_lib_gcc___fixsfdi=yes
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703         ac_cv_lib_gcc___fixsfdi=no
19704 fi
19705
19706 rm -f core conftest.err conftest.$ac_objext \
19707       conftest$ac_exeext conftest.$ac_ext
19708 LIBS=$ac_check_lib_save_LIBS
19709 fi
19710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19711 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19712 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19713
19714 cat >>confdefs.h <<\_ACEOF
19715 #define HAVE___FIXSFDI 1
19716 _ACEOF
19717
19718 fi
19719
19720   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19721 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19722 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725   ac_check_lib_save_LIBS=$LIBS
19726 LIBS="-lgcc  $LIBS"
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733
19734 /* Override any GCC internal prototype to avoid an error.
19735    Use char because int might match the return type of a GCC
19736    builtin and then its argument prototype would still apply.  */
19737 #ifdef __cplusplus
19738 extern "C"
19739 #endif
19740 char __floatdidf ();
19741 int
19742 main ()
19743 {
19744 return __floatdidf ();
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext conftest$ac_exeext
19750 if { (ac_try="$ac_link"
19751 case "(($ac_try" in
19752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753   *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756   (eval "$ac_link") 2>conftest.er1
19757   ac_status=$?
19758   grep -v '^ *+' conftest.er1 >conftest.err
19759   rm -f conftest.er1
19760   cat conftest.err >&5
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); } &&
19763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19764   { (case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_try") 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }; } &&
19773          { ac_try='test -s conftest$ac_exeext'
19774   { (case "(($ac_try" in
19775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776   *) ac_try_echo=$ac_try;;
19777 esac
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779   (eval "$ac_try") 2>&5
19780   ac_status=$?
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); }; }; then
19783   ac_cv_lib_gcc___floatdidf=yes
19784 else
19785   echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788         ac_cv_lib_gcc___floatdidf=no
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext \
19792       conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19794 fi
19795 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19796 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19797 if test $ac_cv_lib_gcc___floatdidf = yes; then
19798
19799 cat >>confdefs.h <<\_ACEOF
19800 #define HAVE___FLOATDIDF 1
19801 _ACEOF
19802
19803 fi
19804
19805   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19806 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19807 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19808   echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810   ac_check_lib_save_LIBS=$LIBS
19811 LIBS="-lgcc  $LIBS"
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818
19819 /* Override any GCC internal prototype to avoid an error.
19820    Use char because int might match the return type of a GCC
19821    builtin and then its argument prototype would still apply.  */
19822 #ifdef __cplusplus
19823 extern "C"
19824 #endif
19825 char __lshrdi3 ();
19826 int
19827 main ()
19828 {
19829 return __lshrdi3 ();
19830   ;
19831   return 0;
19832 }
19833 _ACEOF
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838   *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841   (eval "$ac_link") 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } &&
19848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19849   { (case "(($ac_try" in
19850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851   *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854   (eval "$ac_try") 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; } &&
19858          { ac_try='test -s conftest$ac_exeext'
19859   { (case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_try") 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; }; then
19868   ac_cv_lib_gcc___lshrdi3=yes
19869 else
19870   echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19872
19873         ac_cv_lib_gcc___lshrdi3=no
19874 fi
19875
19876 rm -f core conftest.err conftest.$ac_objext \
19877       conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19879 fi
19880 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19881 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19882 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19883
19884 cat >>confdefs.h <<\_ACEOF
19885 #define HAVE___LSHRDI3 1
19886 _ACEOF
19887
19888 fi
19889
19890   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19891 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19892 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19893   echo $ECHO_N "(cached) $ECHO_C" >&6
19894 else
19895   ac_check_lib_save_LIBS=$LIBS
19896 LIBS="-lgcc  $LIBS"
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903
19904 /* Override any GCC internal prototype to avoid an error.
19905    Use char because int might match the return type of a GCC
19906    builtin and then its argument prototype would still apply.  */
19907 #ifdef __cplusplus
19908 extern "C"
19909 #endif
19910 char __moddi3 ();
19911 int
19912 main ()
19913 {
19914 return __moddi3 ();
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (ac_try="$ac_link"
19921 case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_link") 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19934   { (case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_try") 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest$ac_exeext'
19944   { (case "(($ac_try" in
19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946   *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949   (eval "$ac_try") 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; }; then
19953   ac_cv_lib_gcc___moddi3=yes
19954 else
19955   echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958         ac_cv_lib_gcc___moddi3=no
19959 fi
19960
19961 rm -f core conftest.err conftest.$ac_objext \
19962       conftest$ac_exeext conftest.$ac_ext
19963 LIBS=$ac_check_lib_save_LIBS
19964 fi
19965 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19966 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19967 if test $ac_cv_lib_gcc___moddi3 = yes; then
19968
19969 cat >>confdefs.h <<\_ACEOF
19970 #define HAVE___MODDI3 1
19971 _ACEOF
19972
19973 fi
19974
19975   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19976 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19977 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   ac_check_lib_save_LIBS=$LIBS
19981 LIBS="-lgcc  $LIBS"
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988
19989 /* Override any GCC internal prototype to avoid an error.
19990    Use char because int might match the return type of a GCC
19991    builtin and then its argument prototype would still apply.  */
19992 #ifdef __cplusplus
19993 extern "C"
19994 #endif
19995 char __udivdi3 ();
19996 int
19997 main ()
19998 {
19999 return __udivdi3 ();
20000   ;
20001   return 0;
20002 }
20003 _ACEOF
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (ac_try="$ac_link"
20006 case "(($ac_try" in
20007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008   *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011   (eval "$ac_link") 2>conftest.er1
20012   ac_status=$?
20013   grep -v '^ *+' conftest.er1 >conftest.err
20014   rm -f conftest.er1
20015   cat conftest.err >&5
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); } &&
20018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20019   { (case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_try") 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); }; } &&
20028          { ac_try='test -s conftest$ac_exeext'
20029   { (case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_try") 2>&5
20035   ac_status=$?
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); }; }; then
20038   ac_cv_lib_gcc___udivdi3=yes
20039 else
20040   echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20042
20043         ac_cv_lib_gcc___udivdi3=no
20044 fi
20045
20046 rm -f core conftest.err conftest.$ac_objext \
20047       conftest$ac_exeext conftest.$ac_ext
20048 LIBS=$ac_check_lib_save_LIBS
20049 fi
20050 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20051 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20052 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20053
20054 cat >>confdefs.h <<\_ACEOF
20055 #define HAVE___UDIVDI3 1
20056 _ACEOF
20057
20058 fi
20059
20060   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20061 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20062 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20063   echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065   ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-lgcc  $LIBS"
20067 cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h.  */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h.  */
20073
20074 /* Override any GCC internal prototype to avoid an error.
20075    Use char because int might match the return type of a GCC
20076    builtin and then its argument prototype would still apply.  */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char __umoddi3 ();
20081 int
20082 main ()
20083 {
20084 return __umoddi3 ();
20085   ;
20086   return 0;
20087 }
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093   *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096   (eval "$ac_link") 2>conftest.er1
20097   ac_status=$?
20098   grep -v '^ *+' conftest.er1 >conftest.err
20099   rm -f conftest.er1
20100   cat conftest.err >&5
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); } &&
20103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20104   { (case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_try") 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; } &&
20113          { ac_try='test -s conftest$ac_exeext'
20114   { (case "(($ac_try" in
20115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116   *) ac_try_echo=$ac_try;;
20117 esac
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119   (eval "$ac_try") 2>&5
20120   ac_status=$?
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); }; }; then
20123   ac_cv_lib_gcc___umoddi3=yes
20124 else
20125   echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128         ac_cv_lib_gcc___umoddi3=no
20129 fi
20130
20131 rm -f core conftest.err conftest.$ac_objext \
20132       conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20134 fi
20135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20136 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20137 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20138
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE___UMODDI3 1
20141 _ACEOF
20142
20143 fi
20144
20145
20146   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20147 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20148 if test "${ac_cv_lib_gcc___main+set}" = set; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151   ac_check_lib_save_LIBS=$LIBS
20152 LIBS="-lgcc  $LIBS"
20153 cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159
20160 /* Override any GCC internal prototype to avoid an error.
20161    Use char because int might match the return type of a GCC
20162    builtin and then its argument prototype would still apply.  */
20163 #ifdef __cplusplus
20164 extern "C"
20165 #endif
20166 char __main ();
20167 int
20168 main ()
20169 {
20170 return __main ();
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_link") 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } &&
20189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190   { (case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_try") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_try") 2>&5
20206   ac_status=$?
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); }; }; then
20209   ac_cv_lib_gcc___main=yes
20210 else
20211   echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214         ac_cv_lib_gcc___main=no
20215 fi
20216
20217 rm -f core conftest.err conftest.$ac_objext \
20218       conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20220 fi
20221 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20222 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20223 if test $ac_cv_lib_gcc___main = yes; then
20224
20225 cat >>confdefs.h <<\_ACEOF
20226 #define HAVE___MAIN 1
20227 _ACEOF
20228
20229 fi
20230
20231   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20232 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lgcc  $LIBS"
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246    Use char because int might match the return type of a GCC
20247    builtin and then its argument prototype would still apply.  */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char __cmpdi2 ();
20252 int
20253 main ()
20254 {
20255 return __cmpdi2 ();
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_link") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275   { (case "(($ac_try" in
20276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277   *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280   (eval "$ac_try") 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; } &&
20284          { ac_try='test -s conftest$ac_exeext'
20285   { (case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_try") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_lib_gcc___cmpdi2=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299         ac_cv_lib_gcc___cmpdi2=no
20300 fi
20301
20302 rm -f core conftest.err conftest.$ac_objext \
20303       conftest$ac_exeext conftest.$ac_ext
20304 LIBS=$ac_check_lib_save_LIBS
20305 fi
20306 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20307 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20308 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE___CMPDI2 1
20312 _ACEOF
20313
20314 fi
20315
20316 fi
20317
20318 if test "$llvm_cv_os_type" = "MingW" ; then
20319   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20320 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20321   cat >conftest.$ac_ext <<_ACEOF
20322
20323   /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328
20329     #include <windows.h>
20330     #include <imagehlp.h>
20331     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20332     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20333
20334
20335 _ACEOF
20336 rm -f conftest.$ac_objext
20337 if { (ac_try="$ac_compile"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343   (eval "$ac_compile") 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } &&
20350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20351   { (case "(($ac_try" in
20352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353   *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356   (eval "$ac_try") 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; } &&
20360          { ac_try='test -s conftest.$ac_objext'
20361   { (case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_try") 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; }; then
20370
20371   { echo "$as_me:$LINENO: result: yes" >&5
20372 echo "${ECHO_T}yes" >&6; }
20373   llvm_cv_win32_elmcb_pcstr="PCSTR"
20374
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379
20380   { echo "$as_me:$LINENO: result: no" >&5
20381 echo "${ECHO_T}no" >&6; }
20382   llvm_cv_win32_elmcb_pcstr="PSTR"
20383
20384 fi
20385
20386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20387
20388 cat >>confdefs.h <<_ACEOF
20389 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20390 _ACEOF
20391
20392 fi
20393
20394
20395
20396   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20397 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20398 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20399   echo $ECHO_N "(cached) $ECHO_C" >&6
20400 else
20401
20402     ac_ext=cpp
20403 ac_cpp='$CXXCPP $CPPFLAGS'
20404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20407
20408     cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 #include <math.h>
20415 int
20416 main ()
20417 {
20418 float f; isnan(f);
20419   ;
20420   return 0;
20421 }
20422 _ACEOF
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427   *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430   (eval "$ac_compile") 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20438   { (case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_try") 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; } &&
20447          { ac_try='test -s conftest.$ac_objext'
20448   { (case "(($ac_try" in
20449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450   *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453   (eval "$ac_try") 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); }; }; then
20457   ac_cv_func_isnan_in_math_h=yes
20458 else
20459   echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462         ac_cv_func_isnan_in_math_h=no
20463 fi
20464
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466     ac_ext=c
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471
20472
20473 fi
20474 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20475 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20476
20477
20478 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20479
20480 cat >>confdefs.h <<\_ACEOF
20481 #define HAVE_ISNAN_IN_MATH_H 1
20482 _ACEOF
20483
20484 fi
20485
20486
20487   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20488 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20489 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492
20493     ac_ext=cpp
20494 ac_cpp='$CXXCPP $CPPFLAGS'
20495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20498
20499     cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h.  */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h.  */
20505 #include <cmath>
20506 int
20507 main ()
20508 {
20509 float f; isnan(f);
20510   ;
20511   return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext
20515 if { (ac_try="$ac_compile"
20516 case "(($ac_try" in
20517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518   *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521   (eval "$ac_compile") 2>conftest.er1
20522   ac_status=$?
20523   grep -v '^ *+' conftest.er1 >conftest.err
20524   rm -f conftest.er1
20525   cat conftest.err >&5
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); } &&
20528          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20529   { (case "(($ac_try" in
20530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531   *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534   (eval "$ac_try") 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; } &&
20538          { ac_try='test -s conftest.$ac_objext'
20539   { (case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544   (eval "$ac_try") 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; }; then
20548   ac_cv_func_isnan_in_cmath=yes
20549 else
20550   echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553         ac_cv_func_isnan_in_cmath=no
20554 fi
20555
20556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557     ac_ext=c
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
20563
20564 fi
20565 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20566 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20567
20568 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20569
20570 cat >>confdefs.h <<\_ACEOF
20571 #define HAVE_ISNAN_IN_CMATH 1
20572 _ACEOF
20573
20574 fi
20575
20576
20577   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20578 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20579 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582
20583     ac_ext=cpp
20584 ac_cpp='$CXXCPP $CPPFLAGS'
20585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20588
20589     cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 #include <cmath>
20596 int
20597 main ()
20598 {
20599 float f; std::isnan(f);
20600   ;
20601   return 0;
20602 }
20603 _ACEOF
20604 rm -f conftest.$ac_objext
20605 if { (ac_try="$ac_compile"
20606 case "(($ac_try" in
20607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608   *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611   (eval "$ac_compile") 2>conftest.er1
20612   ac_status=$?
20613   grep -v '^ *+' conftest.er1 >conftest.err
20614   rm -f conftest.er1
20615   cat conftest.err >&5
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } &&
20618          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20619   { (case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_try") 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; } &&
20628          { ac_try='test -s conftest.$ac_objext'
20629   { (case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_try") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; }; then
20638   ac_cv_func_std_isnan_in_cmath=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         ac_cv_func_std_isnan_in_cmath=no
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647     ac_ext=c
20648 ac_cpp='$CPP $CPPFLAGS'
20649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20652
20653
20654 fi
20655 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20656 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20657
20658 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20659
20660 cat >>confdefs.h <<\_ACEOF
20661 #define HAVE_STD_ISNAN_IN_CMATH 1
20662 _ACEOF
20663
20664 fi
20665
20666
20667
20668
20669   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20670 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20671 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20672   echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674
20675     ac_ext=cpp
20676 ac_cpp='$CXXCPP $CPPFLAGS'
20677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20680
20681     cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687 #include <math.h>
20688 int
20689 main ()
20690 {
20691 float f; isinf(f);
20692   ;
20693   return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } &&
20710          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20711   { (case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_try") 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; } &&
20720          { ac_try='test -s conftest.$ac_objext'
20721   { (case "(($ac_try" in
20722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723   *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726   (eval "$ac_try") 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   ac_cv_func_isinf_in_math_h=yes
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735         ac_cv_func_isinf_in_math_h=no
20736 fi
20737
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739     ac_ext=c
20740 ac_cpp='$CPP $CPPFLAGS'
20741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20744
20745
20746 fi
20747 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20748 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20749
20750 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20751
20752 cat >>confdefs.h <<\_ACEOF
20753 #define HAVE_ISINF_IN_MATH_H 1
20754 _ACEOF
20755
20756 fi
20757
20758
20759   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20760 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20761 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764
20765     ac_ext=cpp
20766 ac_cpp='$CXXCPP $CPPFLAGS'
20767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20770
20771     cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777 #include <cmath>
20778 int
20779 main ()
20780 {
20781 float f; isinf(f);
20782   ;
20783   return 0;
20784 }
20785 _ACEOF
20786 rm -f conftest.$ac_objext
20787 if { (ac_try="$ac_compile"
20788 case "(($ac_try" in
20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790   *) ac_try_echo=$ac_try;;
20791 esac
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793   (eval "$ac_compile") 2>conftest.er1
20794   ac_status=$?
20795   grep -v '^ *+' conftest.er1 >conftest.err
20796   rm -f conftest.er1
20797   cat conftest.err >&5
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); } &&
20800          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20801   { (case "(($ac_try" in
20802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803   *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806   (eval "$ac_try") 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; } &&
20810          { ac_try='test -s conftest.$ac_objext'
20811   { (case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_try") 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   ac_cv_func_isinf_in_cmath=yes
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825         ac_cv_func_isinf_in_cmath=no
20826 fi
20827
20828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829     ac_ext=c
20830 ac_cpp='$CPP $CPPFLAGS'
20831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20834
20835
20836 fi
20837 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20838 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20839
20840 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_ISINF_IN_CMATH 1
20844 _ACEOF
20845
20846 fi
20847
20848
20849   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20850 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20851 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854
20855     ac_ext=cpp
20856 ac_cpp='$CXXCPP $CPPFLAGS'
20857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20860
20861     cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 #include <cmath>
20868 int
20869 main ()
20870 {
20871 float f; std::isinf(f);
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880   *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883   (eval "$ac_compile") 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } &&
20890          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20891   { (case "(($ac_try" in
20892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893   *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896   (eval "$ac_try") 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest.$ac_objext'
20901   { (case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_try") 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   ac_cv_func_std_isinf_in_cmath=yes
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915         ac_cv_func_std_isinf_in_cmath=no
20916 fi
20917
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919     ac_ext=c
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925
20926 fi
20927 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20928 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20929
20930 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20931
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_STD_ISINF_IN_CMATH 1
20934 _ACEOF
20935
20936 fi
20937
20938
20939   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20940 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20941 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944
20945     ac_ext=cpp
20946 ac_cpp='$CXXCPP $CPPFLAGS'
20947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20950
20951     cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <ieeefp.h>
20958 int
20959 main ()
20960 {
20961 float f; finite(f);
20962   ;
20963   return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973   (eval "$ac_compile") 2>conftest.er1
20974   ac_status=$?
20975   grep -v '^ *+' conftest.er1 >conftest.err
20976   rm -f conftest.er1
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); } &&
20980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20981   { (case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_try") 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; } &&
20990          { ac_try='test -s conftest.$ac_objext'
20991   { (case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_try") 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   ac_cv_func_finite_in_ieeefp_h=yes
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005         ac_cv_func_finite_in_ieeefp_h=no
21006 fi
21007
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009     ac_ext=c
21010 ac_cpp='$CPP $CPPFLAGS'
21011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016 fi
21017 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21018 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21019
21020 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21021
21022 cat >>confdefs.h <<\_ACEOF
21023 #define HAVE_FINITE_IN_IEEEFP_H 1
21024 _ACEOF
21025
21026 fi
21027
21028
21029
21030 if test "$llvm_cv_platform_type" = "Unix" ; then
21031
21032
21033 for ac_header in stdlib.h unistd.h
21034 do
21035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21037   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040   echo $ECHO_N "(cached) $ECHO_C" >&6
21041 fi
21042 ac_res=`eval echo '${'$as_ac_Header'}'`
21043                { echo "$as_me:$LINENO: result: $ac_res" >&5
21044 echo "${ECHO_T}$ac_res" >&6; }
21045 else
21046   # Is the header compilable?
21047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h.  */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h.  */
21055 $ac_includes_default
21056 #include <$ac_header>
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (ac_try="$ac_compile"
21060 case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_compile") 2>conftest.er1
21066   ac_status=$?
21067   grep -v '^ *+' conftest.er1 >conftest.err
21068   rm -f conftest.er1
21069   cat conftest.err >&5
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } &&
21072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073   { (case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078   (eval "$ac_try") 2>&5
21079   ac_status=$?
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); }; } &&
21082          { ac_try='test -s conftest.$ac_objext'
21083   { (case "(($ac_try" in
21084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085   *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088   (eval "$ac_try") 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; }; then
21092   ac_header_compiler=yes
21093 else
21094   echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21096
21097         ac_header_compiler=no
21098 fi
21099
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21102 echo "${ECHO_T}$ac_header_compiler" >&6; }
21103
21104 # Is the header present?
21105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21108 /* confdefs.h.  */
21109 _ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h.  */
21113 #include <$ac_header>
21114 _ACEOF
21115 if { (ac_try="$ac_cpp conftest.$ac_ext"
21116 case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21122   ac_status=$?
21123   grep -v '^ *+' conftest.er1 >conftest.err
21124   rm -f conftest.er1
21125   cat conftest.err >&5
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); } >/dev/null; then
21128   if test -s conftest.err; then
21129     ac_cpp_err=$ac_c_preproc_warn_flag
21130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21131   else
21132     ac_cpp_err=
21133   fi
21134 else
21135   ac_cpp_err=yes
21136 fi
21137 if test -z "$ac_cpp_err"; then
21138   ac_header_preproc=yes
21139 else
21140   echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143   ac_header_preproc=no
21144 fi
21145
21146 rm -f conftest.err conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21148 echo "${ECHO_T}$ac_header_preproc" >&6; }
21149
21150 # So?  What about this header?
21151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21152   yes:no: )
21153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21157     ac_header_preproc=yes
21158     ;;
21159   no:yes:* )
21160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21172     ( cat <<\_ASBOX
21173 ## ------------------------------------ ##
21174 ## Report this to http://llvm.org/bugs/ ##
21175 ## ------------------------------------ ##
21176 _ASBOX
21177      ) | sed "s/^/$as_me: WARNING:     /" >&2
21178     ;;
21179 esac
21180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183   echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185   eval "$as_ac_Header=\$ac_header_preproc"
21186 fi
21187 ac_res=`eval echo '${'$as_ac_Header'}'`
21188                { echo "$as_me:$LINENO: result: $ac_res" >&5
21189 echo "${ECHO_T}$ac_res" >&6; }
21190
21191 fi
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193   cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 _ACEOF
21196
21197 fi
21198
21199 done
21200
21201
21202 for ac_func in getpagesize
21203 do
21204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210   cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21218 #define $ac_func innocuous_$ac_func
21219
21220 /* System header to define __stub macros and hopefully few prototypes,
21221     which can conflict with char $ac_func (); below.
21222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21223     <limits.h> exists even on freestanding compilers.  */
21224
21225 #ifdef __STDC__
21226 # include <limits.h>
21227 #else
21228 # include <assert.h>
21229 #endif
21230
21231 #undef $ac_func
21232
21233 /* Override any GCC internal prototype to avoid an error.
21234    Use char because int might match the return type of a GCC
21235    builtin and then its argument prototype would still apply.  */
21236 #ifdef __cplusplus
21237 extern "C"
21238 #endif
21239 char $ac_func ();
21240 /* The GNU C library defines this for functions which it implements
21241     to always fail with ENOSYS.  Some functions are actually named
21242     something starting with __ and the normal name is an alias.  */
21243 #if defined __stub_$ac_func || defined __stub___$ac_func
21244 choke me
21245 #endif
21246
21247 int
21248 main ()
21249 {
21250 return $ac_func ();
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext conftest$ac_exeext
21256 if { (ac_try="$ac_link"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_link") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } &&
21269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21270   { (case "(($ac_try" in
21271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272   *) ac_try_echo=$ac_try;;
21273 esac
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275   (eval "$ac_try") 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; } &&
21279          { ac_try='test -s conftest$ac_exeext'
21280   { (case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_try") 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   eval "$as_ac_var=yes"
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294         eval "$as_ac_var=no"
21295 fi
21296
21297 rm -f core conftest.err conftest.$ac_objext \
21298       conftest$ac_exeext conftest.$ac_ext
21299 fi
21300 ac_res=`eval echo '${'$as_ac_var'}'`
21301                { echo "$as_me:$LINENO: result: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21303 if test `eval echo '${'$as_ac_var'}'` = yes; then
21304   cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21306 _ACEOF
21307
21308 fi
21309 done
21310
21311 { echo "$as_me:$LINENO: checking for working mmap" >&5
21312 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21313 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 else
21316   if test "$cross_compiling" = yes; then
21317   ac_cv_func_mmap_fixed_mapped=no
21318 else
21319   cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 $ac_includes_default
21326 /* malloc might have been renamed as rpl_malloc. */
21327 #undef malloc
21328
21329 /* Thanks to Mike Haertel and Jim Avera for this test.
21330    Here is a matrix of mmap possibilities:
21331         mmap private not fixed
21332         mmap private fixed at somewhere currently unmapped
21333         mmap private fixed at somewhere already mapped
21334         mmap shared not fixed
21335         mmap shared fixed at somewhere currently unmapped
21336         mmap shared fixed at somewhere already mapped
21337    For private mappings, we should verify that changes cannot be read()
21338    back from the file, nor mmap's back from the file at a different
21339    address.  (There have been systems where private was not correctly
21340    implemented like the infamous i386 svr4.0, and systems where the
21341    VM page cache was not coherent with the file system buffer cache
21342    like early versions of FreeBSD and possibly contemporary NetBSD.)
21343    For shared mappings, we should conversely verify that changes get
21344    propagated back to all the places they're supposed to be.
21345
21346    Grep wants private fixed already mapped.
21347    The main things grep needs to know about mmap are:
21348    * does it exist and is it safe to write into the mmap'd area
21349    * how to use it (BSD variants)  */
21350
21351 #include <fcntl.h>
21352 #include <sys/mman.h>
21353
21354 #if !STDC_HEADERS && !HAVE_STDLIB_H
21355 char *malloc ();
21356 #endif
21357
21358 /* This mess was copied from the GNU getpagesize.h.  */
21359 #if !HAVE_GETPAGESIZE
21360 /* Assume that all systems that can run configure have sys/param.h.  */
21361 # if !HAVE_SYS_PARAM_H
21362 #  define HAVE_SYS_PARAM_H 1
21363 # endif
21364
21365 # ifdef _SC_PAGESIZE
21366 #  define getpagesize() sysconf(_SC_PAGESIZE)
21367 # else /* no _SC_PAGESIZE */
21368 #  if HAVE_SYS_PARAM_H
21369 #   include <sys/param.h>
21370 #   ifdef EXEC_PAGESIZE
21371 #    define getpagesize() EXEC_PAGESIZE
21372 #   else /* no EXEC_PAGESIZE */
21373 #    ifdef NBPG
21374 #     define getpagesize() NBPG * CLSIZE
21375 #     ifndef CLSIZE
21376 #      define CLSIZE 1
21377 #     endif /* no CLSIZE */
21378 #    else /* no NBPG */
21379 #     ifdef NBPC
21380 #      define getpagesize() NBPC
21381 #     else /* no NBPC */
21382 #      ifdef PAGESIZE
21383 #       define getpagesize() PAGESIZE
21384 #      endif /* PAGESIZE */
21385 #     endif /* no NBPC */
21386 #    endif /* no NBPG */
21387 #   endif /* no EXEC_PAGESIZE */
21388 #  else /* no HAVE_SYS_PARAM_H */
21389 #   define getpagesize() 8192   /* punt totally */
21390 #  endif /* no HAVE_SYS_PARAM_H */
21391 # endif /* no _SC_PAGESIZE */
21392
21393 #endif /* no HAVE_GETPAGESIZE */
21394
21395 int
21396 main ()
21397 {
21398   char *data, *data2, *data3;
21399   int i, pagesize;
21400   int fd;
21401
21402   pagesize = getpagesize ();
21403
21404   /* First, make a file with some known garbage in it. */
21405   data = (char *) malloc (pagesize);
21406   if (!data)
21407     return 1;
21408   for (i = 0; i < pagesize; ++i)
21409     *(data + i) = rand ();
21410   umask (0);
21411   fd = creat ("conftest.mmap", 0600);
21412   if (fd < 0)
21413     return 1;
21414   if (write (fd, data, pagesize) != pagesize)
21415     return 1;
21416   close (fd);
21417
21418   /* Next, try to mmap the file at a fixed address which already has
21419      something else allocated at it.  If we can, also make sure that
21420      we see the same garbage.  */
21421   fd = open ("conftest.mmap", O_RDWR);
21422   if (fd < 0)
21423     return 1;
21424   data2 = (char *) malloc (2 * pagesize);
21425   if (!data2)
21426     return 1;
21427   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21428   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21429                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21430     return 1;
21431   for (i = 0; i < pagesize; ++i)
21432     if (*(data + i) != *(data2 + i))
21433       return 1;
21434
21435   /* Finally, make sure that changes to the mapped area do not
21436      percolate back to the file as seen by read().  (This is a bug on
21437      some variants of i386 svr4.0.)  */
21438   for (i = 0; i < pagesize; ++i)
21439     *(data2 + i) = *(data2 + i) + 1;
21440   data3 = (char *) malloc (pagesize);
21441   if (!data3)
21442     return 1;
21443   if (read (fd, data3, pagesize) != pagesize)
21444     return 1;
21445   for (i = 0; i < pagesize; ++i)
21446     if (*(data + i) != *(data3 + i))
21447       return 1;
21448   close (fd);
21449   return 0;
21450 }
21451 _ACEOF
21452 rm -f conftest$ac_exeext
21453 if { (ac_try="$ac_link"
21454 case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_link") 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21463   { (case "(($ac_try" in
21464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465   *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468   (eval "$ac_try") 2>&5
21469   ac_status=$?
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); }; }; then
21472   ac_cv_func_mmap_fixed_mapped=yes
21473 else
21474   echo "$as_me: program exited with status $ac_status" >&5
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478 ( exit $ac_status )
21479 ac_cv_func_mmap_fixed_mapped=no
21480 fi
21481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21482 fi
21483
21484
21485 fi
21486 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21487 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21488 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21489
21490 cat >>confdefs.h <<\_ACEOF
21491 #define HAVE_MMAP 1
21492 _ACEOF
21493
21494 fi
21495 rm -f conftest.mmap
21496
21497   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21498 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21499 if test "${ac_cv_func_mmap_file+set}" = set; then
21500   echo $ECHO_N "(cached) $ECHO_C" >&6
21501 else
21502    ac_ext=c
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507
21508   if test "$cross_compiling" = yes; then
21509   ac_cv_func_mmap_file=no
21510 else
21511   cat >conftest.$ac_ext <<_ACEOF
21512
21513     /* confdefs.h.  */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h.  */
21518
21519 #include <sys/types.h>
21520 #include <sys/mman.h>
21521 #include <fcntl.h>
21522
21523 int
21524 main ()
21525 {
21526
21527   int fd;
21528   fd = creat ("foo",0777);
21529   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21530   unlink ("foo");
21531   return (fd != (int) MAP_FAILED);
21532   ;
21533   return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest$ac_exeext
21537 if { (ac_try="$ac_link"
21538 case "(($ac_try" in
21539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540   *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543   (eval "$ac_link") 2>&5
21544   ac_status=$?
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21547   { (case "(($ac_try" in
21548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549   *) ac_try_echo=$ac_try;;
21550 esac
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552   (eval "$ac_try") 2>&5
21553   ac_status=$?
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); }; }; then
21556   ac_cv_func_mmap_file=yes
21557 else
21558   echo "$as_me: program exited with status $ac_status" >&5
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 ( exit $ac_status )
21563 ac_cv_func_mmap_file=no
21564 fi
21565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21566 fi
21567
21568
21569   ac_ext=c
21570 ac_cpp='$CPP $CPPFLAGS'
21571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21574
21575
21576 fi
21577 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21578 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21579 if test "$ac_cv_func_mmap_file" = yes; then
21580
21581 cat >>confdefs.h <<\_ACEOF
21582 #define HAVE_MMAP_FILE
21583 _ACEOF
21584
21585    MMAP_FILE=yes
21586
21587 fi
21588
21589   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21590 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21591 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21592   echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594   if test "$llvm_cv_os_type" = "Interix" ; then
21595    ac_cv_need_dev_zero_for_mmap=yes
21596  else
21597    ac_cv_need_dev_zero_for_mmap=no
21598  fi
21599
21600 fi
21601 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21602 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21603 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21604
21605 cat >>confdefs.h <<\_ACEOF
21606 #define NEED_DEV_ZERO_FOR_MMAP 1
21607 _ACEOF
21608
21609 fi
21610
21611   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21612   then
21613     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21614 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21615   fi
21616   if test "$ac_cv_func_mmap_file" = "no"
21617   then
21618     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21619 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21620   fi
21621 fi
21622
21623 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21624 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21625 ac_ext=cpp
21626 ac_cpp='$CXXCPP $CPPFLAGS'
21627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21630
21631 cat >conftest.$ac_ext <<_ACEOF
21632
21633   /* confdefs.h.  */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h.  */
21638
21639     int main() {
21640       volatile unsigned long val = 1;
21641       __sync_synchronize();
21642       __sync_val_compare_and_swap(&val, 1, 0);
21643       __sync_add_and_fetch(&val, 1);
21644       __sync_sub_and_fetch(&val, 1);
21645       return 0;
21646     }
21647
21648
21649 _ACEOF
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654   *) ac_try_echo=$ac_try;;
21655 esac
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657   (eval "$ac_link") 2>conftest.er1
21658   ac_status=$?
21659   grep -v '^ *+' conftest.er1 >conftest.err
21660   rm -f conftest.er1
21661   cat conftest.err >&5
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } &&
21664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21665   { (case "(($ac_try" in
21666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667   *) ac_try_echo=$ac_try;;
21668 esac
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670   (eval "$ac_try") 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; } &&
21674          { ac_try='test -s conftest$ac_exeext'
21675   { (case "(($ac_try" in
21676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677   *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680   (eval "$ac_try") 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; }; then
21684
21685   { echo "$as_me:$LINENO: result: yes" >&5
21686 echo "${ECHO_T}yes" >&6; }
21687
21688 cat >>confdefs.h <<\_ACEOF
21689 #define LLVM_HAS_ATOMICS 1
21690 _ACEOF
21691
21692
21693 else
21694   echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697
21698   { echo "$as_me:$LINENO: result: no" >&5
21699 echo "${ECHO_T}no" >&6; }
21700
21701 cat >>confdefs.h <<\_ACEOF
21702 #define LLVM_HAS_ATOMICS 0
21703 _ACEOF
21704
21705   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21706 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21707
21708 fi
21709
21710 rm -f core conftest.err conftest.$ac_objext \
21711       conftest$ac_exeext conftest.$ac_ext
21712 ac_ext=c
21713 ac_cpp='$CPP $CPPFLAGS'
21714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21717
21718
21719
21720 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21721   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21722 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21723 if test "${llvm_cv_linux_mixed+set}" = set; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726    ac_ext=c
21727 ac_cpp='$CPP $CPPFLAGS'
21728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21731
21732   cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h.  */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h.  */
21738 #ifndef __x86_64__
21739        error: Not x86-64 even if uname says so!
21740       #endif
21741
21742 int
21743 main ()
21744 {
21745
21746   ;
21747   return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_compile") 2>conftest.er1
21758   ac_status=$?
21759   grep -v '^ *+' conftest.er1 >conftest.err
21760   rm -f conftest.er1
21761   cat conftest.err >&5
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } &&
21764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21765   { (case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770   (eval "$ac_try") 2>&5
21771   ac_status=$?
21772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); }; } &&
21774          { ac_try='test -s conftest.$ac_objext'
21775   { (case "(($ac_try" in
21776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777   *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780   (eval "$ac_try") 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; }; then
21784   llvm_cv_linux_mixed=no
21785 else
21786   echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789         llvm_cv_linux_mixed=yes
21790 fi
21791
21792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793   ac_ext=c
21794 ac_cpp='$CPP $CPPFLAGS'
21795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21798
21799
21800 fi
21801 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21802 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21803
21804   if test "$llvm_cv_linux_mixed" = "yes"; then
21805     llvm_cv_target_arch="x86"
21806     ARCH="x86"
21807   fi
21808 fi
21809
21810
21811 for ac_func in __dso_handle
21812 do
21813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21817   echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819   cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21827 #define $ac_func innocuous_$ac_func
21828
21829 /* System header to define __stub macros and hopefully few prototypes,
21830     which can conflict with char $ac_func (); below.
21831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21832     <limits.h> exists even on freestanding compilers.  */
21833
21834 #ifdef __STDC__
21835 # include <limits.h>
21836 #else
21837 # include <assert.h>
21838 #endif
21839
21840 #undef $ac_func
21841
21842 /* Override any GCC internal prototype to avoid an error.
21843    Use char because int might match the return type of a GCC
21844    builtin and then its argument prototype would still apply.  */
21845 #ifdef __cplusplus
21846 extern "C"
21847 #endif
21848 char $ac_func ();
21849 /* The GNU C library defines this for functions which it implements
21850     to always fail with ENOSYS.  Some functions are actually named
21851     something starting with __ and the normal name is an alias.  */
21852 #if defined __stub_$ac_func || defined __stub___$ac_func
21853 choke me
21854 #endif
21855
21856 int
21857 main ()
21858 {
21859 return $ac_func ();
21860   ;
21861   return 0;
21862 }
21863 _ACEOF
21864 rm -f conftest.$ac_objext conftest$ac_exeext
21865 if { (ac_try="$ac_link"
21866 case "(($ac_try" in
21867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868   *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871   (eval "$ac_link") 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } &&
21878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21879   { (case "(($ac_try" in
21880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881   *) ac_try_echo=$ac_try;;
21882 esac
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884   (eval "$ac_try") 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; } &&
21888          { ac_try='test -s conftest$ac_exeext'
21889   { (case "(($ac_try" in
21890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891   *) ac_try_echo=$ac_try;;
21892 esac
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894   (eval "$ac_try") 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); }; }; then
21898   eval "$as_ac_var=yes"
21899 else
21900   echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903         eval "$as_ac_var=no"
21904 fi
21905
21906 rm -f core conftest.err conftest.$ac_objext \
21907       conftest$ac_exeext conftest.$ac_ext
21908 fi
21909 ac_res=`eval echo '${'$as_ac_var'}'`
21910                { echo "$as_me:$LINENO: result: $ac_res" >&5
21911 echo "${ECHO_T}$ac_res" >&6; }
21912 if test `eval echo '${'$as_ac_var'}'` = yes; then
21913   cat >>confdefs.h <<_ACEOF
21914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21915 _ACEOF
21916
21917 fi
21918 done
21919
21920
21921 SHLIBEXT=$libltdl_cv_shlibext
21922
21923
21924 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21925
21926
21927 if test "${prefix}" = "NONE" ; then
21928   prefix="/usr/local"
21929 fi
21930 eval LLVM_PREFIX="${prefix}";
21931 eval LLVM_BINDIR="${prefix}/bin";
21932 eval LLVM_DATADIR="${prefix}/share/llvm";
21933 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21934 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21935 eval LLVM_INCLUDEDIR="${prefix}/include";
21936 eval LLVM_INFODIR="${prefix}/info";
21937 eval LLVM_MANDIR="${prefix}/man";
21938 LLVM_CONFIGTIME=`date`
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21950   LLVM_CONFIGTIME="(timestamp not enabled)"
21951 fi
21952
21953
21954 cat >>confdefs.h <<_ACEOF
21955 #define LLVM_PREFIX "$LLVM_PREFIX"
21956 _ACEOF
21957
21958
21959 cat >>confdefs.h <<_ACEOF
21960 #define LLVM_BINDIR "$LLVM_BINDIR"
21961 _ACEOF
21962
21963
21964 cat >>confdefs.h <<_ACEOF
21965 #define LLVM_DATADIR "$LLVM_DATADIR"
21966 _ACEOF
21967
21968
21969 cat >>confdefs.h <<_ACEOF
21970 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21971 _ACEOF
21972
21973
21974 cat >>confdefs.h <<_ACEOF
21975 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21976 _ACEOF
21977
21978
21979 cat >>confdefs.h <<_ACEOF
21980 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21981 _ACEOF
21982
21983
21984 cat >>confdefs.h <<_ACEOF
21985 #define LLVM_INFODIR "$LLVM_INFODIR"
21986 _ACEOF
21987
21988
21989 cat >>confdefs.h <<_ACEOF
21990 #define LLVM_MANDIR "$LLVM_MANDIR"
21991 _ACEOF
21992
21993
21994 cat >>confdefs.h <<_ACEOF
21995 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21996 _ACEOF
21997
21998
21999 cat >>confdefs.h <<_ACEOF
22000 #define LLVM_HOST_TRIPLE "$host"
22001 _ACEOF
22002
22003
22004 cat >>confdefs.h <<_ACEOF
22005 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22006 _ACEOF
22007
22008
22009 if test "$BINDINGS_TO_BUILD" = auto ; then
22010   BINDINGS_TO_BUILD=""
22011   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22012     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22013   fi
22014 fi
22015 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22016
22017
22018 ALL_BINDINGS=ocaml
22019
22020
22021 binding_prereqs_failed=0
22022 for a_binding in $BINDINGS_TO_BUILD ; do
22023   case "$a_binding" in
22024   ocaml)
22025     if test "x$OCAMLC" = x ; then
22026       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22027 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22028       binding_prereqs_failed=1
22029     fi
22030     if test "x$OCAMLDEP" = x ; then
22031       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22032 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22033       binding_prereqs_failed=1
22034     fi
22035     if test "x$OCAMLOPT" = x ; then
22036       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22037 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22038           fi
22039     if test "x$with_ocaml_libdir" != xauto ; then
22040       OCAML_LIBDIR=$with_ocaml_libdir
22041
22042     else
22043       ocaml_stdlib="`"$OCAMLC" -where`"
22044       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22045       then
22046         # ocaml stdlib is beneath our prefix; use stdlib
22047         OCAML_LIBDIR=$ocaml_stdlib
22048
22049       else
22050         # ocaml stdlib is outside our prefix; use libdir/ocaml
22051         OCAML_LIBDIR=${prefix}/lib/ocaml
22052
22053       fi
22054     fi
22055     ;;
22056   esac
22057 done
22058 if test "$binding_prereqs_failed" = 1 ; then
22059   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22060 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22061    { (exit 1); exit 1; }; }
22062 fi
22063
22064 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22065 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22066 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22067   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069    ac_ext=cpp
22070 ac_cpp='$CXXCPP $CPPFLAGS'
22071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22074
22075   oldcxxflags="$CXXFLAGS"
22076   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22077   cat >conftest.$ac_ext <<_ACEOF
22078 /* confdefs.h.  */
22079 _ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h.  */
22083 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22084 int
22085 main ()
22086 {
22087 X<int>().f();
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096   *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099   (eval "$ac_compile") 2>conftest.er1
22100   ac_status=$?
22101   grep -v '^ *+' conftest.er1 >conftest.err
22102   rm -f conftest.er1
22103   cat conftest.err >&5
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } &&
22106          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22107   { (case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112   (eval "$ac_try") 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; } &&
22116          { ac_try='test -s conftest.$ac_objext'
22117   { (case "(($ac_try" in
22118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119   *) ac_try_echo=$ac_try;;
22120 esac
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122   (eval "$ac_try") 2>&5
22123   ac_status=$?
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); }; }; then
22126   llvm_cv_cxx_visibility_inlines_hidden=yes
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131         llvm_cv_cxx_visibility_inlines_hidden=no
22132 fi
22133
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135   CXXFLAGS="$oldcxxflags"
22136   ac_ext=c
22137 ac_cpp='$CPP $CPPFLAGS'
22138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22141
22142
22143 fi
22144 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22145 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22146 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22147   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22148
22149 else
22150   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22151
22152 fi
22153
22154
22155 if test "$llvm_cv_link_use_r" = "yes" ; then
22156   RPATH="-Wl,-R"
22157 else
22158   RPATH="-Wl,-rpath"
22159 fi
22160
22161
22162 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22163   RDYNAMIC="-rdynamic"
22164 else
22165   RDYNAMIC=""
22166 fi
22167
22168
22169
22170 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22171
22172
22173
22174
22175
22176
22177 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22178
22179 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22180
22181 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22182
22183 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22184
22185 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22186
22187
22188 ac_config_files="$ac_config_files Makefile.config"
22189
22190
22191 ac_config_files="$ac_config_files llvm.spec"
22192
22193
22194 ac_config_files="$ac_config_files docs/doxygen.cfg"
22195
22196
22197 if test "${clang_src_root}" = ""; then
22198   clang_src_root="$srcdir/tools/clang"
22199 fi
22200 if test -f ${clang_src_root}/README.txt; then
22201     configh="include/clang/Config/config.h"
22202   doxy="docs/doxygen.cfg"
22203   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22204
22205   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22206
22207 fi
22208
22209 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22210
22211
22212 test "x$program_prefix" = "xNONE" && program_prefix=""
22213
22214
22215
22216 ac_config_commands="$ac_config_commands setup"
22217
22218 ac_config_commands="$ac_config_commands Makefile"
22219
22220
22221 ac_config_commands="$ac_config_commands Makefile.common"
22222
22223
22224 ac_config_commands="$ac_config_commands examples/Makefile"
22225
22226
22227 ac_config_commands="$ac_config_commands lib/Makefile"
22228
22229
22230 ac_config_commands="$ac_config_commands runtime/Makefile"
22231
22232
22233 ac_config_commands="$ac_config_commands test/Makefile"
22234
22235
22236 ac_config_commands="$ac_config_commands test/Makefile.tests"
22237
22238
22239 ac_config_commands="$ac_config_commands unittests/Makefile"
22240
22241
22242 ac_config_commands="$ac_config_commands tools/Makefile"
22243
22244
22245 ac_config_commands="$ac_config_commands utils/Makefile"
22246
22247
22248 ac_config_commands="$ac_config_commands projects/Makefile"
22249
22250
22251 ac_config_commands="$ac_config_commands bindings/Makefile"
22252
22253
22254 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22255
22256
22257
22258 cat >confcache <<\_ACEOF
22259 # This file is a shell script that caches the results of configure
22260 # tests run on this system so they can be shared between configure
22261 # scripts and configure runs, see configure's option --config-cache.
22262 # It is not useful on other systems.  If it contains results you don't
22263 # want to keep, you may remove or edit it.
22264 #
22265 # config.status only pays attention to the cache file if you give it
22266 # the --recheck option to rerun configure.
22267 #
22268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22270 # following values.
22271
22272 _ACEOF
22273
22274 # The following way of writing the cache mishandles newlines in values,
22275 # but we know of no workaround that is simple, portable, and efficient.
22276 # So, we kill variables containing newlines.
22277 # Ultrix sh set writes to stderr and can't be redirected directly,
22278 # and sets the high bit in the cache file unless we assign to the vars.
22279 (
22280   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22281     eval ac_val=\$$ac_var
22282     case $ac_val in #(
22283     *${as_nl}*)
22284       case $ac_var in #(
22285       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22286 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22287       esac
22288       case $ac_var in #(
22289       _ | IFS | as_nl) ;; #(
22290       *) $as_unset $ac_var ;;
22291       esac ;;
22292     esac
22293   done
22294
22295   (set) 2>&1 |
22296     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22297     *${as_nl}ac_space=\ *)
22298       # `set' does not quote correctly, so add quotes (double-quote
22299       # substitution turns \\\\ into \\, and sed turns \\ into \).
22300       sed -n \
22301         "s/'/'\\\\''/g;
22302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22303       ;; #(
22304     *)
22305       # `set' quotes correctly as required by POSIX, so do not add quotes.
22306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22307       ;;
22308     esac |
22309     sort
22310 ) |
22311   sed '
22312      /^ac_cv_env_/b end
22313      t clear
22314      :clear
22315      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22316      t end
22317      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22318      :end' >>confcache
22319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22320   if test -w "$cache_file"; then
22321     test "x$cache_file" != "x/dev/null" &&
22322       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22323 echo "$as_me: updating cache $cache_file" >&6;}
22324     cat confcache >$cache_file
22325   else
22326     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22327 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22328   fi
22329 fi
22330 rm -f confcache
22331
22332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22333 # Let make expand exec_prefix.
22334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22335
22336 DEFS=-DHAVE_CONFIG_H
22337
22338 ac_libobjs=
22339 ac_ltlibobjs=
22340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22341   # 1. Remove the extension, and $U if already installed.
22342   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22343   ac_i=`echo "$ac_i" | sed "$ac_script"`
22344   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22345   #    will be set to the directory where LIBOBJS objects are built.
22346   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22347   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22348 done
22349 LIBOBJS=$ac_libobjs
22350
22351 LTLIBOBJS=$ac_ltlibobjs
22352
22353
22354 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22355   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22356 Usually this means the macro was only invoked conditionally." >&5
22357 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22358 Usually this means the macro was only invoked conditionally." >&2;}
22359    { (exit 1); exit 1; }; }
22360 fi
22361 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22362   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22363 Usually this means the macro was only invoked conditionally." >&5
22364 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22365 Usually this means the macro was only invoked conditionally." >&2;}
22366    { (exit 1); exit 1; }; }
22367 fi
22368
22369 : ${CONFIG_STATUS=./config.status}
22370 ac_clean_files_save=$ac_clean_files
22371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22372 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22373 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22374 cat >$CONFIG_STATUS <<_ACEOF
22375 #! $SHELL
22376 # Generated by $as_me.
22377 # Run this file to recreate the current configuration.
22378 # Compiler output produced by configure, useful for debugging
22379 # configure, is in config.log if it exists.
22380
22381 debug=false
22382 ac_cs_recheck=false
22383 ac_cs_silent=false
22384 SHELL=\${CONFIG_SHELL-$SHELL}
22385 _ACEOF
22386
22387 cat >>$CONFIG_STATUS <<\_ACEOF
22388 ## --------------------- ##
22389 ## M4sh Initialization.  ##
22390 ## --------------------- ##
22391
22392 # Be Bourne compatible
22393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22394   emulate sh
22395   NULLCMD=:
22396   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22397   # is contrary to our usage.  Disable this feature.
22398   alias -g '${1+"$@"}'='"$@"'
22399   setopt NO_GLOB_SUBST
22400 else
22401   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22402 fi
22403 BIN_SH=xpg4; export BIN_SH # for Tru64
22404 DUALCASE=1; export DUALCASE # for MKS sh
22405
22406
22407 # PATH needs CR
22408 # Avoid depending upon Character Ranges.
22409 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22410 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22411 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22412 as_cr_digits='0123456789'
22413 as_cr_alnum=$as_cr_Letters$as_cr_digits
22414
22415 # The user is always right.
22416 if test "${PATH_SEPARATOR+set}" != set; then
22417   echo "#! /bin/sh" >conf$$.sh
22418   echo  "exit 0"   >>conf$$.sh
22419   chmod +x conf$$.sh
22420   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22421     PATH_SEPARATOR=';'
22422   else
22423     PATH_SEPARATOR=:
22424   fi
22425   rm -f conf$$.sh
22426 fi
22427
22428 # Support unset when possible.
22429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22430   as_unset=unset
22431 else
22432   as_unset=false
22433 fi
22434
22435
22436 # IFS
22437 # We need space, tab and new line, in precisely that order.  Quoting is
22438 # there to prevent editors from complaining about space-tab.
22439 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22440 # splitting by setting IFS to empty value.)
22441 as_nl='
22442 '
22443 IFS=" ""        $as_nl"
22444
22445 # Find who we are.  Look in the path if we contain no directory separator.
22446 case $0 in
22447   *[\\/]* ) as_myself=$0 ;;
22448   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449 for as_dir in $PATH
22450 do
22451   IFS=$as_save_IFS
22452   test -z "$as_dir" && as_dir=.
22453   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22454 done
22455 IFS=$as_save_IFS
22456
22457      ;;
22458 esac
22459 # We did not find ourselves, most probably we were run as `sh COMMAND'
22460 # in which case we are not to be found in the path.
22461 if test "x$as_myself" = x; then
22462   as_myself=$0
22463 fi
22464 if test ! -f "$as_myself"; then
22465   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22466   { (exit 1); exit 1; }
22467 fi
22468
22469 # Work around bugs in pre-3.0 UWIN ksh.
22470 for as_var in ENV MAIL MAILPATH
22471 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22472 done
22473 PS1='$ '
22474 PS2='> '
22475 PS4='+ '
22476
22477 # NLS nuisances.
22478 for as_var in \
22479   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22480   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22481   LC_TELEPHONE LC_TIME
22482 do
22483   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22484     eval $as_var=C; export $as_var
22485   else
22486     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22487   fi
22488 done
22489
22490 # Required to use basename.
22491 if expr a : '\(a\)' >/dev/null 2>&1 &&
22492    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22493   as_expr=expr
22494 else
22495   as_expr=false
22496 fi
22497
22498 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22499   as_basename=basename
22500 else
22501   as_basename=false
22502 fi
22503
22504
22505 # Name of the executable.
22506 as_me=`$as_basename -- "$0" ||
22507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22508          X"$0" : 'X\(//\)$' \| \
22509          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22510 echo X/"$0" |
22511     sed '/^.*\/\([^/][^/]*\)\/*$/{
22512             s//\1/
22513             q
22514           }
22515           /^X\/\(\/\/\)$/{
22516             s//\1/
22517             q
22518           }
22519           /^X\/\(\/\).*/{
22520             s//\1/
22521             q
22522           }
22523           s/.*/./; q'`
22524
22525 # CDPATH.
22526 $as_unset CDPATH
22527
22528
22529
22530   as_lineno_1=$LINENO
22531   as_lineno_2=$LINENO
22532   test "x$as_lineno_1" != "x$as_lineno_2" &&
22533   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22534
22535   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22536   # uniformly replaced by the line number.  The first 'sed' inserts a
22537   # line-number line after each line using $LINENO; the second 'sed'
22538   # does the real work.  The second script uses 'N' to pair each
22539   # line-number line with the line containing $LINENO, and appends
22540   # trailing '-' during substitution so that $LINENO is not a special
22541   # case at line end.
22542   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22543   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22544   # E. McMahon (1931-1989) for sed's syntax.  :-)
22545   sed -n '
22546     p
22547     /[$]LINENO/=
22548   ' <$as_myself |
22549     sed '
22550       s/[$]LINENO.*/&-/
22551       t lineno
22552       b
22553       :lineno
22554       N
22555       :loop
22556       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22557       t loop
22558       s/-\n.*//
22559     ' >$as_me.lineno &&
22560   chmod +x "$as_me.lineno" ||
22561     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22562    { (exit 1); exit 1; }; }
22563
22564   # Don't try to exec as it changes $[0], causing all sort of problems
22565   # (the dirname of $[0] is not the place where we might find the
22566   # original and so on.  Autoconf is especially sensitive to this).
22567   . "./$as_me.lineno"
22568   # Exit status is that of the last command.
22569   exit
22570 }
22571
22572
22573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22574   as_dirname=dirname
22575 else
22576   as_dirname=false
22577 fi
22578
22579 ECHO_C= ECHO_N= ECHO_T=
22580 case `echo -n x` in
22581 -n*)
22582   case `echo 'x\c'` in
22583   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22584   *)   ECHO_C='\c';;
22585   esac;;
22586 *)
22587   ECHO_N='-n';;
22588 esac
22589
22590 if expr a : '\(a\)' >/dev/null 2>&1 &&
22591    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22592   as_expr=expr
22593 else
22594   as_expr=false
22595 fi
22596
22597 rm -f conf$$ conf$$.exe conf$$.file
22598 if test -d conf$$.dir; then
22599   rm -f conf$$.dir/conf$$.file
22600 else
22601   rm -f conf$$.dir
22602   mkdir conf$$.dir
22603 fi
22604 echo >conf$$.file
22605 if ln -s conf$$.file conf$$ 2>/dev/null; then
22606   as_ln_s='ln -s'
22607   # ... but there are two gotchas:
22608   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22609   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22610   # In both cases, we have to default to `cp -p'.
22611   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22612     as_ln_s='cp -p'
22613 elif ln conf$$.file conf$$ 2>/dev/null; then
22614   as_ln_s=ln
22615 else
22616   as_ln_s='cp -p'
22617 fi
22618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22619 rmdir conf$$.dir 2>/dev/null
22620
22621 if mkdir -p . 2>/dev/null; then
22622   as_mkdir_p=:
22623 else
22624   test -d ./-p && rmdir ./-p
22625   as_mkdir_p=false
22626 fi
22627
22628 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22629 # systems may use methods other than mode bits to determine executability.
22630 cat >conf$$.file <<_ASEOF
22631 #! /bin/sh
22632 exit 0
22633 _ASEOF
22634 chmod +x conf$$.file
22635 if test -x conf$$.file >/dev/null 2>&1; then
22636   as_executable_p="test -x"
22637 else
22638   as_executable_p=:
22639 fi
22640 rm -f conf$$.file
22641
22642 # Sed expression to map a string onto a valid CPP name.
22643 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22644
22645 # Sed expression to map a string onto a valid variable name.
22646 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22647
22648
22649 exec 6>&1
22650
22651 # Save the log message, to keep $[0] and so on meaningful, and to
22652 # report actual input values of CONFIG_FILES etc. instead of their
22653 # values after options handling.
22654 ac_log="
22655 This file was extended by LLVM $as_me 3.4svn, which was
22656 generated by GNU Autoconf 2.60.  Invocation command line was
22657
22658   CONFIG_FILES    = $CONFIG_FILES
22659   CONFIG_HEADERS  = $CONFIG_HEADERS
22660   CONFIG_LINKS    = $CONFIG_LINKS
22661   CONFIG_COMMANDS = $CONFIG_COMMANDS
22662   $ $0 $@
22663
22664 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22665 "
22666
22667 _ACEOF
22668
22669 cat >>$CONFIG_STATUS <<_ACEOF
22670 # Files that config.status was made for.
22671 config_files="$ac_config_files"
22672 config_headers="$ac_config_headers"
22673 config_commands="$ac_config_commands"
22674
22675 _ACEOF
22676
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22678 ac_cs_usage="\
22679 \`$as_me' instantiates files from templates according to the
22680 current configuration.
22681
22682 Usage: $0 [OPTIONS] [FILE]...
22683
22684   -h, --help       print this help, then exit
22685   -V, --version    print version number, then exit
22686   -q, --quiet      do not print progress messages
22687   -d, --debug      don't remove temporary files
22688       --recheck    update $as_me by reconfiguring in the same conditions
22689   --file=FILE[:TEMPLATE]
22690                    instantiate the configuration file FILE
22691   --header=FILE[:TEMPLATE]
22692                    instantiate the configuration header FILE
22693
22694 Configuration files:
22695 $config_files
22696
22697 Configuration headers:
22698 $config_headers
22699
22700 Configuration commands:
22701 $config_commands
22702
22703 Report bugs to <bug-autoconf@gnu.org>."
22704
22705 _ACEOF
22706 cat >>$CONFIG_STATUS <<_ACEOF
22707 ac_cs_version="\\
22708 LLVM config.status 3.4svn
22709 configured by $0, generated by GNU Autoconf 2.60,
22710   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22711
22712 Copyright (C) 2006 Free Software Foundation, Inc.
22713 This config.status script is free software; the Free Software Foundation
22714 gives unlimited permission to copy, distribute and modify it."
22715
22716 ac_pwd='$ac_pwd'
22717 srcdir='$srcdir'
22718 INSTALL='$INSTALL'
22719 _ACEOF
22720
22721 cat >>$CONFIG_STATUS <<\_ACEOF
22722 # If no file are specified by the user, then we need to provide default
22723 # value.  By we need to know if files were specified by the user.
22724 ac_need_defaults=:
22725 while test $# != 0
22726 do
22727   case $1 in
22728   --*=*)
22729     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22730     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22731     ac_shift=:
22732     ;;
22733   *)
22734     ac_option=$1
22735     ac_optarg=$2
22736     ac_shift=shift
22737     ;;
22738   esac
22739
22740   case $ac_option in
22741   # Handling of the options.
22742   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22743     ac_cs_recheck=: ;;
22744   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22745     echo "$ac_cs_version"; exit ;;
22746   --debug | --debu | --deb | --de | --d | -d )
22747     debug=: ;;
22748   --file | --fil | --fi | --f )
22749     $ac_shift
22750     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22751     ac_need_defaults=false;;
22752   --header | --heade | --head | --hea )
22753     $ac_shift
22754     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22755     ac_need_defaults=false;;
22756   --he | --h)
22757     # Conflict between --help and --header
22758     { echo "$as_me: error: ambiguous option: $1
22759 Try \`$0 --help' for more information." >&2
22760    { (exit 1); exit 1; }; };;
22761   --help | --hel | -h )
22762     echo "$ac_cs_usage"; exit ;;
22763   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22764   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22765     ac_cs_silent=: ;;
22766
22767   # This is an error.
22768   -*) { echo "$as_me: error: unrecognized option: $1
22769 Try \`$0 --help' for more information." >&2
22770    { (exit 1); exit 1; }; } ;;
22771
22772   *) ac_config_targets="$ac_config_targets $1"
22773      ac_need_defaults=false ;;
22774
22775   esac
22776   shift
22777 done
22778
22779 ac_configure_extra_args=
22780
22781 if $ac_cs_silent; then
22782   exec 6>/dev/null
22783   ac_configure_extra_args="$ac_configure_extra_args --silent"
22784 fi
22785
22786 _ACEOF
22787 cat >>$CONFIG_STATUS <<_ACEOF
22788 if \$ac_cs_recheck; then
22789   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22790   CONFIG_SHELL=$SHELL
22791   export CONFIG_SHELL
22792   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22793 fi
22794
22795 _ACEOF
22796 cat >>$CONFIG_STATUS <<\_ACEOF
22797 exec 5>>config.log
22798 {
22799   echo
22800   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22801 ## Running $as_me. ##
22802 _ASBOX
22803   echo "$ac_log"
22804 } >&5
22805
22806 _ACEOF
22807 cat >>$CONFIG_STATUS <<_ACEOF
22808 #
22809 # INIT-COMMANDS
22810 #
22811 llvm_src="${srcdir}"
22812
22813 _ACEOF
22814
22815 cat >>$CONFIG_STATUS <<\_ACEOF
22816
22817 # Handling of arguments.
22818 for ac_config_target in $ac_config_targets
22819 do
22820   case $ac_config_target in
22821     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22822     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22823     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22824     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22825     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22826     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22827     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22828     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22829     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22830     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22831     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22832     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22833     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22834     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22835     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22836     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22837     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22838     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22839     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22840     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22841     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22842     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22843     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22844     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22845     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22846     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22847     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22848
22849   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22850 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22851    { (exit 1); exit 1; }; };;
22852   esac
22853 done
22854
22855
22856 # If the user did not use the arguments to specify the items to instantiate,
22857 # then the envvar interface is used.  Set only those that are not.
22858 # We use the long form for the default assignment because of an extremely
22859 # bizarre bug on SunOS 4.1.3.
22860 if $ac_need_defaults; then
22861   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22862   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22863   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22864 fi
22865
22866 # Have a temporary directory for convenience.  Make it in the build tree
22867 # simply because there is no reason against having it here, and in addition,
22868 # creating and moving files from /tmp can sometimes cause problems.
22869 # Hook for its removal unless debugging.
22870 # Note that there is a small window in which the directory will not be cleaned:
22871 # after its creation but before its name has been assigned to `$tmp'.
22872 $debug ||
22873 {
22874   tmp=
22875   trap 'exit_status=$?
22876   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22877 ' 0
22878   trap '{ (exit 1); exit 1; }' 1 2 13 15
22879 }
22880 # Create a (secure) tmp directory for tmp files.
22881
22882 {
22883   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22884   test -n "$tmp" && test -d "$tmp"
22885 }  ||
22886 {
22887   tmp=./conf$$-$RANDOM
22888   (umask 077 && mkdir "$tmp")
22889 } ||
22890 {
22891    echo "$me: cannot create a temporary directory in ." >&2
22892    { (exit 1); exit 1; }
22893 }
22894
22895 #
22896 # Set up the sed scripts for CONFIG_FILES section.
22897 #
22898
22899 # No need to generate the scripts if there are no CONFIG_FILES.
22900 # This happens for instance when ./config.status config.h
22901 if test -n "$CONFIG_FILES"; then
22902
22903 _ACEOF
22904
22905
22906
22907 ac_delim='%!_!# '
22908 for ac_last_try in false false false false false :; do
22909   cat >conf$$subs.sed <<_ACEOF
22910 SHELL!$SHELL$ac_delim
22911 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22912 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22913 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22914 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22915 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22916 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22917 exec_prefix!$exec_prefix$ac_delim
22918 prefix!$prefix$ac_delim
22919 program_transform_name!$program_transform_name$ac_delim
22920 bindir!$bindir$ac_delim
22921 sbindir!$sbindir$ac_delim
22922 libexecdir!$libexecdir$ac_delim
22923 datarootdir!$datarootdir$ac_delim
22924 datadir!$datadir$ac_delim
22925 sysconfdir!$sysconfdir$ac_delim
22926 sharedstatedir!$sharedstatedir$ac_delim
22927 localstatedir!$localstatedir$ac_delim
22928 includedir!$includedir$ac_delim
22929 oldincludedir!$oldincludedir$ac_delim
22930 docdir!$docdir$ac_delim
22931 infodir!$infodir$ac_delim
22932 htmldir!$htmldir$ac_delim
22933 dvidir!$dvidir$ac_delim
22934 pdfdir!$pdfdir$ac_delim
22935 psdir!$psdir$ac_delim
22936 libdir!$libdir$ac_delim
22937 localedir!$localedir$ac_delim
22938 mandir!$mandir$ac_delim
22939 DEFS!$DEFS$ac_delim
22940 ECHO_C!$ECHO_C$ac_delim
22941 ECHO_N!$ECHO_N$ac_delim
22942 ECHO_T!$ECHO_T$ac_delim
22943 LIBS!$LIBS$ac_delim
22944 build_alias!$build_alias$ac_delim
22945 host_alias!$host_alias$ac_delim
22946 target_alias!$target_alias$ac_delim
22947 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22948 CC!$CC$ac_delim
22949 CFLAGS!$CFLAGS$ac_delim
22950 LDFLAGS!$LDFLAGS$ac_delim
22951 CPPFLAGS!$CPPFLAGS$ac_delim
22952 ac_ct_CC!$ac_ct_CC$ac_delim
22953 EXEEXT!$EXEEXT$ac_delim
22954 OBJEXT!$OBJEXT$ac_delim
22955 CXX!$CXX$ac_delim
22956 CXXFLAGS!$CXXFLAGS$ac_delim
22957 ac_ct_CXX!$ac_ct_CXX$ac_delim
22958 CPP!$CPP$ac_delim
22959 subdirs!$subdirs$ac_delim
22960 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22961 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22962 build!$build$ac_delim
22963 build_cpu!$build_cpu$ac_delim
22964 build_vendor!$build_vendor$ac_delim
22965 build_os!$build_os$ac_delim
22966 host!$host$ac_delim
22967 host_cpu!$host_cpu$ac_delim
22968 host_vendor!$host_vendor$ac_delim
22969 host_os!$host_os$ac_delim
22970 target!$target$ac_delim
22971 target_cpu!$target_cpu$ac_delim
22972 target_vendor!$target_vendor$ac_delim
22973 target_os!$target_os$ac_delim
22974 OS!$OS$ac_delim
22975 HOST_OS!$HOST_OS$ac_delim
22976 TARGET_OS!$TARGET_OS$ac_delim
22977 LINKALL!$LINKALL$ac_delim
22978 NOLINKALL!$NOLINKALL$ac_delim
22979 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22980 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22981 ARCH!$ARCH$ac_delim
22982 HOST_ARCH!$HOST_ARCH$ac_delim
22983 ENDIAN!$ENDIAN$ac_delim
22984 GREP!$GREP$ac_delim
22985 EGREP!$EGREP$ac_delim
22986 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22987 BUILD_CC!$BUILD_CC$ac_delim
22988 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22989 BUILD_CXX!$BUILD_CXX$ac_delim
22990 CVSBUILD!$CVSBUILD$ac_delim
22991 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22992 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22993 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22994 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22995 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22996 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22997 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22998 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22999 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23000 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23001 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23002 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23003 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23004 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23005 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23006 JIT!$JIT$ac_delim
23007 _ACEOF
23008
23009   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23010     break
23011   elif $ac_last_try; then
23012     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23014    { (exit 1); exit 1; }; }
23015   else
23016     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23017   fi
23018 done
23019
23020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23021 if test -n "$ac_eof"; then
23022   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23023   ac_eof=`expr $ac_eof + 1`
23024 fi
23025
23026 cat >>$CONFIG_STATUS <<_ACEOF
23027 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23029 _ACEOF
23030 sed '
23031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23032 s/^/s,@/; s/!/@,|#_!!_#|/
23033 :n
23034 t n
23035 s/'"$ac_delim"'$/,g/; t
23036 s/$/\\/; p
23037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23038 ' >>$CONFIG_STATUS <conf$$subs.sed
23039 rm -f conf$$subs.sed
23040 cat >>$CONFIG_STATUS <<_ACEOF
23041 CEOF$ac_eof
23042 _ACEOF
23043
23044
23045 ac_delim='%!_!# '
23046 for ac_last_try in false false false false false :; do
23047   cat >conf$$subs.sed <<_ACEOF
23048 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23049 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23050 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23051 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23052 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23053 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23054 ENABLE_PIC!$ENABLE_PIC$ac_delim
23055 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23056 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23057 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23058 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23059 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23060 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23061 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23062 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23063 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23064 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23065 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23066 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23067 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23068 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23069 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23070 NM!$NM$ac_delim
23071 ifGNUmake!$ifGNUmake$ac_delim
23072 LN_S!$LN_S$ac_delim
23073 CMP!$CMP$ac_delim
23074 CP!$CP$ac_delim
23075 DATE!$DATE$ac_delim
23076 FIND!$FIND$ac_delim
23077 MKDIR!$MKDIR$ac_delim
23078 MV!$MV$ac_delim
23079 RANLIB!$RANLIB$ac_delim
23080 AR!$AR$ac_delim
23081 RM!$RM$ac_delim
23082 SED!$SED$ac_delim
23083 TAR!$TAR$ac_delim
23084 BINPWD!$BINPWD$ac_delim
23085 GRAPHVIZ!$GRAPHVIZ$ac_delim
23086 DOT!$DOT$ac_delim
23087 FDP!$FDP$ac_delim
23088 NEATO!$NEATO$ac_delim
23089 TWOPI!$TWOPI$ac_delim
23090 CIRCO!$CIRCO$ac_delim
23091 GV!$GV$ac_delim
23092 DOTTY!$DOTTY$ac_delim
23093 XDOT!$XDOT$ac_delim
23094 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23095 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23096 INSTALL_DATA!$INSTALL_DATA$ac_delim
23097 BZIP2!$BZIP2$ac_delim
23098 CAT!$CAT$ac_delim
23099 DOXYGEN!$DOXYGEN$ac_delim
23100 GROFF!$GROFF$ac_delim
23101 GZIPBIN!$GZIPBIN$ac_delim
23102 PDFROFF!$PDFROFF$ac_delim
23103 ZIP!$ZIP$ac_delim
23104 OCAMLC!$OCAMLC$ac_delim
23105 OCAMLOPT!$OCAMLOPT$ac_delim
23106 OCAMLDEP!$OCAMLDEP$ac_delim
23107 OCAMLDOC!$OCAMLDOC$ac_delim
23108 GAS!$GAS$ac_delim
23109 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23110 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23111 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23112 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23113 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23114 LIBADD_DL!$LIBADD_DL$ac_delim
23115 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23116 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23117 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23118 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23119 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23120 PYTHON!$PYTHON$ac_delim
23121 USE_UDIS86!$USE_UDIS86$ac_delim
23122 USE_OPROFILE!$USE_OPROFILE$ac_delim
23123 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23124 XML2CONFIG!$XML2CONFIG$ac_delim
23125 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23126 LIBXML2_INC!$LIBXML2_INC$ac_delim
23127 CXXCPP!$CXXCPP$ac_delim
23128 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23129 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23130 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23131 MMAP_FILE!$MMAP_FILE$ac_delim
23132 SHLIBEXT!$SHLIBEXT$ac_delim
23133 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23134 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23135 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23136 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23137 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23138 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23139 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23140 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23141 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23142 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23143 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23144 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23145 _ACEOF
23146
23147   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23148     break
23149   elif $ac_last_try; then
23150     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23152    { (exit 1); exit 1; }; }
23153   else
23154     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23155   fi
23156 done
23157
23158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23159 if test -n "$ac_eof"; then
23160   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23161   ac_eof=`expr $ac_eof + 1`
23162 fi
23163
23164 cat >>$CONFIG_STATUS <<_ACEOF
23165 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23167 _ACEOF
23168 sed '
23169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23170 s/^/s,@/; s/!/@,|#_!!_#|/
23171 :n
23172 t n
23173 s/'"$ac_delim"'$/,g/; t
23174 s/$/\\/; p
23175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23176 ' >>$CONFIG_STATUS <conf$$subs.sed
23177 rm -f conf$$subs.sed
23178 cat >>$CONFIG_STATUS <<_ACEOF
23179 CEOF$ac_eof
23180 _ACEOF
23181
23182
23183 ac_delim='%!_!# '
23184 for ac_last_try in false false false false false :; do
23185   cat >conf$$subs.sed <<_ACEOF
23186 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23187 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23188 RPATH!$RPATH$ac_delim
23189 RDYNAMIC!$RDYNAMIC$ac_delim
23190 program_prefix!$program_prefix$ac_delim
23191 LIBOBJS!$LIBOBJS$ac_delim
23192 LTLIBOBJS!$LTLIBOBJS$ac_delim
23193 _ACEOF
23194
23195   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23196     break
23197   elif $ac_last_try; then
23198     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23200    { (exit 1); exit 1; }; }
23201   else
23202     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23203   fi
23204 done
23205
23206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23207 if test -n "$ac_eof"; then
23208   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23209   ac_eof=`expr $ac_eof + 1`
23210 fi
23211
23212 cat >>$CONFIG_STATUS <<_ACEOF
23213 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23215 _ACEOF
23216 sed '
23217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23218 s/^/s,@/; s/!/@,|#_!!_#|/
23219 :n
23220 t n
23221 s/'"$ac_delim"'$/,g/; t
23222 s/$/\\/; p
23223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23224 ' >>$CONFIG_STATUS <conf$$subs.sed
23225 rm -f conf$$subs.sed
23226 cat >>$CONFIG_STATUS <<_ACEOF
23227 :end
23228 s/|#_!!_#|//g
23229 CEOF$ac_eof
23230 _ACEOF
23231
23232
23233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23235 # trailing colons and then remove the whole line if VPATH becomes empty
23236 # (actually we leave an empty line to preserve line numbers).
23237 if test "x$srcdir" = x.; then
23238   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23239 s/:*\$(srcdir):*/:/
23240 s/:*\${srcdir}:*/:/
23241 s/:*@srcdir@:*/:/
23242 s/^\([^=]*=[     ]*\):*/\1/
23243 s/:*$//
23244 s/^[^=]*=[       ]*$//
23245 }'
23246 fi
23247
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23249 fi # test -n "$CONFIG_FILES"
23250
23251
23252 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23253 do
23254   case $ac_tag in
23255   :[FHLC]) ac_mode=$ac_tag; continue;;
23256   esac
23257   case $ac_mode$ac_tag in
23258   :[FHL]*:*);;
23259   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23260 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23261    { (exit 1); exit 1; }; };;
23262   :[FH]-) ac_tag=-:-;;
23263   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23264   esac
23265   ac_save_IFS=$IFS
23266   IFS=:
23267   set x $ac_tag
23268   IFS=$ac_save_IFS
23269   shift
23270   ac_file=$1
23271   shift
23272
23273   case $ac_mode in
23274   :L) ac_source=$1;;
23275   :[FH])
23276     ac_file_inputs=
23277     for ac_f
23278     do
23279       case $ac_f in
23280       -) ac_f="$tmp/stdin";;
23281       *) # Look for the file first in the build tree, then in the source tree
23282          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23283          # because $ac_f cannot contain `:'.
23284          test -f "$ac_f" ||
23285            case $ac_f in
23286            [\\/$]*) false;;
23287            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23288            esac ||
23289            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23290 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23291    { (exit 1); exit 1; }; };;
23292       esac
23293       ac_file_inputs="$ac_file_inputs $ac_f"
23294     done
23295
23296     # Let's still pretend it is `configure' which instantiates (i.e., don't
23297     # use $as_me), people would be surprised to read:
23298     #    /* config.h.  Generated by config.status.  */
23299     configure_input="Generated from "`IFS=:
23300           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23301     if test x"$ac_file" != x-; then
23302       configure_input="$ac_file.  $configure_input"
23303       { echo "$as_me:$LINENO: creating $ac_file" >&5
23304 echo "$as_me: creating $ac_file" >&6;}
23305     fi
23306
23307     case $ac_tag in
23308     *:-:* | *:-) cat >"$tmp/stdin";;
23309     esac
23310     ;;
23311   esac
23312
23313   ac_dir=`$as_dirname -- "$ac_file" ||
23314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23315          X"$ac_file" : 'X\(//\)[^/]' \| \
23316          X"$ac_file" : 'X\(//\)$' \| \
23317          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23318 echo X"$ac_file" |
23319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23320             s//\1/
23321             q
23322           }
23323           /^X\(\/\/\)[^/].*/{
23324             s//\1/
23325             q
23326           }
23327           /^X\(\/\/\)$/{
23328             s//\1/
23329             q
23330           }
23331           /^X\(\/\).*/{
23332             s//\1/
23333             q
23334           }
23335           s/.*/./; q'`
23336   { as_dir="$ac_dir"
23337   case $as_dir in #(
23338   -*) as_dir=./$as_dir;;
23339   esac
23340   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23341     as_dirs=
23342     while :; do
23343       case $as_dir in #(
23344       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23345       *) as_qdir=$as_dir;;
23346       esac
23347       as_dirs="'$as_qdir' $as_dirs"
23348       as_dir=`$as_dirname -- "$as_dir" ||
23349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23350          X"$as_dir" : 'X\(//\)[^/]' \| \
23351          X"$as_dir" : 'X\(//\)$' \| \
23352          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23353 echo X"$as_dir" |
23354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23355             s//\1/
23356             q
23357           }
23358           /^X\(\/\/\)[^/].*/{
23359             s//\1/
23360             q
23361           }
23362           /^X\(\/\/\)$/{
23363             s//\1/
23364             q
23365           }
23366           /^X\(\/\).*/{
23367             s//\1/
23368             q
23369           }
23370           s/.*/./; q'`
23371       test -d "$as_dir" && break
23372     done
23373     test -z "$as_dirs" || eval "mkdir $as_dirs"
23374   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23375 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23376    { (exit 1); exit 1; }; }; }
23377   ac_builddir=.
23378
23379 case "$ac_dir" in
23380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23381 *)
23382   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23383   # A ".." for each directory in $ac_dir_suffix.
23384   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23385   case $ac_top_builddir_sub in
23386   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23387   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23388   esac ;;
23389 esac
23390 ac_abs_top_builddir=$ac_pwd
23391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23392 # for backward compatibility:
23393 ac_top_builddir=$ac_top_build_prefix
23394
23395 case $srcdir in
23396   .)  # We are building in place.
23397     ac_srcdir=.
23398     ac_top_srcdir=$ac_top_builddir_sub
23399     ac_abs_top_srcdir=$ac_pwd ;;
23400   [\\/]* | ?:[\\/]* )  # Absolute name.
23401     ac_srcdir=$srcdir$ac_dir_suffix;
23402     ac_top_srcdir=$srcdir
23403     ac_abs_top_srcdir=$srcdir ;;
23404   *) # Relative name.
23405     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23406     ac_top_srcdir=$ac_top_build_prefix$srcdir
23407     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23408 esac
23409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23410
23411
23412   case $ac_mode in
23413   :F)
23414   #
23415   # CONFIG_FILE
23416   #
23417
23418   case $INSTALL in
23419   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23420   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23421   esac
23422 _ACEOF
23423
23424 cat >>$CONFIG_STATUS <<\_ACEOF
23425 # If the template does not know about datarootdir, expand it.
23426 # FIXME: This hack should be removed a few years after 2.60.
23427 ac_datarootdir_hack=; ac_datarootdir_seen=
23428
23429 case `sed -n '/datarootdir/ {
23430   p
23431   q
23432 }
23433 /@datadir@/p
23434 /@docdir@/p
23435 /@infodir@/p
23436 /@localedir@/p
23437 /@mandir@/p
23438 ' $ac_file_inputs` in
23439 *datarootdir*) ac_datarootdir_seen=yes;;
23440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23441   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23442 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23443 _ACEOF
23444 cat >>$CONFIG_STATUS <<_ACEOF
23445   ac_datarootdir_hack='
23446   s&@datadir@&$datadir&g
23447   s&@docdir@&$docdir&g
23448   s&@infodir@&$infodir&g
23449   s&@localedir@&$localedir&g
23450   s&@mandir@&$mandir&g
23451     s&\\\${datarootdir}&$datarootdir&g' ;;
23452 esac
23453 _ACEOF
23454
23455 # Neutralize VPATH when `$srcdir' = `.'.
23456 # Shell code in configure.ac might set extrasub.
23457 # FIXME: do we really want to maintain this feature?
23458 cat >>$CONFIG_STATUS <<_ACEOF
23459   sed "$ac_vpsub
23460 $extrasub
23461 _ACEOF
23462 cat >>$CONFIG_STATUS <<\_ACEOF
23463 :t
23464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23465 s&@configure_input@&$configure_input&;t t
23466 s&@top_builddir@&$ac_top_builddir_sub&;t t
23467 s&@srcdir@&$ac_srcdir&;t t
23468 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23469 s&@top_srcdir@&$ac_top_srcdir&;t t
23470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23471 s&@builddir@&$ac_builddir&;t t
23472 s&@abs_builddir@&$ac_abs_builddir&;t t
23473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23474 s&@INSTALL@&$ac_INSTALL&;t t
23475 $ac_datarootdir_hack
23476 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23477
23478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23479   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23480   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23481   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23482 which seems to be undefined.  Please make sure it is defined." >&5
23483 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23484 which seems to be undefined.  Please make sure it is defined." >&2;}
23485
23486   rm -f "$tmp/stdin"
23487   case $ac_file in
23488   -) cat "$tmp/out"; rm -f "$tmp/out";;
23489   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23490   esac
23491  ;;
23492   :H)
23493   #
23494   # CONFIG_HEADER
23495   #
23496 _ACEOF
23497
23498 # Transform confdefs.h into a sed script `conftest.defines', that
23499 # substitutes the proper values into config.h.in to produce config.h.
23500 rm -f conftest.defines conftest.tail
23501 # First, append a space to every undef/define line, to ease matching.
23502 echo 's/$/ /' >conftest.defines
23503 # Then, protect against being on the right side of a sed subst, or in
23504 # an unquoted here document, in config.status.  If some macros were
23505 # called several times there might be several #defines for the same
23506 # symbol, which is useless.  But do not sort them, since the last
23507 # AC_DEFINE must be honored.
23508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23509 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23510 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23511 # PARAMS is the parameter list in the macro definition--in most cases, it's
23512 # just an empty string.
23513 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23514 ac_dB='\\)[      (].*,\\1define\\2'
23515 ac_dC=' '
23516 ac_dD=' ,'
23517
23518 uniq confdefs.h |
23519   sed -n '
23520         t rset
23521         :rset
23522         s/^[     ]*#[    ]*define[       ][      ]*//
23523         t ok
23524         d
23525         :ok
23526         s/[\\&,]/\\&/g
23527         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23528         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23529   ' >>conftest.defines
23530
23531 # Remove the space that was appended to ease matching.
23532 # Then replace #undef with comments.  This is necessary, for
23533 # example, in the case of _POSIX_SOURCE, which is predefined and required
23534 # on some systems where configure will not decide to define it.
23535 # (The regexp can be short, since the line contains either #define or #undef.)
23536 echo 's/ $//
23537 s,^[     #]*u.*,/* & */,' >>conftest.defines
23538
23539 # Break up conftest.defines:
23540 ac_max_sed_lines=50
23541
23542 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23543 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23544 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23545 # et cetera.
23546 ac_in='$ac_file_inputs'
23547 ac_out='"$tmp/out1"'
23548 ac_nxt='"$tmp/out2"'
23549
23550 while :
23551 do
23552   # Write a here document:
23553     cat >>$CONFIG_STATUS <<_ACEOF
23554     # First, check the format of the line:
23555     cat >"\$tmp/defines.sed" <<\\CEOF
23556 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23557 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23558 b
23559 :def
23560 _ACEOF
23561   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23562   echo 'CEOF
23563     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23564   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23565   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23566   grep . conftest.tail >/dev/null || break
23567   rm -f conftest.defines
23568   mv conftest.tail conftest.defines
23569 done
23570 rm -f conftest.defines conftest.tail
23571
23572 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574   if test x"$ac_file" != x-; then
23575     echo "/* $configure_input  */" >"$tmp/config.h"
23576     cat "$ac_result" >>"$tmp/config.h"
23577     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23578       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23579 echo "$as_me: $ac_file is unchanged" >&6;}
23580     else
23581       rm -f $ac_file
23582       mv "$tmp/config.h" $ac_file
23583     fi
23584   else
23585     echo "/* $configure_input  */"
23586     cat "$ac_result"
23587   fi
23588   rm -f "$tmp/out12"
23589  ;;
23590
23591   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23592 echo "$as_me: executing $ac_file commands" >&6;}
23593  ;;
23594   esac
23595
23596
23597   case $ac_file$ac_mode in
23598     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23599    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23600     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23601    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23602     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23603    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23604     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23605    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23606     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23607    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23608     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23609    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23610     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23611    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23612     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23613    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23614     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23615    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23616     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23617    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23618     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23619    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23620     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23621    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23622     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23623    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23624
23625   esac
23626 done # for ac_tag
23627
23628
23629 { (exit 0); exit 0; }
23630 _ACEOF
23631 chmod +x $CONFIG_STATUS
23632 ac_clean_files=$ac_clean_files_save
23633
23634
23635 # configure is writing to config.log, and then calls config.status.
23636 # config.status does its own redirection, appending to config.log.
23637 # Unfortunately, on DOS this fails, as config.log is still kept open
23638 # by configure, so config.status won't be able to write to it; its
23639 # output is simply discarded.  So we exec the FD to /dev/null,
23640 # effectively closing config.log, so it can be properly (re)opened and
23641 # appended to by config.status.  When coming back to configure, we
23642 # need to make the FD available again.
23643 if test "$no_create" != yes; then
23644   ac_cs_success=:
23645   ac_config_status_args=
23646   test "$silent" = yes &&
23647     ac_config_status_args="$ac_config_status_args --quiet"
23648   exec 5>/dev/null
23649   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23650   exec 5>>config.log
23651   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23652   # would make configure fail if this is the last instruction.
23653   $ac_cs_success || { (exit 1); exit 1; }
23654 fi
23655
23656 #
23657 # CONFIG_SUBDIRS section.
23658 #
23659 if test "$no_recursion" != yes; then
23660
23661   # Remove --cache-file and --srcdir arguments so they do not pile up.
23662   ac_sub_configure_args=
23663   ac_prev=
23664   eval "set x $ac_configure_args"
23665   shift
23666   for ac_arg
23667   do
23668     if test -n "$ac_prev"; then
23669       ac_prev=
23670       continue
23671     fi
23672     case $ac_arg in
23673     -cache-file | --cache-file | --cache-fil | --cache-fi \
23674     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23675       ac_prev=cache_file ;;
23676     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23677     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23678     | --c=*)
23679       ;;
23680     --config-cache | -C)
23681       ;;
23682     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23683       ac_prev=srcdir ;;
23684     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23685       ;;
23686     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23687       ac_prev=prefix ;;
23688     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23689       ;;
23690     *)
23691       case $ac_arg in
23692       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23693       esac
23694       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23695     esac
23696   done
23697
23698   # Always prepend --prefix to ensure using the same prefix
23699   # in subdir configurations.
23700   ac_arg="--prefix=$prefix"
23701   case $ac_arg in
23702   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23703   esac
23704   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23705
23706   ac_popdir=`pwd`
23707   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23708
23709     # Do not complain, so a configure script can configure whichever
23710     # parts of a large source tree are present.
23711     test -d "$srcdir/$ac_dir" || continue
23712
23713     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23714     echo "$as_me:$LINENO: $ac_msg" >&5
23715     echo "$ac_msg" >&6
23716     { as_dir="$ac_dir"
23717   case $as_dir in #(
23718   -*) as_dir=./$as_dir;;
23719   esac
23720   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23721     as_dirs=
23722     while :; do
23723       case $as_dir in #(
23724       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23725       *) as_qdir=$as_dir;;
23726       esac
23727       as_dirs="'$as_qdir' $as_dirs"
23728       as_dir=`$as_dirname -- "$as_dir" ||
23729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730          X"$as_dir" : 'X\(//\)[^/]' \| \
23731          X"$as_dir" : 'X\(//\)$' \| \
23732          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23733 echo X"$as_dir" |
23734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23735             s//\1/
23736             q
23737           }
23738           /^X\(\/\/\)[^/].*/{
23739             s//\1/
23740             q
23741           }
23742           /^X\(\/\/\)$/{
23743             s//\1/
23744             q
23745           }
23746           /^X\(\/\).*/{
23747             s//\1/
23748             q
23749           }
23750           s/.*/./; q'`
23751       test -d "$as_dir" && break
23752     done
23753     test -z "$as_dirs" || eval "mkdir $as_dirs"
23754   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23755 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23756    { (exit 1); exit 1; }; }; }
23757     ac_builddir=.
23758
23759 case "$ac_dir" in
23760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23761 *)
23762   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23763   # A ".." for each directory in $ac_dir_suffix.
23764   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23765   case $ac_top_builddir_sub in
23766   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23767   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23768   esac ;;
23769 esac
23770 ac_abs_top_builddir=$ac_pwd
23771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23772 # for backward compatibility:
23773 ac_top_builddir=$ac_top_build_prefix
23774
23775 case $srcdir in
23776   .)  # We are building in place.
23777     ac_srcdir=.
23778     ac_top_srcdir=$ac_top_builddir_sub
23779     ac_abs_top_srcdir=$ac_pwd ;;
23780   [\\/]* | ?:[\\/]* )  # Absolute name.
23781     ac_srcdir=$srcdir$ac_dir_suffix;
23782     ac_top_srcdir=$srcdir
23783     ac_abs_top_srcdir=$srcdir ;;
23784   *) # Relative name.
23785     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23786     ac_top_srcdir=$ac_top_build_prefix$srcdir
23787     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23788 esac
23789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23790
23791
23792     cd "$ac_dir"
23793
23794     # Check for guested configure; otherwise get Cygnus style configure.
23795     if test -f "$ac_srcdir/configure.gnu"; then
23796       ac_sub_configure=$ac_srcdir/configure.gnu
23797     elif test -f "$ac_srcdir/configure"; then
23798       ac_sub_configure=$ac_srcdir/configure
23799     elif test -f "$ac_srcdir/configure.in"; then
23800       # This should be Cygnus configure.
23801       ac_sub_configure=$ac_aux_dir/configure
23802     else
23803       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23804 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23805       ac_sub_configure=
23806     fi
23807
23808     # The recursion is here.
23809     if test -n "$ac_sub_configure"; then
23810       # Make the cache file name correct relative to the subdirectory.
23811       case $cache_file in
23812       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23813       *) # Relative name.
23814         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23815       esac
23816
23817       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23818 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23819       # The eval makes quoting arguments work.
23820       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23821            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23822         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23823 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23824    { (exit 1); exit 1; }; }
23825     fi
23826
23827     cd "$ac_popdir"
23828   done
23829 fi
23830