Autoconf: The Clang ARC migrator now depends on the static analyzer.
[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   default) ENABLE_CLANG_STATIC_ANALYZER=1
5236 ;;
5237   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5239    { (exit 1); exit 1; }; } ;;
5240 esac
5241
5242 # Check whether --enable-clang-rewriter was given.
5243 if test "${enable_clang_rewriter+set}" = set; then
5244   enableval=$enable_clang_rewriter;
5245 else
5246   enableval="yes"
5247 fi
5248
5249 case "$enableval" in
5250   yes) ENABLE_CLANG_REWRITER=1
5251  ;;
5252   no)
5253     if test ${clang_arcmt} != "no" ; then
5254       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5255 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5256    { (exit 1); exit 1; }; }
5257     fi
5258     if test ${clang_static_analyzer} != "no" ; then
5259       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5260 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5261    { (exit 1); exit 1; }; }
5262     fi
5263     ENABLE_CLANG_REWRITER=0
5264
5265     ;;
5266   default) ENABLE_CLANG_REWRITER=1
5267 ;;
5268   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5269 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5270    { (exit 1); exit 1; }; } ;;
5271 esac
5272
5273 # Check whether --enable-optimized was given.
5274 if test "${enable_optimized+set}" = set; then
5275   enableval=$enable_optimized;
5276 else
5277   enableval=$optimize
5278 fi
5279
5280 if test ${enableval} = "no" ; then
5281   ENABLE_OPTIMIZED=
5282
5283 else
5284   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5285
5286 fi
5287
5288 # Check whether --enable-profiling was given.
5289 if test "${enable_profiling+set}" = set; then
5290   enableval=$enable_profiling;
5291 else
5292   enableval="no"
5293 fi
5294
5295 if test ${enableval} = "no" ; then
5296   ENABLE_PROFILING=
5297
5298 else
5299   ENABLE_PROFILING=ENABLE_PROFILING=1
5300
5301 fi
5302
5303 # Check whether --enable-assertions was given.
5304 if test "${enable_assertions+set}" = set; then
5305   enableval=$enable_assertions;
5306 else
5307   enableval="yes"
5308 fi
5309
5310 if test ${enableval} = "yes" ; then
5311   DISABLE_ASSERTIONS=
5312
5313 else
5314   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5315
5316 fi
5317
5318 # Check whether --enable-werror was given.
5319 if test "${enable_werror+set}" = set; then
5320   enableval=$enable_werror;
5321 else
5322   enableval="no"
5323 fi
5324
5325 case "$enableval" in
5326   yes) ENABLE_WERROR=1
5327  ;;
5328   no)  ENABLE_WERROR=0
5329  ;;
5330   default) ENABLE_WERROR=0
5331 ;;
5332   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5333 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5334    { (exit 1); exit 1; }; } ;;
5335 esac
5336
5337 # Check whether --enable-expensive-checks was given.
5338 if test "${enable_expensive_checks+set}" = set; then
5339   enableval=$enable_expensive_checks;
5340 else
5341   enableval="no"
5342 fi
5343
5344 if test ${enableval} = "yes" ; then
5345   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5346
5347   EXPENSIVE_CHECKS=yes
5348
5349 else
5350   ENABLE_EXPENSIVE_CHECKS=
5351
5352   EXPENSIVE_CHECKS=no
5353
5354 fi
5355
5356 # Check whether --enable-debug-runtime was given.
5357 if test "${enable_debug_runtime+set}" = set; then
5358   enableval=$enable_debug_runtime;
5359 else
5360   enableval=no
5361 fi
5362
5363 if test ${enableval} = "no" ; then
5364   DEBUG_RUNTIME=
5365
5366 else
5367   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5368
5369 fi
5370
5371 # Check whether --enable-debug-symbols was given.
5372 if test "${enable_debug_symbols+set}" = set; then
5373   enableval=$enable_debug_symbols;
5374 else
5375   enableval=no
5376 fi
5377
5378 if test ${enableval} = "no" ; then
5379   DEBUG_SYMBOLS=
5380
5381 else
5382   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5383
5384 fi
5385
5386 # Check whether --enable-keep-symbols was given.
5387 if test "${enable_keep_symbols+set}" = set; then
5388   enableval=$enable_keep_symbols;
5389 else
5390   enableval=no
5391 fi
5392
5393 if test ${enableval} = "no" ; then
5394   KEEP_SYMBOLS=
5395
5396 else
5397   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5398
5399 fi
5400
5401 # Check whether --enable-jit was given.
5402 if test "${enable_jit+set}" = set; then
5403   enableval=$enable_jit;
5404 else
5405   enableval=default
5406 fi
5407
5408 if test ${enableval} = "no"
5409 then
5410   JIT=
5411
5412 else
5413   case "$llvm_cv_target_arch" in
5414     x86)         TARGET_HAS_JIT=1
5415  ;;
5416     Sparc)       TARGET_HAS_JIT=0
5417  ;;
5418     PowerPC)     TARGET_HAS_JIT=1
5419  ;;
5420     x86_64)      TARGET_HAS_JIT=1
5421  ;;
5422     ARM)         TARGET_HAS_JIT=1
5423  ;;
5424     AArch64)     TARGET_HAS_JIT=0
5425  ;;
5426     Mips)        TARGET_HAS_JIT=1
5427  ;;
5428     XCore)       TARGET_HAS_JIT=0
5429  ;;
5430     MSP430)      TARGET_HAS_JIT=0
5431  ;;
5432     Hexagon)     TARGET_HAS_JIT=0
5433  ;;
5434     NVPTX)       TARGET_HAS_JIT=0
5435  ;;
5436     SystemZ)     TARGET_HAS_JIT=1
5437  ;;
5438     *)           TARGET_HAS_JIT=0
5439  ;;
5440   esac
5441 fi
5442
5443 # Check whether --enable-docs was given.
5444 if test "${enable_docs+set}" = set; then
5445   enableval=$enable_docs;
5446 else
5447   enableval=default
5448 fi
5449
5450 case "$enableval" in
5451   yes) ENABLE_DOCS=1
5452  ;;
5453   no)  ENABLE_DOCS=0
5454  ;;
5455   default) ENABLE_DOCS=1
5456  ;;
5457   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5458 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5459    { (exit 1); exit 1; }; } ;;
5460 esac
5461
5462 # Check whether --enable-doxygen was given.
5463 if test "${enable_doxygen+set}" = set; then
5464   enableval=$enable_doxygen;
5465 else
5466   enableval=default
5467 fi
5468
5469 case "$enableval" in
5470   yes) ENABLE_DOXYGEN=1
5471  ;;
5472   no)  ENABLE_DOXYGEN=0
5473  ;;
5474   default) ENABLE_DOXYGEN=0
5475  ;;
5476   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5477 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5478    { (exit 1); exit 1; }; } ;;
5479 esac
5480
5481 # Check whether --enable-threads was given.
5482 if test "${enable_threads+set}" = set; then
5483   enableval=$enable_threads;
5484 else
5485   enableval=default
5486 fi
5487
5488 case "$enableval" in
5489   yes) LLVM_ENABLE_THREADS=1
5490  ;;
5491   no)  LLVM_ENABLE_THREADS=0
5492  ;;
5493   default) LLVM_ENABLE_THREADS=1
5494  ;;
5495   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5496 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5497    { (exit 1); exit 1; }; } ;;
5498 esac
5499
5500 cat >>confdefs.h <<_ACEOF
5501 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5502 _ACEOF
5503
5504
5505 # Check whether --enable-pthreads was given.
5506 if test "${enable_pthreads+set}" = set; then
5507   enableval=$enable_pthreads;
5508 else
5509   enableval=default
5510 fi
5511
5512 case "$enableval" in
5513   yes) ENABLE_PTHREADS=1
5514  ;;
5515   no)  ENABLE_PTHREADS=0
5516  ;;
5517   default) ENABLE_PTHREADS=1
5518  ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5520 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523
5524 # Check whether --enable-zlib was given.
5525 if test "${enable_zlib+set}" = set; then
5526   enableval=$enable_zlib;
5527 else
5528   enableval=default
5529 fi
5530
5531 case "$enableval" in
5532   yes) LLVM_ENABLE_ZLIB=1
5533  ;;
5534   no)  LLVM_ENABLE_ZLIB=0
5535  ;;
5536   default) LLVM_ENABLE_ZLIB=1
5537  ;;
5538   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5539 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5540    { (exit 1); exit 1; }; } ;;
5541 esac
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5545 _ACEOF
5546
5547
5548 # Check whether --enable-pic was given.
5549 if test "${enable_pic+set}" = set; then
5550   enableval=$enable_pic;
5551 else
5552   enableval=default
5553 fi
5554
5555 case "$enableval" in
5556   yes) ENABLE_PIC=1
5557  ;;
5558   no)  ENABLE_PIC=0
5559  ;;
5560   default) ENABLE_PIC=1
5561  ;;
5562   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5563 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5564    { (exit 1); exit 1; }; } ;;
5565 esac
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define ENABLE_PIC $ENABLE_PIC
5569 _ACEOF
5570
5571
5572 # Check whether --enable-shared was given.
5573 if test "${enable_shared+set}" = set; then
5574   enableval=$enable_shared;
5575 else
5576   enableval=default
5577 fi
5578
5579 case "$enableval" in
5580   yes) ENABLE_SHARED=1
5581  ;;
5582   no)  ENABLE_SHARED=0
5583  ;;
5584   default) ENABLE_SHARED=0
5585  ;;
5586   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5587 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5588    { (exit 1); exit 1; }; } ;;
5589 esac
5590
5591 # Check whether --enable-embed-stdcxx was given.
5592 if test "${enable_embed_stdcxx+set}" = set; then
5593   enableval=$enable_embed_stdcxx;
5594 else
5595   enableval=default
5596 fi
5597
5598 case "$enableval" in
5599   yes) ENABLE_EMBED_STDCXX=1
5600  ;;
5601   no)  ENABLE_EMBED_STDCXX=0
5602  ;;
5603   default) ENABLE_EMBED_STDCXX=0
5604  ;;
5605   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5606 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5607    { (exit 1); exit 1; }; } ;;
5608 esac
5609
5610 # Check whether --enable-timestamps was given.
5611 if test "${enable_timestamps+set}" = set; then
5612   enableval=$enable_timestamps;
5613 else
5614   enableval=default
5615 fi
5616
5617 case "$enableval" in
5618   yes) ENABLE_TIMESTAMPS=1
5619  ;;
5620   no)  ENABLE_TIMESTAMPS=0
5621  ;;
5622   default) ENABLE_TIMESTAMPS=1
5623  ;;
5624   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5625 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5626    { (exit 1); exit 1; }; } ;;
5627 esac
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5631 _ACEOF
5632
5633
5634
5635 # Check whether --enable-backtraces was given.
5636 if test "${enable_backtraces+set}" = set; then
5637   enableval=$enable_backtraces;
5638 else
5639   enableval=default
5640 fi
5641
5642 case "$enableval" in
5643   yes) ENABLE_BACKTRACES=1
5644  ;;
5645   no)  ENABLE_BACKTRACES=0
5646  ;;
5647   default) ENABLE_BACKTRACES=1
5648  ;;
5649   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652 esac
5653
5654 cat >>confdefs.h <<_ACEOF
5655 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5656 _ACEOF
5657
5658
5659 TARGETS_TO_BUILD=""
5660 # Check whether --enable-targets was given.
5661 if test "${enable_targets+set}" = set; then
5662   enableval=$enable_targets;
5663 else
5664   enableval=all
5665 fi
5666
5667 if test "$enableval" = host-only ; then
5668   enableval=host
5669 fi
5670 case "$enableval" in
5671   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5672   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5673       case "$a_target" in
5674         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5675         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5676         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5677         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5678         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5679         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5680         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5681         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5682         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5683         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5684         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5685         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5686         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5687         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5688         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5689         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5690         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5691         host) case "$llvm_cv_target_arch" in
5692             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5693             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5695             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5696             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5697             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5698             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5699             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5700             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5701             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5702             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5703             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5704             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5705 echo "$as_me: error: Can not set target to build" >&2;}
5706    { (exit 1); exit 1; }; } ;;
5707           esac ;;
5708         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5709 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5710    { (exit 1); exit 1; }; } ;;
5711       esac
5712   done
5713   ;;
5714 esac
5715
5716 # Check whether --enable-experimental-targets was given.
5717 if test "${enable_experimental_targets+set}" = set; then
5718   enableval=$enable_experimental_targets;
5719 else
5720   enableval=disable
5721 fi
5722
5723
5724 if test ${enableval} != "disable"
5725 then
5726   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5727 fi
5728
5729 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5730
5731
5732 for a_target in $TARGETS_TO_BUILD; do
5733   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5737 _ACEOF
5738
5739     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5740     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5741     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5742     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5743     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5744       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5745     fi
5746     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5748     fi
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5752 _ACEOF
5753
5754
5755 cat >>confdefs.h <<_ACEOF
5756 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5757 _ACEOF
5758
5759
5760 cat >>confdefs.h <<_ACEOF
5761 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5762 _ACEOF
5763
5764
5765 cat >>confdefs.h <<_ACEOF
5766 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5767 _ACEOF
5768
5769     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5770
5771 cat >>confdefs.h <<_ACEOF
5772 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5773 _ACEOF
5774
5775     fi
5776     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5780 _ACEOF
5781
5782     fi
5783   fi
5784 done
5785
5786 LLVM_ENUM_TARGETS=""
5787 LLVM_ENUM_ASM_PRINTERS=""
5788 LLVM_ENUM_ASM_PARSERS=""
5789 LLVM_ENUM_DISASSEMBLERS=""
5790 for target_to_build in $TARGETS_TO_BUILD; do
5791   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5792   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5793     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5794   fi
5795   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5796     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5797   fi
5798   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5799     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5800   fi
5801 done
5802
5803
5804
5805
5806
5807
5808 # Check whether --with-optimize-option was given.
5809 if test "${with_optimize_option+set}" = set; then
5810   withval=$with_optimize_option;
5811 else
5812   withval=default
5813 fi
5814
5815 { echo "$as_me:$LINENO: checking optimization flags" >&5
5816 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5817 case "$withval" in
5818   default)
5819     case "$llvm_cv_os_type" in
5820     FreeBSD) optimize_option=-O2 ;;
5821     MingW) optimize_option=-O2 ;;
5822     *)     optimize_option=-O3 ;;
5823     esac ;;
5824   *) optimize_option="$withval" ;;
5825 esac
5826 OPTIMIZE_OPTION=$optimize_option
5827
5828 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5829 echo "${ECHO_T}$optimize_option" >&6; }
5830
5831
5832 # Check whether --with-extra-options was given.
5833 if test "${with_extra_options+set}" = set; then
5834   withval=$with_extra_options;
5835 else
5836   withval=default
5837 fi
5838
5839 case "$withval" in
5840   default) EXTRA_OPTIONS= ;;
5841   *) EXTRA_OPTIONS=$withval ;;
5842 esac
5843 EXTRA_OPTIONS=$EXTRA_OPTIONS
5844
5845
5846
5847 # Check whether --with-extra-ld-options was given.
5848 if test "${with_extra_ld_options+set}" = set; then
5849   withval=$with_extra_ld_options;
5850 else
5851   withval=default
5852 fi
5853
5854 case "$withval" in
5855   default) EXTRA_LD_OPTIONS= ;;
5856   *) EXTRA_LD_OPTIONS=$withval ;;
5857 esac
5858 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5859
5860
5861 # Check whether --enable-bindings was given.
5862 if test "${enable_bindings+set}" = set; then
5863   enableval=$enable_bindings;
5864 else
5865   enableval=default
5866 fi
5867
5868 BINDINGS_TO_BUILD=""
5869 case "$enableval" in
5870   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5871   all ) BINDINGS_TO_BUILD="ocaml" ;;
5872   none | no) BINDINGS_TO_BUILD="" ;;
5873   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5874       case "$a_binding" in
5875         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5876         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5877 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5878    { (exit 1); exit 1; }; } ;;
5879       esac
5880   done
5881   ;;
5882 esac
5883
5884
5885 # Check whether --with-ocaml-libdir was given.
5886 if test "${with_ocaml_libdir+set}" = set; then
5887   withval=$with_ocaml_libdir;
5888 else
5889   withval=auto
5890 fi
5891
5892 case "$withval" in
5893   auto) with_ocaml_libdir="$withval" ;;
5894   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5895   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5896 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5897    { (exit 1); exit 1; }; } ;;
5898 esac
5899
5900
5901 # Check whether --with-clang-srcdir was given.
5902 if test "${with_clang_srcdir+set}" = set; then
5903   withval=$with_clang_srcdir;
5904 else
5905   withval="-"
5906 fi
5907
5908 case "$withval" in
5909   -) clang_src_root="" ;;
5910   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5911   *) clang_src_root="$ac_pwd/$withval" ;;
5912 esac
5913 CLANG_SRC_ROOT=$clang_src_root
5914
5915
5916
5917 # Check whether --with-clang-resource-dir was given.
5918 if test "${with_clang_resource_dir+set}" = set; then
5919   withval=$with_clang_resource_dir;
5920 else
5921   withval=""
5922 fi
5923
5924
5925 cat >>confdefs.h <<_ACEOF
5926 #define CLANG_RESOURCE_DIR "$withval"
5927 _ACEOF
5928
5929
5930
5931 # Check whether --with-c-include-dirs was given.
5932 if test "${with_c_include_dirs+set}" = set; then
5933   withval=$with_c_include_dirs;
5934 else
5935   withval=""
5936 fi
5937
5938
5939 cat >>confdefs.h <<_ACEOF
5940 #define C_INCLUDE_DIRS "$withval"
5941 _ACEOF
5942
5943
5944 # Clang normally uses the system c++ headers and libraries. With this option,
5945 # clang will use the ones provided by a gcc installation instead. This option should
5946 # be passed the same value that was used with --prefix when configuring gcc.
5947
5948 # Check whether --with-gcc-toolchain was given.
5949 if test "${with_gcc_toolchain+set}" = set; then
5950   withval=$with_gcc_toolchain;
5951 else
5952   withval=""
5953 fi
5954
5955
5956 cat >>confdefs.h <<_ACEOF
5957 #define GCC_INSTALL_PREFIX "$withval"
5958 _ACEOF
5959
5960
5961
5962 # Check whether --with-default-sysroot was given.
5963 if test "${with_default_sysroot+set}" = set; then
5964   withval=$with_default_sysroot;
5965 else
5966   withval=""
5967 fi
5968
5969
5970 cat >>confdefs.h <<_ACEOF
5971 #define DEFAULT_SYSROOT "$withval"
5972 _ACEOF
5973
5974
5975
5976 # Check whether --with-binutils-include was given.
5977 if test "${with_binutils_include+set}" = set; then
5978   withval=$with_binutils_include;
5979 else
5980   withval=default
5981 fi
5982
5983 case "$withval" in
5984   default) WITH_BINUTILS_INCDIR=default ;;
5985   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5986   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5987 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5988    { (exit 1); exit 1; }; } ;;
5989 esac
5990 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5991   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5992
5993   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5994      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5995      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5996 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5997    { (exit 1); exit 1; }; };
5998   fi
5999 fi
6000
6001
6002 # Check whether --with-bug-report-url was given.
6003 if test "${with_bug_report_url+set}" = set; then
6004   withval=$with_bug_report_url;
6005 else
6006   withval="http://llvm.org/bugs/"
6007 fi
6008
6009
6010 cat >>confdefs.h <<_ACEOF
6011 #define BUG_REPORT_URL "$withval"
6012 _ACEOF
6013
6014
6015 # Check whether --enable-terminfo was given.
6016 if test "${enable_terminfo+set}" = set; then
6017   enableval=$enable_terminfo; case "$enableval" in
6018     yes) llvm_cv_enable_terminfo="yes" ;;
6019     no)  llvm_cv_enable_terminfo="no"  ;;
6020     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6021 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6022    { (exit 1); exit 1; }; } ;;
6023   esac
6024 else
6025   llvm_cv_enable_terminfo="yes"
6026 fi
6027
6028
6029 # Check whether --enable-libffi was given.
6030 if test "${enable_libffi+set}" = set; then
6031   enableval=$enable_libffi; case "$enableval" in
6032     yes) llvm_cv_enable_libffi="yes" ;;
6033     no)  llvm_cv_enable_libffi="no"  ;;
6034     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6035 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6036    { (exit 1); exit 1; }; } ;;
6037   esac
6038 else
6039   llvm_cv_enable_libffi=no
6040 fi
6041
6042
6043
6044 # Check whether --with-internal-prefix was given.
6045 if test "${with_internal_prefix+set}" = set; then
6046   withval=$with_internal_prefix;
6047 else
6048   withval=""
6049 fi
6050
6051 INTERNAL_PREFIX=$withval
6052
6053
6054
6055 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6056 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6057 if test "${lt_cv_path_NM+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   if test -n "$NM"; then
6061   # Let the user override the test.
6062   lt_cv_path_NM="$NM"
6063 else
6064   lt_nm_to_check="${ac_tool_prefix}nm"
6065   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6066     lt_nm_to_check="$lt_nm_to_check nm"
6067   fi
6068   for lt_tmp_nm in $lt_nm_to_check; do
6069     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6070     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6071       IFS="$lt_save_ifs"
6072       test -z "$ac_dir" && ac_dir=.
6073       tmp_nm="$ac_dir/$lt_tmp_nm"
6074       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6075         # Check to see if the nm accepts a BSD-compat flag.
6076         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6077         #   nm: unknown option "B" ignored
6078         # Tru64's nm complains that /dev/null is an invalid object file
6079         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6080         */dev/null* | *'Invalid file or object type'*)
6081           lt_cv_path_NM="$tmp_nm -B"
6082           break
6083           ;;
6084         *)
6085           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6086           */dev/null*)
6087             lt_cv_path_NM="$tmp_nm -p"
6088             break
6089             ;;
6090           *)
6091             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6092             continue # so that we can try to find one that supports BSD flags
6093             ;;
6094           esac
6095           ;;
6096         esac
6097       fi
6098     done
6099     IFS="$lt_save_ifs"
6100   done
6101   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6102 fi
6103 fi
6104 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6105 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6106 NM="$lt_cv_path_NM"
6107
6108
6109
6110 { echo "$as_me:$LINENO: checking for GNU make" >&5
6111 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6112 if test "${llvm_cv_gnu_make_command+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   llvm_cv_gnu_make_command=''
6116  for a in "$MAKE" make gmake gnumake ; do
6117   if test -z "$a" ; then continue ; fi ;
6118   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6119   then
6120    llvm_cv_gnu_make_command=$a ;
6121    break;
6122   fi
6123  done
6124 fi
6125 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6126 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6127  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6128    ifGNUmake='' ;
6129  else
6130    ifGNUmake='#' ;
6131    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6132 echo "${ECHO_T}\"Not found\"" >&6; };
6133  fi
6134
6135
6136 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6137 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6138 LN_S=$as_ln_s
6139 if test "$LN_S" = "ln -s"; then
6140   { echo "$as_me:$LINENO: result: yes" >&5
6141 echo "${ECHO_T}yes" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6144 echo "${ECHO_T}no, using $LN_S" >&6; }
6145 fi
6146
6147 # Extract the first word of "cmp", so it can be a program name with args.
6148 set dummy cmp; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_path_CMP+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   case $CMP in
6155   [\\/]* | ?:[\\/]*)
6156   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6157   ;;
6158   *)
6159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164   for ac_exec_ext in '' $ac_executable_extensions; do
6165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6175   ;;
6176 esac
6177 fi
6178 CMP=$ac_cv_path_CMP
6179 if test -n "$CMP"; then
6180   { echo "$as_me:$LINENO: result: $CMP" >&5
6181 echo "${ECHO_T}$CMP" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187
6188 # Extract the first word of "cp", so it can be a program name with args.
6189 set dummy cp; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_path_CP+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   case $CP in
6196   [\\/]* | ?:[\\/]*)
6197   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6198   ;;
6199   *)
6200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6216   ;;
6217 esac
6218 fi
6219 CP=$ac_cv_path_CP
6220 if test -n "$CP"; then
6221   { echo "$as_me:$LINENO: result: $CP" >&5
6222 echo "${ECHO_T}$CP" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 # Extract the first word of "date", so it can be a program name with args.
6230 set dummy date; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_DATE+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   case $DATE in
6237   [\\/]* | ?:[\\/]*)
6238   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6239   ;;
6240   *)
6241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6257   ;;
6258 esac
6259 fi
6260 DATE=$ac_cv_path_DATE
6261 if test -n "$DATE"; then
6262   { echo "$as_me:$LINENO: result: $DATE" >&5
6263 echo "${ECHO_T}$DATE" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269
6270 # Extract the first word of "find", so it can be a program name with args.
6271 set dummy find; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_FIND+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   case $FIND in
6278   [\\/]* | ?:[\\/]*)
6279   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6280   ;;
6281   *)
6282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6298   ;;
6299 esac
6300 fi
6301 FIND=$ac_cv_path_FIND
6302 if test -n "$FIND"; then
6303   { echo "$as_me:$LINENO: result: $FIND" >&5
6304 echo "${ECHO_T}$FIND" >&6; }
6305 else
6306   { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6308 fi
6309
6310
6311 # Extract the first word of "grep", so it can be a program name with args.
6312 set dummy grep; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_GREP+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   case $GREP in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6339   ;;
6340 esac
6341 fi
6342 GREP=$ac_cv_path_GREP
6343 if test -n "$GREP"; then
6344   { echo "$as_me:$LINENO: result: $GREP" >&5
6345 echo "${ECHO_T}$GREP" >&6; }
6346 else
6347   { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6349 fi
6350
6351
6352 # Extract the first word of "mkdir", so it can be a program name with args.
6353 set dummy mkdir; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_path_MKDIR+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   case $MKDIR in
6360   [\\/]* | ?:[\\/]*)
6361   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6362   ;;
6363   *)
6364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369   for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6380   ;;
6381 esac
6382 fi
6383 MKDIR=$ac_cv_path_MKDIR
6384 if test -n "$MKDIR"; then
6385   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6386 echo "${ECHO_T}$MKDIR" >&6; }
6387 else
6388   { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6390 fi
6391
6392
6393 # Extract the first word of "mv", so it can be a program name with args.
6394 set dummy mv; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_path_MV+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   case $MV in
6401   [\\/]* | ?:[\\/]*)
6402   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6403   ;;
6404   *)
6405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410   for ac_exec_ext in '' $ac_executable_extensions; do
6411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6421   ;;
6422 esac
6423 fi
6424 MV=$ac_cv_path_MV
6425 if test -n "$MV"; then
6426   { echo "$as_me:$LINENO: result: $MV" >&5
6427 echo "${ECHO_T}$MV" >&6; }
6428 else
6429   { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6431 fi
6432
6433
6434 if test -n "$ac_tool_prefix"; then
6435   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_prog_RANLIB+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   if test -n "$RANLIB"; then
6443   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450   for ac_exec_ext in '' $ac_executable_extensions; do
6451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6452     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 RANLIB=$ac_cv_prog_RANLIB
6463 if test -n "$RANLIB"; then
6464   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6465 echo "${ECHO_T}$RANLIB" >&6; }
6466 else
6467   { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6469 fi
6470
6471
6472 fi
6473 if test -z "$ac_cv_prog_RANLIB"; then
6474   ac_ct_RANLIB=$RANLIB
6475   # Extract the first word of "ranlib", so it can be a program name with args.
6476 set dummy ranlib; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   if test -n "$ac_ct_RANLIB"; then
6483   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490   for ac_exec_ext in '' $ac_executable_extensions; do
6491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6492     ac_cv_prog_ac_ct_RANLIB="ranlib"
6493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6503 if test -n "$ac_ct_RANLIB"; then
6504   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6505 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6506 else
6507   { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6509 fi
6510
6511   if test "x$ac_ct_RANLIB" = x; then
6512     RANLIB=":"
6513   else
6514     case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6517 whose name does not start with the host triplet.  If you think this
6518 configuration is useful to you, please write to autoconf@gnu.org." >&5
6519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6520 whose name does not start with the host triplet.  If you think this
6521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524     RANLIB=$ac_ct_RANLIB
6525   fi
6526 else
6527   RANLIB="$ac_cv_prog_RANLIB"
6528 fi
6529
6530 if test -n "$ac_tool_prefix"; then
6531   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}ar; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_prog_AR+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   if test -n "$AR"; then
6539   ac_cv_prog_AR="$AR" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546   for ac_exec_ext in '' $ac_executable_extensions; do
6547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548     ac_cv_prog_AR="${ac_tool_prefix}ar"
6549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 AR=$ac_cv_prog_AR
6559 if test -n "$AR"; then
6560   { echo "$as_me:$LINENO: result: $AR" >&5
6561 echo "${ECHO_T}$AR" >&6; }
6562 else
6563   { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_AR"; then
6570   ac_ct_AR=$AR
6571   # Extract the first word of "ar", so it can be a program name with args.
6572 set dummy ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   if test -n "$ac_ct_AR"; then
6579   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_ac_ct_AR="ar"
6589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6599 if test -n "$ac_ct_AR"; then
6600   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6601 echo "${ECHO_T}$ac_ct_AR" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607   if test "x$ac_ct_AR" = x; then
6608     AR="false"
6609   else
6610     case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6613 whose name does not start with the host triplet.  If you think this
6614 configuration is useful to you, please write to autoconf@gnu.org." >&5
6615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet.  If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620     AR=$ac_ct_AR
6621   fi
6622 else
6623   AR="$ac_cv_prog_AR"
6624 fi
6625
6626 # Extract the first word of "rm", so it can be a program name with args.
6627 set dummy rm; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_RM+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   case $RM in
6634   [\\/]* | ?:[\\/]*)
6635   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6636   ;;
6637   *)
6638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643   for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6654   ;;
6655 esac
6656 fi
6657 RM=$ac_cv_path_RM
6658 if test -n "$RM"; then
6659   { echo "$as_me:$LINENO: result: $RM" >&5
6660 echo "${ECHO_T}$RM" >&6; }
6661 else
6662   { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6664 fi
6665
6666
6667 # Extract the first word of "sed", so it can be a program name with args.
6668 set dummy sed; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_SED+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   case $SED in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6695   ;;
6696 esac
6697 fi
6698 SED=$ac_cv_path_SED
6699 if test -n "$SED"; then
6700   { echo "$as_me:$LINENO: result: $SED" >&5
6701 echo "${ECHO_T}$SED" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707
6708 # Extract the first word of "tar", so it can be a program name with args.
6709 set dummy tar; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_TAR+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   case $TAR in
6716   [\\/]* | ?:[\\/]*)
6717   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6718   ;;
6719   *)
6720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6736   ;;
6737 esac
6738 fi
6739 TAR=$ac_cv_path_TAR
6740 if test -n "$TAR"; then
6741   { echo "$as_me:$LINENO: result: $TAR" >&5
6742 echo "${ECHO_T}$TAR" >&6; }
6743 else
6744   { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6746 fi
6747
6748
6749 # Extract the first word of "pwd", so it can be a program name with args.
6750 set dummy pwd; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_BINPWD+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   case $BINPWD in
6757   [\\/]* | ?:[\\/]*)
6758   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6759   ;;
6760   *)
6761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766   for ac_exec_ext in '' $ac_executable_extensions; do
6767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6777   ;;
6778 esac
6779 fi
6780 BINPWD=$ac_cv_path_BINPWD
6781 if test -n "$BINPWD"; then
6782   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6783 echo "${ECHO_T}$BINPWD" >&6; }
6784 else
6785   { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6787 fi
6788
6789
6790
6791 # Extract the first word of "Graphviz", so it can be a program name with args.
6792 set dummy Graphviz; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   case $GRAPHVIZ in
6799   [\\/]* | ?:[\\/]*)
6800   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6801   ;;
6802   *)
6803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6819   ;;
6820 esac
6821 fi
6822 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6823 if test -n "$GRAPHVIZ"; then
6824   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6825 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831
6832 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_GRAPHVIZ 1
6836 _ACEOF
6837
6838     if test "$llvm_cv_os_type" = "MingW" ; then
6839     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6840   fi
6841
6842 cat >>confdefs.h <<_ACEOF
6843 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6844 _ACEOF
6845
6846 fi
6847 # Extract the first word of "dot", so it can be a program name with args.
6848 set dummy dot; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_DOT+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   case $DOT in
6855   [\\/]* | ?:[\\/]*)
6856   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6857   ;;
6858   *)
6859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864   for ac_exec_ext in '' $ac_executable_extensions; do
6865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6875   ;;
6876 esac
6877 fi
6878 DOT=$ac_cv_path_DOT
6879 if test -n "$DOT"; then
6880   { echo "$as_me:$LINENO: result: $DOT" >&5
6881 echo "${ECHO_T}$DOT" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 if test "$DOT" != "echo dot" ; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_DOT 1
6892 _ACEOF
6893
6894     if test "$llvm_cv_os_type" = "MingW" ; then
6895     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6896   fi
6897
6898 cat >>confdefs.h <<_ACEOF
6899 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6900 _ACEOF
6901
6902 fi
6903 # Extract the first word of "fdp", so it can be a program name with args.
6904 set dummy fdp; ac_word=$2
6905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6907 if test "${ac_cv_path_FDP+set}" = set; then
6908   echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910   case $FDP in
6911   [\\/]* | ?:[\\/]*)
6912   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6913   ;;
6914   *)
6915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920   for ac_exec_ext in '' $ac_executable_extensions; do
6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6922     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6931   ;;
6932 esac
6933 fi
6934 FDP=$ac_cv_path_FDP
6935 if test -n "$FDP"; then
6936   { echo "$as_me:$LINENO: result: $FDP" >&5
6937 echo "${ECHO_T}$FDP" >&6; }
6938 else
6939   { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6941 fi
6942
6943
6944 if test "$FDP" != "echo fdp" ; then
6945
6946 cat >>confdefs.h <<\_ACEOF
6947 #define HAVE_FDP 1
6948 _ACEOF
6949
6950     if test "$llvm_cv_os_type" = "MingW" ; then
6951     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6952   fi
6953
6954 cat >>confdefs.h <<_ACEOF
6955 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6956 _ACEOF
6957
6958 fi
6959 # Extract the first word of "neato", so it can be a program name with args.
6960 set dummy neato; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_NEATO+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   case $NEATO in
6967   [\\/]* | ?:[\\/]*)
6968   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6969   ;;
6970   *)
6971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976   for ac_exec_ext in '' $ac_executable_extensions; do
6977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6987   ;;
6988 esac
6989 fi
6990 NEATO=$ac_cv_path_NEATO
6991 if test -n "$NEATO"; then
6992   { echo "$as_me:$LINENO: result: $NEATO" >&5
6993 echo "${ECHO_T}$NEATO" >&6; }
6994 else
6995   { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
6997 fi
6998
6999
7000 if test "$NEATO" != "echo neato" ; then
7001
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_NEATO 1
7004 _ACEOF
7005
7006     if test "$llvm_cv_os_type" = "MingW" ; then
7007     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7008   fi
7009
7010 cat >>confdefs.h <<_ACEOF
7011 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7012 _ACEOF
7013
7014 fi
7015 # Extract the first word of "twopi", so it can be a program name with args.
7016 set dummy twopi; ac_word=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_TWOPI+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   case $TWOPI in
7023   [\\/]* | ?:[\\/]*)
7024   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7025   ;;
7026   *)
7027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032   for ac_exec_ext in '' $ac_executable_extensions; do
7033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7034     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7043   ;;
7044 esac
7045 fi
7046 TWOPI=$ac_cv_path_TWOPI
7047 if test -n "$TWOPI"; then
7048   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7049 echo "${ECHO_T}$TWOPI" >&6; }
7050 else
7051   { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7053 fi
7054
7055
7056 if test "$TWOPI" != "echo twopi" ; then
7057
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_TWOPI 1
7060 _ACEOF
7061
7062     if test "$llvm_cv_os_type" = "MingW" ; then
7063     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7064   fi
7065
7066 cat >>confdefs.h <<_ACEOF
7067 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7068 _ACEOF
7069
7070 fi
7071 # Extract the first word of "circo", so it can be a program name with args.
7072 set dummy circo; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_path_CIRCO+set}" = set; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   case $CIRCO in
7079   [\\/]* | ?:[\\/]*)
7080   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7081   ;;
7082   *)
7083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086   IFS=$as_save_IFS
7087   test -z "$as_dir" && as_dir=.
7088   for ac_exec_ext in '' $ac_executable_extensions; do
7089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7090     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092     break 2
7093   fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7099   ;;
7100 esac
7101 fi
7102 CIRCO=$ac_cv_path_CIRCO
7103 if test -n "$CIRCO"; then
7104   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7105 echo "${ECHO_T}$CIRCO" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7109 fi
7110
7111
7112 if test "$CIRCO" != "echo circo" ; then
7113
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_CIRCO 1
7116 _ACEOF
7117
7118     if test "$llvm_cv_os_type" = "MingW" ; then
7119     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7120   fi
7121
7122 cat >>confdefs.h <<_ACEOF
7123 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7124 _ACEOF
7125
7126 fi
7127 for ac_prog in gv gsview32
7128 do
7129   # Extract the first word of "$ac_prog", so it can be a program name with args.
7130 set dummy $ac_prog; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_GV+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   case $GV in
7137   [\\/]* | ?:[\\/]*)
7138   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7139   ;;
7140   *)
7141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146   for ac_exec_ext in '' $ac_executable_extensions; do
7147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156   ;;
7157 esac
7158 fi
7159 GV=$ac_cv_path_GV
7160 if test -n "$GV"; then
7161   { echo "$as_me:$LINENO: result: $GV" >&5
7162 echo "${ECHO_T}$GV" >&6; }
7163 else
7164   { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7166 fi
7167
7168
7169   test -n "$GV" && break
7170 done
7171 test -n "$GV" || GV="echo gv"
7172
7173 if test "$GV" != "echo gv" ; then
7174
7175 cat >>confdefs.h <<\_ACEOF
7176 #define HAVE_GV 1
7177 _ACEOF
7178
7179     if test "$llvm_cv_os_type" = "MingW" ; then
7180     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7181   fi
7182
7183 cat >>confdefs.h <<_ACEOF
7184 #define LLVM_PATH_GV "$GV${EXEEXT}"
7185 _ACEOF
7186
7187 fi
7188 # Extract the first word of "dotty", so it can be a program name with args.
7189 set dummy dotty; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_DOTTY+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   case $DOTTY in
7196   [\\/]* | ?:[\\/]*)
7197   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7198   ;;
7199   *)
7200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205   for ac_exec_ext in '' $ac_executable_extensions; do
7206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7216   ;;
7217 esac
7218 fi
7219 DOTTY=$ac_cv_path_DOTTY
7220 if test -n "$DOTTY"; then
7221   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7222 echo "${ECHO_T}$DOTTY" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 if test "$DOTTY" != "echo dotty" ; then
7230
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_DOTTY 1
7233 _ACEOF
7234
7235     if test "$llvm_cv_os_type" = "MingW" ; then
7236     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7237   fi
7238
7239 cat >>confdefs.h <<_ACEOF
7240 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7241 _ACEOF
7242
7243 fi
7244 for ac_prog in xdot xdot.py
7245 do
7246   # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_XDOT+set}" = set; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   case $XDOT in
7254   [\\/]* | ?:[\\/]*)
7255   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7256   ;;
7257   *)
7258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263   for ac_exec_ext in '' $ac_executable_extensions; do
7264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273   ;;
7274 esac
7275 fi
7276 XDOT=$ac_cv_path_XDOT
7277 if test -n "$XDOT"; then
7278   { echo "$as_me:$LINENO: result: $XDOT" >&5
7279 echo "${ECHO_T}$XDOT" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7284
7285
7286   test -n "$XDOT" && break
7287 done
7288 test -n "$XDOT" || XDOT="echo xdot"
7289
7290 if test "$XDOT" != "echo xdot" ; then
7291
7292 cat >>confdefs.h <<\_ACEOF
7293 #define HAVE_XDOT 1
7294 _ACEOF
7295
7296     if test "$llvm_cv_os_type" = "MingW" ; then
7297     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7298   fi
7299
7300 cat >>confdefs.h <<_ACEOF
7301 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7302 _ACEOF
7303
7304 fi
7305
7306 # Find a good install program.  We prefer a C program (faster),
7307 # so one script is as good as another.  But avoid the broken or
7308 # incompatible versions:
7309 # SysV /etc/install, /usr/sbin/install
7310 # SunOS /usr/etc/install
7311 # IRIX /sbin/install
7312 # AIX /bin/install
7313 # AmigaOS /C/install, which installs bootblocks on floppy discs
7314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7317 # OS/2's system install, which has a completely different semantic
7318 # ./install, which can be erroneously created by make from ./install.sh.
7319 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7321 if test -z "$INSTALL"; then
7322 if test "${ac_cv_path_install+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   # Account for people who put trailing slashes in PATH elements.
7331 case $as_dir/ in
7332   ./ | .// | /cC/* | \
7333   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7334   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7335   /usr/ucb/* ) ;;
7336   *)
7337     # OSF1 and SCO ODT 3.0 have their own names for install.
7338     # Don't use installbsd from OSF since it installs stuff as root
7339     # by default.
7340     for ac_prog in ginstall scoinst install; do
7341       for ac_exec_ext in '' $ac_executable_extensions; do
7342         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7343           if test $ac_prog = install &&
7344             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7345             # AIX install.  It has an incompatible calling convention.
7346             :
7347           elif test $ac_prog = install &&
7348             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7349             # program-specific install script used by HP pwplus--don't use.
7350             :
7351           else
7352             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7353             break 3
7354           fi
7355         fi
7356       done
7357     done
7358     ;;
7359 esac
7360 done
7361 IFS=$as_save_IFS
7362
7363
7364 fi
7365   if test "${ac_cv_path_install+set}" = set; then
7366     INSTALL=$ac_cv_path_install
7367   else
7368     # As a last resort, use the slow shell script.  Don't cache a
7369     # value for INSTALL within a source directory, because that will
7370     # break other packages using the cache if that directory is
7371     # removed, or if the value is a relative name.
7372     INSTALL=$ac_install_sh
7373   fi
7374 fi
7375 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7376 echo "${ECHO_T}$INSTALL" >&6; }
7377
7378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7379 # It thinks the first close brace ends the variable substitution.
7380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7381
7382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7383
7384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7385
7386 case "$INSTALL" in
7387  [\\/$]* | ?:[\\/]* ) ;;
7388  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7389 esac
7390
7391 # Extract the first word of "bzip2", so it can be a program name with args.
7392 set dummy bzip2; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_BZIP2+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $BZIP2 in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408   for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418   ;;
7419 esac
7420 fi
7421 BZIP2=$ac_cv_path_BZIP2
7422 if test -n "$BZIP2"; then
7423   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7424 echo "${ECHO_T}$BZIP2" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 # Extract the first word of "cat", so it can be a program name with args.
7432 set dummy cat; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_CAT+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   case $CAT in
7439   [\\/]* | ?:[\\/]*)
7440   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7441   ;;
7442   *)
7443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458   ;;
7459 esac
7460 fi
7461 CAT=$ac_cv_path_CAT
7462 if test -n "$CAT"; then
7463   { echo "$as_me:$LINENO: result: $CAT" >&5
7464 echo "${ECHO_T}$CAT" >&6; }
7465 else
7466   { echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6; }
7468 fi
7469
7470
7471 # Extract the first word of "doxygen", so it can be a program name with args.
7472 set dummy doxygen; ac_word=$2
7473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   case $DOXYGEN in
7479   [\\/]* | ?:[\\/]*)
7480   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7481   ;;
7482   *)
7483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488   for ac_exec_ext in '' $ac_executable_extensions; do
7489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7490     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498   ;;
7499 esac
7500 fi
7501 DOXYGEN=$ac_cv_path_DOXYGEN
7502 if test -n "$DOXYGEN"; then
7503   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7504 echo "${ECHO_T}$DOXYGEN" >&6; }
7505 else
7506   { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7508 fi
7509
7510
7511 # Extract the first word of "groff", so it can be a program name with args.
7512 set dummy groff; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_path_GROFF+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $GROFF in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7530     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538   ;;
7539 esac
7540 fi
7541 GROFF=$ac_cv_path_GROFF
7542 if test -n "$GROFF"; then
7543   { echo "$as_me:$LINENO: result: $GROFF" >&5
7544 echo "${ECHO_T}$GROFF" >&6; }
7545 else
7546   { echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6; }
7548 fi
7549
7550
7551 # Extract the first word of "gzip", so it can be a program name with args.
7552 set dummy gzip; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   case $GZIPBIN in
7559   [\\/]* | ?:[\\/]*)
7560   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7561   ;;
7562   *)
7563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578   ;;
7579 esac
7580 fi
7581 GZIPBIN=$ac_cv_path_GZIPBIN
7582 if test -n "$GZIPBIN"; then
7583   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7584 echo "${ECHO_T}$GZIPBIN" >&6; }
7585 else
7586   { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7588 fi
7589
7590
7591 # Extract the first word of "pdfroff", so it can be a program name with args.
7592 set dummy pdfroff; ac_word=$2
7593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595 if test "${ac_cv_path_PDFROFF+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   case $PDFROFF in
7599   [\\/]* | ?:[\\/]*)
7600   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7601   ;;
7602   *)
7603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618   ;;
7619 esac
7620 fi
7621 PDFROFF=$ac_cv_path_PDFROFF
7622 if test -n "$PDFROFF"; then
7623   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7624 echo "${ECHO_T}$PDFROFF" >&6; }
7625 else
7626   { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7628 fi
7629
7630
7631 # Extract the first word of "zip", so it can be a program name with args.
7632 set dummy zip; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_path_ZIP+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   case $ZIP in
7639   [\\/]* | ?:[\\/]*)
7640   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7641   ;;
7642   *)
7643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648   for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658   ;;
7659 esac
7660 fi
7661 ZIP=$ac_cv_path_ZIP
7662 if test -n "$ZIP"; then
7663   { echo "$as_me:$LINENO: result: $ZIP" >&5
7664 echo "${ECHO_T}$ZIP" >&6; }
7665 else
7666   { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7668 fi
7669
7670
7671 for ac_prog in ocamlc
7672 do
7673   # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_OCAMLC+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   case $OCAMLC in
7681   [\\/]* | ?:[\\/]*)
7682   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7683   ;;
7684   *)
7685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700   ;;
7701 esac
7702 fi
7703 OCAMLC=$ac_cv_path_OCAMLC
7704 if test -n "$OCAMLC"; then
7705   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7706 echo "${ECHO_T}$OCAMLC" >&6; }
7707 else
7708   { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7710 fi
7711
7712
7713   test -n "$OCAMLC" && break
7714 done
7715
7716 for ac_prog in ocamlopt
7717 do
7718   # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7722 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   case $OCAMLOPT in
7726   [\\/]* | ?:[\\/]*)
7727   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7728   ;;
7729   *)
7730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735   for ac_exec_ext in '' $ac_executable_extensions; do
7736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7737     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745   ;;
7746 esac
7747 fi
7748 OCAMLOPT=$ac_cv_path_OCAMLOPT
7749 if test -n "$OCAMLOPT"; then
7750   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7751 echo "${ECHO_T}$OCAMLOPT" >&6; }
7752 else
7753   { echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6; }
7755 fi
7756
7757
7758   test -n "$OCAMLOPT" && break
7759 done
7760
7761 for ac_prog in ocamldep
7762 do
7763   # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7767 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   case $OCAMLDEP in
7771   [\\/]* | ?:[\\/]*)
7772   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7773   ;;
7774   *)
7775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780   for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790   ;;
7791 esac
7792 fi
7793 OCAMLDEP=$ac_cv_path_OCAMLDEP
7794 if test -n "$OCAMLDEP"; then
7795   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7796 echo "${ECHO_T}$OCAMLDEP" >&6; }
7797 else
7798   { echo "$as_me:$LINENO: result: no" >&5
7799 echo "${ECHO_T}no" >&6; }
7800 fi
7801
7802
7803   test -n "$OCAMLDEP" && break
7804 done
7805
7806 for ac_prog in ocamldoc
7807 do
7808   # Extract the first word of "$ac_prog", so it can be a program name with args.
7809 set dummy $ac_prog; ac_word=$2
7810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   case $OCAMLDOC in
7816   [\\/]* | ?:[\\/]*)
7817   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7818   ;;
7819   *)
7820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825   for ac_exec_ext in '' $ac_executable_extensions; do
7826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7827     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835   ;;
7836 esac
7837 fi
7838 OCAMLDOC=$ac_cv_path_OCAMLDOC
7839 if test -n "$OCAMLDOC"; then
7840   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7841 echo "${ECHO_T}$OCAMLDOC" >&6; }
7842 else
7843   { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7845 fi
7846
7847
7848   test -n "$OCAMLDOC" && break
7849 done
7850
7851 for ac_prog in gas as
7852 do
7853   # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857 if test "${ac_cv_path_GAS+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860   case $GAS in
7861   [\\/]* | ?:[\\/]*)
7862   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7863   ;;
7864   *)
7865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868   IFS=$as_save_IFS
7869   test -z "$as_dir" && as_dir=.
7870   for ac_exec_ext in '' $ac_executable_extensions; do
7871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7872     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874     break 2
7875   fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880   ;;
7881 esac
7882 fi
7883 GAS=$ac_cv_path_GAS
7884 if test -n "$GAS"; then
7885   { echo "$as_me:$LINENO: result: $GAS" >&5
7886 echo "${ECHO_T}$GAS" >&6; }
7887 else
7888   { echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6; }
7890 fi
7891
7892
7893   test -n "$GAS" && break
7894 done
7895
7896
7897 { echo "$as_me:$LINENO: checking for linker version" >&5
7898 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7899 if test "${llvm_cv_link_version+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902
7903    version_string="$(ld -v 2>&1 | head -1)"
7904
7905    # Check for ld64.
7906    if (echo "$version_string" | grep -q "ld64"); then
7907      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7908    else
7909      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7910    fi
7911
7912 fi
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7914 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7915
7916 cat >>confdefs.h <<_ACEOF
7917 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7918 _ACEOF
7919
7920
7921
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_r+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927    ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933   oldcflags="$CFLAGS"
7934   CFLAGS="$CFLAGS -Wl,-R."
7935   cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941
7942 int
7943 main ()
7944 {
7945
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7952 case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957   (eval "$ac_link") 2>conftest.er1
7958   ac_status=$?
7959   grep -v '^ *+' conftest.er1 >conftest.err
7960   rm -f conftest.er1
7961   cat conftest.err >&5
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7965   { (case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_try") 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; } &&
7974          { ac_try='test -s conftest$ac_exeext'
7975   { (case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_try") 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   llvm_cv_link_use_r=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989         llvm_cv_link_use_r=no
7990 fi
7991
7992 rm -f core conftest.err conftest.$ac_objext \
7993       conftest$ac_exeext conftest.$ac_ext
7994   CFLAGS="$oldcflags"
7995   ac_ext=c
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000
8001
8002 fi
8003 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8004 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8005 if test "$llvm_cv_link_use_r" = yes ; then
8006
8007 cat >>confdefs.h <<\_ACEOF
8008 #define HAVE_LINK_R 1
8009 _ACEOF
8010
8011   fi
8012
8013
8014 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8015 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8016 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019    ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025   oldcflags="$CFLAGS"
8026   CFLAGS="$CFLAGS -rdynamic"
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033
8034 int
8035 main ()
8036 {
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_link") 2>conftest.er1
8050   ac_status=$?
8051   grep -v '^ *+' conftest.er1 >conftest.err
8052   rm -f conftest.er1
8053   cat conftest.err >&5
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8057   { (case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062   (eval "$ac_try") 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; } &&
8066          { ac_try='test -s conftest$ac_exeext'
8067   { (case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_try") 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   llvm_cv_link_use_export_dynamic=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         llvm_cv_link_use_export_dynamic=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext \
8085       conftest$ac_exeext conftest.$ac_ext
8086   CFLAGS="$oldcflags"
8087   ac_ext=c
8088 ac_cpp='$CPP $CPPFLAGS'
8089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8092
8093
8094 fi
8095 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8096 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8097 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8098
8099 cat >>confdefs.h <<\_ACEOF
8100 #define HAVE_LINK_EXPORT_DYNAMIC 1
8101 _ACEOF
8102
8103   fi
8104
8105
8106 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8107 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8108 if test "${llvm_cv_link_use_version_script+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111    ac_ext=c
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117   oldcflags="$CFLAGS"
8118
8119   # The following code is from the autoconf manual,
8120   # "11.13: Limitations of Usual Tools".
8121   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8122   # Use mktemp if possible; otherwise fall back on mkdir,
8123   # with $RANDOM to make collisions less likely.
8124   : ${TMPDIR=/tmp}
8125   {
8126     tmp=`
8127       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8128     ` &&
8129     test -n "$tmp" && test -d "$tmp"
8130   } || {
8131     tmp=$TMPDIR/foo$$-$RANDOM
8132     (umask 077 && mkdir "$tmp")
8133   } || exit $?
8134
8135   echo "{" > "$tmp/export.map"
8136   echo "  global: main;" >> "$tmp/export.map"
8137   echo "  local: *;" >> "$tmp/export.map"
8138   echo "};" >> "$tmp/export.map"
8139
8140   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147
8148 int
8149 main ()
8150 {
8151
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_link") 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171   { (case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_try") 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; } &&
8180          { ac_try='test -s conftest$ac_exeext'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   llvm_cv_link_use_version_script=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195         llvm_cv_link_use_version_script=no
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext \
8199       conftest$ac_exeext conftest.$ac_ext
8200   rm "$tmp/export.map"
8201   rmdir "$tmp"
8202   CFLAGS="$oldcflags"
8203   ac_ext=c
8204 ac_cpp='$CPP $CPPFLAGS'
8205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8208
8209
8210 fi
8211 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8212 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8213 if test "$llvm_cv_link_use_version_script" = yes ; then
8214   HAVE_LINK_VERSION_SCRIPT=1
8215
8216   fi
8217
8218
8219
8220
8221 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8222 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8223 if test "${ac_cv_c_const+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232
8233 int
8234 main ()
8235 {
8236 /* FIXME: Include the comments suggested by Paul. */
8237 #ifndef __cplusplus
8238   /* Ultrix mips cc rejects this.  */
8239   typedef int charset[2];
8240   const charset x;
8241   /* SunOS 4.1.1 cc rejects this.  */
8242   char const *const *ccp;
8243   char **p;
8244   /* NEC SVR4.0.2 mips cc rejects this.  */
8245   struct point {int x, y;};
8246   static struct point const zero = {0,0};
8247   /* AIX XL C 1.02.0.0 rejects this.
8248      It does not let you subtract one const X* pointer from another in
8249      an arm of an if-expression whose if-part is not a constant
8250      expression */
8251   const char *g = "string";
8252   ccp = &g + (g ? g-g : 0);
8253   /* HPUX 7.0 cc rejects these. */
8254   ++ccp;
8255   p = (char**) ccp;
8256   ccp = (char const *const *) p;
8257   { /* SCO 3.2v4 cc rejects this.  */
8258     char *t;
8259     char const *s = 0 ? (char *) 0 : (char const *) 0;
8260
8261     *t++ = 0;
8262     if (s) return 0;
8263   }
8264   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8265     int x[] = {25, 17};
8266     const int *foo = &x[0];
8267     ++foo;
8268   }
8269   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8270     typedef const int *iptr;
8271     iptr p = 0;
8272     ++p;
8273   }
8274   { /* AIX XL C 1.02.0.0 rejects this saying
8275        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8276     struct s { int j; const int *ap[3]; };
8277     struct s *b; b->j = 5;
8278   }
8279   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8280     const int foo = 10;
8281     if (!foo) return 0;
8282   }
8283   return !x[0] && !zero.x;
8284 #endif
8285
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_compile") 2>conftest.er1
8298   ac_status=$?
8299   grep -v '^ *+' conftest.er1 >conftest.err
8300   rm -f conftest.er1
8301   cat conftest.err >&5
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   ac_cv_c_const=yes
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329         ac_cv_c_const=no
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8335 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8336 if test $ac_cv_c_const = no; then
8337
8338 cat >>confdefs.h <<\_ACEOF
8339 #define const
8340 _ACEOF
8341
8342 fi
8343
8344
8345
8346
8347
8348
8349 ac_header_dirent=no
8350 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8351   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8352 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8353 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363 #include <sys/types.h>
8364 #include <$ac_hdr>
8365
8366 int
8367 main ()
8368 {
8369 if ((DIR *) 0)
8370 return 0;
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8377 case "(($ac_try" in
8378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379   *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382   (eval "$ac_compile") 2>conftest.er1
8383   ac_status=$?
8384   grep -v '^ *+' conftest.er1 >conftest.err
8385   rm -f conftest.er1
8386   cat conftest.err >&5
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); } &&
8389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8390   { (case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395   (eval "$ac_try") 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; } &&
8399          { ac_try='test -s conftest.$ac_objext'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; }; then
8409   eval "$as_ac_Header=yes"
8410 else
8411   echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414         eval "$as_ac_Header=no"
8415 fi
8416
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 fi
8419 ac_res=`eval echo '${'$as_ac_Header'}'`
8420                { echo "$as_me:$LINENO: result: $ac_res" >&5
8421 echo "${ECHO_T}$ac_res" >&6; }
8422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8423   cat >>confdefs.h <<_ACEOF
8424 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8425 _ACEOF
8426
8427 ac_header_dirent=$ac_hdr; break
8428 fi
8429
8430 done
8431 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8432 if test $ac_header_dirent = dirent.h; then
8433   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8434 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8435 if test "${ac_cv_search_opendir+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   ac_func_search_save_LIBS=$LIBS
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 /* Override any GCC internal prototype to avoid an error.
8447    Use char because int might match the return type of a GCC
8448    builtin and then its argument prototype would still apply.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 char opendir ();
8453 int
8454 main ()
8455 {
8456 return opendir ();
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 for ac_lib in '' dir; do
8462   if test -z "$ac_lib"; then
8463     ac_res="none required"
8464   else
8465     ac_res=-l$ac_lib
8466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8467   fi
8468   rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8470 case "(($ac_try" in
8471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472   *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475   (eval "$ac_link") 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483   { (case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_try") 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest$ac_exeext'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   ac_cv_search_opendir=$ac_res
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext \
8511       conftest$ac_exeext
8512   if test "${ac_cv_search_opendir+set}" = set; then
8513   break
8514 fi
8515 done
8516 if test "${ac_cv_search_opendir+set}" = set; then
8517   :
8518 else
8519   ac_cv_search_opendir=no
8520 fi
8521 rm conftest.$ac_ext
8522 LIBS=$ac_func_search_save_LIBS
8523 fi
8524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8526 ac_res=$ac_cv_search_opendir
8527 if test "$ac_res" != no; then
8528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8529
8530 fi
8531
8532 else
8533   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8534 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8535 if test "${ac_cv_search_opendir+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538   ac_func_search_save_LIBS=$LIBS
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545
8546 /* Override any GCC internal prototype to avoid an error.
8547    Use char because int might match the return type of a GCC
8548    builtin and then its argument prototype would still apply.  */
8549 #ifdef __cplusplus
8550 extern "C"
8551 #endif
8552 char opendir ();
8553 int
8554 main ()
8555 {
8556 return opendir ();
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 for ac_lib in '' x; do
8562   if test -z "$ac_lib"; then
8563     ac_res="none required"
8564   else
8565     ac_res=-l$ac_lib
8566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8567   fi
8568   rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_link") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } &&
8582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583   { (case "(($ac_try" in
8584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585   *) ac_try_echo=$ac_try;;
8586 esac
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588   (eval "$ac_try") 2>&5
8589   ac_status=$?
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); }; } &&
8592          { ac_try='test -s conftest$ac_exeext'
8593   { (case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_try") 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; }; then
8602   ac_cv_search_opendir=$ac_res
8603 else
8604   echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8606
8607
8608 fi
8609
8610 rm -f core conftest.err conftest.$ac_objext \
8611       conftest$ac_exeext
8612   if test "${ac_cv_search_opendir+set}" = set; then
8613   break
8614 fi
8615 done
8616 if test "${ac_cv_search_opendir+set}" = set; then
8617   :
8618 else
8619   ac_cv_search_opendir=no
8620 fi
8621 rm conftest.$ac_ext
8622 LIBS=$ac_func_search_save_LIBS
8623 fi
8624 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8625 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8626 ac_res=$ac_cv_search_opendir
8627 if test "$ac_res" != no; then
8628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8629
8630 fi
8631
8632 fi
8633
8634
8635 for ac_header in dlfcn.h
8636 do
8637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8639   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8642   echo $ECHO_N "(cached) $ECHO_C" >&6
8643 fi
8644 ac_res=`eval echo '${'$as_ac_Header'}'`
8645                { echo "$as_me:$LINENO: result: $ac_res" >&5
8646 echo "${ECHO_T}$ac_res" >&6; }
8647 else
8648   # Is the header compilable?
8649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657 $ac_includes_default
8658 #include <$ac_header>
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664   *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667   (eval "$ac_compile") 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675   { (case "(($ac_try" in
8676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677   *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680   (eval "$ac_try") 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; } &&
8684          { ac_try='test -s conftest.$ac_objext'
8685   { (case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_try") 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; }; then
8694   ac_header_compiler=yes
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699         ac_header_compiler=no
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8704 echo "${ECHO_T}$ac_header_compiler" >&6; }
8705
8706 # Is the header present?
8707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h.  */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h.  */
8715 #include <$ac_header>
8716 _ACEOF
8717 if { (ac_try="$ac_cpp conftest.$ac_ext"
8718 case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } >/dev/null; then
8730   if test -s conftest.err; then
8731     ac_cpp_err=$ac_c_preproc_warn_flag
8732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8733   else
8734     ac_cpp_err=
8735   fi
8736 else
8737   ac_cpp_err=yes
8738 fi
8739 if test -z "$ac_cpp_err"; then
8740   ac_header_preproc=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745   ac_header_preproc=no
8746 fi
8747
8748 rm -f conftest.err conftest.$ac_ext
8749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750 echo "${ECHO_T}$ac_header_preproc" >&6; }
8751
8752 # So?  What about this header?
8753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754   yes:no: )
8755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759     ac_header_preproc=yes
8760     ;;
8761   no:yes:* )
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774     ( cat <<\_ASBOX
8775 ## ------------------------------------ ##
8776 ## Report this to http://llvm.org/bugs/ ##
8777 ## ------------------------------------ ##
8778 _ASBOX
8779      ) | sed "s/^/$as_me: WARNING:     /" >&2
8780     ;;
8781 esac
8782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   eval "$as_ac_Header=\$ac_header_preproc"
8788 fi
8789 ac_res=`eval echo '${'$as_ac_Header'}'`
8790                { echo "$as_me:$LINENO: result: $ac_res" >&5
8791 echo "${ECHO_T}$ac_res" >&6; }
8792
8793 fi
8794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8795   cat >>confdefs.h <<_ACEOF
8796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797 _ACEOF
8798
8799 fi
8800
8801 done
8802
8803 # Check whether --enable-ltdl-install was given.
8804 if test "${enable_ltdl_install+set}" = set; then
8805   enableval=$enable_ltdl_install;
8806 fi
8807
8808
8809
8810
8811 if test x"${enable_ltdl_install-no}" != xno; then
8812   INSTALL_LTDL_TRUE=
8813   INSTALL_LTDL_FALSE='#'
8814 else
8815   INSTALL_LTDL_TRUE='#'
8816   INSTALL_LTDL_FALSE=
8817 fi
8818
8819
8820
8821 if test x"${enable_ltdl_convenience-no}" != xno; then
8822   CONVENIENCE_LTDL_TRUE=
8823   CONVENIENCE_LTDL_FALSE='#'
8824 else
8825   CONVENIENCE_LTDL_TRUE='#'
8826   CONVENIENCE_LTDL_FALSE=
8827 fi
8828
8829
8830 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8831 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8832 library_names_spec=
8833 libname_spec='lib$name'
8834 soname_spec=
8835 shrext_cmds=".so"
8836 postinstall_cmds=
8837 postuninstall_cmds=
8838 finish_cmds=
8839 finish_eval=
8840 shlibpath_var=
8841 shlibpath_overrides_runpath=unknown
8842 version_type=none
8843 dynamic_linker="$host_os ld.so"
8844 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8845 if test "$GCC" = yes; then
8846   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8847   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8848     # if the path contains ";" then we assume it to be the separator
8849     # otherwise default to the standard path separator (i.e. ":") - it is
8850     # assumed that no part of a normal pathname contains ";" but that should
8851     # okay in the real world where ";" in dirpaths is itself problematic.
8852     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8853   else
8854     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8855   fi
8856 else
8857   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8858 fi
8859 need_lib_prefix=unknown
8860 hardcode_into_libs=no
8861
8862 # when you set need_version to no, make sure it does not cause -set_version
8863 # flags to be left without arguments
8864 need_version=unknown
8865
8866 case $host_os in
8867 aix3*)
8868   version_type=linux
8869   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8870   shlibpath_var=LIBPATH
8871
8872   # AIX 3 has no versioning support, so we append a major version to the name.
8873   soname_spec='${libname}${release}${shared_ext}$major'
8874   ;;
8875
8876 aix4* | aix5*)
8877   version_type=linux
8878   need_lib_prefix=no
8879   need_version=no
8880   hardcode_into_libs=yes
8881   if test "$host_cpu" = ia64; then
8882     # AIX 5 supports IA64
8883     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8884     shlibpath_var=LD_LIBRARY_PATH
8885   else
8886     # With GCC up to 2.95.x, collect2 would create an import file
8887     # for dependence libraries.  The import file would start with
8888     # the line `#! .'.  This would cause the generated library to
8889     # depend on `.', always an invalid library.  This was fixed in
8890     # development snapshots of GCC prior to 3.0.
8891     case $host_os in
8892       aix4 | aix4.[01] | aix4.[01].*)
8893       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8894            echo ' yes '
8895            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8896         :
8897       else
8898         can_build_shared=no
8899       fi
8900       ;;
8901     esac
8902     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8903     # soname into executable. Probably we can add versioning support to
8904     # collect2, so additional links can be useful in future.
8905     if test "$aix_use_runtimelinking" = yes; then
8906       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8907       # instead of lib<name>.a to let people know that these are not
8908       # typical AIX shared libraries.
8909       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910     else
8911       # We preserve .a as extension for shared libraries through AIX4.2
8912       # and later when we are not doing run time linking.
8913       library_names_spec='${libname}${release}.a $libname.a'
8914       soname_spec='${libname}${release}${shared_ext}$major'
8915     fi
8916     shlibpath_var=LIBPATH
8917   fi
8918   ;;
8919
8920 amigaos*)
8921   library_names_spec='$libname.ixlibrary $libname.a'
8922   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8923   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'
8924   ;;
8925
8926 beos*)
8927   library_names_spec='${libname}${shared_ext}'
8928   dynamic_linker="$host_os ld.so"
8929   shlibpath_var=LIBRARY_PATH
8930   ;;
8931
8932 bsdi[45]*)
8933   version_type=linux
8934   need_version=no
8935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936   soname_spec='${libname}${release}${shared_ext}$major'
8937   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8938   shlibpath_var=LD_LIBRARY_PATH
8939   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8940   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8941   # the default ld.so.conf also contains /usr/contrib/lib and
8942   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8943   # libtool to hard-code these into programs
8944   ;;
8945
8946 cygwin* | mingw* | pw32*)
8947   version_type=windows
8948   shrext_cmds=".dll"
8949   need_version=no
8950   need_lib_prefix=no
8951
8952   case $GCC,$host_os in
8953   yes,cygwin* | yes,mingw* | yes,pw32*)
8954     library_names_spec='$libname.dll.a'
8955     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8956     postinstall_cmds='base_file=`basename \${file}`~
8957       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8958       dldir=$destdir/`dirname \$dlpath`~
8959       test -d \$dldir || mkdir -p \$dldir~
8960       $install_prog $dir/$dlname \$dldir/$dlname~
8961       chmod a+x \$dldir/$dlname'
8962     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8963       dlpath=$dir/\$dldll~
8964        $rm \$dlpath'
8965     shlibpath_overrides_runpath=yes
8966
8967     case $host_os in
8968     cygwin*)
8969       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8970       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8972       ;;
8973     mingw*)
8974       # MinGW DLLs use traditional 'lib' prefix
8975       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8978         # It is most probably a Windows format PATH printed by
8979         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8980         # path with ; separators, and with drive letters. We can handle the
8981         # drive letters (cygwin fileutils understands them), so leave them,
8982         # especially as we might pass files found there to a mingw objdump,
8983         # which wouldn't understand a cygwinified path. Ahh.
8984         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8985       else
8986         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8987       fi
8988       ;;
8989     pw32*)
8990       # pw32 DLLs use 'pw' prefix rather than 'lib'
8991       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992       ;;
8993     esac
8994     ;;
8995
8996   *)
8997     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8998     ;;
8999   esac
9000   dynamic_linker='Win32 ld.exe'
9001   # FIXME: first we should search . and the directory the executable is in
9002   shlibpath_var=PATH
9003   ;;
9004
9005 darwin* | rhapsody*)
9006   dynamic_linker="$host_os dyld"
9007   version_type=darwin
9008   need_lib_prefix=no
9009   need_version=no
9010   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9011   soname_spec='${libname}${release}${major}$shared_ext'
9012   shlibpath_overrides_runpath=yes
9013   shlibpath_var=DYLD_LIBRARY_PATH
9014   shrext_cmds='.dylib'
9015   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9016   if test "$GCC" = yes; then
9017     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"`
9018   else
9019     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9020   fi
9021   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9022   ;;
9023
9024 dgux*)
9025   version_type=linux
9026   need_lib_prefix=no
9027   need_version=no
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9029   soname_spec='${libname}${release}${shared_ext}$major'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   ;;
9032
9033 freebsd1.*)
9034   dynamic_linker=no
9035   ;;
9036
9037 kfreebsd*-gnu)
9038   version_type=linux
9039   need_lib_prefix=no
9040   need_version=no
9041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9042   soname_spec='${libname}${release}${shared_ext}$major'
9043   shlibpath_var=LD_LIBRARY_PATH
9044   shlibpath_overrides_runpath=no
9045   hardcode_into_libs=yes
9046   dynamic_linker='GNU ld.so'
9047   ;;
9048
9049 freebsd* | dragonfly*)
9050   # DragonFly does not have aout.  When/if they implement a new
9051   # versioning mechanism, adjust this.
9052   if test -x /usr/bin/objformat; then
9053     objformat=`/usr/bin/objformat`
9054   else
9055     case $host_os in
9056     freebsd[123].*) objformat=aout ;;
9057     *) objformat=elf ;;
9058     esac
9059   fi
9060   version_type=freebsd-$objformat
9061   case $version_type in
9062     freebsd-elf*)
9063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064       need_version=no
9065       need_lib_prefix=no
9066       ;;
9067     freebsd-*)
9068       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9069       need_version=yes
9070       ;;
9071   esac
9072   shlibpath_var=LD_LIBRARY_PATH
9073   case $host_os in
9074   freebsd2.*)
9075     shlibpath_overrides_runpath=yes
9076     ;;
9077   freebsd3.[01]* | freebsdelf3.[01]*)
9078     shlibpath_overrides_runpath=yes
9079     hardcode_into_libs=yes
9080     ;;
9081   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9082   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9083     shlibpath_overrides_runpath=no
9084     hardcode_into_libs=yes
9085     ;;
9086   freebsd*) # from 4.6 on
9087     shlibpath_overrides_runpath=yes
9088     hardcode_into_libs=yes
9089     ;;
9090   esac
9091   ;;
9092
9093 gnu*)
9094   version_type=linux
9095   need_lib_prefix=no
9096   need_version=no
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   shlibpath_var=LD_LIBRARY_PATH
9100   hardcode_into_libs=yes
9101   ;;
9102
9103 hpux9* | hpux10* | hpux11*)
9104   # Give a soname corresponding to the major version so that dld.sl refuses to
9105   # link against other versions.
9106   version_type=sunos
9107   need_lib_prefix=no
9108   need_version=no
9109   case $host_cpu in
9110   ia64*)
9111     shrext_cmds='.so'
9112     hardcode_into_libs=yes
9113     dynamic_linker="$host_os dld.so"
9114     shlibpath_var=LD_LIBRARY_PATH
9115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117     soname_spec='${libname}${release}${shared_ext}$major'
9118     if test "X$HPUX_IA64_MODE" = X32; then
9119       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9120     else
9121       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9122     fi
9123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9124     ;;
9125    hppa*64*)
9126      shrext_cmds='.sl'
9127      hardcode_into_libs=yes
9128      dynamic_linker="$host_os dld.sl"
9129      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9130      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9131      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132      soname_spec='${libname}${release}${shared_ext}$major'
9133      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9134      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9135      ;;
9136    *)
9137     shrext_cmds='.sl'
9138     dynamic_linker="$host_os dld.sl"
9139     shlibpath_var=SHLIB_PATH
9140     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142     soname_spec='${libname}${release}${shared_ext}$major'
9143     ;;
9144   esac
9145   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9146   postinstall_cmds='chmod 555 $lib'
9147   ;;
9148
9149 interix3*)
9150   version_type=linux
9151   need_lib_prefix=no
9152   need_version=no
9153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9154   soname_spec='${libname}${release}${shared_ext}$major'
9155   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   shlibpath_overrides_runpath=no
9158   hardcode_into_libs=yes
9159   ;;
9160
9161 irix5* | irix6* | nonstopux*)
9162   case $host_os in
9163     nonstopux*) version_type=nonstopux ;;
9164     *)
9165         if test "$lt_cv_prog_gnu_ld" = yes; then
9166                 version_type=linux
9167         else
9168                 version_type=irix
9169         fi ;;
9170   esac
9171   need_lib_prefix=no
9172   need_version=no
9173   soname_spec='${libname}${release}${shared_ext}$major'
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9175   case $host_os in
9176   irix5* | nonstopux*)
9177     libsuff= shlibsuff=
9178     ;;
9179   *)
9180     case $LD in # libtool.m4 will add one of these switches to LD
9181     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9182       libsuff= shlibsuff= libmagic=32-bit;;
9183     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9184       libsuff=32 shlibsuff=N32 libmagic=N32;;
9185     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9186       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9187     *) libsuff= shlibsuff= libmagic=never-match;;
9188     esac
9189     ;;
9190   esac
9191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9192   shlibpath_overrides_runpath=no
9193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9195   hardcode_into_libs=yes
9196   ;;
9197
9198 # No shared lib support for Linux oldld, aout, or coff.
9199 linux*oldld* | linux*aout* | linux*coff*)
9200   dynamic_linker=no
9201   ;;
9202
9203 # This must be Linux ELF.
9204 linux*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   shlibpath_overrides_runpath=no
9213   # This implies no fast_install, which is unacceptable.
9214   # Some rework will be needed to allow for fast_install
9215   # before this can be enabled.
9216   hardcode_into_libs=yes
9217
9218   # Append ld.so.conf contents to the search path
9219   if test -f /etc/ld.so.conf; then
9220     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' ' '`
9221     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9222   fi
9223
9224   # We used to test for /lib/ld.so.1 and disable shared libraries on
9225   # powerpc, because MkLinux only supported shared libraries with the
9226   # GNU dynamic linker.  Since this was broken with cross compilers,
9227   # most powerpc-linux boxes support dynamic linking these days and
9228   # people can always --disable-shared, the test was removed, and we
9229   # assume the GNU/Linux dynamic linker is in use.
9230   dynamic_linker='GNU/Linux ld.so'
9231   ;;
9232
9233 knetbsd*-gnu)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   shlibpath_var=LD_LIBRARY_PATH
9240   shlibpath_overrides_runpath=no
9241   hardcode_into_libs=yes
9242   dynamic_linker='GNU ld.so'
9243   ;;
9244
9245 netbsd*)
9246   version_type=sunos
9247   need_lib_prefix=no
9248   need_version=no
9249   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9251     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9252     dynamic_linker='NetBSD (a.out) ld.so'
9253   else
9254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9255     soname_spec='${libname}${release}${shared_ext}$major'
9256     dynamic_linker='NetBSD ld.elf_so'
9257   fi
9258   shlibpath_var=LD_LIBRARY_PATH
9259   shlibpath_overrides_runpath=yes
9260   hardcode_into_libs=yes
9261   ;;
9262
9263 newsos6)
9264   version_type=linux
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   shlibpath_overrides_runpath=yes
9268   ;;
9269
9270 nto-qnx*)
9271   version_type=linux
9272   need_lib_prefix=no
9273   need_version=no
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   shlibpath_overrides_runpath=yes
9278   ;;
9279
9280 openbsd* | bitrig*)
9281   version_type=sunos
9282   sys_lib_dlsearch_path_spec="/usr/lib"
9283   need_lib_prefix=no
9284   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9285   case $host_os in
9286     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9287     *)                         need_version=no  ;;
9288   esac
9289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9291   shlibpath_var=LD_LIBRARY_PATH
9292   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9293     case $host_os in
9294       openbsd2.[89] | openbsd2.[89].*)
9295         shlibpath_overrides_runpath=no
9296         ;;
9297       *)
9298         shlibpath_overrides_runpath=yes
9299         ;;
9300       esac
9301   else
9302     shlibpath_overrides_runpath=yes
9303   fi
9304   ;;
9305
9306 os2*)
9307   libname_spec='$name'
9308   shrext_cmds=".dll"
9309   need_lib_prefix=no
9310   library_names_spec='$libname${shared_ext} $libname.a'
9311   dynamic_linker='OS/2 ld.exe'
9312   shlibpath_var=LIBPATH
9313   ;;
9314
9315 osf3* | osf4* | osf5*)
9316   version_type=osf
9317   need_lib_prefix=no
9318   need_version=no
9319   soname_spec='${libname}${release}${shared_ext}$major'
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9323   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9324   ;;
9325
9326 solaris*)
9327   version_type=linux
9328   need_lib_prefix=no
9329   need_version=no
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331   soname_spec='${libname}${release}${shared_ext}$major'
9332   shlibpath_var=LD_LIBRARY_PATH
9333   shlibpath_overrides_runpath=yes
9334   hardcode_into_libs=yes
9335   # ldd complains unless libraries are executable
9336   postinstall_cmds='chmod +x $lib'
9337   ;;
9338
9339 sunos4*)
9340   version_type=sunos
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9342   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9343   shlibpath_var=LD_LIBRARY_PATH
9344   shlibpath_overrides_runpath=yes
9345   if test "$with_gnu_ld" = yes; then
9346     need_lib_prefix=no
9347   fi
9348   need_version=yes
9349   ;;
9350
9351 sysv4 | sysv4.3*)
9352   version_type=linux
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354   soname_spec='${libname}${release}${shared_ext}$major'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   case $host_vendor in
9357     sni)
9358       shlibpath_overrides_runpath=no
9359       need_lib_prefix=no
9360       export_dynamic_flag_spec='${wl}-Blargedynsym'
9361       runpath_var=LD_RUN_PATH
9362       ;;
9363     siemens)
9364       need_lib_prefix=no
9365       ;;
9366     motorola)
9367       need_lib_prefix=no
9368       need_version=no
9369       shlibpath_overrides_runpath=no
9370       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9371       ;;
9372   esac
9373   ;;
9374
9375 sysv4*MP*)
9376   if test -d /usr/nec ;then
9377     version_type=linux
9378     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9379     soname_spec='$libname${shared_ext}.$major'
9380     shlibpath_var=LD_LIBRARY_PATH
9381   fi
9382   ;;
9383
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9385   version_type=freebsd-elf
9386   need_lib_prefix=no
9387   need_version=no
9388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9389   soname_spec='${libname}${release}${shared_ext}$major'
9390   shlibpath_var=LD_LIBRARY_PATH
9391   hardcode_into_libs=yes
9392   if test "$with_gnu_ld" = yes; then
9393     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9394     shlibpath_overrides_runpath=no
9395   else
9396     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9397     shlibpath_overrides_runpath=yes
9398     case $host_os in
9399       sco3.2v5*)
9400         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9401         ;;
9402     esac
9403   fi
9404   sys_lib_dlsearch_path_spec='/usr/lib'
9405   ;;
9406
9407 uts4*)
9408   version_type=linux
9409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410   soname_spec='${libname}${release}${shared_ext}$major'
9411   shlibpath_var=LD_LIBRARY_PATH
9412   ;;
9413
9414 *)
9415   dynamic_linker=no
9416   ;;
9417 esac
9418 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9419 echo "${ECHO_T}$dynamic_linker" >&6; }
9420 test "$dynamic_linker" = no && can_build_shared=no
9421
9422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9423 if test "$GCC" = yes; then
9424   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9425 fi
9426
9427
9428 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9429 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9430 if test "${libltdl_cv_shlibext+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433
9434 module=yes
9435 eval libltdl_cv_shlibext=$shrext_cmds
9436
9437 fi
9438 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9439 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9440 if test -n "$libltdl_cv_shlibext"; then
9441
9442 cat >>confdefs.h <<_ACEOF
9443 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9444 _ACEOF
9445
9446 fi
9447
9448
9449 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9450 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9451 if test "${libltdl_cv_sys_search_path+set}" = set; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9455 fi
9456 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9457 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9458 if test -n "$libltdl_cv_sys_search_path"; then
9459   sys_search_path=
9460   for dir in $libltdl_cv_sys_search_path; do
9461     if test -z "$sys_search_path"; then
9462       sys_search_path="$dir"
9463     else
9464       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9465     fi
9466   done
9467
9468 cat >>confdefs.h <<_ACEOF
9469 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9470 _ACEOF
9471
9472 fi
9473
9474 { echo "$as_me:$LINENO: checking for objdir" >&5
9475 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9476 if test "${libltdl_cv_objdir+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   libltdl_cv_objdir="$objdir"
9480   if test -n "$objdir"; then
9481     :
9482   else
9483     rm -f .libs 2>/dev/null
9484     mkdir .libs 2>/dev/null
9485     if test -d .libs; then
9486       libltdl_cv_objdir=.libs
9487     else
9488       # MS-DOS does not allow filenames that begin with a dot.
9489       libltdl_cv_objdir=_libs
9490     fi
9491   rmdir .libs 2>/dev/null
9492   fi
9493
9494 fi
9495 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9496 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9497
9498 cat >>confdefs.h <<_ACEOF
9499 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9500 _ACEOF
9501
9502
9503
9504
9505
9506
9507 # Check for command to grab the raw symbol name followed by C symbol from nm.
9508 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9509 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513
9514 # These are sane defaults that work on at least a few old systems.
9515 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9516
9517 # Character class describing NM global symbol codes.
9518 symcode='[BCDEGRST]'
9519
9520 # Regexp to match symbols that can be accessed directly from C.
9521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9522
9523 # Transform an extracted symbol line into a proper C declaration
9524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9525
9526 # Transform an extracted symbol line into symbol name and symbol address
9527 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'"
9528
9529 # Define system-specific variables.
9530 case $host_os in
9531 aix*)
9532   symcode='[BCDT]'
9533   ;;
9534 cygwin* | mingw* | pw32*)
9535   symcode='[ABCDGISTW]'
9536   ;;
9537 hpux*) # Its linker distinguishes data from code symbols
9538   if test "$host_cpu" = ia64; then
9539     symcode='[ABCDEGRST]'
9540   fi
9541   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9542   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'"
9543   ;;
9544 linux*)
9545   if test "$host_cpu" = ia64; then
9546     symcode='[ABCDGIRSTW]'
9547     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9548     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'"
9549   fi
9550   ;;
9551 irix* | nonstopux*)
9552   symcode='[BCDEGRST]'
9553   ;;
9554 osf*)
9555   symcode='[BCDEGQRST]'
9556   ;;
9557 solaris*)
9558   symcode='[BDRT]'
9559   ;;
9560 sco3.2v5*)
9561   symcode='[DT]'
9562   ;;
9563 sysv4.2uw2*)
9564   symcode='[DT]'
9565   ;;
9566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9567   symcode='[ABDT]'
9568   ;;
9569 sysv4)
9570   symcode='[DFNSTU]'
9571   ;;
9572 esac
9573
9574 # Handle CRLF in mingw tool chain
9575 opt_cr=
9576 case $build_os in
9577 mingw*)
9578   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9579   ;;
9580 esac
9581
9582 # If we're using GNU nm, then use its standard symbol codes.
9583 case `$NM -V 2>&1` in
9584 *GNU* | *'with BFD'*)
9585   symcode='[ABCDGIRSTW]' ;;
9586 esac
9587
9588 # Try without a prefix undercore, then with it.
9589 for ac_symprfx in "" "_"; do
9590
9591   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9592   symxfrm="\\1 $ac_symprfx\\2 \\2"
9593
9594   # Write the raw and C identifiers.
9595   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9596
9597   # Check to see that the pipe works correctly.
9598   pipe_works=no
9599
9600   rm -f conftest*
9601   cat > conftest.$ac_ext <<EOF
9602 #ifdef __cplusplus
9603 extern "C" {
9604 #endif
9605 char nm_test_var;
9606 void nm_test_func(){}
9607 #ifdef __cplusplus
9608 }
9609 #endif
9610 int main(){nm_test_var='a';nm_test_func();return(0);}
9611 EOF
9612
9613   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614   (eval $ac_compile) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; then
9618     # Now try to grab the symbols.
9619     nlist=conftest.nm
9620     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9621   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } && test -s "$nlist"; then
9625       # Try sorting and uniquifying the output.
9626       if sort "$nlist" | uniq > "$nlist"T; then
9627         mv -f "$nlist"T "$nlist"
9628       else
9629         rm -f "$nlist"T
9630       fi
9631
9632       # Make sure that we snagged all the symbols we need.
9633       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9634         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9635           cat <<EOF > conftest.$ac_ext
9636 #ifdef __cplusplus
9637 extern "C" {
9638 #endif
9639
9640 EOF
9641           # Now generate the symbol file.
9642           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9643
9644           cat <<EOF >> conftest.$ac_ext
9645 #if defined (__STDC__) && __STDC__
9646 # define lt_ptr_t void *
9647 #else
9648 # define lt_ptr_t char *
9649 # define const
9650 #endif
9651
9652 /* The mapping between symbol names and symbols. */
9653 const struct {
9654   const char *name;
9655   lt_ptr_t address;
9656 }
9657 lt_preloaded_symbols[] =
9658 {
9659 EOF
9660           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9661           cat <<\EOF >> conftest.$ac_ext
9662   {0, (lt_ptr_t) 0}
9663 };
9664
9665 #ifdef __cplusplus
9666 }
9667 #endif
9668 EOF
9669           # Now try linking the two files.
9670           mv conftest.$ac_objext conftstm.$ac_objext
9671           lt_save_LIBS="$LIBS"
9672           lt_save_CFLAGS="$CFLAGS"
9673           LIBS="conftstm.$ac_objext"
9674           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9675           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9680             pipe_works=yes
9681           fi
9682           LIBS="$lt_save_LIBS"
9683           CFLAGS="$lt_save_CFLAGS"
9684         else
9685           echo "cannot find nm_test_func in $nlist" >&5
9686         fi
9687       else
9688         echo "cannot find nm_test_var in $nlist" >&5
9689       fi
9690     else
9691       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9692     fi
9693   else
9694     echo "$progname: failed program was:" >&5
9695     cat conftest.$ac_ext >&5
9696   fi
9697   rm -f conftest* conftst*
9698
9699   # Do not use the global_symbol_pipe unless it works.
9700   if test "$pipe_works" = yes; then
9701     break
9702   else
9703     lt_cv_sys_global_symbol_pipe=
9704   fi
9705 done
9706
9707 fi
9708
9709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9710   lt_cv_sys_global_symbol_to_cdecl=
9711 fi
9712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9713   { echo "$as_me:$LINENO: result: failed" >&5
9714 echo "${ECHO_T}failed" >&6; }
9715 else
9716   { echo "$as_me:$LINENO: result: ok" >&5
9717 echo "${ECHO_T}ok" >&6; }
9718 fi
9719
9720
9721 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9722 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9723 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9727     libltdl_cv_preloaded_symbols=yes
9728   else
9729     libltdl_cv_preloaded_symbols=no
9730   fi
9731
9732 fi
9733 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9734 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9735 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define HAVE_PRELOADED_SYMBOLS 1
9739 _ACEOF
9740
9741 fi
9742
9743 LIBADD_DL=
9744
9745 ac_ext=c
9746 ac_cpp='$CPP $CPPFLAGS'
9747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9750
9751
9752 { echo "$as_me:$LINENO: checking for shl_load" >&5
9753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9754 if test "${ac_cv_func_shl_load+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9765 #define shl_load innocuous_shl_load
9766
9767 /* System header to define __stub macros and hopefully few prototypes,
9768     which can conflict with char shl_load (); below.
9769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770     <limits.h> exists even on freestanding compilers.  */
9771
9772 #ifdef __STDC__
9773 # include <limits.h>
9774 #else
9775 # include <assert.h>
9776 #endif
9777
9778 #undef shl_load
9779
9780 /* Override any GCC internal prototype to avoid an error.
9781    Use char because int might match the return type of a GCC
9782    builtin and then its argument prototype would still apply.  */
9783 #ifdef __cplusplus
9784 extern "C"
9785 #endif
9786 char shl_load ();
9787 /* The GNU C library defines this for functions which it implements
9788     to always fail with ENOSYS.  Some functions are actually named
9789     something starting with __ and the normal name is an alias.  */
9790 #if defined __stub_shl_load || defined __stub___shl_load
9791 choke me
9792 #endif
9793
9794 int
9795 main ()
9796 {
9797 return shl_load ();
9798   ;
9799   return 0;
9800 }
9801 _ACEOF
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (ac_try="$ac_link"
9804 case "(($ac_try" in
9805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806   *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809   (eval "$ac_link") 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9817   { (case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_try") 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; } &&
9826          { ac_try='test -s conftest$ac_exeext'
9827   { (case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_try") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_cv_func_shl_load=yes
9837 else
9838   echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841         ac_cv_func_shl_load=no
9842 fi
9843
9844 rm -f core conftest.err conftest.$ac_objext \
9845       conftest$ac_exeext conftest.$ac_ext
9846 fi
9847 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9848 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9849 if test $ac_cv_func_shl_load = yes; then
9850
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_SHL_LOAD 1
9853 _ACEOF
9854
9855 else
9856   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-ldld  $LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869
9870 /* Override any GCC internal prototype to avoid an error.
9871    Use char because int might match the return type of a GCC
9872    builtin and then its argument prototype would still apply.  */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 char shl_load ();
9877 int
9878 main ()
9879 {
9880 return shl_load ();
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (ac_try="$ac_link"
9887 case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_link") 2>conftest.er1
9893   ac_status=$?
9894   grep -v '^ *+' conftest.er1 >conftest.err
9895   rm -f conftest.er1
9896   cat conftest.err >&5
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); } &&
9899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9900   { (case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_try") 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; } &&
9909          { ac_try='test -s conftest$ac_exeext'
9910   { (case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_try") 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; }; then
9919   ac_cv_lib_dld_shl_load=yes
9920 else
9921   echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924         ac_cv_lib_dld_shl_load=no
9925 fi
9926
9927 rm -f core conftest.err conftest.$ac_objext \
9928       conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9930 fi
9931 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9932 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9933 if test $ac_cv_lib_dld_shl_load = yes; then
9934
9935 cat >>confdefs.h <<\_ACEOF
9936 #define HAVE_SHL_LOAD 1
9937 _ACEOF
9938
9939         LIBADD_DL="$LIBADD_DL -ldld"
9940 else
9941   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   ac_check_lib_save_LIBS=$LIBS
9947 LIBS="-ldl  $LIBS"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954
9955 /* Override any GCC internal prototype to avoid an error.
9956    Use char because int might match the return type of a GCC
9957    builtin and then its argument prototype would still apply.  */
9958 #ifdef __cplusplus
9959 extern "C"
9960 #endif
9961 char dlopen ();
9962 int
9963 main ()
9964 {
9965 return dlopen ();
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9972 case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_link") 2>conftest.er1
9978   ac_status=$?
9979   grep -v '^ *+' conftest.er1 >conftest.err
9980   rm -f conftest.er1
9981   cat conftest.err >&5
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985   { (case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_try") 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest$ac_exeext'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_cv_lib_dl_dlopen=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         ac_cv_lib_dl_dlopen=no
10010 fi
10011
10012 rm -f core conftest.err conftest.$ac_objext \
10013       conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10015 fi
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10018 if test $ac_cv_lib_dl_dlopen = yes; then
10019
10020 cat >>confdefs.h <<\_ACEOF
10021 #define HAVE_LIBDL 1
10022 _ACEOF
10023
10024                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10025 else
10026   cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h.  */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h.  */
10032 #if HAVE_DLFCN_H
10033 #  include <dlfcn.h>
10034 #endif
10035
10036 int
10037 main ()
10038 {
10039 dlopen(0, 0);
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048   *) ac_try_echo=$ac_try;;
10049 esac
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051   (eval "$ac_link") 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; } &&
10068          { ac_try='test -s conftest$ac_exeext'
10069   { (case "(($ac_try" in
10070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071   *) ac_try_echo=$ac_try;;
10072 esac
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074   (eval "$ac_try") 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; }; then
10078
10079 cat >>confdefs.h <<\_ACEOF
10080 #define HAVE_LIBDL 1
10081 _ACEOF
10082  libltdl_cv_func_dlopen="yes"
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lsvld  $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 /* Override any GCC internal prototype to avoid an error.
10102    Use char because int might match the return type of a GCC
10103    builtin and then its argument prototype would still apply.  */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 char dlopen ();
10108 int
10109 main ()
10110 {
10111 return dlopen ();
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120   *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123   (eval "$ac_link") 2>conftest.er1
10124   ac_status=$?
10125   grep -v '^ *+' conftest.er1 >conftest.err
10126   rm -f conftest.er1
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } &&
10130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10131   { (case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_try") 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; } &&
10140          { ac_try='test -s conftest$ac_exeext'
10141   { (case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146   (eval "$ac_try") 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150   ac_cv_lib_svld_dlopen=yes
10151 else
10152   echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155         ac_cv_lib_svld_dlopen=no
10156 fi
10157
10158 rm -f core conftest.err conftest.$ac_objext \
10159       conftest$ac_exeext conftest.$ac_ext
10160 LIBS=$ac_check_lib_save_LIBS
10161 fi
10162 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10163 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10164 if test $ac_cv_lib_svld_dlopen = yes; then
10165
10166 cat >>confdefs.h <<\_ACEOF
10167 #define HAVE_LIBDL 1
10168 _ACEOF
10169
10170                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10171 else
10172   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10173 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177   ac_check_lib_save_LIBS=$LIBS
10178 LIBS="-ldld  $LIBS"
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185
10186 /* Override any GCC internal prototype to avoid an error.
10187    Use char because int might match the return type of a GCC
10188    builtin and then its argument prototype would still apply.  */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char dld_link ();
10193 int
10194 main ()
10195 {
10196 return dld_link ();
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_link") 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } &&
10215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216   { (case "(($ac_try" in
10217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218   *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221   (eval "$ac_try") 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest$ac_exeext'
10226   { (case "(($ac_try" in
10227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228   *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231   (eval "$ac_try") 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; }; then
10235   ac_cv_lib_dld_dld_link=yes
10236 else
10237   echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240         ac_cv_lib_dld_dld_link=no
10241 fi
10242
10243 rm -f core conftest.err conftest.$ac_objext \
10244       conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10249 if test $ac_cv_lib_dld_dld_link = yes; then
10250
10251 cat >>confdefs.h <<\_ACEOF
10252 #define HAVE_DLD 1
10253 _ACEOF
10254
10255                 LIBADD_DL="$LIBADD_DL -ldld"
10256 else
10257   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10258 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10259 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h.  */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h.  */
10268 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10270 #define _dyld_func_lookup innocuous__dyld_func_lookup
10271
10272 /* System header to define __stub macros and hopefully few prototypes,
10273     which can conflict with char _dyld_func_lookup (); below.
10274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10275     <limits.h> exists even on freestanding compilers.  */
10276
10277 #ifdef __STDC__
10278 # include <limits.h>
10279 #else
10280 # include <assert.h>
10281 #endif
10282
10283 #undef _dyld_func_lookup
10284
10285 /* Override any GCC internal prototype to avoid an error.
10286    Use char because int might match the return type of a GCC
10287    builtin and then its argument prototype would still apply.  */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 char _dyld_func_lookup ();
10292 /* The GNU C library defines this for functions which it implements
10293     to always fail with ENOSYS.  Some functions are actually named
10294     something starting with __ and the normal name is an alias.  */
10295 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10296 choke me
10297 #endif
10298
10299 int
10300 main ()
10301 {
10302 return _dyld_func_lookup ();
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (ac_try="$ac_link"
10309 case "(($ac_try" in
10310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311   *) ac_try_echo=$ac_try;;
10312 esac
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314   (eval "$ac_link") 2>conftest.er1
10315   ac_status=$?
10316   grep -v '^ *+' conftest.er1 >conftest.err
10317   rm -f conftest.er1
10318   cat conftest.err >&5
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } &&
10321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10322   { (case "(($ac_try" in
10323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324   *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327   (eval "$ac_try") 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; } &&
10331          { ac_try='test -s conftest$ac_exeext'
10332   { (case "(($ac_try" in
10333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334   *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337   (eval "$ac_try") 2>&5
10338   ac_status=$?
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); }; }; then
10341   ac_cv_func__dyld_func_lookup=yes
10342 else
10343   echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346         ac_cv_func__dyld_func_lookup=no
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext \
10350       conftest$ac_exeext conftest.$ac_ext
10351 fi
10352 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10353 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10354 if test $ac_cv_func__dyld_func_lookup = yes; then
10355
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DYLD 1
10358 _ACEOF
10359
10360 fi
10361
10362
10363 fi
10364
10365
10366 fi
10367
10368
10369 fi
10370
10371 rm -f core conftest.err conftest.$ac_objext \
10372       conftest$ac_exeext conftest.$ac_ext
10373
10374 fi
10375
10376
10377 fi
10378
10379
10380 fi
10381
10382
10383 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10384 then
10385   lt_save_LIBS="$LIBS"
10386   LIBS="$LIBS $LIBADD_DL"
10387
10388 for ac_func in dlerror
10389 do
10390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396   cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h.  */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h.  */
10402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10404 #define $ac_func innocuous_$ac_func
10405
10406 /* System header to define __stub macros and hopefully few prototypes,
10407     which can conflict with char $ac_func (); below.
10408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409     <limits.h> exists even on freestanding compilers.  */
10410
10411 #ifdef __STDC__
10412 # include <limits.h>
10413 #else
10414 # include <assert.h>
10415 #endif
10416
10417 #undef $ac_func
10418
10419 /* Override any GCC internal prototype to avoid an error.
10420    Use char because int might match the return type of a GCC
10421    builtin and then its argument prototype would still apply.  */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char $ac_func ();
10426 /* The GNU C library defines this for functions which it implements
10427     to always fail with ENOSYS.  Some functions are actually named
10428     something starting with __ and the normal name is an alias.  */
10429 #if defined __stub_$ac_func || defined __stub___$ac_func
10430 choke me
10431 #endif
10432
10433 int
10434 main ()
10435 {
10436 return $ac_func ();
10437   ;
10438   return 0;
10439 }
10440 _ACEOF
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (ac_try="$ac_link"
10443 case "(($ac_try" in
10444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445   *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448   (eval "$ac_link") 2>conftest.er1
10449   ac_status=$?
10450   grep -v '^ *+' conftest.er1 >conftest.err
10451   rm -f conftest.er1
10452   cat conftest.err >&5
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } &&
10455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10456   { (case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_try") 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; } &&
10465          { ac_try='test -s conftest$ac_exeext'
10466   { (case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471   (eval "$ac_try") 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   eval "$as_ac_var=yes"
10476 else
10477   echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480         eval "$as_ac_var=no"
10481 fi
10482
10483 rm -f core conftest.err conftest.$ac_objext \
10484       conftest$ac_exeext conftest.$ac_ext
10485 fi
10486 ac_res=`eval echo '${'$as_ac_var'}'`
10487                { echo "$as_me:$LINENO: result: $ac_res" >&5
10488 echo "${ECHO_T}$ac_res" >&6; }
10489 if test `eval echo '${'$as_ac_var'}'` = yes; then
10490   cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10492 _ACEOF
10493
10494 fi
10495 done
10496
10497   LIBS="$lt_save_LIBS"
10498 fi
10499 ac_ext=c
10500 ac_cpp='$CPP $CPPFLAGS'
10501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10504
10505
10506
10507 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10508 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10509 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   ac_cv_sys_symbol_underscore=no
10513   cat > conftest.$ac_ext <<EOF
10514 void nm_test_func(){}
10515 int main(){nm_test_func;return 0;}
10516 EOF
10517   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518   (eval $ac_compile) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; then
10522     # Now try to grab the symbols.
10523     ac_nlist=conftest.nm
10524     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10525   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } && test -s "$ac_nlist"; then
10529       # See whether the symbols have a leading underscore.
10530       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10531         ac_cv_sys_symbol_underscore=yes
10532       else
10533         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10534           :
10535         else
10536           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10537         fi
10538       fi
10539     else
10540       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10541     fi
10542   else
10543     echo "configure: failed program was:" >&5
10544     cat conftest.c >&5
10545   fi
10546   rm -rf conftest*
10547
10548 fi
10549 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10550 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10551
10552
10553 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10554   if test x"$libltdl_cv_func_dlopen" = xyes ||
10555      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10556         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10557 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10558 if test "${libltdl_cv_need_uscore+set}" = set; then
10559   echo $ECHO_N "(cached) $ECHO_C" >&6
10560 else
10561   libltdl_cv_need_uscore=unknown
10562           save_LIBS="$LIBS"
10563           LIBS="$LIBS $LIBADD_DL"
10564           if test "$cross_compiling" = yes; then :
10565   libltdl_cv_need_uscore=cross
10566 else
10567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10568   lt_status=$lt_dlunknown
10569   cat > conftest.$ac_ext <<EOF
10570 #line 10564 "configure"
10571 #include "confdefs.h"
10572
10573 #if HAVE_DLFCN_H
10574 #include <dlfcn.h>
10575 #endif
10576
10577 #include <stdio.h>
10578
10579 #ifdef RTLD_GLOBAL
10580 #  define LT_DLGLOBAL           RTLD_GLOBAL
10581 #else
10582 #  ifdef DL_GLOBAL
10583 #    define LT_DLGLOBAL         DL_GLOBAL
10584 #  else
10585 #    define LT_DLGLOBAL         0
10586 #  endif
10587 #endif
10588
10589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10590    find out it does not work in some platform. */
10591 #ifndef LT_DLLAZY_OR_NOW
10592 #  ifdef RTLD_LAZY
10593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10594 #  else
10595 #    ifdef DL_LAZY
10596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10597 #    else
10598 #      ifdef RTLD_NOW
10599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10600 #      else
10601 #        ifdef DL_NOW
10602 #          define LT_DLLAZY_OR_NOW      DL_NOW
10603 #        else
10604 #          define LT_DLLAZY_OR_NOW      0
10605 #        endif
10606 #      endif
10607 #    endif
10608 #  endif
10609 #endif
10610
10611 #ifdef __cplusplus
10612 extern "C" void exit (int);
10613 #endif
10614
10615 void fnord() { int i=42;}
10616 int main ()
10617 {
10618   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10619   int status = $lt_dlunknown;
10620
10621   if (self)
10622     {
10623       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10624       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10625       /* dlclose (self); */
10626     }
10627   else
10628     puts (dlerror ());
10629
10630     exit (status);
10631 }
10632 EOF
10633   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634   (eval $ac_link) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10638     (./conftest; exit; ) >&5 2>/dev/null
10639     lt_status=$?
10640     case x$lt_status in
10641       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10642       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10643       x$lt_dlunknown|x*)  ;;
10644     esac
10645   else :
10646     # compilation failed
10647
10648   fi
10649 fi
10650 rm -fr conftest*
10651
10652           LIBS="$save_LIBS"
10653
10654 fi
10655 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10656 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10657   fi
10658 fi
10659
10660 if test x"$libltdl_cv_need_uscore" = xyes; then
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define NEED_USCORE 1
10664 _ACEOF
10665
10666 fi
10667
10668
10669 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10670 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10671 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10672   echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674   # PORTME does your system automatically load deplibs for dlopen?
10675   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10676   # For now, we just catch OSes we know something about -- in the
10677   # future, we'll try test this programmatically.
10678   libltdl_cv_sys_dlopen_deplibs=unknown
10679   case "$host_os" in
10680   aix3*|aix4.1.*|aix4.2.*)
10681     # Unknown whether this is true for these versions of AIX, but
10682     # we want this `case' here to explicitly catch those versions.
10683     libltdl_cv_sys_dlopen_deplibs=unknown
10684     ;;
10685   aix[45]*)
10686     libltdl_cv_sys_dlopen_deplibs=yes
10687     ;;
10688   darwin*)
10689     # Assuming the user has installed a libdl from somewhere, this is true
10690     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10691     libltdl_cv_sys_dlopen_deplibs=yes
10692     ;;
10693   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10694     # GNU and its variants, using gnu ld.so (Glibc)
10695     libltdl_cv_sys_dlopen_deplibs=yes
10696     ;;
10697   hpux10*|hpux11*)
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   interix*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   irix[12345]*|irix6.[01]*)
10704     # Catch all versions of IRIX before 6.2, and indicate that we don't
10705     # know how it worked for any of those versions.
10706     libltdl_cv_sys_dlopen_deplibs=unknown
10707     ;;
10708   irix*)
10709     # The case above catches anything before 6.2, and it's known that
10710     # at 6.2 and later dlopen does load deplibs.
10711     libltdl_cv_sys_dlopen_deplibs=yes
10712     ;;
10713   netbsd*)
10714     libltdl_cv_sys_dlopen_deplibs=yes
10715     ;;
10716   openbsd*)
10717     libltdl_cv_sys_dlopen_deplibs=yes
10718     ;;
10719   osf[1234]*)
10720     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10721     # it did *not* use an RPATH in a shared library to find objects the
10722     # library depends on, so we explicitly say `no'.
10723     libltdl_cv_sys_dlopen_deplibs=no
10724     ;;
10725   osf5.0|osf5.0a|osf5.1)
10726     # dlopen *does* load deplibs and with the right loader patch applied
10727     # it even uses RPATH in a shared library to search for shared objects
10728     # that the library depends on, but there's no easy way to know if that
10729     # patch is installed.  Since this is the case, all we can really
10730     # say is unknown -- it depends on the patch being installed.  If
10731     # it is, this changes to `yes'.  Without it, it would be `no'.
10732     libltdl_cv_sys_dlopen_deplibs=unknown
10733     ;;
10734   osf*)
10735     # the two cases above should catch all versions of osf <= 5.1.  Read
10736     # the comments above for what we know about them.
10737     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10738     # is used to find them so we can finally say `yes'.
10739     libltdl_cv_sys_dlopen_deplibs=yes
10740     ;;
10741   solaris*)
10742     libltdl_cv_sys_dlopen_deplibs=yes
10743     ;;
10744   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10745     libltdl_cv_sys_dlopen_deplibs=yes
10746     ;;
10747   esac
10748
10749 fi
10750 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10751 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10752 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10753
10754 cat >>confdefs.h <<\_ACEOF
10755 #define LTDL_DLOPEN_DEPLIBS 1
10756 _ACEOF
10757
10758 fi
10759
10760
10761 for ac_header in argz.h
10762 do
10763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768   echo $ECHO_N "(cached) $ECHO_C" >&6
10769 fi
10770 ac_res=`eval echo '${'$as_ac_Header'}'`
10771                { echo "$as_me:$LINENO: result: $ac_res" >&5
10772 echo "${ECHO_T}$ac_res" >&6; }
10773 else
10774   # Is the header compilable?
10775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 $ac_includes_default
10784 #include <$ac_header>
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (ac_try="$ac_compile"
10788 case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_compile") 2>conftest.er1
10794   ac_status=$?
10795   grep -v '^ *+' conftest.er1 >conftest.err
10796   rm -f conftest.er1
10797   cat conftest.err >&5
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); } &&
10800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10801   { (case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_try") 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; } &&
10810          { ac_try='test -s conftest.$ac_objext'
10811   { (case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_try") 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; }; then
10820   ac_header_compiler=yes
10821 else
10822   echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825         ac_header_compiler=no
10826 fi
10827
10828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10830 echo "${ECHO_T}$ac_header_compiler" >&6; }
10831
10832 # Is the header present?
10833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841 #include <$ac_header>
10842 _ACEOF
10843 if { (ac_try="$ac_cpp conftest.$ac_ext"
10844 case "(($ac_try" in
10845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846   *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } >/dev/null; then
10856   if test -s conftest.err; then
10857     ac_cpp_err=$ac_c_preproc_warn_flag
10858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10859   else
10860     ac_cpp_err=
10861   fi
10862 else
10863   ac_cpp_err=yes
10864 fi
10865 if test -z "$ac_cpp_err"; then
10866   ac_header_preproc=yes
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871   ac_header_preproc=no
10872 fi
10873
10874 rm -f conftest.err conftest.$ac_ext
10875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10876 echo "${ECHO_T}$ac_header_preproc" >&6; }
10877
10878 # So?  What about this header?
10879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10880   yes:no: )
10881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10885     ac_header_preproc=yes
10886     ;;
10887   no:yes:* )
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10900     ( cat <<\_ASBOX
10901 ## ------------------------------------ ##
10902 ## Report this to http://llvm.org/bugs/ ##
10903 ## ------------------------------------ ##
10904 _ASBOX
10905      ) | sed "s/^/$as_me: WARNING:     /" >&2
10906     ;;
10907 esac
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   eval "$as_ac_Header=\$ac_header_preproc"
10914 fi
10915 ac_res=`eval echo '${'$as_ac_Header'}'`
10916                { echo "$as_me:$LINENO: result: $ac_res" >&5
10917 echo "${ECHO_T}$ac_res" >&6; }
10918
10919 fi
10920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10921   cat >>confdefs.h <<_ACEOF
10922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923 _ACEOF
10924
10925 fi
10926
10927 done
10928
10929
10930 { echo "$as_me:$LINENO: checking for error_t" >&5
10931 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10932 if test "${ac_cv_type_error_t+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 #if HAVE_ARGZ_H
10942 #  include <argz.h>
10943 #endif
10944
10945 typedef error_t ac__type_new_;
10946 int
10947 main ()
10948 {
10949 if ((ac__type_new_ *) 0)
10950   return 0;
10951 if (sizeof (ac__type_new_))
10952   return 0;
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_compile") 2>conftest.er1
10965   ac_status=$?
10966   grep -v '^ *+' conftest.er1 >conftest.err
10967   rm -f conftest.er1
10968   cat conftest.err >&5
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } &&
10971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972   { (case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_try") 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; } &&
10981          { ac_try='test -s conftest.$ac_objext'
10982   { (case "(($ac_try" in
10983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984   *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987   (eval "$ac_try") 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }; }; then
10991   ac_cv_type_error_t=yes
10992 else
10993   echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10995
10996         ac_cv_type_error_t=no
10997 fi
10998
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 fi
11001 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11002 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11003 if test $ac_cv_type_error_t = yes; then
11004
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_ERROR_T 1
11007 _ACEOF
11008
11009
11010 else
11011
11012 cat >>confdefs.h <<\_ACEOF
11013 #define error_t int
11014 _ACEOF
11015
11016 fi
11017
11018
11019
11020
11021
11022
11023
11024 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11025 do
11026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11040 #define $ac_func innocuous_$ac_func
11041
11042 /* System header to define __stub macros and hopefully few prototypes,
11043     which can conflict with char $ac_func (); below.
11044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045     <limits.h> exists even on freestanding compilers.  */
11046
11047 #ifdef __STDC__
11048 # include <limits.h>
11049 #else
11050 # include <assert.h>
11051 #endif
11052
11053 #undef $ac_func
11054
11055 /* Override any GCC internal prototype to avoid an error.
11056    Use char because int might match the return type of a GCC
11057    builtin and then its argument prototype would still apply.  */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char $ac_func ();
11062 /* The GNU C library defines this for functions which it implements
11063     to always fail with ENOSYS.  Some functions are actually named
11064     something starting with __ and the normal name is an alias.  */
11065 #if defined __stub_$ac_func || defined __stub___$ac_func
11066 choke me
11067 #endif
11068
11069 int
11070 main ()
11071 {
11072 return $ac_func ();
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081   *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084   (eval "$ac_link") 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } &&
11091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11092   { (case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_try") 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; } &&
11101          { ac_try='test -s conftest$ac_exeext'
11102   { (case "(($ac_try" in
11103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104   *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107   (eval "$ac_try") 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); }; }; then
11111   eval "$as_ac_var=yes"
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116         eval "$as_ac_var=no"
11117 fi
11118
11119 rm -f core conftest.err conftest.$ac_objext \
11120       conftest$ac_exeext conftest.$ac_ext
11121 fi
11122 ac_res=`eval echo '${'$as_ac_var'}'`
11123                { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126   cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11129
11130 fi
11131 done
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155 for ac_header in errno.h malloc.h memory.h unistd.h
11156 do
11157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11162   echo $ECHO_N "(cached) $ECHO_C" >&6
11163 fi
11164 ac_res=`eval echo '${'$as_ac_Header'}'`
11165                { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11167 else
11168   # Is the header compilable?
11169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 $ac_includes_default
11178 #include <$ac_header>
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (ac_try="$ac_compile"
11182 case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_compile") 2>conftest.er1
11188   ac_status=$?
11189   grep -v '^ *+' conftest.er1 >conftest.err
11190   rm -f conftest.er1
11191   cat conftest.err >&5
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); } &&
11194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11195   { (case "(($ac_try" in
11196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197   *) ac_try_echo=$ac_try;;
11198 esac
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200   (eval "$ac_try") 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; } &&
11204          { ac_try='test -s conftest.$ac_objext'
11205   { (case "(($ac_try" in
11206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207   *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210   (eval "$ac_try") 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; }; then
11214   ac_header_compiler=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219         ac_header_compiler=no
11220 fi
11221
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11224 echo "${ECHO_T}$ac_header_compiler" >&6; }
11225
11226 # Is the header present?
11227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h.  */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h.  */
11235 #include <$ac_header>
11236 _ACEOF
11237 if { (ac_try="$ac_cpp conftest.$ac_ext"
11238 case "(($ac_try" in
11239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240   *) ac_try_echo=$ac_try;;
11241 esac
11242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11244   ac_status=$?
11245   grep -v '^ *+' conftest.er1 >conftest.err
11246   rm -f conftest.er1
11247   cat conftest.err >&5
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); } >/dev/null; then
11250   if test -s conftest.err; then
11251     ac_cpp_err=$ac_c_preproc_warn_flag
11252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11253   else
11254     ac_cpp_err=
11255   fi
11256 else
11257   ac_cpp_err=yes
11258 fi
11259 if test -z "$ac_cpp_err"; then
11260   ac_header_preproc=yes
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265   ac_header_preproc=no
11266 fi
11267
11268 rm -f conftest.err conftest.$ac_ext
11269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 echo "${ECHO_T}$ac_header_preproc" >&6; }
11271
11272 # So?  What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274   yes:no: )
11275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11279     ac_header_preproc=yes
11280     ;;
11281   no:yes:* )
11282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11294     ( cat <<\_ASBOX
11295 ## ------------------------------------ ##
11296 ## Report this to http://llvm.org/bugs/ ##
11297 ## ------------------------------------ ##
11298 _ASBOX
11299      ) | sed "s/^/$as_me: WARNING:     /" >&2
11300     ;;
11301 esac
11302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307   eval "$as_ac_Header=\$ac_header_preproc"
11308 fi
11309 ac_res=`eval echo '${'$as_ac_Header'}'`
11310                { echo "$as_me:$LINENO: result: $ac_res" >&5
11311 echo "${ECHO_T}$ac_res" >&6; }
11312
11313 fi
11314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11315   cat >>confdefs.h <<_ACEOF
11316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317 _ACEOF
11318
11319 fi
11320
11321 done
11322
11323
11324 for ac_header in mach-o/dyld.h
11325 do
11326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331   echo $ECHO_N "(cached) $ECHO_C" >&6
11332 fi
11333 ac_res=`eval echo '${'$as_ac_Header'}'`
11334                { echo "$as_me:$LINENO: result: $ac_res" >&5
11335 echo "${ECHO_T}$ac_res" >&6; }
11336 else
11337   # Is the header compilable?
11338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h.  */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h.  */
11346 $ac_includes_default
11347 #include <$ac_header>
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_compile") 2>conftest.er1
11357   ac_status=$?
11358   grep -v '^ *+' conftest.er1 >conftest.err
11359   rm -f conftest.er1
11360   cat conftest.err >&5
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } &&
11363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11364   { (case "(($ac_try" in
11365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366   *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369   (eval "$ac_try") 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; } &&
11373          { ac_try='test -s conftest.$ac_objext'
11374   { (case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_try") 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; }; then
11383   ac_header_compiler=yes
11384 else
11385   echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388         ac_header_compiler=no
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11393 echo "${ECHO_T}$ac_header_compiler" >&6; }
11394
11395 # Is the header present?
11396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 #include <$ac_header>
11405 _ACEOF
11406 if { (ac_try="$ac_cpp conftest.$ac_ext"
11407 case "(($ac_try" in
11408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409   *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11413   ac_status=$?
11414   grep -v '^ *+' conftest.er1 >conftest.err
11415   rm -f conftest.er1
11416   cat conftest.err >&5
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } >/dev/null; then
11419   if test -s conftest.err; then
11420     ac_cpp_err=$ac_c_preproc_warn_flag
11421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11422   else
11423     ac_cpp_err=
11424   fi
11425 else
11426   ac_cpp_err=yes
11427 fi
11428 if test -z "$ac_cpp_err"; then
11429   ac_header_preproc=yes
11430 else
11431   echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434   ac_header_preproc=no
11435 fi
11436
11437 rm -f conftest.err conftest.$ac_ext
11438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11439 echo "${ECHO_T}$ac_header_preproc" >&6; }
11440
11441 # So?  What about this header?
11442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11443   yes:no: )
11444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11448     ac_header_preproc=yes
11449     ;;
11450   no:yes:* )
11451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463     ( cat <<\_ASBOX
11464 ## ------------------------------------ ##
11465 ## Report this to http://llvm.org/bugs/ ##
11466 ## ------------------------------------ ##
11467 _ASBOX
11468      ) | sed "s/^/$as_me: WARNING:     /" >&2
11469     ;;
11470 esac
11471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   eval "$as_ac_Header=\$ac_header_preproc"
11477 fi
11478 ac_res=`eval echo '${'$as_ac_Header'}'`
11479                { echo "$as_me:$LINENO: result: $ac_res" >&5
11480 echo "${ECHO_T}$ac_res" >&6; }
11481
11482 fi
11483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11484   cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11486 _ACEOF
11487
11488 fi
11489
11490 done
11491
11492
11493
11494
11495
11496 for ac_func in closedir opendir readdir
11497 do
11498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504   cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11512 #define $ac_func innocuous_$ac_func
11513
11514 /* System header to define __stub macros and hopefully few prototypes,
11515     which can conflict with char $ac_func (); below.
11516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517     <limits.h> exists even on freestanding compilers.  */
11518
11519 #ifdef __STDC__
11520 # include <limits.h>
11521 #else
11522 # include <assert.h>
11523 #endif
11524
11525 #undef $ac_func
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528    Use char because int might match the return type of a GCC
11529    builtin and then its argument prototype would still apply.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char $ac_func ();
11534 /* The GNU C library defines this for functions which it implements
11535     to always fail with ENOSYS.  Some functions are actually named
11536     something starting with __ and the normal name is an alias.  */
11537 #if defined __stub_$ac_func || defined __stub___$ac_func
11538 choke me
11539 #endif
11540
11541 int
11542 main ()
11543 {
11544 return $ac_func ();
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_link") 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11564   { (case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_try") 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest$ac_exeext'
11574   { (case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579   (eval "$ac_try") 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   eval "$as_ac_var=yes"
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588         eval "$as_ac_var=no"
11589 fi
11590
11591 rm -f core conftest.err conftest.$ac_objext \
11592       conftest$ac_exeext conftest.$ac_ext
11593 fi
11594 ac_res=`eval echo '${'$as_ac_var'}'`
11595                { echo "$as_me:$LINENO: result: $ac_res" >&5
11596 echo "${ECHO_T}$ac_res" >&6; }
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598   cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11600 _ACEOF
11601
11602 fi
11603 done
11604
11605
11606
11607 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11608 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11609
11610 ICC=no
11611 IXX=no
11612 case $CC in
11613   icc*|icpc*)
11614     ICC=yes
11615     IXX=yes
11616     ;;
11617    *)
11618     ;;
11619 esac
11620
11621 if test "$GCC" != "yes" && test "$ICC" != "yes"
11622 then
11623   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11624 echo "$as_me: error: gcc|icc required but not found" >&2;}
11625    { (exit 1); exit 1; }; }
11626 fi
11627
11628 if test "$GXX" != "yes" && test "$IXX" != "yes"
11629 then
11630   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11631 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11632    { (exit 1); exit 1; }; }
11633 fi
11634
11635 if test "$GCC" = "yes"
11636 then
11637   cat >conftest.$ac_ext <<_ACEOF
11638
11639   /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644
11645     #if !defined(__GNUC__) || __GNUC__ < 3
11646     #error Unsupported GCC version
11647     #endif
11648
11649
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_compile") 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666   { (case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_try") 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; } &&
11675          { ac_try='test -s conftest.$ac_objext'
11676   { (case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_try") 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   :
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11691 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11692    { (exit 1); exit 1; }; }
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 fi
11697
11698 if test -z "$llvm_cv_gnu_make_command"
11699 then
11700   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11701 echo "$as_me: error: GNU Make required but not found" >&2;}
11702    { (exit 1); exit 1; }; }
11703 fi
11704
11705 { echo "$as_me:$LINENO: result: ok" >&5
11706 echo "${ECHO_T}ok" >&6; }
11707
11708 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11709 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11710 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11711
11712 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11713
11714 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11715
11716
11717 NO_UNINITIALIZED=
11718 NO_MAYBE_UNINITIALIZED=
11719 if test "$GXX" = "yes"
11720 then
11721   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11722
11723         if test -z "$NO_MAYBE_UNINITIALIZED"
11724   then
11725     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11726
11727   fi
11728 fi
11729 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11730 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11731
11732
11733 # Check whether --with-python was given.
11734 if test "${with_python+set}" = set; then
11735   withval=$with_python; PYTHON="$withval"
11736 fi
11737
11738
11739 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11740   { echo "$as_me:$LINENO: checking for python" >&5
11741 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11742   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11743 echo "${ECHO_T}user defined: $with_python" >&6; }
11744 else
11745   if test -n "$PYTHON" ; then
11746     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11747 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11748   fi
11749
11750   # Extract the first word of "python python2 python26", so it can be a program name with args.
11751 set dummy python python2 python26; ac_word=$2
11752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11754 if test "${ac_cv_path_PYTHON+set}" = set; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757   case $PYTHON in
11758   [\\/]* | ?:[\\/]*)
11759   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11760   ;;
11761   *)
11762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765   IFS=$as_save_IFS
11766   test -z "$as_dir" && as_dir=.
11767   for ac_exec_ext in '' $ac_executable_extensions; do
11768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11769     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11771     break 2
11772   fi
11773 done
11774 done
11775 IFS=$as_save_IFS
11776
11777   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11778 echo "${ECHO_T}not found" >&6; }
11779                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11780 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11781    { (exit 1); exit 1; }; }"
11782   ;;
11783 esac
11784 fi
11785 PYTHON=$ac_cv_path_PYTHON
11786 if test -n "$PYTHON"; then
11787   { echo "$as_me:$LINENO: result: $PYTHON" >&5
11788 echo "${ECHO_T}$PYTHON" >&6; }
11789 else
11790   { echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6; }
11792 fi
11793
11794
11795 fi
11796
11797 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11798 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11799 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11800 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11801 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11802 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11803 if   test "$ac_python_version_major" -eq "2" \
11804    && test "$ac_python_version_minor" -ge "5" ; then
11805   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11806 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11807 else
11808   { echo "$as_me:$LINENO: result: not found" >&5
11809 echo "${ECHO_T}not found" >&6; }
11810   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11811 See \`config.log' for more details." >&5
11812 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11813 See \`config.log' for more details." >&2;}
11814    { (exit 1); exit 1; }; }
11815 fi
11816
11817
11818
11819 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11820 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11821 if test "${ac_cv_lib_m_sin+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-lm  $LIBS"
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832
11833 /* Override any GCC internal prototype to avoid an error.
11834    Use char because int might match the return type of a GCC
11835    builtin and then its argument prototype would still apply.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 char sin ();
11840 int
11841 main ()
11842 {
11843 return sin ();
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_link") 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863   { (case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868   (eval "$ac_try") 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; } &&
11872          { ac_try='test -s conftest$ac_exeext'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   ac_cv_lib_m_sin=yes
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887         ac_cv_lib_m_sin=no
11888 fi
11889
11890 rm -f core conftest.err conftest.$ac_objext \
11891       conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11893 fi
11894 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11895 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11896 if test $ac_cv_lib_m_sin = yes; then
11897   cat >>confdefs.h <<_ACEOF
11898 #define HAVE_LIBM 1
11899 _ACEOF
11900
11901   LIBS="-lm $LIBS"
11902
11903 fi
11904
11905 if test "$llvm_cv_os_type" = "MingW" ; then
11906
11907 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11908 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11909 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11910   echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912   ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-limagehlp  $LIBS"
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920
11921
11922 int
11923 main ()
11924 {
11925 return main ();
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (ac_try="$ac_link"
11932 case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_link") 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } &&
11944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945   { (case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_try") 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_try") 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; }; then
11964   ac_cv_lib_imagehlp_main=yes
11965 else
11966   echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969         ac_cv_lib_imagehlp_main=no
11970 fi
11971
11972 rm -f core conftest.err conftest.$ac_objext \
11973       conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11977 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11978 if test $ac_cv_lib_imagehlp_main = yes; then
11979   cat >>confdefs.h <<_ACEOF
11980 #define HAVE_LIBIMAGEHLP 1
11981 _ACEOF
11982
11983   LIBS="-limagehlp $LIBS"
11984
11985 fi
11986
11987
11988 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11989 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11990 if test "${ac_cv_lib_psapi_main+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lpsapi  $LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h.  */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h.  */
12001
12002
12003 int
12004 main ()
12005 {
12006 return main ();
12007   ;
12008   return 0;
12009 }
12010 _ACEOF
12011 rm -f conftest.$ac_objext conftest$ac_exeext
12012 if { (ac_try="$ac_link"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_link") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest$ac_exeext'
12036   { (case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_try") 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   ac_cv_lib_psapi_main=yes
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050         ac_cv_lib_psapi_main=no
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext \
12054       conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12058 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12059 if test $ac_cv_lib_psapi_main = yes; then
12060   cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBPSAPI 1
12062 _ACEOF
12063
12064   LIBS="-lpsapi $LIBS"
12065
12066 fi
12067
12068 fi
12069
12070 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12071 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12072 if test "${ac_cv_search_dlopen+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   ac_func_search_save_LIBS=$LIBS
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084    Use char because int might match the return type of a GCC
12085    builtin and then its argument prototype would still apply.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char dlopen ();
12090 int
12091 main ()
12092 {
12093 return dlopen ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 for ac_lib in '' dl; do
12099   if test -z "$ac_lib"; then
12100     ac_res="none required"
12101   else
12102     ac_res=-l$ac_lib
12103     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12104   fi
12105   rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_link") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest$ac_exeext'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   ac_cv_search_dlopen=$ac_res
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144
12145 fi
12146
12147 rm -f core conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext
12149   if test "${ac_cv_search_dlopen+set}" = set; then
12150   break
12151 fi
12152 done
12153 if test "${ac_cv_search_dlopen+set}" = set; then
12154   :
12155 else
12156   ac_cv_search_dlopen=no
12157 fi
12158 rm conftest.$ac_ext
12159 LIBS=$ac_func_search_save_LIBS
12160 fi
12161 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12162 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12163 ac_res=$ac_cv_search_dlopen
12164 if test "$ac_res" != no; then
12165   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12166
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_DLOPEN 1
12169 _ACEOF
12170
12171 else
12172   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12173 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12174 fi
12175
12176
12177 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12178 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12179 if test "${ac_cv_search_clock_gettime+set}" = set; then
12180   echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182   ac_func_search_save_LIBS=$LIBS
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char clock_gettime ();
12197 int
12198 main ()
12199 {
12200 return clock_gettime ();
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 for ac_lib in '' rt; do
12206   if test -z "$ac_lib"; then
12207     ac_res="none required"
12208   else
12209     ac_res=-l$ac_lib
12210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12211   fi
12212   rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_link") 2>conftest.er1
12220   ac_status=$?
12221   grep -v '^ *+' conftest.er1 >conftest.err
12222   rm -f conftest.er1
12223   cat conftest.err >&5
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); } &&
12226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227   { (case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232   (eval "$ac_try") 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest$ac_exeext'
12237   { (case "(($ac_try" in
12238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239   *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242   (eval "$ac_try") 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; }; then
12246   ac_cv_search_clock_gettime=$ac_res
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251
12252 fi
12253
12254 rm -f core conftest.err conftest.$ac_objext \
12255       conftest$ac_exeext
12256   if test "${ac_cv_search_clock_gettime+set}" = set; then
12257   break
12258 fi
12259 done
12260 if test "${ac_cv_search_clock_gettime+set}" = set; then
12261   :
12262 else
12263   ac_cv_search_clock_gettime=no
12264 fi
12265 rm conftest.$ac_ext
12266 LIBS=$ac_func_search_save_LIBS
12267 fi
12268 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12269 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12270 ac_res=$ac_cv_search_clock_gettime
12271 if test "$ac_res" != no; then
12272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12273
12274 fi
12275
12276
12277 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12278     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12279 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12280 if test "${ac_cv_search_setupterm+set}" = set; then
12281   echo $ECHO_N "(cached) $ECHO_C" >&6
12282 else
12283   ac_func_search_save_LIBS=$LIBS
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h.  */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h.  */
12290
12291 /* Override any GCC internal prototype to avoid an error.
12292    Use char because int might match the return type of a GCC
12293    builtin and then its argument prototype would still apply.  */
12294 #ifdef __cplusplus
12295 extern "C"
12296 #endif
12297 char setupterm ();
12298 int
12299 main ()
12300 {
12301 return setupterm ();
12302   ;
12303   return 0;
12304 }
12305 _ACEOF
12306 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12307   if test -z "$ac_lib"; then
12308     ac_res="none required"
12309   else
12310     ac_res=-l$ac_lib
12311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12312   fi
12313   rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (ac_try="$ac_link"
12315 case "(($ac_try" in
12316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317   *) ac_try_echo=$ac_try;;
12318 esac
12319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320   (eval "$ac_link") 2>conftest.er1
12321   ac_status=$?
12322   grep -v '^ *+' conftest.er1 >conftest.err
12323   rm -f conftest.er1
12324   cat conftest.err >&5
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); } &&
12327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328   { (case "(($ac_try" in
12329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330   *) ac_try_echo=$ac_try;;
12331 esac
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333   (eval "$ac_try") 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; } &&
12337          { ac_try='test -s conftest$ac_exeext'
12338   { (case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_try") 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; }; then
12347   ac_cv_search_setupterm=$ac_res
12348 else
12349   echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352
12353 fi
12354
12355 rm -f core conftest.err conftest.$ac_objext \
12356       conftest$ac_exeext
12357   if test "${ac_cv_search_setupterm+set}" = set; then
12358   break
12359 fi
12360 done
12361 if test "${ac_cv_search_setupterm+set}" = set; then
12362   :
12363 else
12364   ac_cv_search_setupterm=no
12365 fi
12366 rm conftest.$ac_ext
12367 LIBS=$ac_func_search_save_LIBS
12368 fi
12369 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12370 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12371 ac_res=$ac_cv_search_setupterm
12372 if test "$ac_res" != no; then
12373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12374
12375 cat >>confdefs.h <<\_ACEOF
12376 #define HAVE_TERMINFO 1
12377 _ACEOF
12378
12379 fi
12380
12381 fi
12382
12383 if test "$llvm_cv_enable_libffi" = "yes" ; then
12384   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12385 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12386 if test "${ac_cv_search_ffi_call+set}" = set; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   ac_func_search_save_LIBS=$LIBS
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396
12397 /* Override any GCC internal prototype to avoid an error.
12398    Use char because int might match the return type of a GCC
12399    builtin and then its argument prototype would still apply.  */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 char ffi_call ();
12404 int
12405 main ()
12406 {
12407 return ffi_call ();
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 for ac_lib in '' ffi; do
12413   if test -z "$ac_lib"; then
12414     ac_res="none required"
12415   else
12416     ac_res=-l$ac_lib
12417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12418   fi
12419   rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } &&
12433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12434   { (case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_try") 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; } &&
12443          { ac_try='test -s conftest$ac_exeext'
12444   { (case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449   (eval "$ac_try") 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_search_ffi_call=$ac_res
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458
12459 fi
12460
12461 rm -f core conftest.err conftest.$ac_objext \
12462       conftest$ac_exeext
12463   if test "${ac_cv_search_ffi_call+set}" = set; then
12464   break
12465 fi
12466 done
12467 if test "${ac_cv_search_ffi_call+set}" = set; then
12468   :
12469 else
12470   ac_cv_search_ffi_call=no
12471 fi
12472 rm conftest.$ac_ext
12473 LIBS=$ac_func_search_save_LIBS
12474 fi
12475 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12476 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12477 ac_res=$ac_cv_search_ffi_call
12478 if test "$ac_res" != no; then
12479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12480
12481 cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_FFI_CALL 1
12483 _ACEOF
12484
12485 else
12486   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12487 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12488    { (exit 1); exit 1; }; }
12489 fi
12490
12491 fi
12492
12493 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12494 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12495 if test "${ac_cv_search_mallinfo+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   ac_func_search_save_LIBS=$LIBS
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506 /* Override any GCC internal prototype to avoid an error.
12507    Use char because int might match the return type of a GCC
12508    builtin and then its argument prototype would still apply.  */
12509 #ifdef __cplusplus
12510 extern "C"
12511 #endif
12512 char mallinfo ();
12513 int
12514 main ()
12515 {
12516 return mallinfo ();
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 for ac_lib in '' malloc; do
12522   if test -z "$ac_lib"; then
12523     ac_res="none required"
12524   else
12525     ac_res=-l$ac_lib
12526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12527   fi
12528   rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (ac_try="$ac_link"
12530 case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_link") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543   { (case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_try") 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; } &&
12552          { ac_try='test -s conftest$ac_exeext'
12553   { (case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_try") 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_search_mallinfo=$ac_res
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567
12568 fi
12569
12570 rm -f core conftest.err conftest.$ac_objext \
12571       conftest$ac_exeext
12572   if test "${ac_cv_search_mallinfo+set}" = set; then
12573   break
12574 fi
12575 done
12576 if test "${ac_cv_search_mallinfo+set}" = set; then
12577   :
12578 else
12579   ac_cv_search_mallinfo=no
12580 fi
12581 rm conftest.$ac_ext
12582 LIBS=$ac_func_search_save_LIBS
12583 fi
12584 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12585 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12586 ac_res=$ac_cv_search_mallinfo
12587 if test "$ac_res" != no; then
12588   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_MALLINFO 1
12592 _ACEOF
12593
12594 fi
12595
12596
12597 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12598
12599 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12600 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12601 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12602   echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604   ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lpthread  $LIBS"
12606 cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612
12613 /* Override any GCC internal prototype to avoid an error.
12614    Use char because int might match the return type of a GCC
12615    builtin and then its argument prototype would still apply.  */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char pthread_mutex_init ();
12620 int
12621 main ()
12622 {
12623 return pthread_mutex_init ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_link") 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643   { (case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_try") 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; } &&
12652          { ac_try='test -s conftest$ac_exeext'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   ac_cv_lib_pthread_pthread_mutex_init=yes
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667         ac_cv_lib_pthread_pthread_mutex_init=no
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext \
12671       conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_check_lib_save_LIBS
12673 fi
12674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12675 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12676 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12677   cat >>confdefs.h <<_ACEOF
12678 #define HAVE_LIBPTHREAD 1
12679 _ACEOF
12680
12681   LIBS="-lpthread $LIBS"
12682
12683 fi
12684
12685   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12686 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12687 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   ac_func_search_save_LIBS=$LIBS
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699    Use char because int might match the return type of a GCC
12700    builtin and then its argument prototype would still apply.  */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char pthread_mutex_lock ();
12705 int
12706 main ()
12707 {
12708 return pthread_mutex_lock ();
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 for ac_lib in '' pthread; do
12714   if test -z "$ac_lib"; then
12715     ac_res="none required"
12716   else
12717     ac_res=-l$ac_lib
12718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12719   fi
12720   rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727   (eval "$ac_link") 2>conftest.er1
12728   ac_status=$?
12729   grep -v '^ *+' conftest.er1 >conftest.err
12730   rm -f conftest.er1
12731   cat conftest.err >&5
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } &&
12734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12735   { (case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740   (eval "$ac_try") 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); }; } &&
12744          { ac_try='test -s conftest$ac_exeext'
12745   { (case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_try") 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; }; then
12754   ac_cv_search_pthread_mutex_lock=$ac_res
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759
12760 fi
12761
12762 rm -f core conftest.err conftest.$ac_objext \
12763       conftest$ac_exeext
12764   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12765   break
12766 fi
12767 done
12768 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12769   :
12770 else
12771   ac_cv_search_pthread_mutex_lock=no
12772 fi
12773 rm conftest.$ac_ext
12774 LIBS=$ac_func_search_save_LIBS
12775 fi
12776 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12777 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12778 ac_res=$ac_cv_search_pthread_mutex_lock
12779 if test "$ac_res" != no; then
12780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12781
12782 cat >>confdefs.h <<\_ACEOF
12783 #define HAVE_PTHREAD_MUTEX_LOCK 1
12784 _ACEOF
12785
12786 fi
12787
12788   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12789 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12790 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12791   echo $ECHO_N "(cached) $ECHO_C" >&6
12792 else
12793   ac_func_search_save_LIBS=$LIBS
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800
12801 /* Override any GCC internal prototype to avoid an error.
12802    Use char because int might match the return type of a GCC
12803    builtin and then its argument prototype would still apply.  */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char pthread_rwlock_init ();
12808 int
12809 main ()
12810 {
12811 return pthread_rwlock_init ();
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 for ac_lib in '' pthread; do
12817   if test -z "$ac_lib"; then
12818     ac_res="none required"
12819   else
12820     ac_res=-l$ac_lib
12821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12822   fi
12823   rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (ac_try="$ac_link"
12825 case "(($ac_try" in
12826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827   *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830   (eval "$ac_link") 2>conftest.er1
12831   ac_status=$?
12832   grep -v '^ *+' conftest.er1 >conftest.err
12833   rm -f conftest.er1
12834   cat conftest.err >&5
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); } &&
12837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12838   { (case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843   (eval "$ac_try") 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; } &&
12847          { ac_try='test -s conftest$ac_exeext'
12848   { (case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_try") 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; }; then
12857   ac_cv_search_pthread_rwlock_init=$ac_res
12858 else
12859   echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862
12863 fi
12864
12865 rm -f core conftest.err conftest.$ac_objext \
12866       conftest$ac_exeext
12867   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12868   break
12869 fi
12870 done
12871 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12872   :
12873 else
12874   ac_cv_search_pthread_rwlock_init=no
12875 fi
12876 rm conftest.$ac_ext
12877 LIBS=$ac_func_search_save_LIBS
12878 fi
12879 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12880 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12881 ac_res=$ac_cv_search_pthread_rwlock_init
12882 if test "$ac_res" != no; then
12883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12884
12885 cat >>confdefs.h <<\_ACEOF
12886 #define HAVE_PTHREAD_RWLOCK_INIT 1
12887 _ACEOF
12888
12889 fi
12890
12891   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12892 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12893 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12894   echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896   ac_func_search_save_LIBS=$LIBS
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905    Use char because int might match the return type of a GCC
12906    builtin and then its argument prototype would still apply.  */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char pthread_getspecific ();
12911 int
12912 main ()
12913 {
12914 return pthread_getspecific ();
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 for ac_lib in '' pthread; do
12920   if test -z "$ac_lib"; then
12921     ac_res="none required"
12922   else
12923     ac_res=-l$ac_lib
12924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12925   fi
12926   rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_link") 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } &&
12940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12941   { (case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_try") 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; } &&
12950          { ac_try='test -s conftest$ac_exeext'
12951   { (case "(($ac_try" in
12952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953   *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956   (eval "$ac_try") 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); }; }; then
12960   ac_cv_search_pthread_getspecific=$ac_res
12961 else
12962   echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965
12966 fi
12967
12968 rm -f core conftest.err conftest.$ac_objext \
12969       conftest$ac_exeext
12970   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12971   break
12972 fi
12973 done
12974 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12975   :
12976 else
12977   ac_cv_search_pthread_getspecific=no
12978 fi
12979 rm conftest.$ac_ext
12980 LIBS=$ac_func_search_save_LIBS
12981 fi
12982 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12983 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12984 ac_res=$ac_cv_search_pthread_getspecific
12985 if test "$ac_res" != no; then
12986   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12987
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_PTHREAD_GETSPECIFIC 1
12990 _ACEOF
12991
12992 fi
12993
12994 fi
12995
12996 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12997
12998 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12999 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13000 if test "${ac_cv_lib_z_compress2+set}" = set; then
13001   echo $ECHO_N "(cached) $ECHO_C" >&6
13002 else
13003   ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-lz  $LIBS"
13005 cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h.  */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h.  */
13011
13012 /* Override any GCC internal prototype to avoid an error.
13013    Use char because int might match the return type of a GCC
13014    builtin and then its argument prototype would still apply.  */
13015 #ifdef __cplusplus
13016 extern "C"
13017 #endif
13018 char compress2 ();
13019 int
13020 main ()
13021 {
13022 return compress2 ();
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext conftest$ac_exeext
13028 if { (ac_try="$ac_link"
13029 case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_link") 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } &&
13041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13042   { (case "(($ac_try" in
13043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044   *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047   (eval "$ac_try") 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; } &&
13051          { ac_try='test -s conftest$ac_exeext'
13052   { (case "(($ac_try" in
13053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054   *) ac_try_echo=$ac_try;;
13055 esac
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057   (eval "$ac_try") 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }; }; then
13061   ac_cv_lib_z_compress2=yes
13062 else
13063   echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066         ac_cv_lib_z_compress2=no
13067 fi
13068
13069 rm -f core conftest.err conftest.$ac_objext \
13070       conftest$ac_exeext conftest.$ac_ext
13071 LIBS=$ac_check_lib_save_LIBS
13072 fi
13073 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13074 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13075 if test $ac_cv_lib_z_compress2 = yes; then
13076   cat >>confdefs.h <<_ACEOF
13077 #define HAVE_LIBZ 1
13078 _ACEOF
13079
13080   LIBS="-lz $LIBS"
13081
13082 fi
13083
13084 fi
13085
13086
13087 # Check whether --with-udis86 was given.
13088 if test "${with_udis86+set}" = set; then
13089   withval=$with_udis86;
13090       USE_UDIS86=1
13091
13092       case "$withval" in
13093         /usr/lib|yes) ;;
13094         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13095       esac
13096
13097 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13098 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13099 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   ac_check_lib_save_LIBS=$LIBS
13103 LIBS="-ludis86  $LIBS"
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110
13111 /* Override any GCC internal prototype to avoid an error.
13112    Use char because int might match the return type of a GCC
13113    builtin and then its argument prototype would still apply.  */
13114 #ifdef __cplusplus
13115 extern "C"
13116 #endif
13117 char ud_init ();
13118 int
13119 main ()
13120 {
13121 return ud_init ();
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133   (eval "$ac_link") 2>conftest.er1
13134   ac_status=$?
13135   grep -v '^ *+' conftest.er1 >conftest.err
13136   rm -f conftest.er1
13137   cat conftest.err >&5
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); } &&
13140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141   { (case "(($ac_try" in
13142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143   *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146   (eval "$ac_try") 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; } &&
13150          { ac_try='test -s conftest$ac_exeext'
13151   { (case "(($ac_try" in
13152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153   *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156   (eval "$ac_try") 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_cv_lib_udis86_ud_init=yes
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165         ac_cv_lib_udis86_ud_init=no
13166 fi
13167
13168 rm -f core conftest.err conftest.$ac_objext \
13169       conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13171 fi
13172 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13173 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13174 if test $ac_cv_lib_udis86_ud_init = yes; then
13175   cat >>confdefs.h <<_ACEOF
13176 #define HAVE_LIBUDIS86 1
13177 _ACEOF
13178
13179   LIBS="-ludis86 $LIBS"
13180
13181 else
13182
13183         echo "Error! You need to have libudis86 around."
13184         exit -1
13185
13186 fi
13187
13188
13189 else
13190   USE_UDIS86=0
13191
13192 fi
13193
13194
13195 cat >>confdefs.h <<_ACEOF
13196 #define USE_UDIS86 $USE_UDIS86
13197 _ACEOF
13198
13199
13200
13201 # Check whether --with-oprofile was given.
13202 if test "${with_oprofile+set}" = set; then
13203   withval=$with_oprofile;
13204       USE_OPROFILE=1
13205
13206       case "$withval" in
13207         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13208         no) llvm_cv_oppath=
13209             USE_OPROFILE=0
13210  ;;
13211         *) llvm_cv_oppath="${withval}/lib/oprofile"
13212            CPPFLAGS="-I${withval}/include";;
13213       esac
13214       case $llvm_cv_os_type in
13215         Linux)
13216           if test -n "$llvm_cv_oppath" ; then
13217             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13218                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13219 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13220 if test "${ac_cv_search_bfd_init+set}" = set; then
13221   echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223   ac_func_search_save_LIBS=$LIBS
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230
13231 /* Override any GCC internal prototype to avoid an error.
13232    Use char because int might match the return type of a GCC
13233    builtin and then its argument prototype would still apply.  */
13234 #ifdef __cplusplus
13235 extern "C"
13236 #endif
13237 char bfd_init ();
13238 int
13239 main ()
13240 {
13241 return bfd_init ();
13242   ;
13243   return 0;
13244 }
13245 _ACEOF
13246 for ac_lib in '' bfd; do
13247   if test -z "$ac_lib"; then
13248     ac_res="none required"
13249   else
13250     ac_res=-l$ac_lib
13251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13252   fi
13253   rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257   *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260   (eval "$ac_link") 2>conftest.er1
13261   ac_status=$?
13262   grep -v '^ *+' conftest.er1 >conftest.err
13263   rm -f conftest.er1
13264   cat conftest.err >&5
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); } &&
13267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13268   { (case "(($ac_try" in
13269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270   *) ac_try_echo=$ac_try;;
13271 esac
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273   (eval "$ac_try") 2>&5
13274   ac_status=$?
13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276   (exit $ac_status); }; } &&
13277          { ac_try='test -s conftest$ac_exeext'
13278   { (case "(($ac_try" in
13279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280   *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283   (eval "$ac_try") 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); }; }; then
13287   ac_cv_search_bfd_init=$ac_res
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292
13293 fi
13294
13295 rm -f core conftest.err conftest.$ac_objext \
13296       conftest$ac_exeext
13297   if test "${ac_cv_search_bfd_init+set}" = set; then
13298   break
13299 fi
13300 done
13301 if test "${ac_cv_search_bfd_init+set}" = set; then
13302   :
13303 else
13304   ac_cv_search_bfd_init=no
13305 fi
13306 rm conftest.$ac_ext
13307 LIBS=$ac_func_search_save_LIBS
13308 fi
13309 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13310 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13311 ac_res=$ac_cv_search_bfd_init
13312 if test "$ac_res" != no; then
13313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13314
13315 fi
13316
13317             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13318 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13319 if test "${ac_cv_search_op_open_agent+set}" = set; then
13320   echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322   ac_func_search_save_LIBS=$LIBS
13323 cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h.  */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h.  */
13329
13330 /* Override any GCC internal prototype to avoid an error.
13331    Use char because int might match the return type of a GCC
13332    builtin and then its argument prototype would still apply.  */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 char op_open_agent ();
13337 int
13338 main ()
13339 {
13340 return op_open_agent ();
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 for ac_lib in '' opagent; do
13346   if test -z "$ac_lib"; then
13347     ac_res="none required"
13348   else
13349     ac_res=-l$ac_lib
13350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13351   fi
13352   rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356   *) ac_try_echo=$ac_try;;
13357 esac
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359   (eval "$ac_link") 2>conftest.er1
13360   ac_status=$?
13361   grep -v '^ *+' conftest.er1 >conftest.err
13362   rm -f conftest.er1
13363   cat conftest.err >&5
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } &&
13366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13367   { (case "(($ac_try" in
13368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369   *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372   (eval "$ac_try") 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); }; } &&
13376          { ac_try='test -s conftest$ac_exeext'
13377   { (case "(($ac_try" in
13378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379   *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382   (eval "$ac_try") 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); }; }; then
13386   ac_cv_search_op_open_agent=$ac_res
13387 else
13388   echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13390
13391
13392 fi
13393
13394 rm -f core conftest.err conftest.$ac_objext \
13395       conftest$ac_exeext
13396   if test "${ac_cv_search_op_open_agent+set}" = set; then
13397   break
13398 fi
13399 done
13400 if test "${ac_cv_search_op_open_agent+set}" = set; then
13401   :
13402 else
13403   ac_cv_search_op_open_agent=no
13404 fi
13405 rm conftest.$ac_ext
13406 LIBS=$ac_func_search_save_LIBS
13407 fi
13408 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13409 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13410 ac_res=$ac_cv_search_op_open_agent
13411 if test "$ac_res" != no; then
13412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13413
13414 else
13415
13416               echo "Error! You need to have libopagent around."
13417               exit -1
13418
13419 fi
13420
13421             if test "${ac_cv_header_opagent_h+set}" = set; then
13422   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13423 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_opagent_h+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 fi
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13429 else
13430   # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13432 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h.  */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h.  */
13439 $ac_includes_default
13440 #include <opagent.h>
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446   *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449   (eval "$ac_compile") 2>conftest.er1
13450   ac_status=$?
13451   grep -v '^ *+' conftest.er1 >conftest.err
13452   rm -f conftest.er1
13453   cat conftest.err >&5
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } &&
13456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13457   { (case "(($ac_try" in
13458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459   *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462   (eval "$ac_try") 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; } &&
13466          { ac_try='test -s conftest.$ac_objext'
13467   { (case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_try") 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }; }; then
13476   ac_header_compiler=yes
13477 else
13478   echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481         ac_header_compiler=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6; }
13487
13488 # Is the header present?
13489 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13490 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 #include <opagent.h>
13498 _ACEOF
13499 if { (ac_try="$ac_cpp conftest.$ac_ext"
13500 case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13506   ac_status=$?
13507   grep -v '^ *+' conftest.er1 >conftest.err
13508   rm -f conftest.er1
13509   cat conftest.err >&5
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } >/dev/null; then
13512   if test -s conftest.err; then
13513     ac_cpp_err=$ac_c_preproc_warn_flag
13514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13515   else
13516     ac_cpp_err=
13517   fi
13518 else
13519   ac_cpp_err=yes
13520 fi
13521 if test -z "$ac_cpp_err"; then
13522   ac_header_preproc=yes
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527   ac_header_preproc=no
13528 fi
13529
13530 rm -f conftest.err conftest.$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13533
13534 # So?  What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536   yes:no: )
13537     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13541     ac_header_preproc=yes
13542     ;;
13543   no:yes:* )
13544     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13548     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13550     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13552     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13554     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13556     ( cat <<\_ASBOX
13557 ## ------------------------------------ ##
13558 ## Report this to http://llvm.org/bugs/ ##
13559 ## ------------------------------------ ##
13560 _ASBOX
13561      ) | sed "s/^/$as_me: WARNING:     /" >&2
13562     ;;
13563 esac
13564 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13565 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13566 if test "${ac_cv_header_opagent_h+set}" = set; then
13567   echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569   ac_cv_header_opagent_h=$ac_header_preproc
13570 fi
13571 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13572 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13573
13574 fi
13575 if test $ac_cv_header_opagent_h = yes; then
13576   :
13577 else
13578
13579               echo "Error! You need to have opagent.h around."
13580               exit -1
13581
13582 fi
13583
13584
13585           fi ;;
13586         *)
13587           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13588 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13589    { (exit 1); exit 1; }; } ;;
13590       esac
13591
13592 else
13593
13594       USE_OPROFILE=0
13595
13596
13597 fi
13598
13599
13600 cat >>confdefs.h <<_ACEOF
13601 #define LLVM_USE_OPROFILE $USE_OPROFILE
13602 _ACEOF
13603
13604
13605
13606 # Check whether --with-intel-jitevents was given.
13607 if test "${with_intel_jitevents+set}" = set; then
13608   withval=$with_intel_jitevents;
13609        case "$withval" in
13610           yes) USE_INTEL_JITEVENTS=1
13611 ;;
13612           no)  USE_INTEL_JITEVENTS=0
13613 ;;
13614           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13615 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13616    { (exit 1); exit 1; }; };;
13617        esac
13618
13619       case $llvm_cv_os_type in
13620         Linux|Win32|Cygwin|MingW) ;;
13621         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13622 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13623    { (exit 1); exit 1; }; };;
13624       esac
13625
13626       case "$llvm_cv_target_arch" in
13627         x86|x86_64) ;;
13628         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13629 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13630    { (exit 1); exit 1; }; };;
13631       esac
13632
13633 else
13634
13635       USE_INTEL_JITEVENTS=0
13636
13637
13638 fi
13639
13640
13641 cat >>confdefs.h <<_ACEOF
13642 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13643 _ACEOF
13644
13645
13646 for ac_prog in xml2-config
13647 do
13648   # Extract the first word of "$ac_prog", so it can be a program name with args.
13649 set dummy $ac_prog; ac_word=$2
13650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13652 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   if test -n "$XML2CONFIG"; then
13656   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13657 else
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663   for ac_exec_ext in '' $ac_executable_extensions; do
13664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13665     ac_cv_prog_XML2CONFIG="$ac_prog"
13666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13667     break 2
13668   fi
13669 done
13670 done
13671 IFS=$as_save_IFS
13672
13673 fi
13674 fi
13675 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13676 if test -n "$XML2CONFIG"; then
13677   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13678 echo "${ECHO_T}$XML2CONFIG" >&6; }
13679 else
13680   { echo "$as_me:$LINENO: result: no" >&5
13681 echo "${ECHO_T}no" >&6; }
13682 fi
13683
13684
13685   test -n "$XML2CONFIG" && break
13686 done
13687
13688
13689 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13690 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13691 if test "x$XML2CONFIG" = "x"; then
13692  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13693 echo "${ECHO_T}xml2-config not found" >&6; }
13694 else
13695  LIBXML2_INC=`$XML2CONFIG --cflags`
13696  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13697 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13698  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13699 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13700 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703   ac_check_lib_save_LIBS=$LIBS
13704 LIBS="-lxml2  $LIBS"
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711
13712 /* Override any GCC internal prototype to avoid an error.
13713    Use char because int might match the return type of a GCC
13714    builtin and then its argument prototype would still apply.  */
13715 #ifdef __cplusplus
13716 extern "C"
13717 #endif
13718 char xmlReadFile ();
13719 int
13720 main ()
13721 {
13722 return xmlReadFile ();
13723   ;
13724   return 0;
13725 }
13726 _ACEOF
13727 rm -f conftest.$ac_objext conftest$ac_exeext
13728 if { (ac_try="$ac_link"
13729 case "(($ac_try" in
13730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731   *) ac_try_echo=$ac_try;;
13732 esac
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734   (eval "$ac_link") 2>conftest.er1
13735   ac_status=$?
13736   grep -v '^ *+' conftest.er1 >conftest.err
13737   rm -f conftest.er1
13738   cat conftest.err >&5
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); } &&
13741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13742   { (case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747   (eval "$ac_try") 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; } &&
13751          { ac_try='test -s conftest$ac_exeext'
13752   { (case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_try") 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   ac_cv_lib_xml2_xmlReadFile=yes
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766         ac_cv_lib_xml2_xmlReadFile=no
13767 fi
13768
13769 rm -f core conftest.err conftest.$ac_objext \
13770       conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13772 fi
13773 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13774 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13775 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13776
13777 cat >>confdefs.h <<\_ACEOF
13778 #define CLANG_HAVE_LIBXML 1
13779 _ACEOF
13780
13781                                 LIBXML2_LIBS="-lxml2"
13782 fi
13783
13784 fi
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794 ac_header_dirent=no
13795 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13796   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13797 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13798 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h.  */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h.  */
13808 #include <sys/types.h>
13809 #include <$ac_hdr>
13810
13811 int
13812 main ()
13813 {
13814 if ((DIR *) 0)
13815 return 0;
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827   (eval "$ac_compile") 2>conftest.er1
13828   ac_status=$?
13829   grep -v '^ *+' conftest.er1 >conftest.err
13830   rm -f conftest.er1
13831   cat conftest.err >&5
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835   { (case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_try") 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; } &&
13844          { ac_try='test -s conftest.$ac_objext'
13845   { (case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_try") 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   eval "$as_ac_Header=yes"
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859         eval "$as_ac_Header=no"
13860 fi
13861
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 fi
13864 ac_res=`eval echo '${'$as_ac_Header'}'`
13865                { echo "$as_me:$LINENO: result: $ac_res" >&5
13866 echo "${ECHO_T}$ac_res" >&6; }
13867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13868   cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13870 _ACEOF
13871
13872 ac_header_dirent=$ac_hdr; break
13873 fi
13874
13875 done
13876 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13877 if test $ac_header_dirent = dirent.h; then
13878   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13879 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_opendir+set}" = set; then
13881   echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883   ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890
13891 /* Override any GCC internal prototype to avoid an error.
13892    Use char because int might match the return type of a GCC
13893    builtin and then its argument prototype would still apply.  */
13894 #ifdef __cplusplus
13895 extern "C"
13896 #endif
13897 char opendir ();
13898 int
13899 main ()
13900 {
13901 return opendir ();
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 for ac_lib in '' dir; do
13907   if test -z "$ac_lib"; then
13908     ac_res="none required"
13909   else
13910     ac_res=-l$ac_lib
13911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13912   fi
13913   rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920   (eval "$ac_link") 2>conftest.er1
13921   ac_status=$?
13922   grep -v '^ *+' conftest.er1 >conftest.err
13923   rm -f conftest.er1
13924   cat conftest.err >&5
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); } &&
13927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928   { (case "(($ac_try" in
13929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930   *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933   (eval "$ac_try") 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; } &&
13937          { ac_try='test -s conftest$ac_exeext'
13938   { (case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943   (eval "$ac_try") 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_search_opendir=$ac_res
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952
13953 fi
13954
13955 rm -f core conftest.err conftest.$ac_objext \
13956       conftest$ac_exeext
13957   if test "${ac_cv_search_opendir+set}" = set; then
13958   break
13959 fi
13960 done
13961 if test "${ac_cv_search_opendir+set}" = set; then
13962   :
13963 else
13964   ac_cv_search_opendir=no
13965 fi
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13968 fi
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13970 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13971 ac_res=$ac_cv_search_opendir
13972 if test "$ac_res" != no; then
13973   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13974
13975 fi
13976
13977 else
13978   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   ac_func_search_save_LIBS=$LIBS
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h.  */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h.  */
13990
13991 /* Override any GCC internal prototype to avoid an error.
13992    Use char because int might match the return type of a GCC
13993    builtin and then its argument prototype would still apply.  */
13994 #ifdef __cplusplus
13995 extern "C"
13996 #endif
13997 char opendir ();
13998 int
13999 main ()
14000 {
14001 return opendir ();
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 for ac_lib in '' x; do
14007   if test -z "$ac_lib"; then
14008     ac_res="none required"
14009   else
14010     ac_res=-l$ac_lib
14011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14012   fi
14013   rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017   *) ac_try_echo=$ac_try;;
14018 esac
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020   (eval "$ac_link") 2>conftest.er1
14021   ac_status=$?
14022   grep -v '^ *+' conftest.er1 >conftest.err
14023   rm -f conftest.er1
14024   cat conftest.err >&5
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028   { (case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033   (eval "$ac_try") 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest$ac_exeext'
14038   { (case "(($ac_try" in
14039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040   *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043   (eval "$ac_try") 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_cv_search_opendir=$ac_res
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052
14053 fi
14054
14055 rm -f core conftest.err conftest.$ac_objext \
14056       conftest$ac_exeext
14057   if test "${ac_cv_search_opendir+set}" = set; then
14058   break
14059 fi
14060 done
14061 if test "${ac_cv_search_opendir+set}" = set; then
14062   :
14063 else
14064   ac_cv_search_opendir=no
14065 fi
14066 rm conftest.$ac_ext
14067 LIBS=$ac_func_search_save_LIBS
14068 fi
14069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14071 ac_res=$ac_cv_search_opendir
14072 if test "$ac_res" != no; then
14073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14074
14075 fi
14076
14077 fi
14078
14079 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14080 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14081 if test "${ac_cv_header_mmap_anon+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084    ac_ext=c
14085 ac_cpp='$CPP $CPPFLAGS'
14086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089
14090   cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 #include <sys/mman.h>
14097 #include <unistd.h>
14098 #include <fcntl.h>
14099 int
14100 main ()
14101 {
14102 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (ac_try="$ac_compile"
14109 case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_compile") 2>conftest.er1
14115   ac_status=$?
14116   grep -v '^ *+' conftest.er1 >conftest.err
14117   rm -f conftest.er1
14118   cat conftest.err >&5
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); } &&
14121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122   { (case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127   (eval "$ac_try") 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_try") 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   ac_cv_header_mmap_anon=yes
14142 else
14143   echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146         ac_cv_header_mmap_anon=no
14147 fi
14148
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150   ac_ext=c
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155
14156
14157 fi
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14159 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14160 if test "$ac_cv_header_mmap_anon" = yes; then
14161
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_MMAP_ANONYMOUS 1
14164 _ACEOF
14165
14166 fi
14167
14168 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14169 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14170 if test "${ac_cv_header_stat_broken+set}" = set; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179 #include <sys/types.h>
14180 #include <sys/stat.h>
14181
14182 #if defined S_ISBLK && defined S_IFDIR
14183 # if S_ISBLK (S_IFDIR)
14184 You lose.
14185 # endif
14186 #endif
14187
14188 #if defined S_ISBLK && defined S_IFCHR
14189 # if S_ISBLK (S_IFCHR)
14190 You lose.
14191 # endif
14192 #endif
14193
14194 #if defined S_ISLNK && defined S_IFREG
14195 # if S_ISLNK (S_IFREG)
14196 You lose.
14197 # endif
14198 #endif
14199
14200 #if defined S_ISSOCK && defined S_IFREG
14201 # if S_ISSOCK (S_IFREG)
14202 You lose.
14203 # endif
14204 #endif
14205
14206 _ACEOF
14207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208   $EGREP "You lose" >/dev/null 2>&1; then
14209   ac_cv_header_stat_broken=yes
14210 else
14211   ac_cv_header_stat_broken=no
14212 fi
14213 rm -f conftest*
14214
14215 fi
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14217 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14218 if test $ac_cv_header_stat_broken = yes; then
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define STAT_MACROS_BROKEN 1
14222 _ACEOF
14223
14224 fi
14225
14226 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 #include <sys/types.h>
14238 #include <sys/wait.h>
14239 #ifndef WEXITSTATUS
14240 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14241 #endif
14242 #ifndef WIFEXITED
14243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14244 #endif
14245
14246 int
14247 main ()
14248 {
14249   int s;
14250   wait (&s);
14251   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext
14257 if { (ac_try="$ac_compile"
14258 case "(($ac_try" in
14259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260   *) ac_try_echo=$ac_try;;
14261 esac
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263   (eval "$ac_compile") 2>conftest.er1
14264   ac_status=$?
14265   grep -v '^ *+' conftest.er1 >conftest.err
14266   rm -f conftest.er1
14267   cat conftest.err >&5
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } &&
14270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_try") 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; } &&
14280          { ac_try='test -s conftest.$ac_objext'
14281   { (case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_try") 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_cv_header_sys_wait_h=yes
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295         ac_cv_header_sys_wait_h=no
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14302 if test $ac_cv_header_sys_wait_h = yes; then
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_SYS_WAIT_H 1
14306 _ACEOF
14307
14308 fi
14309
14310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_time+set}" = set; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 #include <sys/types.h>
14322 #include <sys/time.h>
14323 #include <time.h>
14324
14325 int
14326 main ()
14327 {
14328 if ((struct tm *) 0)
14329 return 0;
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349   { (case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_try") 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; } &&
14358          { ac_try='test -s conftest.$ac_objext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_try") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   ac_cv_header_time=yes
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373         ac_cv_header_time=no
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 fi
14378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14380 if test $ac_cv_header_time = yes; then
14381
14382 cat >>confdefs.h <<\_ACEOF
14383 #define TIME_WITH_SYS_TIME 1
14384 _ACEOF
14385
14386 fi
14387
14388
14389 ac_ext=cpp
14390 ac_cpp='$CXXCPP $CPPFLAGS'
14391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14394
14395 ac_ext=cpp
14396 ac_cpp='$CXXCPP $CPPFLAGS'
14397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14400 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14401 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14402 if test -z "$CXXCPP"; then
14403   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406       # Double quotes because CXXCPP needs to be expanded
14407     for CXXCPP in "$CXX -E" "/lib/cpp"
14408     do
14409       ac_preproc_ok=false
14410 for ac_cxx_preproc_warn_flag in '' yes
14411 do
14412   # Use a header file that comes with gcc, so configuring glibc
14413   # with a fresh cross-compiler works.
14414   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14415   # <limits.h> exists even on freestanding compilers.
14416   # On the NeXT, cc -E runs the code through the compiler's parser,
14417   # not just through cpp. "Syntax error" is here to catch this case.
14418   cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424 #ifdef __STDC__
14425 # include <limits.h>
14426 #else
14427 # include <assert.h>
14428 #endif
14429                      Syntax error
14430 _ACEOF
14431 if { (ac_try="$ac_cpp conftest.$ac_ext"
14432 case "(($ac_try" in
14433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434   *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14438   ac_status=$?
14439   grep -v '^ *+' conftest.er1 >conftest.err
14440   rm -f conftest.er1
14441   cat conftest.err >&5
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } >/dev/null; then
14444   if test -s conftest.err; then
14445     ac_cpp_err=$ac_cxx_preproc_warn_flag
14446     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14447   else
14448     ac_cpp_err=
14449   fi
14450 else
14451   ac_cpp_err=yes
14452 fi
14453 if test -z "$ac_cpp_err"; then
14454   :
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459   # Broken: fails on valid input.
14460 continue
14461 fi
14462
14463 rm -f conftest.err conftest.$ac_ext
14464
14465   # OK, works on sane cases.  Now check whether nonexistent headers
14466   # can be detected and how.
14467   cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473 #include <ac_nonexistent.h>
14474 _ACEOF
14475 if { (ac_try="$ac_cpp conftest.$ac_ext"
14476 case "(($ac_try" in
14477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478   *) ac_try_echo=$ac_try;;
14479 esac
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14482   ac_status=$?
14483   grep -v '^ *+' conftest.er1 >conftest.err
14484   rm -f conftest.er1
14485   cat conftest.err >&5
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } >/dev/null; then
14488   if test -s conftest.err; then
14489     ac_cpp_err=$ac_cxx_preproc_warn_flag
14490     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14491   else
14492     ac_cpp_err=
14493   fi
14494 else
14495   ac_cpp_err=yes
14496 fi
14497 if test -z "$ac_cpp_err"; then
14498   # Broken: success on invalid input.
14499 continue
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504   # Passes both tests.
14505 ac_preproc_ok=:
14506 break
14507 fi
14508
14509 rm -f conftest.err conftest.$ac_ext
14510
14511 done
14512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14513 rm -f conftest.err conftest.$ac_ext
14514 if $ac_preproc_ok; then
14515   break
14516 fi
14517
14518     done
14519     ac_cv_prog_CXXCPP=$CXXCPP
14520
14521 fi
14522   CXXCPP=$ac_cv_prog_CXXCPP
14523 else
14524   ac_cv_prog_CXXCPP=$CXXCPP
14525 fi
14526 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14527 echo "${ECHO_T}$CXXCPP" >&6; }
14528 ac_preproc_ok=false
14529 for ac_cxx_preproc_warn_flag in '' yes
14530 do
14531   # Use a header file that comes with gcc, so configuring glibc
14532   # with a fresh cross-compiler works.
14533   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534   # <limits.h> exists even on freestanding compilers.
14535   # On the NeXT, cc -E runs the code through the compiler's parser,
14536   # not just through cpp. "Syntax error" is here to catch this case.
14537   cat >conftest.$ac_ext <<_ACEOF
14538 /* confdefs.h.  */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h.  */
14543 #ifdef __STDC__
14544 # include <limits.h>
14545 #else
14546 # include <assert.h>
14547 #endif
14548                      Syntax error
14549 _ACEOF
14550 if { (ac_try="$ac_cpp conftest.$ac_ext"
14551 case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } >/dev/null; then
14563   if test -s conftest.err; then
14564     ac_cpp_err=$ac_cxx_preproc_warn_flag
14565     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14566   else
14567     ac_cpp_err=
14568   fi
14569 else
14570   ac_cpp_err=yes
14571 fi
14572 if test -z "$ac_cpp_err"; then
14573   :
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578   # Broken: fails on valid input.
14579 continue
14580 fi
14581
14582 rm -f conftest.err conftest.$ac_ext
14583
14584   # OK, works on sane cases.  Now check whether nonexistent headers
14585   # can be detected and how.
14586   cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592 #include <ac_nonexistent.h>
14593 _ACEOF
14594 if { (ac_try="$ac_cpp conftest.$ac_ext"
14595 case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14601   ac_status=$?
14602   grep -v '^ *+' conftest.er1 >conftest.err
14603   rm -f conftest.er1
14604   cat conftest.err >&5
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } >/dev/null; then
14607   if test -s conftest.err; then
14608     ac_cpp_err=$ac_cxx_preproc_warn_flag
14609     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14610   else
14611     ac_cpp_err=
14612   fi
14613 else
14614   ac_cpp_err=yes
14615 fi
14616 if test -z "$ac_cpp_err"; then
14617   # Broken: success on invalid input.
14618 continue
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623   # Passes both tests.
14624 ac_preproc_ok=:
14625 break
14626 fi
14627
14628 rm -f conftest.err conftest.$ac_ext
14629
14630 done
14631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14632 rm -f conftest.err conftest.$ac_ext
14633 if $ac_preproc_ok; then
14634   :
14635 else
14636   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14637 See \`config.log' for more details." >&5
14638 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14639 See \`config.log' for more details." >&2;}
14640    { (exit 1); exit 1; }; }
14641 fi
14642
14643 ac_ext=cpp
14644 ac_cpp='$CXXCPP $CPPFLAGS'
14645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14648
14649
14650
14651 for ac_header in cxxabi.h
14652 do
14653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14658   echo $ECHO_N "(cached) $ECHO_C" >&6
14659 fi
14660 ac_res=`eval echo '${'$as_ac_Header'}'`
14661                { echo "$as_me:$LINENO: result: $ac_res" >&5
14662 echo "${ECHO_T}$ac_res" >&6; }
14663 else
14664   # Is the header compilable?
14665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h.  */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h.  */
14673 $ac_includes_default
14674 #include <$ac_header>
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (ac_try="$ac_compile"
14678 case "(($ac_try" in
14679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14680   *) ac_try_echo=$ac_try;;
14681 esac
14682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14683   (eval "$ac_compile") 2>conftest.er1
14684   ac_status=$?
14685   grep -v '^ *+' conftest.er1 >conftest.err
14686   rm -f conftest.er1
14687   cat conftest.err >&5
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14691   { (case "(($ac_try" in
14692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693   *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696   (eval "$ac_try") 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); }; } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (case "(($ac_try" in
14702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703   *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706   (eval "$ac_try") 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; }; then
14710   ac_header_compiler=yes
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715         ac_header_compiler=no
14716 fi
14717
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14720 echo "${ECHO_T}$ac_header_compiler" >&6; }
14721
14722 # Is the header present?
14723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h.  */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h.  */
14731 #include <$ac_header>
14732 _ACEOF
14733 if { (ac_try="$ac_cpp conftest.$ac_ext"
14734 case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } >/dev/null; then
14746   if test -s conftest.err; then
14747     ac_cpp_err=$ac_cxx_preproc_warn_flag
14748     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14749   else
14750     ac_cpp_err=
14751   fi
14752 else
14753   ac_cpp_err=yes
14754 fi
14755 if test -z "$ac_cpp_err"; then
14756   ac_header_preproc=yes
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761   ac_header_preproc=no
14762 fi
14763
14764 rm -f conftest.err conftest.$ac_ext
14765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14766 echo "${ECHO_T}$ac_header_preproc" >&6; }
14767
14768 # So?  What about this header?
14769 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14770   yes:no: )
14771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14775     ac_header_preproc=yes
14776     ;;
14777   no:yes:* )
14778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14790     ( cat <<\_ASBOX
14791 ## ------------------------------------ ##
14792 ## Report this to http://llvm.org/bugs/ ##
14793 ## ------------------------------------ ##
14794 _ASBOX
14795      ) | sed "s/^/$as_me: WARNING:     /" >&2
14796     ;;
14797 esac
14798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   eval "$as_ac_Header=\$ac_header_preproc"
14804 fi
14805 ac_res=`eval echo '${'$as_ac_Header'}'`
14806                { echo "$as_me:$LINENO: result: $ac_res" >&5
14807 echo "${ECHO_T}$ac_res" >&6; }
14808
14809 fi
14810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14811   cat >>confdefs.h <<_ACEOF
14812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14813 _ACEOF
14814
14815 fi
14816
14817 done
14818
14819 ac_ext=c
14820 ac_cpp='$CPP $CPPFLAGS'
14821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14824
14825
14826
14827
14828
14829
14830 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14831 do
14832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 fi
14839 ac_res=`eval echo '${'$as_ac_Header'}'`
14840                { echo "$as_me:$LINENO: result: $ac_res" >&5
14841 echo "${ECHO_T}$ac_res" >&6; }
14842 else
14843   # Is the header compilable?
14844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 $ac_includes_default
14853 #include <$ac_header>
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (ac_try="$ac_compile"
14857 case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_compile") 2>conftest.er1
14863   ac_status=$?
14864   grep -v '^ *+' conftest.er1 >conftest.err
14865   rm -f conftest.er1
14866   cat conftest.err >&5
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } &&
14869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14870   { (case "(($ac_try" in
14871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872   *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875   (eval "$ac_try") 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; } &&
14879          { ac_try='test -s conftest.$ac_objext'
14880   { (case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_try") 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   ac_header_compiler=yes
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894         ac_header_compiler=no
14895 fi
14896
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14899 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900
14901 # Is the header present?
14902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14904 cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910 #include <$ac_header>
14911 _ACEOF
14912 if { (ac_try="$ac_cpp conftest.$ac_ext"
14913 case "(($ac_try" in
14914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915   *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14919   ac_status=$?
14920   grep -v '^ *+' conftest.er1 >conftest.err
14921   rm -f conftest.er1
14922   cat conftest.err >&5
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } >/dev/null; then
14925   if test -s conftest.err; then
14926     ac_cpp_err=$ac_c_preproc_warn_flag
14927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14928   else
14929     ac_cpp_err=
14930   fi
14931 else
14932   ac_cpp_err=yes
14933 fi
14934 if test -z "$ac_cpp_err"; then
14935   ac_header_preproc=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940   ac_header_preproc=no
14941 fi
14942
14943 rm -f conftest.err conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14945 echo "${ECHO_T}$ac_header_preproc" >&6; }
14946
14947 # So?  What about this header?
14948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14949   yes:no: )
14950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14954     ac_header_preproc=yes
14955     ;;
14956   no:yes:* )
14957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14969     ( cat <<\_ASBOX
14970 ## ------------------------------------ ##
14971 ## Report this to http://llvm.org/bugs/ ##
14972 ## ------------------------------------ ##
14973 _ASBOX
14974      ) | sed "s/^/$as_me: WARNING:     /" >&2
14975     ;;
14976 esac
14977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   eval "$as_ac_Header=\$ac_header_preproc"
14983 fi
14984 ac_res=`eval echo '${'$as_ac_Header'}'`
14985                { echo "$as_me:$LINENO: result: $ac_res" >&5
14986 echo "${ECHO_T}$ac_res" >&6; }
14987
14988 fi
14989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14990   cat >>confdefs.h <<_ACEOF
14991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14992 _ACEOF
14993
14994 fi
14995
14996 done
14997
14998
14999
15000
15001
15002
15003
15004 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15005 do
15006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 fi
15013 ac_res=`eval echo '${'$as_ac_Header'}'`
15014                { echo "$as_me:$LINENO: result: $ac_res" >&5
15015 echo "${ECHO_T}$ac_res" >&6; }
15016 else
15017   # Is the header compilable?
15018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026 $ac_includes_default
15027 #include <$ac_header>
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_compile") 2>conftest.er1
15037   ac_status=$?
15038   grep -v '^ *+' conftest.er1 >conftest.err
15039   rm -f conftest.er1
15040   cat conftest.err >&5
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } &&
15043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044   { (case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_try") 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest.$ac_objext'
15054   { (case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_try") 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_header_compiler=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068         ac_header_compiler=no
15069 fi
15070
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15073 echo "${ECHO_T}$ac_header_compiler" >&6; }
15074
15075 # Is the header present?
15076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15078 cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h.  */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h.  */
15084 #include <$ac_header>
15085 _ACEOF
15086 if { (ac_try="$ac_cpp conftest.$ac_ext"
15087 case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } >/dev/null; then
15099   if test -s conftest.err; then
15100     ac_cpp_err=$ac_c_preproc_warn_flag
15101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15102   else
15103     ac_cpp_err=
15104   fi
15105 else
15106   ac_cpp_err=yes
15107 fi
15108 if test -z "$ac_cpp_err"; then
15109   ac_header_preproc=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114   ac_header_preproc=no
15115 fi
15116
15117 rm -f conftest.err conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15119 echo "${ECHO_T}$ac_header_preproc" >&6; }
15120
15121 # So?  What about this header?
15122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15123   yes:no: )
15124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15128     ac_header_preproc=yes
15129     ;;
15130   no:yes:* )
15131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15143     ( cat <<\_ASBOX
15144 ## ------------------------------------ ##
15145 ## Report this to http://llvm.org/bugs/ ##
15146 ## ------------------------------------ ##
15147 _ASBOX
15148      ) | sed "s/^/$as_me: WARNING:     /" >&2
15149     ;;
15150 esac
15151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15154   echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156   eval "$as_ac_Header=\$ac_header_preproc"
15157 fi
15158 ac_res=`eval echo '${'$as_ac_Header'}'`
15159                { echo "$as_me:$LINENO: result: $ac_res" >&5
15160 echo "${ECHO_T}$ac_res" >&6; }
15161
15162 fi
15163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15164   cat >>confdefs.h <<_ACEOF
15165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15166 _ACEOF
15167
15168 fi
15169
15170 done
15171
15172
15173 for ac_header in utime.h
15174 do
15175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180   echo $ECHO_N "(cached) $ECHO_C" >&6
15181 fi
15182 ac_res=`eval echo '${'$as_ac_Header'}'`
15183                { echo "$as_me:$LINENO: result: $ac_res" >&5
15184 echo "${ECHO_T}$ac_res" >&6; }
15185 else
15186   # Is the header compilable?
15187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195 $ac_includes_default
15196 #include <$ac_header>
15197 _ACEOF
15198 rm -f conftest.$ac_objext
15199 if { (ac_try="$ac_compile"
15200 case "(($ac_try" in
15201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202   *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205   (eval "$ac_compile") 2>conftest.er1
15206   ac_status=$?
15207   grep -v '^ *+' conftest.er1 >conftest.err
15208   rm -f conftest.er1
15209   cat conftest.err >&5
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } &&
15212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15213   { (case "(($ac_try" in
15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215   *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218   (eval "$ac_try") 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; } &&
15222          { ac_try='test -s conftest.$ac_objext'
15223   { (case "(($ac_try" in
15224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225   *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228   (eval "$ac_try") 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; }; then
15232   ac_header_compiler=yes
15233 else
15234   echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237         ac_header_compiler=no
15238 fi
15239
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15242 echo "${ECHO_T}$ac_header_compiler" >&6; }
15243
15244 # Is the header present?
15245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h.  */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h.  */
15253 #include <$ac_header>
15254 _ACEOF
15255 if { (ac_try="$ac_cpp conftest.$ac_ext"
15256 case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } >/dev/null; then
15268   if test -s conftest.err; then
15269     ac_cpp_err=$ac_c_preproc_warn_flag
15270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15271   else
15272     ac_cpp_err=
15273   fi
15274 else
15275   ac_cpp_err=yes
15276 fi
15277 if test -z "$ac_cpp_err"; then
15278   ac_header_preproc=yes
15279 else
15280   echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283   ac_header_preproc=no
15284 fi
15285
15286 rm -f conftest.err conftest.$ac_ext
15287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15288 echo "${ECHO_T}$ac_header_preproc" >&6; }
15289
15290 # So?  What about this header?
15291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15292   yes:no: )
15293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15297     ac_header_preproc=yes
15298     ;;
15299   no:yes:* )
15300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15312     ( cat <<\_ASBOX
15313 ## ------------------------------------ ##
15314 ## Report this to http://llvm.org/bugs/ ##
15315 ## ------------------------------------ ##
15316 _ASBOX
15317      ) | sed "s/^/$as_me: WARNING:     /" >&2
15318     ;;
15319 esac
15320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   eval "$as_ac_Header=\$ac_header_preproc"
15326 fi
15327 ac_res=`eval echo '${'$as_ac_Header'}'`
15328                { echo "$as_me:$LINENO: result: $ac_res" >&5
15329 echo "${ECHO_T}$ac_res" >&6; }
15330
15331 fi
15332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333   cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15335 _ACEOF
15336
15337 fi
15338
15339 done
15340
15341
15342
15343
15344
15345
15346 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15347 do
15348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 fi
15355 ac_res=`eval echo '${'$as_ac_Header'}'`
15356                { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 else
15359   # Is the header compilable?
15360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368 $ac_includes_default
15369 #include <$ac_header>
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (ac_try="$ac_compile"
15373 case "(($ac_try" in
15374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375   *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378   (eval "$ac_compile") 2>conftest.er1
15379   ac_status=$?
15380   grep -v '^ *+' conftest.er1 >conftest.err
15381   rm -f conftest.er1
15382   cat conftest.err >&5
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); } &&
15385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15386   { (case "(($ac_try" in
15387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388   *) ac_try_echo=$ac_try;;
15389 esac
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391   (eval "$ac_try") 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; } &&
15395          { ac_try='test -s conftest.$ac_objext'
15396   { (case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_try") 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; }; then
15405   ac_header_compiler=yes
15406 else
15407   echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410         ac_header_compiler=no
15411 fi
15412
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415 echo "${ECHO_T}$ac_header_compiler" >&6; }
15416
15417 # Is the header present?
15418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 #include <$ac_header>
15427 _ACEOF
15428 if { (ac_try="$ac_cpp conftest.$ac_ext"
15429 case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } >/dev/null; then
15441   if test -s conftest.err; then
15442     ac_cpp_err=$ac_c_preproc_warn_flag
15443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15444   else
15445     ac_cpp_err=
15446   fi
15447 else
15448   ac_cpp_err=yes
15449 fi
15450 if test -z "$ac_cpp_err"; then
15451   ac_header_preproc=yes
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456   ac_header_preproc=no
15457 fi
15458
15459 rm -f conftest.err conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15461 echo "${ECHO_T}$ac_header_preproc" >&6; }
15462
15463 # So?  What about this header?
15464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15465   yes:no: )
15466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15470     ac_header_preproc=yes
15471     ;;
15472   no:yes:* )
15473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15485     ( cat <<\_ASBOX
15486 ## ------------------------------------ ##
15487 ## Report this to http://llvm.org/bugs/ ##
15488 ## ------------------------------------ ##
15489 _ASBOX
15490      ) | sed "s/^/$as_me: WARNING:     /" >&2
15491     ;;
15492 esac
15493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   eval "$as_ac_Header=\$ac_header_preproc"
15499 fi
15500 ac_res=`eval echo '${'$as_ac_Header'}'`
15501                { echo "$as_me:$LINENO: result: $ac_res" >&5
15502 echo "${ECHO_T}$ac_res" >&6; }
15503
15504 fi
15505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15506   cat >>confdefs.h <<_ACEOF
15507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15508 _ACEOF
15509
15510 fi
15511
15512 done
15513
15514
15515
15516
15517 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15518 do
15519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 fi
15526 ac_res=`eval echo '${'$as_ac_Header'}'`
15527                { echo "$as_me:$LINENO: result: $ac_res" >&5
15528 echo "${ECHO_T}$ac_res" >&6; }
15529 else
15530   # Is the header compilable?
15531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539 $ac_includes_default
15540 #include <$ac_header>
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546   *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549   (eval "$ac_compile") 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557   { (case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_try") 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; } &&
15566          { ac_try='test -s conftest.$ac_objext'
15567   { (case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_try") 2>&5
15573   ac_status=$?
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); }; }; then
15576   ac_header_compiler=yes
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581         ac_header_compiler=no
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6; }
15587
15588 # Is the header present?
15589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597 #include <$ac_header>
15598 _ACEOF
15599 if { (ac_try="$ac_cpp conftest.$ac_ext"
15600 case "(($ac_try" in
15601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602   *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15606   ac_status=$?
15607   grep -v '^ *+' conftest.er1 >conftest.err
15608   rm -f conftest.er1
15609   cat conftest.err >&5
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); } >/dev/null; then
15612   if test -s conftest.err; then
15613     ac_cpp_err=$ac_c_preproc_warn_flag
15614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15615   else
15616     ac_cpp_err=
15617   fi
15618 else
15619   ac_cpp_err=yes
15620 fi
15621 if test -z "$ac_cpp_err"; then
15622   ac_header_preproc=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627   ac_header_preproc=no
15628 fi
15629
15630 rm -f conftest.err conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15632 echo "${ECHO_T}$ac_header_preproc" >&6; }
15633
15634 # So?  What about this header?
15635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15636   yes:no: )
15637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15641     ac_header_preproc=yes
15642     ;;
15643   no:yes:* )
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15656     ( cat <<\_ASBOX
15657 ## ------------------------------------ ##
15658 ## Report this to http://llvm.org/bugs/ ##
15659 ## ------------------------------------ ##
15660 _ASBOX
15661      ) | sed "s/^/$as_me: WARNING:     /" >&2
15662     ;;
15663 esac
15664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667   echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669   eval "$as_ac_Header=\$ac_header_preproc"
15670 fi
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672                { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15674
15675 fi
15676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15677   cat >>confdefs.h <<_ACEOF
15678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15679 _ACEOF
15680
15681 fi
15682
15683 done
15684
15685
15686 for ac_header in valgrind/valgrind.h
15687 do
15688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693   echo $ECHO_N "(cached) $ECHO_C" >&6
15694 fi
15695 ac_res=`eval echo '${'$as_ac_Header'}'`
15696                { echo "$as_me:$LINENO: result: $ac_res" >&5
15697 echo "${ECHO_T}$ac_res" >&6; }
15698 else
15699   # Is the header compilable?
15700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15702 cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708 $ac_includes_default
15709 #include <$ac_header>
15710 _ACEOF
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
15713 case "(($ac_try" in
15714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715   *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718   (eval "$ac_compile") 2>conftest.er1
15719   ac_status=$?
15720   grep -v '^ *+' conftest.er1 >conftest.err
15721   rm -f conftest.er1
15722   cat conftest.err >&5
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } &&
15725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726   { (case "(($ac_try" in
15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728   *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731   (eval "$ac_try") 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; } &&
15735          { ac_try='test -s conftest.$ac_objext'
15736   { (case "(($ac_try" in
15737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738   *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741   (eval "$ac_try") 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_header_compiler=yes
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750         ac_header_compiler=no
15751 fi
15752
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15755 echo "${ECHO_T}$ac_header_compiler" >&6; }
15756
15757 # Is the header present?
15758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766 #include <$ac_header>
15767 _ACEOF
15768 if { (ac_try="$ac_cpp conftest.$ac_ext"
15769 case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15775   ac_status=$?
15776   grep -v '^ *+' conftest.er1 >conftest.err
15777   rm -f conftest.er1
15778   cat conftest.err >&5
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } >/dev/null; then
15781   if test -s conftest.err; then
15782     ac_cpp_err=$ac_c_preproc_warn_flag
15783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15784   else
15785     ac_cpp_err=
15786   fi
15787 else
15788   ac_cpp_err=yes
15789 fi
15790 if test -z "$ac_cpp_err"; then
15791   ac_header_preproc=yes
15792 else
15793   echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796   ac_header_preproc=no
15797 fi
15798
15799 rm -f conftest.err conftest.$ac_ext
15800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15801 echo "${ECHO_T}$ac_header_preproc" >&6; }
15802
15803 # So?  What about this header?
15804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15805   yes:no: )
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15810     ac_header_preproc=yes
15811     ;;
15812   no:yes:* )
15813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15825     ( cat <<\_ASBOX
15826 ## ------------------------------------ ##
15827 ## Report this to http://llvm.org/bugs/ ##
15828 ## ------------------------------------ ##
15829 _ASBOX
15830      ) | sed "s/^/$as_me: WARNING:     /" >&2
15831     ;;
15832 esac
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838   eval "$as_ac_Header=\$ac_header_preproc"
15839 fi
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841                { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15843
15844 fi
15845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15846   cat >>confdefs.h <<_ACEOF
15847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15848 _ACEOF
15849
15850 fi
15851
15852 done
15853
15854
15855 for ac_header in fenv.h
15856 do
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 fi
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865                { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15867 else
15868   # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h.  */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h.  */
15877 $ac_includes_default
15878 #include <$ac_header>
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884   *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887   (eval "$ac_compile") 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895   { (case "(($ac_try" in
15896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897   *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900   (eval "$ac_try") 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); }; } &&
15904          { ac_try='test -s conftest.$ac_objext'
15905   { (case "(($ac_try" in
15906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907   *) ac_try_echo=$ac_try;;
15908 esac
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910   (eval "$ac_try") 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); }; }; then
15914   ac_header_compiler=yes
15915 else
15916   echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15918
15919         ac_header_compiler=no
15920 fi
15921
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924 echo "${ECHO_T}$ac_header_compiler" >&6; }
15925
15926 # Is the header present?
15927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 #include <$ac_header>
15936 _ACEOF
15937 if { (ac_try="$ac_cpp conftest.$ac_ext"
15938 case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } >/dev/null; then
15950   if test -s conftest.err; then
15951     ac_cpp_err=$ac_c_preproc_warn_flag
15952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15953   else
15954     ac_cpp_err=
15955   fi
15956 else
15957   ac_cpp_err=yes
15958 fi
15959 if test -z "$ac_cpp_err"; then
15960   ac_header_preproc=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965   ac_header_preproc=no
15966 fi
15967
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15971
15972 # So?  What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15974   yes:no: )
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979     ac_header_preproc=yes
15980     ;;
15981   no:yes:* )
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15994     ( cat <<\_ASBOX
15995 ## ------------------------------------ ##
15996 ## Report this to http://llvm.org/bugs/ ##
15997 ## ------------------------------------ ##
15998 _ASBOX
15999      ) | sed "s/^/$as_me: WARNING:     /" >&2
16000     ;;
16001 esac
16002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005   echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007   eval "$as_ac_Header=\$ac_header_preproc"
16008 fi
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010                { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16012
16013 fi
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015   cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 _ACEOF
16018
16019 fi
16020
16021 done
16022
16023 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16024 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16025 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 #include <fenv.h>
16035
16036 int
16037 main ()
16038 {
16039 #ifndef FE_ALL_EXCEPT
16040   char *p = (char *) FE_ALL_EXCEPT;
16041   return !p;
16042 #endif
16043
16044   ;
16045   return 0;
16046 }
16047 _ACEOF
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055   (eval "$ac_compile") 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } &&
16062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16063   { (case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_try") 2>&5
16069   ac_status=$?
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); }; } &&
16072          { ac_try='test -s conftest.$ac_objext'
16073   { (case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_try") 2>&5
16079   ac_status=$?
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); }; }; then
16082   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16083 else
16084   echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16086
16087         ac_cv_have_decl_FE_ALL_EXCEPT=no
16088 fi
16089
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 fi
16092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16093 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16094 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16095
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_FE_ALL_EXCEPT 1
16098 _ACEOF
16099
16100
16101 else
16102   cat >>confdefs.h <<_ACEOF
16103 #define HAVE_DECL_FE_ALL_EXCEPT 0
16104 _ACEOF
16105
16106
16107 fi
16108 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16109 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16110 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16111   echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113   cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119 #include <fenv.h>
16120
16121 int
16122 main ()
16123 {
16124 #ifndef FE_INEXACT
16125   char *p = (char *) FE_INEXACT;
16126   return !p;
16127 #endif
16128
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 rm -f conftest.$ac_objext
16134 if { (ac_try="$ac_compile"
16135 case "(($ac_try" in
16136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137   *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140   (eval "$ac_compile") 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16148   { (case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_try") 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; } &&
16157          { ac_try='test -s conftest.$ac_objext'
16158   { (case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_try") 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); }; }; then
16167   ac_cv_have_decl_FE_INEXACT=yes
16168 else
16169   echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172         ac_cv_have_decl_FE_INEXACT=no
16173 fi
16174
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176 fi
16177 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16178 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16179 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16180
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_DECL_FE_INEXACT 1
16183 _ACEOF
16184
16185
16186 else
16187   cat >>confdefs.h <<_ACEOF
16188 #define HAVE_DECL_FE_INEXACT 0
16189 _ACEOF
16190
16191
16192 fi
16193
16194
16195 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16196
16197 for ac_header in pthread.h
16198 do
16199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 fi
16206 ac_res=`eval echo '${'$as_ac_Header'}'`
16207                { echo "$as_me:$LINENO: result: $ac_res" >&5
16208 echo "${ECHO_T}$ac_res" >&6; }
16209 else
16210   # Is the header compilable?
16211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 $ac_includes_default
16220 #include <$ac_header>
16221 _ACEOF
16222 rm -f conftest.$ac_objext
16223 if { (ac_try="$ac_compile"
16224 case "(($ac_try" in
16225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226   *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229   (eval "$ac_compile") 2>conftest.er1
16230   ac_status=$?
16231   grep -v '^ *+' conftest.er1 >conftest.err
16232   rm -f conftest.er1
16233   cat conftest.err >&5
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); } &&
16236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16237   { (case "(($ac_try" in
16238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239   *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242   (eval "$ac_try") 2>&5
16243   ac_status=$?
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); }; } &&
16246          { ac_try='test -s conftest.$ac_objext'
16247   { (case "(($ac_try" in
16248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249   *) ac_try_echo=$ac_try;;
16250 esac
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252   (eval "$ac_try") 2>&5
16253   ac_status=$?
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); }; }; then
16256   ac_header_compiler=yes
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261         ac_header_compiler=no
16262 fi
16263
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16266 echo "${ECHO_T}$ac_header_compiler" >&6; }
16267
16268 # Is the header present?
16269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16271 cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h.  */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h.  */
16277 #include <$ac_header>
16278 _ACEOF
16279 if { (ac_try="$ac_cpp conftest.$ac_ext"
16280 case "(($ac_try" in
16281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282   *) ac_try_echo=$ac_try;;
16283 esac
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } >/dev/null; then
16292   if test -s conftest.err; then
16293     ac_cpp_err=$ac_c_preproc_warn_flag
16294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16295   else
16296     ac_cpp_err=
16297   fi
16298 else
16299   ac_cpp_err=yes
16300 fi
16301 if test -z "$ac_cpp_err"; then
16302   ac_header_preproc=yes
16303 else
16304   echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16306
16307   ac_header_preproc=no
16308 fi
16309
16310 rm -f conftest.err conftest.$ac_ext
16311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16312 echo "${ECHO_T}$ac_header_preproc" >&6; }
16313
16314 # So?  What about this header?
16315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316   yes:no: )
16317     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16321     ac_header_preproc=yes
16322     ;;
16323   no:yes:* )
16324     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16326     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16327 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16328     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16330     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16331 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16334     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16336     ( cat <<\_ASBOX
16337 ## ------------------------------------ ##
16338 ## Report this to http://llvm.org/bugs/ ##
16339 ## ------------------------------------ ##
16340 _ASBOX
16341      ) | sed "s/^/$as_me: WARNING:     /" >&2
16342     ;;
16343 esac
16344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347   echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349   eval "$as_ac_Header=\$ac_header_preproc"
16350 fi
16351 ac_res=`eval echo '${'$as_ac_Header'}'`
16352                { echo "$as_me:$LINENO: result: $ac_res" >&5
16353 echo "${ECHO_T}$ac_res" >&6; }
16354
16355 fi
16356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16357   cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16359 _ACEOF
16360  HAVE_PTHREAD=1
16361
16362 else
16363   HAVE_PTHREAD=0
16364
16365 fi
16366
16367 done
16368
16369 else
16370   HAVE_PTHREAD=0
16371
16372 fi
16373 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16374
16375 for ac_header in zlib.h
16376 do
16377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 fi
16384 ac_res=`eval echo '${'$as_ac_Header'}'`
16385                { echo "$as_me:$LINENO: result: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16387 else
16388   # Is the header compilable?
16389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 $ac_includes_default
16398 #include <$ac_header>
16399 _ACEOF
16400 rm -f conftest.$ac_objext
16401 if { (ac_try="$ac_compile"
16402 case "(($ac_try" in
16403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404   *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407   (eval "$ac_compile") 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } &&
16414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16415   { (case "(($ac_try" in
16416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417   *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420   (eval "$ac_try") 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); }; } &&
16424          { ac_try='test -s conftest.$ac_objext'
16425   { (case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_try") 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   ac_header_compiler=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439         ac_header_compiler=no
16440 fi
16441
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16444 echo "${ECHO_T}$ac_header_compiler" >&6; }
16445
16446 # Is the header present?
16447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455 #include <$ac_header>
16456 _ACEOF
16457 if { (ac_try="$ac_cpp conftest.$ac_ext"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } >/dev/null; then
16470   if test -s conftest.err; then
16471     ac_cpp_err=$ac_c_preproc_warn_flag
16472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16473   else
16474     ac_cpp_err=
16475   fi
16476 else
16477   ac_cpp_err=yes
16478 fi
16479 if test -z "$ac_cpp_err"; then
16480   ac_header_preproc=yes
16481 else
16482   echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485   ac_header_preproc=no
16486 fi
16487
16488 rm -f conftest.err conftest.$ac_ext
16489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16490 echo "${ECHO_T}$ac_header_preproc" >&6; }
16491
16492 # So?  What about this header?
16493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16494   yes:no: )
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16499     ac_header_preproc=yes
16500     ;;
16501   no:yes:* )
16502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16514     ( cat <<\_ASBOX
16515 ## ------------------------------------ ##
16516 ## Report this to http://llvm.org/bugs/ ##
16517 ## ------------------------------------ ##
16518 _ASBOX
16519      ) | sed "s/^/$as_me: WARNING:     /" >&2
16520     ;;
16521 esac
16522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   eval "$as_ac_Header=\$ac_header_preproc"
16528 fi
16529 ac_res=`eval echo '${'$as_ac_Header'}'`
16530                { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532
16533 fi
16534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16535   cat >>confdefs.h <<_ACEOF
16536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16537 _ACEOF
16538  HAVE_LIBZ=1
16539
16540 else
16541   HAVE_LIBZ=0
16542
16543 fi
16544
16545 done
16546
16547 else
16548   HAVE_LIBZ=0
16549
16550 fi
16551
16552 if test "$llvm_cv_enable_libffi" = "yes" ; then
16553
16554
16555 for ac_header in ffi.h ffi/ffi.h
16556 do
16557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 fi
16564 ac_res=`eval echo '${'$as_ac_Header'}'`
16565                { echo "$as_me:$LINENO: result: $ac_res" >&5
16566 echo "${ECHO_T}$ac_res" >&6; }
16567 else
16568   # Is the header compilable?
16569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577 $ac_includes_default
16578 #include <$ac_header>
16579 _ACEOF
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587   (eval "$ac_compile") 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595   { (case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_try") 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (case "(($ac_try" in
16606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607   *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610   (eval "$ac_try") 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   ac_header_compiler=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619         ac_header_compiler=no
16620 fi
16621
16622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16624 echo "${ECHO_T}$ac_header_compiler" >&6; }
16625
16626 # Is the header present?
16627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635 #include <$ac_header>
16636 _ACEOF
16637 if { (ac_try="$ac_cpp conftest.$ac_ext"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } >/dev/null; then
16650   if test -s conftest.err; then
16651     ac_cpp_err=$ac_c_preproc_warn_flag
16652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16653   else
16654     ac_cpp_err=
16655   fi
16656 else
16657   ac_cpp_err=yes
16658 fi
16659 if test -z "$ac_cpp_err"; then
16660   ac_header_preproc=yes
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665   ac_header_preproc=no
16666 fi
16667
16668 rm -f conftest.err conftest.$ac_ext
16669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16670 echo "${ECHO_T}$ac_header_preproc" >&6; }
16671
16672 # So?  What about this header?
16673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16674   yes:no: )
16675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16679     ac_header_preproc=yes
16680     ;;
16681   no:yes:* )
16682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16694     ( cat <<\_ASBOX
16695 ## ------------------------------------ ##
16696 ## Report this to http://llvm.org/bugs/ ##
16697 ## ------------------------------------ ##
16698 _ASBOX
16699      ) | sed "s/^/$as_me: WARNING:     /" >&2
16700     ;;
16701 esac
16702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   eval "$as_ac_Header=\$ac_header_preproc"
16708 fi
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710                { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16712
16713 fi
16714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16715   cat >>confdefs.h <<_ACEOF
16716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16717 _ACEOF
16718
16719 fi
16720
16721 done
16722
16723 fi
16724
16725
16726 for ac_header in CrashReporterClient.h
16727 do
16728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 fi
16735 ac_res=`eval echo '${'$as_ac_Header'}'`
16736                { echo "$as_me:$LINENO: result: $ac_res" >&5
16737 echo "${ECHO_T}$ac_res" >&6; }
16738 else
16739   # Is the header compilable?
16740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h.  */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h.  */
16748 $ac_includes_default
16749 #include <$ac_header>
16750 _ACEOF
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_compile") 2>conftest.er1
16759   ac_status=$?
16760   grep -v '^ *+' conftest.er1 >conftest.err
16761   rm -f conftest.er1
16762   cat conftest.err >&5
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } &&
16765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16766   { (case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_try") 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; } &&
16775          { ac_try='test -s conftest.$ac_objext'
16776   { (case "(($ac_try" in
16777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778   *) ac_try_echo=$ac_try;;
16779 esac
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781   (eval "$ac_try") 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   ac_header_compiler=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790         ac_header_compiler=no
16791 fi
16792
16793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16795 echo "${ECHO_T}$ac_header_compiler" >&6; }
16796
16797 # Is the header present?
16798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h.  */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h.  */
16806 #include <$ac_header>
16807 _ACEOF
16808 if { (ac_try="$ac_cpp conftest.$ac_ext"
16809 case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } >/dev/null; then
16821   if test -s conftest.err; then
16822     ac_cpp_err=$ac_c_preproc_warn_flag
16823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16824   else
16825     ac_cpp_err=
16826   fi
16827 else
16828   ac_cpp_err=yes
16829 fi
16830 if test -z "$ac_cpp_err"; then
16831   ac_header_preproc=yes
16832 else
16833   echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836   ac_header_preproc=no
16837 fi
16838
16839 rm -f conftest.err conftest.$ac_ext
16840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16841 echo "${ECHO_T}$ac_header_preproc" >&6; }
16842
16843 # So?  What about this header?
16844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16845   yes:no: )
16846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16850     ac_header_preproc=yes
16851     ;;
16852   no:yes:* )
16853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16865     ( cat <<\_ASBOX
16866 ## ------------------------------------ ##
16867 ## Report this to http://llvm.org/bugs/ ##
16868 ## ------------------------------------ ##
16869 _ASBOX
16870      ) | sed "s/^/$as_me: WARNING:     /" >&2
16871     ;;
16872 esac
16873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   eval "$as_ac_Header=\$ac_header_preproc"
16879 fi
16880 ac_res=`eval echo '${'$as_ac_Header'}'`
16881                { echo "$as_me:$LINENO: result: $ac_res" >&5
16882 echo "${ECHO_T}$ac_res" >&6; }
16883
16884 fi
16885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16886   cat >>confdefs.h <<_ACEOF
16887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16888 _ACEOF
16889
16890 fi
16891
16892 done
16893
16894
16895 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16896 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16897 cat >conftest.$ac_ext <<_ACEOF
16898
16899   /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904
16905     extern const char *__crashreporter_info__;
16906     int main() {
16907       __crashreporter_info__ = "test";
16908       return 0;
16909     }
16910
16911
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_link") 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } &&
16927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928   { (case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_try") 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_try") 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; }; then
16947
16948   { echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6; }
16950
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_CRASHREPORTER_INFO 1
16953 _ACEOF
16954
16955
16956 else
16957   echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16959
16960
16961   { echo "$as_me:$LINENO: result: no" >&5
16962 echo "${ECHO_T}no" >&6; }
16963
16964 cat >>confdefs.h <<\_ACEOF
16965 #define HAVE_CRASHREPORTER_INFO 0
16966 _ACEOF
16967
16968
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext \
16972       conftest$ac_exeext conftest.$ac_ext
16973
16974
16975
16976   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16977 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16978 if test "${ac_cv_huge_val_sanity+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981
16982     ac_ext=cpp
16983 ac_cpp='$CXXCPP $CPPFLAGS'
16984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16987
16988     ac_save_CXXFLAGS=$CXXFLAGS
16989     CXXFLAGS="$CXXFLAGS -pedantic"
16990     if test "$cross_compiling" = yes; then
16991   ac_cv_huge_val_sanity=yes
16992 else
16993   cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999 #include <math.h>
17000 int
17001 main ()
17002 {
17003 double x = HUGE_VAL; return x != x;
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_link") 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17019   { (case "(($ac_try" in
17020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021   *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024   (eval "$ac_try") 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; }; then
17028   ac_cv_huge_val_sanity=yes
17029 else
17030   echo "$as_me: program exited with status $ac_status" >&5
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 ( exit $ac_status )
17035 ac_cv_huge_val_sanity=no
17036 fi
17037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17038 fi
17039
17040
17041     CXXFLAGS=$ac_save_CXXFLAGS
17042     ac_ext=c
17043 ac_cpp='$CPP $CPPFLAGS'
17044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17047
17048
17049 fi
17050 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17051 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17052   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17053
17054
17055 { echo "$as_me:$LINENO: checking for pid_t" >&5
17056 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17057 if test "${ac_cv_type_pid_t+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h.  */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h.  */
17066 $ac_includes_default
17067 typedef pid_t ac__type_new_;
17068 int
17069 main ()
17070 {
17071 if ((ac__type_new_ *) 0)
17072   return 0;
17073 if (sizeof (ac__type_new_))
17074   return 0;
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext
17080 if { (ac_try="$ac_compile"
17081 case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_compile") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } &&
17093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094   { (case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_try") 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; } &&
17103          { ac_try='test -s conftest.$ac_objext'
17104   { (case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_try") 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; }; then
17113   ac_cv_type_pid_t=yes
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118         ac_cv_type_pid_t=no
17119 fi
17120
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122 fi
17123 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17124 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17125 if test $ac_cv_type_pid_t = yes; then
17126   :
17127 else
17128
17129 cat >>confdefs.h <<_ACEOF
17130 #define pid_t int
17131 _ACEOF
17132
17133 fi
17134
17135 { echo "$as_me:$LINENO: checking for size_t" >&5
17136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17137 if test "${ac_cv_type_size_t+set}" = set; then
17138   echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140   cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h.  */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h.  */
17146 $ac_includes_default
17147 typedef size_t ac__type_new_;
17148 int
17149 main ()
17150 {
17151 if ((ac__type_new_ *) 0)
17152   return 0;
17153 if (sizeof (ac__type_new_))
17154   return 0;
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext
17160 if { (ac_try="$ac_compile"
17161 case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166   (eval "$ac_compile") 2>conftest.er1
17167   ac_status=$?
17168   grep -v '^ *+' conftest.er1 >conftest.err
17169   rm -f conftest.er1
17170   cat conftest.err >&5
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); } &&
17173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17174   { (case "(($ac_try" in
17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176   *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179   (eval "$ac_try") 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); }; } &&
17183          { ac_try='test -s conftest.$ac_objext'
17184   { (case "(($ac_try" in
17185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186   *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189   (eval "$ac_try") 2>&5
17190   ac_status=$?
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); }; }; then
17193   ac_cv_type_size_t=yes
17194 else
17195   echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17197
17198         ac_cv_type_size_t=no
17199 fi
17200
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 fi
17203 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17204 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17205 if test $ac_cv_type_size_t = yes; then
17206   :
17207 else
17208
17209 cat >>confdefs.h <<_ACEOF
17210 #define size_t unsigned int
17211 _ACEOF
17212
17213 fi
17214
17215
17216 cat >>confdefs.h <<_ACEOF
17217 #define RETSIGTYPE void
17218 _ACEOF
17219
17220 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17221 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17222 if test "${ac_cv_struct_tm+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 #include <sys/types.h>
17232 #include <time.h>
17233
17234 int
17235 main ()
17236 {
17237 struct tm *tp; tp->tm_sec;
17238   ;
17239   return 0;
17240 }
17241 _ACEOF
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_compile") 2>conftest.er1
17250   ac_status=$?
17251   grep -v '^ *+' conftest.er1 >conftest.err
17252   rm -f conftest.er1
17253   cat conftest.err >&5
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); } &&
17256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17257   { (case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_try") 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; } &&
17266          { ac_try='test -s conftest.$ac_objext'
17267   { (case "(($ac_try" in
17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269   *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272   (eval "$ac_try") 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); }; }; then
17276   ac_cv_struct_tm=time.h
17277 else
17278   echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17280
17281         ac_cv_struct_tm=sys/time.h
17282 fi
17283
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285 fi
17286 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17287 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17288 if test $ac_cv_struct_tm = sys/time.h; then
17289
17290 cat >>confdefs.h <<\_ACEOF
17291 #define TM_IN_SYS_TIME 1
17292 _ACEOF
17293
17294 fi
17295
17296 { echo "$as_me:$LINENO: checking for int64_t" >&5
17297 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17298 if test "${ac_cv_type_int64_t+set}" = set; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307 $ac_includes_default
17308 typedef int64_t ac__type_new_;
17309 int
17310 main ()
17311 {
17312 if ((ac__type_new_ *) 0)
17313   return 0;
17314 if (sizeof (ac__type_new_))
17315   return 0;
17316   ;
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext
17321 if { (ac_try="$ac_compile"
17322 case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_compile") 2>conftest.er1
17328   ac_status=$?
17329   grep -v '^ *+' conftest.er1 >conftest.err
17330   rm -f conftest.er1
17331   cat conftest.err >&5
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335   { (case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_try") 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest.$ac_objext'
17345   { (case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_try") 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   ac_cv_type_int64_t=yes
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359         ac_cv_type_int64_t=no
17360 fi
17361
17362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 fi
17364 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17365 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17366 if test $ac_cv_type_int64_t = yes; then
17367
17368 cat >>confdefs.h <<_ACEOF
17369 #define HAVE_INT64_T 1
17370 _ACEOF
17371
17372
17373 else
17374   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17375 echo "$as_me: error: Type int64_t required but not found" >&2;}
17376    { (exit 1); exit 1; }; }
17377 fi
17378
17379 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17380 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17381 if test "${ac_cv_type_uint64_t+set}" = set; then
17382   echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384   cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390 $ac_includes_default
17391 typedef uint64_t ac__type_new_;
17392 int
17393 main ()
17394 {
17395 if ((ac__type_new_ *) 0)
17396   return 0;
17397 if (sizeof (ac__type_new_))
17398   return 0;
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext
17404 if { (ac_try="$ac_compile"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_compile") 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418   { (case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_try") 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest.$ac_objext'
17428   { (case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_try") 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   ac_cv_type_uint64_t=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         ac_cv_type_uint64_t=no
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17448 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17449 if test $ac_cv_type_uint64_t = yes; then
17450
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_UINT64_T 1
17453 _ACEOF
17454
17455
17456 else
17457   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17458 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17459 if test "${ac_cv_type_u_int64_t+set}" = set; then
17460   echo $ECHO_N "(cached) $ECHO_C" >&6
17461 else
17462   cat >conftest.$ac_ext <<_ACEOF
17463 /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468 $ac_includes_default
17469 typedef u_int64_t ac__type_new_;
17470 int
17471 main ()
17472 {
17473 if ((ac__type_new_ *) 0)
17474   return 0;
17475 if (sizeof (ac__type_new_))
17476   return 0;
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (ac_try="$ac_compile"
17483 case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_compile") 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496   { (case "(($ac_try" in
17497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498   *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501   (eval "$ac_try") 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; } &&
17505          { ac_try='test -s conftest.$ac_objext'
17506   { (case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_try") 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; }; then
17515   ac_cv_type_u_int64_t=yes
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520         ac_cv_type_u_int64_t=no
17521 fi
17522
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 fi
17525 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17526 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17527 if test $ac_cv_type_u_int64_t = yes; then
17528
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_U_INT64_T 1
17531 _ACEOF
17532
17533
17534 else
17535   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17536 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17537    { (exit 1); exit 1; }; }
17538 fi
17539
17540 fi
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17552 do
17553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17557   echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559   cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h.  */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h.  */
17565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17567 #define $ac_func innocuous_$ac_func
17568
17569 /* System header to define __stub macros and hopefully few prototypes,
17570     which can conflict with char $ac_func (); below.
17571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572     <limits.h> exists even on freestanding compilers.  */
17573
17574 #ifdef __STDC__
17575 # include <limits.h>
17576 #else
17577 # include <assert.h>
17578 #endif
17579
17580 #undef $ac_func
17581
17582 /* Override any GCC internal prototype to avoid an error.
17583    Use char because int might match the return type of a GCC
17584    builtin and then its argument prototype would still apply.  */
17585 #ifdef __cplusplus
17586 extern "C"
17587 #endif
17588 char $ac_func ();
17589 /* The GNU C library defines this for functions which it implements
17590     to always fail with ENOSYS.  Some functions are actually named
17591     something starting with __ and the normal name is an alias.  */
17592 #if defined __stub_$ac_func || defined __stub___$ac_func
17593 choke me
17594 #endif
17595
17596 int
17597 main ()
17598 {
17599 return $ac_func ();
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_link") 2>conftest.er1
17612   ac_status=$?
17613   grep -v '^ *+' conftest.er1 >conftest.err
17614   rm -f conftest.er1
17615   cat conftest.err >&5
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } &&
17618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619   { (case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_try") 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; } &&
17628          { ac_try='test -s conftest$ac_exeext'
17629   { (case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_try") 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638   eval "$as_ac_var=yes"
17639 else
17640   echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643         eval "$as_ac_var=no"
17644 fi
17645
17646 rm -f core conftest.err conftest.$ac_objext \
17647       conftest$ac_exeext conftest.$ac_ext
17648 fi
17649 ac_res=`eval echo '${'$as_ac_var'}'`
17650                { echo "$as_me:$LINENO: result: $ac_res" >&5
17651 echo "${ECHO_T}$ac_res" >&6; }
17652 if test `eval echo '${'$as_ac_var'}'` = yes; then
17653   cat >>confdefs.h <<_ACEOF
17654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17655 _ACEOF
17656
17657 fi
17658 done
17659
17660
17661
17662
17663
17664 for ac_func in powf fmodf strtof round
17665 do
17666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17670   echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672   cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17680 #define $ac_func innocuous_$ac_func
17681
17682 /* System header to define __stub macros and hopefully few prototypes,
17683     which can conflict with char $ac_func (); below.
17684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685     <limits.h> exists even on freestanding compilers.  */
17686
17687 #ifdef __STDC__
17688 # include <limits.h>
17689 #else
17690 # include <assert.h>
17691 #endif
17692
17693 #undef $ac_func
17694
17695 /* Override any GCC internal prototype to avoid an error.
17696    Use char because int might match the return type of a GCC
17697    builtin and then its argument prototype would still apply.  */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 char $ac_func ();
17702 /* The GNU C library defines this for functions which it implements
17703     to always fail with ENOSYS.  Some functions are actually named
17704     something starting with __ and the normal name is an alias.  */
17705 #if defined __stub_$ac_func || defined __stub___$ac_func
17706 choke me
17707 #endif
17708
17709 int
17710 main ()
17711 {
17712 return $ac_func ();
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721   *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724   (eval "$ac_link") 2>conftest.er1
17725   ac_status=$?
17726   grep -v '^ *+' conftest.er1 >conftest.err
17727   rm -f conftest.er1
17728   cat conftest.err >&5
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); } &&
17731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17732   { (case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737   (eval "$ac_try") 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; } &&
17741          { ac_try='test -s conftest$ac_exeext'
17742   { (case "(($ac_try" in
17743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744   *) ac_try_echo=$ac_try;;
17745 esac
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747   (eval "$ac_try") 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; }; then
17751   eval "$as_ac_var=yes"
17752 else
17753   echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756         eval "$as_ac_var=no"
17757 fi
17758
17759 rm -f core conftest.err conftest.$ac_objext \
17760       conftest$ac_exeext conftest.$ac_ext
17761 fi
17762 ac_res=`eval echo '${'$as_ac_var'}'`
17763                { echo "$as_me:$LINENO: result: $ac_res" >&5
17764 echo "${ECHO_T}$ac_res" >&6; }
17765 if test `eval echo '${'$as_ac_var'}'` = yes; then
17766   cat >>confdefs.h <<_ACEOF
17767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17768 _ACEOF
17769
17770 fi
17771 done
17772
17773
17774
17775
17776
17777
17778 for ac_func in log log2 log10 exp exp2
17779 do
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17794 #define $ac_func innocuous_$ac_func
17795
17796 /* System header to define __stub macros and hopefully few prototypes,
17797     which can conflict with char $ac_func (); below.
17798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799     <limits.h> exists even on freestanding compilers.  */
17800
17801 #ifdef __STDC__
17802 # include <limits.h>
17803 #else
17804 # include <assert.h>
17805 #endif
17806
17807 #undef $ac_func
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810    Use char because int might match the return type of a GCC
17811    builtin and then its argument prototype would still apply.  */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char $ac_func ();
17816 /* The GNU C library defines this for functions which it implements
17817     to always fail with ENOSYS.  Some functions are actually named
17818     something starting with __ and the normal name is an alias.  */
17819 #if defined __stub_$ac_func || defined __stub___$ac_func
17820 choke me
17821 #endif
17822
17823 int
17824 main ()
17825 {
17826 return $ac_func ();
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_link") 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } &&
17845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846   { (case "(($ac_try" in
17847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848   *) ac_try_echo=$ac_try;;
17849 esac
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851   (eval "$ac_try") 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest$ac_exeext'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; }; then
17865   eval "$as_ac_var=yes"
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         eval "$as_ac_var=no"
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext \
17874       conftest$ac_exeext conftest.$ac_ext
17875 fi
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877                { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880   cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17882 _ACEOF
17883
17884 fi
17885 done
17886
17887
17888
17889
17890
17891
17892 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17893 do
17894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17898   echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900   cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h.  */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h.  */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17908 #define $ac_func innocuous_$ac_func
17909
17910 /* System header to define __stub macros and hopefully few prototypes,
17911     which can conflict with char $ac_func (); below.
17912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913     <limits.h> exists even on freestanding compilers.  */
17914
17915 #ifdef __STDC__
17916 # include <limits.h>
17917 #else
17918 # include <assert.h>
17919 #endif
17920
17921 #undef $ac_func
17922
17923 /* Override any GCC internal prototype to avoid an error.
17924    Use char because int might match the return type of a GCC
17925    builtin and then its argument prototype would still apply.  */
17926 #ifdef __cplusplus
17927 extern "C"
17928 #endif
17929 char $ac_func ();
17930 /* The GNU C library defines this for functions which it implements
17931     to always fail with ENOSYS.  Some functions are actually named
17932     something starting with __ and the normal name is an alias.  */
17933 #if defined __stub_$ac_func || defined __stub___$ac_func
17934 choke me
17935 #endif
17936
17937 int
17938 main ()
17939 {
17940 return $ac_func ();
17941   ;
17942   return 0;
17943 }
17944 _ACEOF
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (ac_try="$ac_link"
17947 case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952   (eval "$ac_link") 2>conftest.er1
17953   ac_status=$?
17954   grep -v '^ *+' conftest.er1 >conftest.err
17955   rm -f conftest.er1
17956   cat conftest.err >&5
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); } &&
17959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17960   { (case "(($ac_try" in
17961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962   *) ac_try_echo=$ac_try;;
17963 esac
17964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965   (eval "$ac_try") 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; } &&
17969          { ac_try='test -s conftest$ac_exeext'
17970   { (case "(($ac_try" in
17971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972   *) ac_try_echo=$ac_try;;
17973 esac
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975   (eval "$ac_try") 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; }; then
17979   eval "$as_ac_var=yes"
17980 else
17981   echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984         eval "$as_ac_var=no"
17985 fi
17986
17987 rm -f core conftest.err conftest.$ac_objext \
17988       conftest$ac_exeext conftest.$ac_ext
17989 fi
17990 ac_res=`eval echo '${'$as_ac_var'}'`
17991                { echo "$as_me:$LINENO: result: $ac_res" >&5
17992 echo "${ECHO_T}$ac_res" >&6; }
17993 if test `eval echo '${'$as_ac_var'}'` = yes; then
17994   cat >>confdefs.h <<_ACEOF
17995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17996 _ACEOF
17997
17998 fi
17999 done
18000
18001
18002
18003
18004 for ac_func in isatty mkdtemp mkstemp
18005 do
18006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012   cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18020 #define $ac_func innocuous_$ac_func
18021
18022 /* System header to define __stub macros and hopefully few prototypes,
18023     which can conflict with char $ac_func (); below.
18024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18025     <limits.h> exists even on freestanding compilers.  */
18026
18027 #ifdef __STDC__
18028 # include <limits.h>
18029 #else
18030 # include <assert.h>
18031 #endif
18032
18033 #undef $ac_func
18034
18035 /* Override any GCC internal prototype to avoid an error.
18036    Use char because int might match the return type of a GCC
18037    builtin and then its argument prototype would still apply.  */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 char $ac_func ();
18042 /* The GNU C library defines this for functions which it implements
18043     to always fail with ENOSYS.  Some functions are actually named
18044     something starting with __ and the normal name is an alias.  */
18045 #if defined __stub_$ac_func || defined __stub___$ac_func
18046 choke me
18047 #endif
18048
18049 int
18050 main ()
18051 {
18052 return $ac_func ();
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064   (eval "$ac_link") 2>conftest.er1
18065   ac_status=$?
18066   grep -v '^ *+' conftest.er1 >conftest.err
18067   rm -f conftest.er1
18068   cat conftest.err >&5
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); } &&
18071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072   { (case "(($ac_try" in
18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074   *) ac_try_echo=$ac_try;;
18075 esac
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077   (eval "$ac_try") 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; } &&
18081          { ac_try='test -s conftest$ac_exeext'
18082   { (case "(($ac_try" in
18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084   *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087   (eval "$ac_try") 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); }; }; then
18091   eval "$as_ac_var=yes"
18092 else
18093   echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096         eval "$as_ac_var=no"
18097 fi
18098
18099 rm -f core conftest.err conftest.$ac_objext \
18100       conftest$ac_exeext conftest.$ac_ext
18101 fi
18102 ac_res=`eval echo '${'$as_ac_var'}'`
18103                { echo "$as_me:$LINENO: result: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18105 if test `eval echo '${'$as_ac_var'}'` = yes; then
18106   cat >>confdefs.h <<_ACEOF
18107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18108 _ACEOF
18109
18110 fi
18111 done
18112
18113
18114
18115
18116
18117
18118
18119 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18120 do
18121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18135 #define $ac_func innocuous_$ac_func
18136
18137 /* System header to define __stub macros and hopefully few prototypes,
18138     which can conflict with char $ac_func (); below.
18139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140     <limits.h> exists even on freestanding compilers.  */
18141
18142 #ifdef __STDC__
18143 # include <limits.h>
18144 #else
18145 # include <assert.h>
18146 #endif
18147
18148 #undef $ac_func
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151    Use char because int might match the return type of a GCC
18152    builtin and then its argument prototype would still apply.  */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char $ac_func ();
18157 /* The GNU C library defines this for functions which it implements
18158     to always fail with ENOSYS.  Some functions are actually named
18159     something starting with __ and the normal name is an alias.  */
18160 #if defined __stub_$ac_func || defined __stub___$ac_func
18161 choke me
18162 #endif
18163
18164 int
18165 main ()
18166 {
18167 return $ac_func ();
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_link") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } &&
18186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; } &&
18196          { ac_try='test -s conftest$ac_exeext'
18197   { (case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_try") 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; }; then
18206   eval "$as_ac_var=yes"
18207 else
18208   echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211         eval "$as_ac_var=no"
18212 fi
18213
18214 rm -f core conftest.err conftest.$ac_objext \
18215       conftest$ac_exeext conftest.$ac_ext
18216 fi
18217 ac_res=`eval echo '${'$as_ac_var'}'`
18218                { echo "$as_me:$LINENO: result: $ac_res" >&5
18219 echo "${ECHO_T}$ac_res" >&6; }
18220 if test `eval echo '${'$as_ac_var'}'` = yes; then
18221   cat >>confdefs.h <<_ACEOF
18222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18223 _ACEOF
18224
18225 fi
18226 done
18227
18228
18229
18230
18231
18232 for ac_func in strerror strerror_r setenv arc4random
18233 do
18234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18238   echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240   cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h.  */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h.  */
18246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18248 #define $ac_func innocuous_$ac_func
18249
18250 /* System header to define __stub macros and hopefully few prototypes,
18251     which can conflict with char $ac_func (); below.
18252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18253     <limits.h> exists even on freestanding compilers.  */
18254
18255 #ifdef __STDC__
18256 # include <limits.h>
18257 #else
18258 # include <assert.h>
18259 #endif
18260
18261 #undef $ac_func
18262
18263 /* Override any GCC internal prototype to avoid an error.
18264    Use char because int might match the return type of a GCC
18265    builtin and then its argument prototype would still apply.  */
18266 #ifdef __cplusplus
18267 extern "C"
18268 #endif
18269 char $ac_func ();
18270 /* The GNU C library defines this for functions which it implements
18271     to always fail with ENOSYS.  Some functions are actually named
18272     something starting with __ and the normal name is an alias.  */
18273 #if defined __stub_$ac_func || defined __stub___$ac_func
18274 choke me
18275 #endif
18276
18277 int
18278 main ()
18279 {
18280 return $ac_func ();
18281   ;
18282   return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (ac_try="$ac_link"
18287 case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292   (eval "$ac_link") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest$ac_exeext'
18310   { (case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_try") 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319   eval "$as_ac_var=yes"
18320 else
18321   echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324         eval "$as_ac_var=no"
18325 fi
18326
18327 rm -f core conftest.err conftest.$ac_objext \
18328       conftest$ac_exeext conftest.$ac_ext
18329 fi
18330 ac_res=`eval echo '${'$as_ac_var'}'`
18331                { echo "$as_me:$LINENO: result: $ac_res" >&5
18332 echo "${ECHO_T}$ac_res" >&6; }
18333 if test `eval echo '${'$as_ac_var'}'` = yes; then
18334   cat >>confdefs.h <<_ACEOF
18335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18336 _ACEOF
18337
18338 fi
18339 done
18340
18341
18342
18343
18344
18345 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18346 do
18347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h.  */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h.  */
18359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18361 #define $ac_func innocuous_$ac_func
18362
18363 /* System header to define __stub macros and hopefully few prototypes,
18364     which can conflict with char $ac_func (); below.
18365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18366     <limits.h> exists even on freestanding compilers.  */
18367
18368 #ifdef __STDC__
18369 # include <limits.h>
18370 #else
18371 # include <assert.h>
18372 #endif
18373
18374 #undef $ac_func
18375
18376 /* Override any GCC internal prototype to avoid an error.
18377    Use char because int might match the return type of a GCC
18378    builtin and then its argument prototype would still apply.  */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 char $ac_func ();
18383 /* The GNU C library defines this for functions which it implements
18384     to always fail with ENOSYS.  Some functions are actually named
18385     something starting with __ and the normal name is an alias.  */
18386 #if defined __stub_$ac_func || defined __stub___$ac_func
18387 choke me
18388 #endif
18389
18390 int
18391 main ()
18392 {
18393 return $ac_func ();
18394   ;
18395   return 0;
18396 }
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (ac_try="$ac_link"
18400 case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_link") 2>conftest.er1
18406   ac_status=$?
18407   grep -v '^ *+' conftest.er1 >conftest.err
18408   rm -f conftest.er1
18409   cat conftest.err >&5
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); } &&
18412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18413   { (case "(($ac_try" in
18414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415   *) ac_try_echo=$ac_try;;
18416 esac
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418   (eval "$ac_try") 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; } &&
18422          { ac_try='test -s conftest$ac_exeext'
18423   { (case "(($ac_try" in
18424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425   *) ac_try_echo=$ac_try;;
18426 esac
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428   (eval "$ac_try") 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; }; then
18432   eval "$as_ac_var=yes"
18433 else
18434   echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18436
18437         eval "$as_ac_var=no"
18438 fi
18439
18440 rm -f core conftest.err conftest.$ac_objext \
18441       conftest$ac_exeext conftest.$ac_ext
18442 fi
18443 ac_res=`eval echo '${'$as_ac_var'}'`
18444                { echo "$as_me:$LINENO: result: $ac_res" >&5
18445 echo "${ECHO_T}$ac_res" >&6; }
18446 if test `eval echo '${'$as_ac_var'}'` = yes; then
18447   cat >>confdefs.h <<_ACEOF
18448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18449 _ACEOF
18450
18451 fi
18452 done
18453
18454
18455
18456
18457
18458
18459 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18460 do
18461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18465   echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467   cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h.  */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h.  */
18473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18475 #define $ac_func innocuous_$ac_func
18476
18477 /* System header to define __stub macros and hopefully few prototypes,
18478     which can conflict with char $ac_func (); below.
18479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18480     <limits.h> exists even on freestanding compilers.  */
18481
18482 #ifdef __STDC__
18483 # include <limits.h>
18484 #else
18485 # include <assert.h>
18486 #endif
18487
18488 #undef $ac_func
18489
18490 /* Override any GCC internal prototype to avoid an error.
18491    Use char because int might match the return type of a GCC
18492    builtin and then its argument prototype would still apply.  */
18493 #ifdef __cplusplus
18494 extern "C"
18495 #endif
18496 char $ac_func ();
18497 /* The GNU C library defines this for functions which it implements
18498     to always fail with ENOSYS.  Some functions are actually named
18499     something starting with __ and the normal name is an alias.  */
18500 #if defined __stub_$ac_func || defined __stub___$ac_func
18501 choke me
18502 #endif
18503
18504 int
18505 main ()
18506 {
18507 return $ac_func ();
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_link") 2>conftest.er1
18520   ac_status=$?
18521   grep -v '^ *+' conftest.er1 >conftest.err
18522   rm -f conftest.er1
18523   cat conftest.err >&5
18524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525   (exit $ac_status); } &&
18526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527   { (case "(($ac_try" in
18528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529   *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532   (eval "$ac_try") 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; } &&
18536          { ac_try='test -s conftest$ac_exeext'
18537   { (case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; }; then
18546   eval "$as_ac_var=yes"
18547 else
18548   echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18550
18551         eval "$as_ac_var=no"
18552 fi
18553
18554 rm -f core conftest.err conftest.$ac_objext \
18555       conftest$ac_exeext conftest.$ac_ext
18556 fi
18557 ac_res=`eval echo '${'$as_ac_var'}'`
18558                { echo "$as_me:$LINENO: result: $ac_res" >&5
18559 echo "${ECHO_T}$ac_res" >&6; }
18560 if test `eval echo '${'$as_ac_var'}'` = yes; then
18561   cat >>confdefs.h <<_ACEOF
18562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18563 _ACEOF
18564
18565 fi
18566 done
18567
18568
18569
18570 for ac_func in futimes futimens
18571 do
18572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578   cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18586 #define $ac_func innocuous_$ac_func
18587
18588 /* System header to define __stub macros and hopefully few prototypes,
18589     which can conflict with char $ac_func (); below.
18590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591     <limits.h> exists even on freestanding compilers.  */
18592
18593 #ifdef __STDC__
18594 # include <limits.h>
18595 #else
18596 # include <assert.h>
18597 #endif
18598
18599 #undef $ac_func
18600
18601 /* Override any GCC internal prototype to avoid an error.
18602    Use char because int might match the return type of a GCC
18603    builtin and then its argument prototype would still apply.  */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char $ac_func ();
18608 /* The GNU C library defines this for functions which it implements
18609     to always fail with ENOSYS.  Some functions are actually named
18610     something starting with __ and the normal name is an alias.  */
18611 #if defined __stub_$ac_func || defined __stub___$ac_func
18612 choke me
18613 #endif
18614
18615 int
18616 main ()
18617 {
18618 return $ac_func ();
18619   ;
18620   return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_link") 2>conftest.er1
18631   ac_status=$?
18632   grep -v '^ *+' conftest.er1 >conftest.err
18633   rm -f conftest.er1
18634   cat conftest.err >&5
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); } &&
18637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638   { (case "(($ac_try" in
18639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640   *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643   (eval "$ac_try") 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; } &&
18647          { ac_try='test -s conftest$ac_exeext'
18648   { (case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_try") 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; }; then
18657   eval "$as_ac_var=yes"
18658 else
18659   echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662         eval "$as_ac_var=no"
18663 fi
18664
18665 rm -f core conftest.err conftest.$ac_objext \
18666       conftest$ac_exeext conftest.$ac_ext
18667 fi
18668 ac_res=`eval echo '${'$as_ac_var'}'`
18669                { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18671 if test `eval echo '${'$as_ac_var'}'` = yes; then
18672   cat >>confdefs.h <<_ACEOF
18673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18674 _ACEOF
18675
18676 fi
18677 done
18678
18679 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18680 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18681 if test "${llvm_cv_c_printf_a+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   ac_ext=c
18685 ac_cpp='$CPP $CPPFLAGS'
18686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18689
18690  if test "$cross_compiling" = yes; then
18691   llvmac_cv_c_printf_a=no
18692 else
18693   cat >conftest.$ac_ext <<_ACEOF
18694
18695   /* confdefs.h.  */
18696 _ACEOF
18697 cat confdefs.h >>conftest.$ac_ext
18698 cat >>conftest.$ac_ext <<_ACEOF
18699 /* end confdefs.h.  */
18700
18701 #include <stdio.h>
18702 #include <stdlib.h>
18703
18704 int
18705 main ()
18706 {
18707
18708 volatile double A, B;
18709 char Buffer[100];
18710 A = 1;
18711 A /= 10.0;
18712 sprintf(Buffer, "%a", A);
18713 B = atof(Buffer);
18714 if (A != B)
18715   return (1);
18716 if (A != 0x1.999999999999ap-4)
18717   return (1);
18718 return (0);
18719   ;
18720   return 0;
18721 }
18722 _ACEOF
18723 rm -f conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_link") 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18734   { (case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_try") 2>&5
18740   ac_status=$?
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); }; }; then
18743   llvm_cv_c_printf_a=yes
18744 else
18745   echo "$as_me: program exited with status $ac_status" >&5
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 ( exit $ac_status )
18750 llvmac_cv_c_printf_a=no
18751 fi
18752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18753 fi
18754
18755
18756  ac_ext=c
18757 ac_cpp='$CPP $CPPFLAGS'
18758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18761
18762 fi
18763 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18764 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18765  if test "$llvm_cv_c_printf_a" = "yes"; then
18766
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_PRINTF_A 1
18769 _ACEOF
18770
18771  fi
18772
18773
18774
18775   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18776 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18777 if test "${ac_cv_func_rand48+set}" = set; then
18778   echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780
18781     ac_ext=cpp
18782 ac_cpp='$CXXCPP $CPPFLAGS'
18783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18786
18787     cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793 #include <stdlib.h>
18794 int
18795 main ()
18796 {
18797 srand48(0);lrand48();drand48();
18798   ;
18799   return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809   (eval "$ac_compile") 2>conftest.er1
18810   ac_status=$?
18811   grep -v '^ *+' conftest.er1 >conftest.err
18812   rm -f conftest.er1
18813   cat conftest.err >&5
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); } &&
18816          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18817   { (case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_try") 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; } &&
18826          { ac_try='test -s conftest.$ac_objext'
18827   { (case "(($ac_try" in
18828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829   *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832   (eval "$ac_try") 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; }; then
18836   ac_cv_func_rand48=yes
18837 else
18838   echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841         ac_cv_func_rand48=no
18842 fi
18843
18844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18845     ac_ext=c
18846 ac_cpp='$CPP $CPPFLAGS'
18847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18850
18851
18852 fi
18853 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18854 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18855
18856 if test "$ac_cv_func_rand48" = "yes" ; then
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_RAND48 1
18860 _ACEOF
18861
18862 fi
18863
18864
18865 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18866 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18867 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876 $ac_includes_default
18877 int
18878 main ()
18879 {
18880 #ifndef strerror_s
18881   char *p = (char *) strerror_s;
18882   return !p;
18883 #endif
18884
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893   *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896   (eval "$ac_compile") 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } &&
18903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904   { (case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_try") 2>&5
18910   ac_status=$?
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); }; } &&
18913          { ac_try='test -s conftest.$ac_objext'
18914   { (case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_try") 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   ac_cv_have_decl_strerror_s=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         ac_cv_have_decl_strerror_s=no
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932 fi
18933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18934 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18935 if test $ac_cv_have_decl_strerror_s = yes; then
18936
18937 cat >>confdefs.h <<_ACEOF
18938 #define HAVE_DECL_STRERROR_S 1
18939 _ACEOF
18940
18941
18942 else
18943   cat >>confdefs.h <<_ACEOF
18944 #define HAVE_DECL_STRERROR_S 0
18945 _ACEOF
18946
18947
18948 fi
18949
18950
18951
18952 if test "$llvm_cv_os_type" = "MingW" ; then
18953   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18954 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18955 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   ac_check_lib_save_LIBS=$LIBS
18959 LIBS="-lgcc  $LIBS"
18960 cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966
18967 /* Override any GCC internal prototype to avoid an error.
18968    Use char because int might match the return type of a GCC
18969    builtin and then its argument prototype would still apply.  */
18970 #ifdef __cplusplus
18971 extern "C"
18972 #endif
18973 char _alloca ();
18974 int
18975 main ()
18976 {
18977 return _alloca ();
18978   ;
18979   return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986   *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989   (eval "$ac_link") 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997   { (case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_try") 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; } &&
19006          { ac_try='test -s conftest$ac_exeext'
19007   { (case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_try") 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; }; then
19016   ac_cv_lib_gcc__alloca=yes
19017 else
19018   echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021         ac_cv_lib_gcc__alloca=no
19022 fi
19023
19024 rm -f core conftest.err conftest.$ac_objext \
19025       conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19027 fi
19028 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19029 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19030 if test $ac_cv_lib_gcc__alloca = yes; then
19031
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE__ALLOCA 1
19034 _ACEOF
19035
19036 fi
19037
19038   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19039 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19040 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   ac_check_lib_save_LIBS=$LIBS
19044 LIBS="-lgcc  $LIBS"
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051
19052 /* Override any GCC internal prototype to avoid an error.
19053    Use char because int might match the return type of a GCC
19054    builtin and then its argument prototype would still apply.  */
19055 #ifdef __cplusplus
19056 extern "C"
19057 #endif
19058 char __alloca ();
19059 int
19060 main ()
19061 {
19062 return __alloca ();
19063   ;
19064   return 0;
19065 }
19066 _ACEOF
19067 rm -f conftest.$ac_objext conftest$ac_exeext
19068 if { (ac_try="$ac_link"
19069 case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_link") 2>conftest.er1
19075   ac_status=$?
19076   grep -v '^ *+' conftest.er1 >conftest.err
19077   rm -f conftest.er1
19078   cat conftest.err >&5
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); } &&
19081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082   { (case "(($ac_try" in
19083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084   *) ac_try_echo=$ac_try;;
19085 esac
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087   (eval "$ac_try") 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest$ac_exeext'
19092   { (case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_try") 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; }; then
19101   ac_cv_lib_gcc___alloca=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106         ac_cv_lib_gcc___alloca=no
19107 fi
19108
19109 rm -f core conftest.err conftest.$ac_objext \
19110       conftest$ac_exeext conftest.$ac_ext
19111 LIBS=$ac_check_lib_save_LIBS
19112 fi
19113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19114 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19115 if test $ac_cv_lib_gcc___alloca = yes; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE___ALLOCA 1
19119 _ACEOF
19120
19121 fi
19122
19123   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19124 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19125 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128   ac_check_lib_save_LIBS=$LIBS
19129 LIBS="-lgcc  $LIBS"
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136
19137 /* Override any GCC internal prototype to avoid an error.
19138    Use char because int might match the return type of a GCC
19139    builtin and then its argument prototype would still apply.  */
19140 #ifdef __cplusplus
19141 extern "C"
19142 #endif
19143 char __chkstk ();
19144 int
19145 main ()
19146 {
19147 return __chkstk ();
19148   ;
19149   return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext conftest$ac_exeext
19153 if { (ac_try="$ac_link"
19154 case "(($ac_try" in
19155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156   *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159   (eval "$ac_link") 2>conftest.er1
19160   ac_status=$?
19161   grep -v '^ *+' conftest.er1 >conftest.err
19162   rm -f conftest.er1
19163   cat conftest.err >&5
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } &&
19166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167   { (case "(($ac_try" in
19168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169   *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172   (eval "$ac_try") 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; } &&
19176          { ac_try='test -s conftest$ac_exeext'
19177   { (case "(($ac_try" in
19178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179   *) ac_try_echo=$ac_try;;
19180 esac
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182   (eval "$ac_try") 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; }; then
19186   ac_cv_lib_gcc___chkstk=yes
19187 else
19188   echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191         ac_cv_lib_gcc___chkstk=no
19192 fi
19193
19194 rm -f core conftest.err conftest.$ac_objext \
19195       conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19197 fi
19198 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19199 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19200 if test $ac_cv_lib_gcc___chkstk = yes; then
19201
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE___CHKSTK 1
19204 _ACEOF
19205
19206 fi
19207
19208   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19209 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19210 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19211   echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213   ac_check_lib_save_LIBS=$LIBS
19214 LIBS="-lgcc  $LIBS"
19215 cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h.  */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h.  */
19221
19222 /* Override any GCC internal prototype to avoid an error.
19223    Use char because int might match the return type of a GCC
19224    builtin and then its argument prototype would still apply.  */
19225 #ifdef __cplusplus
19226 extern "C"
19227 #endif
19228 char ___chkstk ();
19229 int
19230 main ()
19231 {
19232 return ___chkstk ();
19233   ;
19234   return 0;
19235 }
19236 _ACEOF
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (ac_try="$ac_link"
19239 case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244   (eval "$ac_link") 2>conftest.er1
19245   ac_status=$?
19246   grep -v '^ *+' conftest.er1 >conftest.err
19247   rm -f conftest.er1
19248   cat conftest.err >&5
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } &&
19251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19252   { (case "(($ac_try" in
19253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254   *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257   (eval "$ac_try") 2>&5
19258   ac_status=$?
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); }; } &&
19261          { ac_try='test -s conftest$ac_exeext'
19262   { (case "(($ac_try" in
19263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264   *) ac_try_echo=$ac_try;;
19265 esac
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267   (eval "$ac_try") 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; }; then
19271   ac_cv_lib_gcc____chkstk=yes
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276         ac_cv_lib_gcc____chkstk=no
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext \
19280       conftest$ac_exeext conftest.$ac_ext
19281 LIBS=$ac_check_lib_save_LIBS
19282 fi
19283 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19284 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19285 if test $ac_cv_lib_gcc____chkstk = yes; then
19286
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE____CHKSTK 1
19289 _ACEOF
19290
19291 fi
19292
19293
19294   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19295 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19296 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19297   echo $ECHO_N "(cached) $ECHO_C" >&6
19298 else
19299   ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-lgcc  $LIBS"
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308 /* Override any GCC internal prototype to avoid an error.
19309    Use char because int might match the return type of a GCC
19310    builtin and then its argument prototype would still apply.  */
19311 #ifdef __cplusplus
19312 extern "C"
19313 #endif
19314 char __ashldi3 ();
19315 int
19316 main ()
19317 {
19318 return __ashldi3 ();
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (ac_try="$ac_link"
19325 case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_link") 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } &&
19337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19338   { (case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_try") 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; } &&
19347          { ac_try='test -s conftest$ac_exeext'
19348   { (case "(($ac_try" in
19349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350   *) ac_try_echo=$ac_try;;
19351 esac
19352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19353   (eval "$ac_try") 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; }; then
19357   ac_cv_lib_gcc___ashldi3=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         ac_cv_lib_gcc___ashldi3=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext \
19366       conftest$ac_exeext conftest.$ac_ext
19367 LIBS=$ac_check_lib_save_LIBS
19368 fi
19369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19370 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19371 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19372
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE___ASHLDI3 1
19375 _ACEOF
19376
19377 fi
19378
19379   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19380 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19381 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19382   echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384   ac_check_lib_save_LIBS=$LIBS
19385 LIBS="-lgcc  $LIBS"
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h.  */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h.  */
19392
19393 /* Override any GCC internal prototype to avoid an error.
19394    Use char because int might match the return type of a GCC
19395    builtin and then its argument prototype would still apply.  */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 char __ashrdi3 ();
19400 int
19401 main ()
19402 {
19403 return __ashrdi3 ();
19404   ;
19405   return 0;
19406 }
19407 _ACEOF
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_link") 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_try") 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   ac_cv_lib_gcc___ashrdi3=yes
19443 else
19444   echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447         ac_cv_lib_gcc___ashrdi3=no
19448 fi
19449
19450 rm -f core conftest.err conftest.$ac_objext \
19451       conftest$ac_exeext conftest.$ac_ext
19452 LIBS=$ac_check_lib_save_LIBS
19453 fi
19454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19455 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19456 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19457
19458 cat >>confdefs.h <<\_ACEOF
19459 #define HAVE___ASHRDI3 1
19460 _ACEOF
19461
19462 fi
19463
19464   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19465 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19466 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469   ac_check_lib_save_LIBS=$LIBS
19470 LIBS="-lgcc  $LIBS"
19471 cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h.  */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h.  */
19477
19478 /* Override any GCC internal prototype to avoid an error.
19479    Use char because int might match the return type of a GCC
19480    builtin and then its argument prototype would still apply.  */
19481 #ifdef __cplusplus
19482 extern "C"
19483 #endif
19484 char __divdi3 ();
19485 int
19486 main ()
19487 {
19488 return __divdi3 ();
19489   ;
19490   return 0;
19491 }
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497   *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500   (eval "$ac_link") 2>conftest.er1
19501   ac_status=$?
19502   grep -v '^ *+' conftest.er1 >conftest.err
19503   rm -f conftest.er1
19504   cat conftest.err >&5
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); } &&
19507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19508   { (case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_try") 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; } &&
19517          { ac_try='test -s conftest$ac_exeext'
19518   { (case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523   (eval "$ac_try") 2>&5
19524   ac_status=$?
19525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526   (exit $ac_status); }; }; then
19527   ac_cv_lib_gcc___divdi3=yes
19528 else
19529   echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532         ac_cv_lib_gcc___divdi3=no
19533 fi
19534
19535 rm -f core conftest.err conftest.$ac_objext \
19536       conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19538 fi
19539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19540 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19541 if test $ac_cv_lib_gcc___divdi3 = yes; then
19542
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE___DIVDI3 1
19545 _ACEOF
19546
19547 fi
19548
19549   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19550 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19551 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19552   echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554   ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-lgcc  $LIBS"
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562
19563 /* Override any GCC internal prototype to avoid an error.
19564    Use char because int might match the return type of a GCC
19565    builtin and then its argument prototype would still apply.  */
19566 #ifdef __cplusplus
19567 extern "C"
19568 #endif
19569 char __fixdfdi ();
19570 int
19571 main ()
19572 {
19573 return __fixdfdi ();
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_link") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } &&
19592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593   { (case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_try") 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; } &&
19602          { ac_try='test -s conftest$ac_exeext'
19603   { (case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_try") 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; }; then
19612   ac_cv_lib_gcc___fixdfdi=yes
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617         ac_cv_lib_gcc___fixdfdi=no
19618 fi
19619
19620 rm -f core conftest.err conftest.$ac_objext \
19621       conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19623 fi
19624 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19625 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19626 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE___FIXDFDI 1
19630 _ACEOF
19631
19632 fi
19633
19634   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19635 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19636 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639   ac_check_lib_save_LIBS=$LIBS
19640 LIBS="-lgcc  $LIBS"
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h.  */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h.  */
19647
19648 /* Override any GCC internal prototype to avoid an error.
19649    Use char because int might match the return type of a GCC
19650    builtin and then its argument prototype would still apply.  */
19651 #ifdef __cplusplus
19652 extern "C"
19653 #endif
19654 char __fixsfdi ();
19655 int
19656 main ()
19657 {
19658 return __fixsfdi ();
19659   ;
19660   return 0;
19661 }
19662 _ACEOF
19663 rm -f conftest.$ac_objext conftest$ac_exeext
19664 if { (ac_try="$ac_link"
19665 case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_link") 2>conftest.er1
19671   ac_status=$?
19672   grep -v '^ *+' conftest.er1 >conftest.err
19673   rm -f conftest.er1
19674   cat conftest.err >&5
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); } &&
19677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19678   { (case "(($ac_try" in
19679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680   *) ac_try_echo=$ac_try;;
19681 esac
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683   (eval "$ac_try") 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; } &&
19687          { ac_try='test -s conftest$ac_exeext'
19688   { (case "(($ac_try" in
19689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690   *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693   (eval "$ac_try") 2>&5
19694   ac_status=$?
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); }; }; then
19697   ac_cv_lib_gcc___fixsfdi=yes
19698 else
19699   echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19701
19702         ac_cv_lib_gcc___fixsfdi=no
19703 fi
19704
19705 rm -f core conftest.err conftest.$ac_objext \
19706       conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19708 fi
19709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19710 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19711 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19712
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE___FIXSFDI 1
19715 _ACEOF
19716
19717 fi
19718
19719   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19720 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19721 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724   ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-lgcc  $LIBS"
19726 cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h.  */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h.  */
19732
19733 /* Override any GCC internal prototype to avoid an error.
19734    Use char because int might match the return type of a GCC
19735    builtin and then its argument prototype would still apply.  */
19736 #ifdef __cplusplus
19737 extern "C"
19738 #endif
19739 char __floatdidf ();
19740 int
19741 main ()
19742 {
19743 return __floatdidf ();
19744   ;
19745   return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_link") 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } &&
19762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763   { (case "(($ac_try" in
19764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765   *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768   (eval "$ac_try") 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); }; } &&
19772          { ac_try='test -s conftest$ac_exeext'
19773   { (case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_try") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; }; then
19782   ac_cv_lib_gcc___floatdidf=yes
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787         ac_cv_lib_gcc___floatdidf=no
19788 fi
19789
19790 rm -f core conftest.err conftest.$ac_objext \
19791       conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19793 fi
19794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19795 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19796 if test $ac_cv_lib_gcc___floatdidf = yes; then
19797
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE___FLOATDIDF 1
19800 _ACEOF
19801
19802 fi
19803
19804   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19805 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19806 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809   ac_check_lib_save_LIBS=$LIBS
19810 LIBS="-lgcc  $LIBS"
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817
19818 /* Override any GCC internal prototype to avoid an error.
19819    Use char because int might match the return type of a GCC
19820    builtin and then its argument prototype would still apply.  */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char __lshrdi3 ();
19825 int
19826 main ()
19827 {
19828 return __lshrdi3 ();
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_link") 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } &&
19847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848   { (case "(($ac_try" in
19849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850   *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853   (eval "$ac_try") 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; } &&
19857          { ac_try='test -s conftest$ac_exeext'
19858   { (case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_try") 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; }; then
19867   ac_cv_lib_gcc___lshrdi3=yes
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872         ac_cv_lib_gcc___lshrdi3=no
19873 fi
19874
19875 rm -f core conftest.err conftest.$ac_objext \
19876       conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19878 fi
19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19880 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19881 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19882
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE___LSHRDI3 1
19885 _ACEOF
19886
19887 fi
19888
19889   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19890 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19892   echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894   ac_check_lib_save_LIBS=$LIBS
19895 LIBS="-lgcc  $LIBS"
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h.  */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h.  */
19902
19903 /* Override any GCC internal prototype to avoid an error.
19904    Use char because int might match the return type of a GCC
19905    builtin and then its argument prototype would still apply.  */
19906 #ifdef __cplusplus
19907 extern "C"
19908 #endif
19909 char __moddi3 ();
19910 int
19911 main ()
19912 {
19913 return __moddi3 ();
19914   ;
19915   return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_link") 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } &&
19932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933   { (case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_try") 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; } &&
19942          { ac_try='test -s conftest$ac_exeext'
19943   { (case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_try") 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; }; then
19952   ac_cv_lib_gcc___moddi3=yes
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957         ac_cv_lib_gcc___moddi3=no
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext \
19961       conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19963 fi
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19965 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19966 if test $ac_cv_lib_gcc___moddi3 = yes; then
19967
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE___MODDI3 1
19970 _ACEOF
19971
19972 fi
19973
19974   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19975 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19976 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19977   echo $ECHO_N "(cached) $ECHO_C" >&6
19978 else
19979   ac_check_lib_save_LIBS=$LIBS
19980 LIBS="-lgcc  $LIBS"
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987
19988 /* Override any GCC internal prototype to avoid an error.
19989    Use char because int might match the return type of a GCC
19990    builtin and then its argument prototype would still apply.  */
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 char __udivdi3 ();
19995 int
19996 main ()
19997 {
19998 return __udivdi3 ();
19999   ;
20000   return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007   *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010   (eval "$ac_link") 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } &&
20017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018   { (case "(($ac_try" in
20019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020   *) ac_try_echo=$ac_try;;
20021 esac
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023   (eval "$ac_try") 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; } &&
20027          { ac_try='test -s conftest$ac_exeext'
20028   { (case "(($ac_try" in
20029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030   *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033   (eval "$ac_try") 2>&5
20034   ac_status=$?
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); }; }; then
20037   ac_cv_lib_gcc___udivdi3=yes
20038 else
20039   echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042         ac_cv_lib_gcc___udivdi3=no
20043 fi
20044
20045 rm -f core conftest.err conftest.$ac_objext \
20046       conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20048 fi
20049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20050 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20051 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20052
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE___UDIVDI3 1
20055 _ACEOF
20056
20057 fi
20058
20059   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20060 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   ac_check_lib_save_LIBS=$LIBS
20065 LIBS="-lgcc  $LIBS"
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072
20073 /* Override any GCC internal prototype to avoid an error.
20074    Use char because int might match the return type of a GCC
20075    builtin and then its argument prototype would still apply.  */
20076 #ifdef __cplusplus
20077 extern "C"
20078 #endif
20079 char __umoddi3 ();
20080 int
20081 main ()
20082 {
20083 return __umoddi3 ();
20084   ;
20085   return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_link") 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } &&
20102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20103   { (case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108   (eval "$ac_try") 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); }; } &&
20112          { ac_try='test -s conftest$ac_exeext'
20113   { (case "(($ac_try" in
20114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115   *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118   (eval "$ac_try") 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; }; then
20122   ac_cv_lib_gcc___umoddi3=yes
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127         ac_cv_lib_gcc___umoddi3=no
20128 fi
20129
20130 rm -f core conftest.err conftest.$ac_objext \
20131       conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20133 fi
20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20135 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20136 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20137
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE___UMODDI3 1
20140 _ACEOF
20141
20142 fi
20143
20144
20145   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20146 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20147 if test "${ac_cv_lib_gcc___main+set}" = set; then
20148   echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150   ac_check_lib_save_LIBS=$LIBS
20151 LIBS="-lgcc  $LIBS"
20152 cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158
20159 /* Override any GCC internal prototype to avoid an error.
20160    Use char because int might match the return type of a GCC
20161    builtin and then its argument prototype would still apply.  */
20162 #ifdef __cplusplus
20163 extern "C"
20164 #endif
20165 char __main ();
20166 int
20167 main ()
20168 {
20169 return __main ();
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178   *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181   (eval "$ac_link") 2>conftest.er1
20182   ac_status=$?
20183   grep -v '^ *+' conftest.er1 >conftest.err
20184   rm -f conftest.er1
20185   cat conftest.err >&5
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } &&
20188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20189   { (case "(($ac_try" in
20190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191   *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194   (eval "$ac_try") 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; } &&
20198          { ac_try='test -s conftest$ac_exeext'
20199   { (case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_try") 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   ac_cv_lib_gcc___main=yes
20209 else
20210   echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20212
20213         ac_cv_lib_gcc___main=no
20214 fi
20215
20216 rm -f core conftest.err conftest.$ac_objext \
20217       conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20219 fi
20220 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20221 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20222 if test $ac_cv_lib_gcc___main = yes; then
20223
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE___MAIN 1
20226 _ACEOF
20227
20228 fi
20229
20230   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20231 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20232 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235   ac_check_lib_save_LIBS=$LIBS
20236 LIBS="-lgcc  $LIBS"
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243
20244 /* Override any GCC internal prototype to avoid an error.
20245    Use char because int might match the return type of a GCC
20246    builtin and then its argument prototype would still apply.  */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char __cmpdi2 ();
20251 int
20252 main ()
20253 {
20254 return __cmpdi2 ();
20255   ;
20256   return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263   *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266   (eval "$ac_link") 2>conftest.er1
20267   ac_status=$?
20268   grep -v '^ *+' conftest.er1 >conftest.err
20269   rm -f conftest.er1
20270   cat conftest.err >&5
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); } &&
20273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20274   { (case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_try") 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; } &&
20283          { ac_try='test -s conftest$ac_exeext'
20284   { (case "(($ac_try" in
20285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286   *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289   (eval "$ac_try") 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_cv_lib_gcc___cmpdi2=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298         ac_cv_lib_gcc___cmpdi2=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext \
20302       conftest$ac_exeext conftest.$ac_ext
20303 LIBS=$ac_check_lib_save_LIBS
20304 fi
20305 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20306 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20307 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20308
20309 cat >>confdefs.h <<\_ACEOF
20310 #define HAVE___CMPDI2 1
20311 _ACEOF
20312
20313 fi
20314
20315 fi
20316
20317 if test "$llvm_cv_os_type" = "MingW" ; then
20318   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20319 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20320   cat >conftest.$ac_ext <<_ACEOF
20321
20322   /* confdefs.h.  */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h.  */
20327
20328     #include <windows.h>
20329     #include <imagehlp.h>
20330     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20331     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20332
20333
20334 _ACEOF
20335 rm -f conftest.$ac_objext
20336 if { (ac_try="$ac_compile"
20337 case "(($ac_try" in
20338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339   *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342   (eval "$ac_compile") 2>conftest.er1
20343   ac_status=$?
20344   grep -v '^ *+' conftest.er1 >conftest.err
20345   rm -f conftest.er1
20346   cat conftest.err >&5
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); } &&
20349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20350   { (case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_try") 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; } &&
20359          { ac_try='test -s conftest.$ac_objext'
20360   { (case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_try") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369
20370   { echo "$as_me:$LINENO: result: yes" >&5
20371 echo "${ECHO_T}yes" >&6; }
20372   llvm_cv_win32_elmcb_pcstr="PCSTR"
20373
20374 else
20375   echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378
20379   { echo "$as_me:$LINENO: result: no" >&5
20380 echo "${ECHO_T}no" >&6; }
20381   llvm_cv_win32_elmcb_pcstr="PSTR"
20382
20383 fi
20384
20385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386
20387 cat >>confdefs.h <<_ACEOF
20388 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20389 _ACEOF
20390
20391 fi
20392
20393
20394
20395   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20396 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20397 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20398   echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400
20401     ac_ext=cpp
20402 ac_cpp='$CXXCPP $CPPFLAGS'
20403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20406
20407     cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <math.h>
20414 int
20415 main ()
20416 {
20417 float f; isnan(f);
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_compile") 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20437   { (case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442   (eval "$ac_try") 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; } &&
20446          { ac_try='test -s conftest.$ac_objext'
20447   { (case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_try") 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   ac_cv_func_isnan_in_math_h=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461         ac_cv_func_isnan_in_math_h=no
20462 fi
20463
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465     ac_ext=c
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
20471
20472 fi
20473 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20474 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20475
20476
20477 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20478
20479 cat >>confdefs.h <<\_ACEOF
20480 #define HAVE_ISNAN_IN_MATH_H 1
20481 _ACEOF
20482
20483 fi
20484
20485
20486   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20487 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20488 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491
20492     ac_ext=cpp
20493 ac_cpp='$CXXCPP $CPPFLAGS'
20494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20497
20498     cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 #include <cmath>
20505 int
20506 main ()
20507 {
20508 float f; isnan(f);
20509   ;
20510   return 0;
20511 }
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_compile") 2>conftest.er1
20521   ac_status=$?
20522   grep -v '^ *+' conftest.er1 >conftest.err
20523   rm -f conftest.er1
20524   cat conftest.err >&5
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } &&
20527          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20528   { (case "(($ac_try" in
20529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530   *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533   (eval "$ac_try") 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; } &&
20537          { ac_try='test -s conftest.$ac_objext'
20538   { (case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_try") 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; }; then
20547   ac_cv_func_isnan_in_cmath=yes
20548 else
20549   echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20551
20552         ac_cv_func_isnan_in_cmath=no
20553 fi
20554
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556     ac_ext=c
20557 ac_cpp='$CPP $CPPFLAGS'
20558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20561
20562
20563 fi
20564 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20565 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20566
20567 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20568
20569 cat >>confdefs.h <<\_ACEOF
20570 #define HAVE_ISNAN_IN_CMATH 1
20571 _ACEOF
20572
20573 fi
20574
20575
20576   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20577 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20578 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20579   echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581
20582     ac_ext=cpp
20583 ac_cpp='$CXXCPP $CPPFLAGS'
20584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20587
20588     cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 #include <cmath>
20595 int
20596 main ()
20597 {
20598 float f; std::isnan(f);
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext
20604 if { (ac_try="$ac_compile"
20605 case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610   (eval "$ac_compile") 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } &&
20617          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20618   { (case "(($ac_try" in
20619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620   *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623   (eval "$ac_try") 2>&5
20624   ac_status=$?
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); }; } &&
20627          { ac_try='test -s conftest.$ac_objext'
20628   { (case "(($ac_try" in
20629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630   *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633   (eval "$ac_try") 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; }; then
20637   ac_cv_func_std_isnan_in_cmath=yes
20638 else
20639   echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642         ac_cv_func_std_isnan_in_cmath=no
20643 fi
20644
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646     ac_ext=c
20647 ac_cpp='$CPP $CPPFLAGS'
20648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651
20652
20653 fi
20654 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20655 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20656
20657 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20658
20659 cat >>confdefs.h <<\_ACEOF
20660 #define HAVE_STD_ISNAN_IN_CMATH 1
20661 _ACEOF
20662
20663 fi
20664
20665
20666
20667
20668   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20669 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20670 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20671   echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673
20674     ac_ext=cpp
20675 ac_cpp='$CXXCPP $CPPFLAGS'
20676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20679
20680     cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #include <math.h>
20687 int
20688 main ()
20689 {
20690 float f; isinf(f);
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_compile") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } &&
20709          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20710   { (case "(($ac_try" in
20711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712   *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715   (eval "$ac_try") 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); }; } &&
20719          { ac_try='test -s conftest.$ac_objext'
20720   { (case "(($ac_try" in
20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722   *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725   (eval "$ac_try") 2>&5
20726   ac_status=$?
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); }; }; then
20729   ac_cv_func_isinf_in_math_h=yes
20730 else
20731   echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20733
20734         ac_cv_func_isinf_in_math_h=no
20735 fi
20736
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738     ac_ext=c
20739 ac_cpp='$CPP $CPPFLAGS'
20740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743
20744
20745 fi
20746 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20747 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20748
20749 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20750
20751 cat >>confdefs.h <<\_ACEOF
20752 #define HAVE_ISINF_IN_MATH_H 1
20753 _ACEOF
20754
20755 fi
20756
20757
20758   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20759 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20760 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20761   echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763
20764     ac_ext=cpp
20765 ac_cpp='$CXXCPP $CPPFLAGS'
20766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20769
20770     cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776 #include <cmath>
20777 int
20778 main ()
20779 {
20780 float f; isinf(f);
20781   ;
20782   return 0;
20783 }
20784 _ACEOF
20785 rm -f conftest.$ac_objext
20786 if { (ac_try="$ac_compile"
20787 case "(($ac_try" in
20788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789   *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792   (eval "$ac_compile") 2>conftest.er1
20793   ac_status=$?
20794   grep -v '^ *+' conftest.er1 >conftest.err
20795   rm -f conftest.er1
20796   cat conftest.err >&5
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); } &&
20799          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20800   { (case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805   (eval "$ac_try") 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); }; } &&
20809          { ac_try='test -s conftest.$ac_objext'
20810   { (case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_try") 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; }; then
20819   ac_cv_func_isinf_in_cmath=yes
20820 else
20821   echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824         ac_cv_func_isinf_in_cmath=no
20825 fi
20826
20827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828     ac_ext=c
20829 ac_cpp='$CPP $CPPFLAGS'
20830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20833
20834
20835 fi
20836 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20837 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20838
20839 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20840
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_ISINF_IN_CMATH 1
20843 _ACEOF
20844
20845 fi
20846
20847
20848   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20849 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20850 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853
20854     ac_ext=cpp
20855 ac_cpp='$CXXCPP $CPPFLAGS'
20856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20859
20860     cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866 #include <cmath>
20867 int
20868 main ()
20869 {
20870 float f; std::isinf(f);
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_compile") 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } &&
20889          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20890   { (case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_try") 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; } &&
20899          { ac_try='test -s conftest.$ac_objext'
20900   { (case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_try") 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ac_cv_func_std_isinf_in_cmath=yes
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_cv_func_std_isinf_in_cmath=no
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918     ac_ext=c
20919 ac_cpp='$CPP $CPPFLAGS'
20920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20923
20924
20925 fi
20926 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20927 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20928
20929 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20930
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_STD_ISINF_IN_CMATH 1
20933 _ACEOF
20934
20935 fi
20936
20937
20938   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20939 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20940 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943
20944     ac_ext=cpp
20945 ac_cpp='$CXXCPP $CPPFLAGS'
20946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20949
20950     cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <ieeefp.h>
20957 int
20958 main ()
20959 {
20960 float f; finite(f);
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969   *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972   (eval "$ac_compile") 2>conftest.er1
20973   ac_status=$?
20974   grep -v '^ *+' conftest.er1 >conftest.err
20975   rm -f conftest.er1
20976   cat conftest.err >&5
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); } &&
20979          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20980   { (case "(($ac_try" in
20981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982   *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985   (eval "$ac_try") 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); }; } &&
20989          { ac_try='test -s conftest.$ac_objext'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; }; then
20999   ac_cv_func_finite_in_ieeefp_h=yes
21000 else
21001   echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004         ac_cv_func_finite_in_ieeefp_h=no
21005 fi
21006
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008     ac_ext=c
21009 ac_cpp='$CPP $CPPFLAGS'
21010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014
21015 fi
21016 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21017 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21018
21019 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21020
21021 cat >>confdefs.h <<\_ACEOF
21022 #define HAVE_FINITE_IN_IEEEFP_H 1
21023 _ACEOF
21024
21025 fi
21026
21027
21028
21029 if test "$llvm_cv_platform_type" = "Unix" ; then
21030
21031
21032 for ac_header in stdlib.h unistd.h
21033 do
21034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21036   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21039   echo $ECHO_N "(cached) $ECHO_C" >&6
21040 fi
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042                { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044 else
21045   # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h.  */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h.  */
21054 $ac_includes_default
21055 #include <$ac_header>
21056 _ACEOF
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061   *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064   (eval "$ac_compile") 2>conftest.er1
21065   ac_status=$?
21066   grep -v '^ *+' conftest.er1 >conftest.err
21067   rm -f conftest.er1
21068   cat conftest.err >&5
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); } &&
21071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072   { (case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_try") 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; } &&
21081          { ac_try='test -s conftest.$ac_objext'
21082   { (case "(($ac_try" in
21083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084   *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087   (eval "$ac_try") 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; }; then
21091   ac_header_compiler=yes
21092 else
21093   echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096         ac_header_compiler=no
21097 fi
21098
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21101 echo "${ECHO_T}$ac_header_compiler" >&6; }
21102
21103 # Is the header present?
21104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21106 cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h.  */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h.  */
21112 #include <$ac_header>
21113 _ACEOF
21114 if { (ac_try="$ac_cpp conftest.$ac_ext"
21115 case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21121   ac_status=$?
21122   grep -v '^ *+' conftest.er1 >conftest.err
21123   rm -f conftest.er1
21124   cat conftest.err >&5
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); } >/dev/null; then
21127   if test -s conftest.err; then
21128     ac_cpp_err=$ac_c_preproc_warn_flag
21129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21130   else
21131     ac_cpp_err=
21132   fi
21133 else
21134   ac_cpp_err=yes
21135 fi
21136 if test -z "$ac_cpp_err"; then
21137   ac_header_preproc=yes
21138 else
21139   echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142   ac_header_preproc=no
21143 fi
21144
21145 rm -f conftest.err conftest.$ac_ext
21146 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21147 echo "${ECHO_T}$ac_header_preproc" >&6; }
21148
21149 # So?  What about this header?
21150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21151   yes:no: )
21152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21156     ac_header_preproc=yes
21157     ;;
21158   no:yes:* )
21159     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21161     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21162 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21163     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21165     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21166 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21169     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21171     ( cat <<\_ASBOX
21172 ## ------------------------------------ ##
21173 ## Report this to http://llvm.org/bugs/ ##
21174 ## ------------------------------------ ##
21175 _ASBOX
21176      ) | sed "s/^/$as_me: WARNING:     /" >&2
21177     ;;
21178 esac
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21182   echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184   eval "$as_ac_Header=\$ac_header_preproc"
21185 fi
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187                { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21189
21190 fi
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21192   cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21194 _ACEOF
21195
21196 fi
21197
21198 done
21199
21200
21201 for ac_func in getpagesize
21202 do
21203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21207   echo $ECHO_N "(cached) $ECHO_C" >&6
21208 else
21209   cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21217 #define $ac_func innocuous_$ac_func
21218
21219 /* System header to define __stub macros and hopefully few prototypes,
21220     which can conflict with char $ac_func (); below.
21221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21222     <limits.h> exists even on freestanding compilers.  */
21223
21224 #ifdef __STDC__
21225 # include <limits.h>
21226 #else
21227 # include <assert.h>
21228 #endif
21229
21230 #undef $ac_func
21231
21232 /* Override any GCC internal prototype to avoid an error.
21233    Use char because int might match the return type of a GCC
21234    builtin and then its argument prototype would still apply.  */
21235 #ifdef __cplusplus
21236 extern "C"
21237 #endif
21238 char $ac_func ();
21239 /* The GNU C library defines this for functions which it implements
21240     to always fail with ENOSYS.  Some functions are actually named
21241     something starting with __ and the normal name is an alias.  */
21242 #if defined __stub_$ac_func || defined __stub___$ac_func
21243 choke me
21244 #endif
21245
21246 int
21247 main ()
21248 {
21249 return $ac_func ();
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext conftest$ac_exeext
21255 if { (ac_try="$ac_link"
21256 case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_link") 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } &&
21268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21269   { (case "(($ac_try" in
21270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271   *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274   (eval "$ac_try") 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }; } &&
21278          { ac_try='test -s conftest$ac_exeext'
21279   { (case "(($ac_try" in
21280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281   *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284   (eval "$ac_try") 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; }; then
21288   eval "$as_ac_var=yes"
21289 else
21290   echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21292
21293         eval "$as_ac_var=no"
21294 fi
21295
21296 rm -f core conftest.err conftest.$ac_objext \
21297       conftest$ac_exeext conftest.$ac_ext
21298 fi
21299 ac_res=`eval echo '${'$as_ac_var'}'`
21300                { echo "$as_me:$LINENO: result: $ac_res" >&5
21301 echo "${ECHO_T}$ac_res" >&6; }
21302 if test `eval echo '${'$as_ac_var'}'` = yes; then
21303   cat >>confdefs.h <<_ACEOF
21304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21305 _ACEOF
21306
21307 fi
21308 done
21309
21310 { echo "$as_me:$LINENO: checking for working mmap" >&5
21311 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21312 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21313   echo $ECHO_N "(cached) $ECHO_C" >&6
21314 else
21315   if test "$cross_compiling" = yes; then
21316   ac_cv_func_mmap_fixed_mapped=no
21317 else
21318   cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h.  */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h.  */
21324 $ac_includes_default
21325 /* malloc might have been renamed as rpl_malloc. */
21326 #undef malloc
21327
21328 /* Thanks to Mike Haertel and Jim Avera for this test.
21329    Here is a matrix of mmap possibilities:
21330         mmap private not fixed
21331         mmap private fixed at somewhere currently unmapped
21332         mmap private fixed at somewhere already mapped
21333         mmap shared not fixed
21334         mmap shared fixed at somewhere currently unmapped
21335         mmap shared fixed at somewhere already mapped
21336    For private mappings, we should verify that changes cannot be read()
21337    back from the file, nor mmap's back from the file at a different
21338    address.  (There have been systems where private was not correctly
21339    implemented like the infamous i386 svr4.0, and systems where the
21340    VM page cache was not coherent with the file system buffer cache
21341    like early versions of FreeBSD and possibly contemporary NetBSD.)
21342    For shared mappings, we should conversely verify that changes get
21343    propagated back to all the places they're supposed to be.
21344
21345    Grep wants private fixed already mapped.
21346    The main things grep needs to know about mmap are:
21347    * does it exist and is it safe to write into the mmap'd area
21348    * how to use it (BSD variants)  */
21349
21350 #include <fcntl.h>
21351 #include <sys/mman.h>
21352
21353 #if !STDC_HEADERS && !HAVE_STDLIB_H
21354 char *malloc ();
21355 #endif
21356
21357 /* This mess was copied from the GNU getpagesize.h.  */
21358 #if !HAVE_GETPAGESIZE
21359 /* Assume that all systems that can run configure have sys/param.h.  */
21360 # if !HAVE_SYS_PARAM_H
21361 #  define HAVE_SYS_PARAM_H 1
21362 # endif
21363
21364 # ifdef _SC_PAGESIZE
21365 #  define getpagesize() sysconf(_SC_PAGESIZE)
21366 # else /* no _SC_PAGESIZE */
21367 #  if HAVE_SYS_PARAM_H
21368 #   include <sys/param.h>
21369 #   ifdef EXEC_PAGESIZE
21370 #    define getpagesize() EXEC_PAGESIZE
21371 #   else /* no EXEC_PAGESIZE */
21372 #    ifdef NBPG
21373 #     define getpagesize() NBPG * CLSIZE
21374 #     ifndef CLSIZE
21375 #      define CLSIZE 1
21376 #     endif /* no CLSIZE */
21377 #    else /* no NBPG */
21378 #     ifdef NBPC
21379 #      define getpagesize() NBPC
21380 #     else /* no NBPC */
21381 #      ifdef PAGESIZE
21382 #       define getpagesize() PAGESIZE
21383 #      endif /* PAGESIZE */
21384 #     endif /* no NBPC */
21385 #    endif /* no NBPG */
21386 #   endif /* no EXEC_PAGESIZE */
21387 #  else /* no HAVE_SYS_PARAM_H */
21388 #   define getpagesize() 8192   /* punt totally */
21389 #  endif /* no HAVE_SYS_PARAM_H */
21390 # endif /* no _SC_PAGESIZE */
21391
21392 #endif /* no HAVE_GETPAGESIZE */
21393
21394 int
21395 main ()
21396 {
21397   char *data, *data2, *data3;
21398   int i, pagesize;
21399   int fd;
21400
21401   pagesize = getpagesize ();
21402
21403   /* First, make a file with some known garbage in it. */
21404   data = (char *) malloc (pagesize);
21405   if (!data)
21406     return 1;
21407   for (i = 0; i < pagesize; ++i)
21408     *(data + i) = rand ();
21409   umask (0);
21410   fd = creat ("conftest.mmap", 0600);
21411   if (fd < 0)
21412     return 1;
21413   if (write (fd, data, pagesize) != pagesize)
21414     return 1;
21415   close (fd);
21416
21417   /* Next, try to mmap the file at a fixed address which already has
21418      something else allocated at it.  If we can, also make sure that
21419      we see the same garbage.  */
21420   fd = open ("conftest.mmap", O_RDWR);
21421   if (fd < 0)
21422     return 1;
21423   data2 = (char *) malloc (2 * pagesize);
21424   if (!data2)
21425     return 1;
21426   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21427   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21428                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21429     return 1;
21430   for (i = 0; i < pagesize; ++i)
21431     if (*(data + i) != *(data2 + i))
21432       return 1;
21433
21434   /* Finally, make sure that changes to the mapped area do not
21435      percolate back to the file as seen by read().  (This is a bug on
21436      some variants of i386 svr4.0.)  */
21437   for (i = 0; i < pagesize; ++i)
21438     *(data2 + i) = *(data2 + i) + 1;
21439   data3 = (char *) malloc (pagesize);
21440   if (!data3)
21441     return 1;
21442   if (read (fd, data3, pagesize) != pagesize)
21443     return 1;
21444   for (i = 0; i < pagesize; ++i)
21445     if (*(data + i) != *(data3 + i))
21446       return 1;
21447   close (fd);
21448   return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455   *) ac_try_echo=$ac_try;;
21456 esac
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458   (eval "$ac_link") 2>&5
21459   ac_status=$?
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21462   { (case "(($ac_try" in
21463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464   *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467   (eval "$ac_try") 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; }; then
21471   ac_cv_func_mmap_fixed_mapped=yes
21472 else
21473   echo "$as_me: program exited with status $ac_status" >&5
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477 ( exit $ac_status )
21478 ac_cv_func_mmap_fixed_mapped=no
21479 fi
21480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21481 fi
21482
21483
21484 fi
21485 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21486 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21487 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_MMAP 1
21491 _ACEOF
21492
21493 fi
21494 rm -f conftest.mmap
21495
21496   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21497 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21498 if test "${ac_cv_func_mmap_file+set}" = set; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501    ac_ext=c
21502 ac_cpp='$CPP $CPPFLAGS'
21503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21506
21507   if test "$cross_compiling" = yes; then
21508   ac_cv_func_mmap_file=no
21509 else
21510   cat >conftest.$ac_ext <<_ACEOF
21511
21512     /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517
21518 #include <sys/types.h>
21519 #include <sys/mman.h>
21520 #include <fcntl.h>
21521
21522 int
21523 main ()
21524 {
21525
21526   int fd;
21527   fd = creat ("foo",0777);
21528   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21529   unlink ("foo");
21530   return (fd != (int) MAP_FAILED);
21531   ;
21532   return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_link") 2>&5
21543   ac_status=$?
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21546   { (case "(($ac_try" in
21547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548   *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551   (eval "$ac_try") 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; }; then
21555   ac_cv_func_mmap_file=yes
21556 else
21557   echo "$as_me: program exited with status $ac_status" >&5
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 ( exit $ac_status )
21562 ac_cv_func_mmap_file=no
21563 fi
21564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21565 fi
21566
21567
21568   ac_ext=c
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21573
21574
21575 fi
21576 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21577 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21578 if test "$ac_cv_func_mmap_file" = yes; then
21579
21580 cat >>confdefs.h <<\_ACEOF
21581 #define HAVE_MMAP_FILE
21582 _ACEOF
21583
21584    MMAP_FILE=yes
21585
21586 fi
21587
21588   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21589 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21590 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21591   echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593   if test "$llvm_cv_os_type" = "Interix" ; then
21594    ac_cv_need_dev_zero_for_mmap=yes
21595  else
21596    ac_cv_need_dev_zero_for_mmap=no
21597  fi
21598
21599 fi
21600 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21601 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21602 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21603
21604 cat >>confdefs.h <<\_ACEOF
21605 #define NEED_DEV_ZERO_FOR_MMAP 1
21606 _ACEOF
21607
21608 fi
21609
21610   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21611   then
21612     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21613 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21614   fi
21615   if test "$ac_cv_func_mmap_file" = "no"
21616   then
21617     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21618 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21619   fi
21620 fi
21621
21622 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21623 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21624 ac_ext=cpp
21625 ac_cpp='$CXXCPP $CPPFLAGS'
21626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21629
21630 cat >conftest.$ac_ext <<_ACEOF
21631
21632   /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637
21638     int main() {
21639       volatile unsigned long val = 1;
21640       __sync_synchronize();
21641       __sync_val_compare_and_swap(&val, 1, 0);
21642       __sync_add_and_fetch(&val, 1);
21643       __sync_sub_and_fetch(&val, 1);
21644       return 0;
21645     }
21646
21647
21648 _ACEOF
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_link") 2>conftest.er1
21657   ac_status=$?
21658   grep -v '^ *+' conftest.er1 >conftest.err
21659   rm -f conftest.er1
21660   cat conftest.err >&5
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } &&
21663          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21664   { (case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_try") 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; } &&
21673          { ac_try='test -s conftest$ac_exeext'
21674   { (case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_try") 2>&5
21680   ac_status=$?
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); }; }; then
21683
21684   { echo "$as_me:$LINENO: result: yes" >&5
21685 echo "${ECHO_T}yes" >&6; }
21686
21687 cat >>confdefs.h <<\_ACEOF
21688 #define LLVM_HAS_ATOMICS 1
21689 _ACEOF
21690
21691
21692 else
21693   echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696
21697   { echo "$as_me:$LINENO: result: no" >&5
21698 echo "${ECHO_T}no" >&6; }
21699
21700 cat >>confdefs.h <<\_ACEOF
21701 #define LLVM_HAS_ATOMICS 0
21702 _ACEOF
21703
21704   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21705 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21706
21707 fi
21708
21709 rm -f core conftest.err conftest.$ac_objext \
21710       conftest$ac_exeext conftest.$ac_ext
21711 ac_ext=c
21712 ac_cpp='$CPP $CPPFLAGS'
21713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21716
21717
21718
21719 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21720   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21721 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21722 if test "${llvm_cv_linux_mixed+set}" = set; then
21723   echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725    ac_ext=c
21726 ac_cpp='$CPP $CPPFLAGS'
21727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21730
21731   cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737 #ifndef __x86_64__
21738        error: Not x86-64 even if uname says so!
21739       #endif
21740
21741 int
21742 main ()
21743 {
21744
21745   ;
21746   return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753   *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756   (eval "$ac_compile") 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } &&
21763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21764   { (case "(($ac_try" in
21765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766   *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769   (eval "$ac_try") 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; } &&
21773          { ac_try='test -s conftest.$ac_objext'
21774   { (case "(($ac_try" in
21775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776   *) ac_try_echo=$ac_try;;
21777 esac
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779   (eval "$ac_try") 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); }; }; then
21783   llvm_cv_linux_mixed=no
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788         llvm_cv_linux_mixed=yes
21789 fi
21790
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792   ac_ext=c
21793 ac_cpp='$CPP $CPPFLAGS'
21794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21797
21798
21799 fi
21800 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21801 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21802
21803   if test "$llvm_cv_linux_mixed" = "yes"; then
21804     llvm_cv_target_arch="x86"
21805     ARCH="x86"
21806   fi
21807 fi
21808
21809
21810 for ac_func in __dso_handle
21811 do
21812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818   cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21826 #define $ac_func innocuous_$ac_func
21827
21828 /* System header to define __stub macros and hopefully few prototypes,
21829     which can conflict with char $ac_func (); below.
21830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21831     <limits.h> exists even on freestanding compilers.  */
21832
21833 #ifdef __STDC__
21834 # include <limits.h>
21835 #else
21836 # include <assert.h>
21837 #endif
21838
21839 #undef $ac_func
21840
21841 /* Override any GCC internal prototype to avoid an error.
21842    Use char because int might match the return type of a GCC
21843    builtin and then its argument prototype would still apply.  */
21844 #ifdef __cplusplus
21845 extern "C"
21846 #endif
21847 char $ac_func ();
21848 /* The GNU C library defines this for functions which it implements
21849     to always fail with ENOSYS.  Some functions are actually named
21850     something starting with __ and the normal name is an alias.  */
21851 #if defined __stub_$ac_func || defined __stub___$ac_func
21852 choke me
21853 #endif
21854
21855 int
21856 main ()
21857 {
21858 return $ac_func ();
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (ac_try="$ac_link"
21865 case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870   (eval "$ac_link") 2>conftest.er1
21871   ac_status=$?
21872   grep -v '^ *+' conftest.er1 >conftest.err
21873   rm -f conftest.er1
21874   cat conftest.err >&5
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); } &&
21877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878   { (case "(($ac_try" in
21879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880   *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883   (eval "$ac_try") 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); }; } &&
21887          { ac_try='test -s conftest$ac_exeext'
21888   { (case "(($ac_try" in
21889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890   *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893   (eval "$ac_try") 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; }; then
21897   eval "$as_ac_var=yes"
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902         eval "$as_ac_var=no"
21903 fi
21904
21905 rm -f core conftest.err conftest.$ac_objext \
21906       conftest$ac_exeext conftest.$ac_ext
21907 fi
21908 ac_res=`eval echo '${'$as_ac_var'}'`
21909                { echo "$as_me:$LINENO: result: $ac_res" >&5
21910 echo "${ECHO_T}$ac_res" >&6; }
21911 if test `eval echo '${'$as_ac_var'}'` = yes; then
21912   cat >>confdefs.h <<_ACEOF
21913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21914 _ACEOF
21915
21916 fi
21917 done
21918
21919
21920 SHLIBEXT=$libltdl_cv_shlibext
21921
21922
21923 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21924
21925
21926 if test "${prefix}" = "NONE" ; then
21927   prefix="/usr/local"
21928 fi
21929 eval LLVM_PREFIX="${prefix}";
21930 eval LLVM_BINDIR="${prefix}/bin";
21931 eval LLVM_DATADIR="${prefix}/share/llvm";
21932 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21933 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21934 eval LLVM_INCLUDEDIR="${prefix}/include";
21935 eval LLVM_INFODIR="${prefix}/info";
21936 eval LLVM_MANDIR="${prefix}/man";
21937 LLVM_CONFIGTIME=`date`
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21949   LLVM_CONFIGTIME="(timestamp not enabled)"
21950 fi
21951
21952
21953 cat >>confdefs.h <<_ACEOF
21954 #define LLVM_PREFIX "$LLVM_PREFIX"
21955 _ACEOF
21956
21957
21958 cat >>confdefs.h <<_ACEOF
21959 #define LLVM_BINDIR "$LLVM_BINDIR"
21960 _ACEOF
21961
21962
21963 cat >>confdefs.h <<_ACEOF
21964 #define LLVM_DATADIR "$LLVM_DATADIR"
21965 _ACEOF
21966
21967
21968 cat >>confdefs.h <<_ACEOF
21969 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21970 _ACEOF
21971
21972
21973 cat >>confdefs.h <<_ACEOF
21974 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21975 _ACEOF
21976
21977
21978 cat >>confdefs.h <<_ACEOF
21979 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21980 _ACEOF
21981
21982
21983 cat >>confdefs.h <<_ACEOF
21984 #define LLVM_INFODIR "$LLVM_INFODIR"
21985 _ACEOF
21986
21987
21988 cat >>confdefs.h <<_ACEOF
21989 #define LLVM_MANDIR "$LLVM_MANDIR"
21990 _ACEOF
21991
21992
21993 cat >>confdefs.h <<_ACEOF
21994 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21995 _ACEOF
21996
21997
21998 cat >>confdefs.h <<_ACEOF
21999 #define LLVM_HOST_TRIPLE "$host"
22000 _ACEOF
22001
22002
22003 cat >>confdefs.h <<_ACEOF
22004 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22005 _ACEOF
22006
22007
22008 if test "$BINDINGS_TO_BUILD" = auto ; then
22009   BINDINGS_TO_BUILD=""
22010   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22011     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22012   fi
22013 fi
22014 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22015
22016
22017 ALL_BINDINGS=ocaml
22018
22019
22020 binding_prereqs_failed=0
22021 for a_binding in $BINDINGS_TO_BUILD ; do
22022   case "$a_binding" in
22023   ocaml)
22024     if test "x$OCAMLC" = x ; then
22025       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22026 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22027       binding_prereqs_failed=1
22028     fi
22029     if test "x$OCAMLDEP" = x ; then
22030       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22031 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22032       binding_prereqs_failed=1
22033     fi
22034     if test "x$OCAMLOPT" = x ; then
22035       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22036 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22037           fi
22038     if test "x$with_ocaml_libdir" != xauto ; then
22039       OCAML_LIBDIR=$with_ocaml_libdir
22040
22041     else
22042       ocaml_stdlib="`"$OCAMLC" -where`"
22043       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22044       then
22045         # ocaml stdlib is beneath our prefix; use stdlib
22046         OCAML_LIBDIR=$ocaml_stdlib
22047
22048       else
22049         # ocaml stdlib is outside our prefix; use libdir/ocaml
22050         OCAML_LIBDIR=${prefix}/lib/ocaml
22051
22052       fi
22053     fi
22054     ;;
22055   esac
22056 done
22057 if test "$binding_prereqs_failed" = 1 ; then
22058   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22059 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22060    { (exit 1); exit 1; }; }
22061 fi
22062
22063 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22064 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22065 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068    ac_ext=cpp
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22073
22074   oldcxxflags="$CXXFLAGS"
22075   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22076   cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h.  */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h.  */
22082 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22083 int
22084 main ()
22085 {
22086 X<int>().f();
22087   ;
22088   return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } &&
22105          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22106   { (case "(($ac_try" in
22107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108   *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111   (eval "$ac_try") 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; } &&
22115          { ac_try='test -s conftest.$ac_objext'
22116   { (case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_try") 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }; }; then
22125   llvm_cv_cxx_visibility_inlines_hidden=yes
22126 else
22127   echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130         llvm_cv_cxx_visibility_inlines_hidden=no
22131 fi
22132
22133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134   CXXFLAGS="$oldcxxflags"
22135   ac_ext=c
22136 ac_cpp='$CPP $CPPFLAGS'
22137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22140
22141
22142 fi
22143 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22144 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22145 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22146   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22147
22148 else
22149   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22150
22151 fi
22152
22153
22154 if test "$llvm_cv_link_use_r" = "yes" ; then
22155   RPATH="-Wl,-R"
22156 else
22157   RPATH="-Wl,-rpath"
22158 fi
22159
22160
22161 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22162   RDYNAMIC="-rdynamic"
22163 else
22164   RDYNAMIC=""
22165 fi
22166
22167
22168
22169 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22170
22171
22172
22173
22174
22175
22176 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22177
22178 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22179
22180 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22181
22182 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22183
22184 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22185
22186
22187 ac_config_files="$ac_config_files Makefile.config"
22188
22189
22190 ac_config_files="$ac_config_files llvm.spec"
22191
22192
22193 ac_config_files="$ac_config_files docs/doxygen.cfg"
22194
22195
22196 if test "${clang_src_root}" = ""; then
22197   clang_src_root="$srcdir/tools/clang"
22198 fi
22199 if test -f ${clang_src_root}/README.txt; then
22200     configh="include/clang/Config/config.h"
22201   doxy="docs/doxygen.cfg"
22202   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22203
22204   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22205
22206 fi
22207
22208 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22209
22210
22211 test "x$program_prefix" = "xNONE" && program_prefix=""
22212
22213
22214
22215 ac_config_commands="$ac_config_commands setup"
22216
22217 ac_config_commands="$ac_config_commands Makefile"
22218
22219
22220 ac_config_commands="$ac_config_commands Makefile.common"
22221
22222
22223 ac_config_commands="$ac_config_commands examples/Makefile"
22224
22225
22226 ac_config_commands="$ac_config_commands lib/Makefile"
22227
22228
22229 ac_config_commands="$ac_config_commands runtime/Makefile"
22230
22231
22232 ac_config_commands="$ac_config_commands test/Makefile"
22233
22234
22235 ac_config_commands="$ac_config_commands test/Makefile.tests"
22236
22237
22238 ac_config_commands="$ac_config_commands unittests/Makefile"
22239
22240
22241 ac_config_commands="$ac_config_commands tools/Makefile"
22242
22243
22244 ac_config_commands="$ac_config_commands utils/Makefile"
22245
22246
22247 ac_config_commands="$ac_config_commands projects/Makefile"
22248
22249
22250 ac_config_commands="$ac_config_commands bindings/Makefile"
22251
22252
22253 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22254
22255
22256
22257 cat >confcache <<\_ACEOF
22258 # This file is a shell script that caches the results of configure
22259 # tests run on this system so they can be shared between configure
22260 # scripts and configure runs, see configure's option --config-cache.
22261 # It is not useful on other systems.  If it contains results you don't
22262 # want to keep, you may remove or edit it.
22263 #
22264 # config.status only pays attention to the cache file if you give it
22265 # the --recheck option to rerun configure.
22266 #
22267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22269 # following values.
22270
22271 _ACEOF
22272
22273 # The following way of writing the cache mishandles newlines in values,
22274 # but we know of no workaround that is simple, portable, and efficient.
22275 # So, we kill variables containing newlines.
22276 # Ultrix sh set writes to stderr and can't be redirected directly,
22277 # and sets the high bit in the cache file unless we assign to the vars.
22278 (
22279   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22280     eval ac_val=\$$ac_var
22281     case $ac_val in #(
22282     *${as_nl}*)
22283       case $ac_var in #(
22284       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22286       esac
22287       case $ac_var in #(
22288       _ | IFS | as_nl) ;; #(
22289       *) $as_unset $ac_var ;;
22290       esac ;;
22291     esac
22292   done
22293
22294   (set) 2>&1 |
22295     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22296     *${as_nl}ac_space=\ *)
22297       # `set' does not quote correctly, so add quotes (double-quote
22298       # substitution turns \\\\ into \\, and sed turns \\ into \).
22299       sed -n \
22300         "s/'/'\\\\''/g;
22301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22302       ;; #(
22303     *)
22304       # `set' quotes correctly as required by POSIX, so do not add quotes.
22305       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22306       ;;
22307     esac |
22308     sort
22309 ) |
22310   sed '
22311      /^ac_cv_env_/b end
22312      t clear
22313      :clear
22314      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22315      t end
22316      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22317      :end' >>confcache
22318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22319   if test -w "$cache_file"; then
22320     test "x$cache_file" != "x/dev/null" &&
22321       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22322 echo "$as_me: updating cache $cache_file" >&6;}
22323     cat confcache >$cache_file
22324   else
22325     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22327   fi
22328 fi
22329 rm -f confcache
22330
22331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22332 # Let make expand exec_prefix.
22333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22334
22335 DEFS=-DHAVE_CONFIG_H
22336
22337 ac_libobjs=
22338 ac_ltlibobjs=
22339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22340   # 1. Remove the extension, and $U if already installed.
22341   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22342   ac_i=`echo "$ac_i" | sed "$ac_script"`
22343   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22344   #    will be set to the directory where LIBOBJS objects are built.
22345   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22346   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22347 done
22348 LIBOBJS=$ac_libobjs
22349
22350 LTLIBOBJS=$ac_ltlibobjs
22351
22352
22353 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22354   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22355 Usually this means the macro was only invoked conditionally." >&5
22356 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22357 Usually this means the macro was only invoked conditionally." >&2;}
22358    { (exit 1); exit 1; }; }
22359 fi
22360 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22361   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22362 Usually this means the macro was only invoked conditionally." >&5
22363 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22364 Usually this means the macro was only invoked conditionally." >&2;}
22365    { (exit 1); exit 1; }; }
22366 fi
22367
22368 : ${CONFIG_STATUS=./config.status}
22369 ac_clean_files_save=$ac_clean_files
22370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22373 cat >$CONFIG_STATUS <<_ACEOF
22374 #! $SHELL
22375 # Generated by $as_me.
22376 # Run this file to recreate the current configuration.
22377 # Compiler output produced by configure, useful for debugging
22378 # configure, is in config.log if it exists.
22379
22380 debug=false
22381 ac_cs_recheck=false
22382 ac_cs_silent=false
22383 SHELL=\${CONFIG_SHELL-$SHELL}
22384 _ACEOF
22385
22386 cat >>$CONFIG_STATUS <<\_ACEOF
22387 ## --------------------- ##
22388 ## M4sh Initialization.  ##
22389 ## --------------------- ##
22390
22391 # Be Bourne compatible
22392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22393   emulate sh
22394   NULLCMD=:
22395   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22396   # is contrary to our usage.  Disable this feature.
22397   alias -g '${1+"$@"}'='"$@"'
22398   setopt NO_GLOB_SUBST
22399 else
22400   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22401 fi
22402 BIN_SH=xpg4; export BIN_SH # for Tru64
22403 DUALCASE=1; export DUALCASE # for MKS sh
22404
22405
22406 # PATH needs CR
22407 # Avoid depending upon Character Ranges.
22408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22411 as_cr_digits='0123456789'
22412 as_cr_alnum=$as_cr_Letters$as_cr_digits
22413
22414 # The user is always right.
22415 if test "${PATH_SEPARATOR+set}" != set; then
22416   echo "#! /bin/sh" >conf$$.sh
22417   echo  "exit 0"   >>conf$$.sh
22418   chmod +x conf$$.sh
22419   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22420     PATH_SEPARATOR=';'
22421   else
22422     PATH_SEPARATOR=:
22423   fi
22424   rm -f conf$$.sh
22425 fi
22426
22427 # Support unset when possible.
22428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22429   as_unset=unset
22430 else
22431   as_unset=false
22432 fi
22433
22434
22435 # IFS
22436 # We need space, tab and new line, in precisely that order.  Quoting is
22437 # there to prevent editors from complaining about space-tab.
22438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22439 # splitting by setting IFS to empty value.)
22440 as_nl='
22441 '
22442 IFS=" ""        $as_nl"
22443
22444 # Find who we are.  Look in the path if we contain no directory separator.
22445 case $0 in
22446   *[\\/]* ) as_myself=$0 ;;
22447   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22448 for as_dir in $PATH
22449 do
22450   IFS=$as_save_IFS
22451   test -z "$as_dir" && as_dir=.
22452   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22453 done
22454 IFS=$as_save_IFS
22455
22456      ;;
22457 esac
22458 # We did not find ourselves, most probably we were run as `sh COMMAND'
22459 # in which case we are not to be found in the path.
22460 if test "x$as_myself" = x; then
22461   as_myself=$0
22462 fi
22463 if test ! -f "$as_myself"; then
22464   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22465   { (exit 1); exit 1; }
22466 fi
22467
22468 # Work around bugs in pre-3.0 UWIN ksh.
22469 for as_var in ENV MAIL MAILPATH
22470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22471 done
22472 PS1='$ '
22473 PS2='> '
22474 PS4='+ '
22475
22476 # NLS nuisances.
22477 for as_var in \
22478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22480   LC_TELEPHONE LC_TIME
22481 do
22482   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22483     eval $as_var=C; export $as_var
22484   else
22485     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22486   fi
22487 done
22488
22489 # Required to use basename.
22490 if expr a : '\(a\)' >/dev/null 2>&1 &&
22491    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22492   as_expr=expr
22493 else
22494   as_expr=false
22495 fi
22496
22497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22498   as_basename=basename
22499 else
22500   as_basename=false
22501 fi
22502
22503
22504 # Name of the executable.
22505 as_me=`$as_basename -- "$0" ||
22506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22507          X"$0" : 'X\(//\)$' \| \
22508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22509 echo X/"$0" |
22510     sed '/^.*\/\([^/][^/]*\)\/*$/{
22511             s//\1/
22512             q
22513           }
22514           /^X\/\(\/\/\)$/{
22515             s//\1/
22516             q
22517           }
22518           /^X\/\(\/\).*/{
22519             s//\1/
22520             q
22521           }
22522           s/.*/./; q'`
22523
22524 # CDPATH.
22525 $as_unset CDPATH
22526
22527
22528
22529   as_lineno_1=$LINENO
22530   as_lineno_2=$LINENO
22531   test "x$as_lineno_1" != "x$as_lineno_2" &&
22532   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22533
22534   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22535   # uniformly replaced by the line number.  The first 'sed' inserts a
22536   # line-number line after each line using $LINENO; the second 'sed'
22537   # does the real work.  The second script uses 'N' to pair each
22538   # line-number line with the line containing $LINENO, and appends
22539   # trailing '-' during substitution so that $LINENO is not a special
22540   # case at line end.
22541   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22542   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22543   # E. McMahon (1931-1989) for sed's syntax.  :-)
22544   sed -n '
22545     p
22546     /[$]LINENO/=
22547   ' <$as_myself |
22548     sed '
22549       s/[$]LINENO.*/&-/
22550       t lineno
22551       b
22552       :lineno
22553       N
22554       :loop
22555       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22556       t loop
22557       s/-\n.*//
22558     ' >$as_me.lineno &&
22559   chmod +x "$as_me.lineno" ||
22560     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22561    { (exit 1); exit 1; }; }
22562
22563   # Don't try to exec as it changes $[0], causing all sort of problems
22564   # (the dirname of $[0] is not the place where we might find the
22565   # original and so on.  Autoconf is especially sensitive to this).
22566   . "./$as_me.lineno"
22567   # Exit status is that of the last command.
22568   exit
22569 }
22570
22571
22572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22573   as_dirname=dirname
22574 else
22575   as_dirname=false
22576 fi
22577
22578 ECHO_C= ECHO_N= ECHO_T=
22579 case `echo -n x` in
22580 -n*)
22581   case `echo 'x\c'` in
22582   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22583   *)   ECHO_C='\c';;
22584   esac;;
22585 *)
22586   ECHO_N='-n';;
22587 esac
22588
22589 if expr a : '\(a\)' >/dev/null 2>&1 &&
22590    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22591   as_expr=expr
22592 else
22593   as_expr=false
22594 fi
22595
22596 rm -f conf$$ conf$$.exe conf$$.file
22597 if test -d conf$$.dir; then
22598   rm -f conf$$.dir/conf$$.file
22599 else
22600   rm -f conf$$.dir
22601   mkdir conf$$.dir
22602 fi
22603 echo >conf$$.file
22604 if ln -s conf$$.file conf$$ 2>/dev/null; then
22605   as_ln_s='ln -s'
22606   # ... but there are two gotchas:
22607   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22608   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22609   # In both cases, we have to default to `cp -p'.
22610   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22611     as_ln_s='cp -p'
22612 elif ln conf$$.file conf$$ 2>/dev/null; then
22613   as_ln_s=ln
22614 else
22615   as_ln_s='cp -p'
22616 fi
22617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22618 rmdir conf$$.dir 2>/dev/null
22619
22620 if mkdir -p . 2>/dev/null; then
22621   as_mkdir_p=:
22622 else
22623   test -d ./-p && rmdir ./-p
22624   as_mkdir_p=false
22625 fi
22626
22627 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22628 # systems may use methods other than mode bits to determine executability.
22629 cat >conf$$.file <<_ASEOF
22630 #! /bin/sh
22631 exit 0
22632 _ASEOF
22633 chmod +x conf$$.file
22634 if test -x conf$$.file >/dev/null 2>&1; then
22635   as_executable_p="test -x"
22636 else
22637   as_executable_p=:
22638 fi
22639 rm -f conf$$.file
22640
22641 # Sed expression to map a string onto a valid CPP name.
22642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22643
22644 # Sed expression to map a string onto a valid variable name.
22645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22646
22647
22648 exec 6>&1
22649
22650 # Save the log message, to keep $[0] and so on meaningful, and to
22651 # report actual input values of CONFIG_FILES etc. instead of their
22652 # values after options handling.
22653 ac_log="
22654 This file was extended by LLVM $as_me 3.4svn, which was
22655 generated by GNU Autoconf 2.60.  Invocation command line was
22656
22657   CONFIG_FILES    = $CONFIG_FILES
22658   CONFIG_HEADERS  = $CONFIG_HEADERS
22659   CONFIG_LINKS    = $CONFIG_LINKS
22660   CONFIG_COMMANDS = $CONFIG_COMMANDS
22661   $ $0 $@
22662
22663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22664 "
22665
22666 _ACEOF
22667
22668 cat >>$CONFIG_STATUS <<_ACEOF
22669 # Files that config.status was made for.
22670 config_files="$ac_config_files"
22671 config_headers="$ac_config_headers"
22672 config_commands="$ac_config_commands"
22673
22674 _ACEOF
22675
22676 cat >>$CONFIG_STATUS <<\_ACEOF
22677 ac_cs_usage="\
22678 \`$as_me' instantiates files from templates according to the
22679 current configuration.
22680
22681 Usage: $0 [OPTIONS] [FILE]...
22682
22683   -h, --help       print this help, then exit
22684   -V, --version    print version number, then exit
22685   -q, --quiet      do not print progress messages
22686   -d, --debug      don't remove temporary files
22687       --recheck    update $as_me by reconfiguring in the same conditions
22688   --file=FILE[:TEMPLATE]
22689                    instantiate the configuration file FILE
22690   --header=FILE[:TEMPLATE]
22691                    instantiate the configuration header FILE
22692
22693 Configuration files:
22694 $config_files
22695
22696 Configuration headers:
22697 $config_headers
22698
22699 Configuration commands:
22700 $config_commands
22701
22702 Report bugs to <bug-autoconf@gnu.org>."
22703
22704 _ACEOF
22705 cat >>$CONFIG_STATUS <<_ACEOF
22706 ac_cs_version="\\
22707 LLVM config.status 3.4svn
22708 configured by $0, generated by GNU Autoconf 2.60,
22709   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22710
22711 Copyright (C) 2006 Free Software Foundation, Inc.
22712 This config.status script is free software; the Free Software Foundation
22713 gives unlimited permission to copy, distribute and modify it."
22714
22715 ac_pwd='$ac_pwd'
22716 srcdir='$srcdir'
22717 INSTALL='$INSTALL'
22718 _ACEOF
22719
22720 cat >>$CONFIG_STATUS <<\_ACEOF
22721 # If no file are specified by the user, then we need to provide default
22722 # value.  By we need to know if files were specified by the user.
22723 ac_need_defaults=:
22724 while test $# != 0
22725 do
22726   case $1 in
22727   --*=*)
22728     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22729     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22730     ac_shift=:
22731     ;;
22732   *)
22733     ac_option=$1
22734     ac_optarg=$2
22735     ac_shift=shift
22736     ;;
22737   esac
22738
22739   case $ac_option in
22740   # Handling of the options.
22741   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22742     ac_cs_recheck=: ;;
22743   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22744     echo "$ac_cs_version"; exit ;;
22745   --debug | --debu | --deb | --de | --d | -d )
22746     debug=: ;;
22747   --file | --fil | --fi | --f )
22748     $ac_shift
22749     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22750     ac_need_defaults=false;;
22751   --header | --heade | --head | --hea )
22752     $ac_shift
22753     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22754     ac_need_defaults=false;;
22755   --he | --h)
22756     # Conflict between --help and --header
22757     { echo "$as_me: error: ambiguous option: $1
22758 Try \`$0 --help' for more information." >&2
22759    { (exit 1); exit 1; }; };;
22760   --help | --hel | -h )
22761     echo "$ac_cs_usage"; exit ;;
22762   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22763   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22764     ac_cs_silent=: ;;
22765
22766   # This is an error.
22767   -*) { echo "$as_me: error: unrecognized option: $1
22768 Try \`$0 --help' for more information." >&2
22769    { (exit 1); exit 1; }; } ;;
22770
22771   *) ac_config_targets="$ac_config_targets $1"
22772      ac_need_defaults=false ;;
22773
22774   esac
22775   shift
22776 done
22777
22778 ac_configure_extra_args=
22779
22780 if $ac_cs_silent; then
22781   exec 6>/dev/null
22782   ac_configure_extra_args="$ac_configure_extra_args --silent"
22783 fi
22784
22785 _ACEOF
22786 cat >>$CONFIG_STATUS <<_ACEOF
22787 if \$ac_cs_recheck; then
22788   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22789   CONFIG_SHELL=$SHELL
22790   export CONFIG_SHELL
22791   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22792 fi
22793
22794 _ACEOF
22795 cat >>$CONFIG_STATUS <<\_ACEOF
22796 exec 5>>config.log
22797 {
22798   echo
22799   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22800 ## Running $as_me. ##
22801 _ASBOX
22802   echo "$ac_log"
22803 } >&5
22804
22805 _ACEOF
22806 cat >>$CONFIG_STATUS <<_ACEOF
22807 #
22808 # INIT-COMMANDS
22809 #
22810 llvm_src="${srcdir}"
22811
22812 _ACEOF
22813
22814 cat >>$CONFIG_STATUS <<\_ACEOF
22815
22816 # Handling of arguments.
22817 for ac_config_target in $ac_config_targets
22818 do
22819   case $ac_config_target in
22820     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22821     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22822     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22823     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22824     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22825     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22826     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22827     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22828     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22829     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22830     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22831     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22832     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22833     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22834     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22835     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22836     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22837     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22838     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22839     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22840     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22841     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22842     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22843     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22844     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22845     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22846     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22847
22848   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22849 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22850    { (exit 1); exit 1; }; };;
22851   esac
22852 done
22853
22854
22855 # If the user did not use the arguments to specify the items to instantiate,
22856 # then the envvar interface is used.  Set only those that are not.
22857 # We use the long form for the default assignment because of an extremely
22858 # bizarre bug on SunOS 4.1.3.
22859 if $ac_need_defaults; then
22860   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22861   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22862   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22863 fi
22864
22865 # Have a temporary directory for convenience.  Make it in the build tree
22866 # simply because there is no reason against having it here, and in addition,
22867 # creating and moving files from /tmp can sometimes cause problems.
22868 # Hook for its removal unless debugging.
22869 # Note that there is a small window in which the directory will not be cleaned:
22870 # after its creation but before its name has been assigned to `$tmp'.
22871 $debug ||
22872 {
22873   tmp=
22874   trap 'exit_status=$?
22875   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22876 ' 0
22877   trap '{ (exit 1); exit 1; }' 1 2 13 15
22878 }
22879 # Create a (secure) tmp directory for tmp files.
22880
22881 {
22882   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22883   test -n "$tmp" && test -d "$tmp"
22884 }  ||
22885 {
22886   tmp=./conf$$-$RANDOM
22887   (umask 077 && mkdir "$tmp")
22888 } ||
22889 {
22890    echo "$me: cannot create a temporary directory in ." >&2
22891    { (exit 1); exit 1; }
22892 }
22893
22894 #
22895 # Set up the sed scripts for CONFIG_FILES section.
22896 #
22897
22898 # No need to generate the scripts if there are no CONFIG_FILES.
22899 # This happens for instance when ./config.status config.h
22900 if test -n "$CONFIG_FILES"; then
22901
22902 _ACEOF
22903
22904
22905
22906 ac_delim='%!_!# '
22907 for ac_last_try in false false false false false :; do
22908   cat >conf$$subs.sed <<_ACEOF
22909 SHELL!$SHELL$ac_delim
22910 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22911 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22912 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22913 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22914 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22915 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22916 exec_prefix!$exec_prefix$ac_delim
22917 prefix!$prefix$ac_delim
22918 program_transform_name!$program_transform_name$ac_delim
22919 bindir!$bindir$ac_delim
22920 sbindir!$sbindir$ac_delim
22921 libexecdir!$libexecdir$ac_delim
22922 datarootdir!$datarootdir$ac_delim
22923 datadir!$datadir$ac_delim
22924 sysconfdir!$sysconfdir$ac_delim
22925 sharedstatedir!$sharedstatedir$ac_delim
22926 localstatedir!$localstatedir$ac_delim
22927 includedir!$includedir$ac_delim
22928 oldincludedir!$oldincludedir$ac_delim
22929 docdir!$docdir$ac_delim
22930 infodir!$infodir$ac_delim
22931 htmldir!$htmldir$ac_delim
22932 dvidir!$dvidir$ac_delim
22933 pdfdir!$pdfdir$ac_delim
22934 psdir!$psdir$ac_delim
22935 libdir!$libdir$ac_delim
22936 localedir!$localedir$ac_delim
22937 mandir!$mandir$ac_delim
22938 DEFS!$DEFS$ac_delim
22939 ECHO_C!$ECHO_C$ac_delim
22940 ECHO_N!$ECHO_N$ac_delim
22941 ECHO_T!$ECHO_T$ac_delim
22942 LIBS!$LIBS$ac_delim
22943 build_alias!$build_alias$ac_delim
22944 host_alias!$host_alias$ac_delim
22945 target_alias!$target_alias$ac_delim
22946 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22947 CC!$CC$ac_delim
22948 CFLAGS!$CFLAGS$ac_delim
22949 LDFLAGS!$LDFLAGS$ac_delim
22950 CPPFLAGS!$CPPFLAGS$ac_delim
22951 ac_ct_CC!$ac_ct_CC$ac_delim
22952 EXEEXT!$EXEEXT$ac_delim
22953 OBJEXT!$OBJEXT$ac_delim
22954 CXX!$CXX$ac_delim
22955 CXXFLAGS!$CXXFLAGS$ac_delim
22956 ac_ct_CXX!$ac_ct_CXX$ac_delim
22957 CPP!$CPP$ac_delim
22958 subdirs!$subdirs$ac_delim
22959 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22960 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22961 build!$build$ac_delim
22962 build_cpu!$build_cpu$ac_delim
22963 build_vendor!$build_vendor$ac_delim
22964 build_os!$build_os$ac_delim
22965 host!$host$ac_delim
22966 host_cpu!$host_cpu$ac_delim
22967 host_vendor!$host_vendor$ac_delim
22968 host_os!$host_os$ac_delim
22969 target!$target$ac_delim
22970 target_cpu!$target_cpu$ac_delim
22971 target_vendor!$target_vendor$ac_delim
22972 target_os!$target_os$ac_delim
22973 OS!$OS$ac_delim
22974 HOST_OS!$HOST_OS$ac_delim
22975 TARGET_OS!$TARGET_OS$ac_delim
22976 LINKALL!$LINKALL$ac_delim
22977 NOLINKALL!$NOLINKALL$ac_delim
22978 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22979 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22980 ARCH!$ARCH$ac_delim
22981 HOST_ARCH!$HOST_ARCH$ac_delim
22982 ENDIAN!$ENDIAN$ac_delim
22983 GREP!$GREP$ac_delim
22984 EGREP!$EGREP$ac_delim
22985 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22986 BUILD_CC!$BUILD_CC$ac_delim
22987 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22988 BUILD_CXX!$BUILD_CXX$ac_delim
22989 CVSBUILD!$CVSBUILD$ac_delim
22990 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22991 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22992 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22993 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22994 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22995 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22996 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22997 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22998 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22999 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23000 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23001 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23002 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23003 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23004 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23005 JIT!$JIT$ac_delim
23006 _ACEOF
23007
23008   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23009     break
23010   elif $ac_last_try; then
23011     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23012 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23013    { (exit 1); exit 1; }; }
23014   else
23015     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23016   fi
23017 done
23018
23019 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23020 if test -n "$ac_eof"; then
23021   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23022   ac_eof=`expr $ac_eof + 1`
23023 fi
23024
23025 cat >>$CONFIG_STATUS <<_ACEOF
23026 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23028 _ACEOF
23029 sed '
23030 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23031 s/^/s,@/; s/!/@,|#_!!_#|/
23032 :n
23033 t n
23034 s/'"$ac_delim"'$/,g/; t
23035 s/$/\\/; p
23036 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23037 ' >>$CONFIG_STATUS <conf$$subs.sed
23038 rm -f conf$$subs.sed
23039 cat >>$CONFIG_STATUS <<_ACEOF
23040 CEOF$ac_eof
23041 _ACEOF
23042
23043
23044 ac_delim='%!_!# '
23045 for ac_last_try in false false false false false :; do
23046   cat >conf$$subs.sed <<_ACEOF
23047 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23048 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23049 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23050 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23051 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23052 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23053 ENABLE_PIC!$ENABLE_PIC$ac_delim
23054 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23055 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23056 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23057 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23058 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23059 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23060 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23061 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23062 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23063 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23064 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23065 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23066 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23067 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23068 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23069 NM!$NM$ac_delim
23070 ifGNUmake!$ifGNUmake$ac_delim
23071 LN_S!$LN_S$ac_delim
23072 CMP!$CMP$ac_delim
23073 CP!$CP$ac_delim
23074 DATE!$DATE$ac_delim
23075 FIND!$FIND$ac_delim
23076 MKDIR!$MKDIR$ac_delim
23077 MV!$MV$ac_delim
23078 RANLIB!$RANLIB$ac_delim
23079 AR!$AR$ac_delim
23080 RM!$RM$ac_delim
23081 SED!$SED$ac_delim
23082 TAR!$TAR$ac_delim
23083 BINPWD!$BINPWD$ac_delim
23084 GRAPHVIZ!$GRAPHVIZ$ac_delim
23085 DOT!$DOT$ac_delim
23086 FDP!$FDP$ac_delim
23087 NEATO!$NEATO$ac_delim
23088 TWOPI!$TWOPI$ac_delim
23089 CIRCO!$CIRCO$ac_delim
23090 GV!$GV$ac_delim
23091 DOTTY!$DOTTY$ac_delim
23092 XDOT!$XDOT$ac_delim
23093 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23094 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23095 INSTALL_DATA!$INSTALL_DATA$ac_delim
23096 BZIP2!$BZIP2$ac_delim
23097 CAT!$CAT$ac_delim
23098 DOXYGEN!$DOXYGEN$ac_delim
23099 GROFF!$GROFF$ac_delim
23100 GZIPBIN!$GZIPBIN$ac_delim
23101 PDFROFF!$PDFROFF$ac_delim
23102 ZIP!$ZIP$ac_delim
23103 OCAMLC!$OCAMLC$ac_delim
23104 OCAMLOPT!$OCAMLOPT$ac_delim
23105 OCAMLDEP!$OCAMLDEP$ac_delim
23106 OCAMLDOC!$OCAMLDOC$ac_delim
23107 GAS!$GAS$ac_delim
23108 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23109 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23110 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23111 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23112 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23113 LIBADD_DL!$LIBADD_DL$ac_delim
23114 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23115 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23116 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23117 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23118 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23119 PYTHON!$PYTHON$ac_delim
23120 USE_UDIS86!$USE_UDIS86$ac_delim
23121 USE_OPROFILE!$USE_OPROFILE$ac_delim
23122 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23123 XML2CONFIG!$XML2CONFIG$ac_delim
23124 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23125 LIBXML2_INC!$LIBXML2_INC$ac_delim
23126 CXXCPP!$CXXCPP$ac_delim
23127 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23128 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23129 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23130 MMAP_FILE!$MMAP_FILE$ac_delim
23131 SHLIBEXT!$SHLIBEXT$ac_delim
23132 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23133 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23134 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23135 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23136 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23137 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23138 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23139 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23140 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23141 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23142 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23143 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23144 _ACEOF
23145
23146   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23147     break
23148   elif $ac_last_try; then
23149     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23150 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23151    { (exit 1); exit 1; }; }
23152   else
23153     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23154   fi
23155 done
23156
23157 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23158 if test -n "$ac_eof"; then
23159   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23160   ac_eof=`expr $ac_eof + 1`
23161 fi
23162
23163 cat >>$CONFIG_STATUS <<_ACEOF
23164 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23166 _ACEOF
23167 sed '
23168 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23169 s/^/s,@/; s/!/@,|#_!!_#|/
23170 :n
23171 t n
23172 s/'"$ac_delim"'$/,g/; t
23173 s/$/\\/; p
23174 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23175 ' >>$CONFIG_STATUS <conf$$subs.sed
23176 rm -f conf$$subs.sed
23177 cat >>$CONFIG_STATUS <<_ACEOF
23178 CEOF$ac_eof
23179 _ACEOF
23180
23181
23182 ac_delim='%!_!# '
23183 for ac_last_try in false false false false false :; do
23184   cat >conf$$subs.sed <<_ACEOF
23185 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23186 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23187 RPATH!$RPATH$ac_delim
23188 RDYNAMIC!$RDYNAMIC$ac_delim
23189 program_prefix!$program_prefix$ac_delim
23190 LIBOBJS!$LIBOBJS$ac_delim
23191 LTLIBOBJS!$LTLIBOBJS$ac_delim
23192 _ACEOF
23193
23194   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23195     break
23196   elif $ac_last_try; then
23197     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23198 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23199    { (exit 1); exit 1; }; }
23200   else
23201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23202   fi
23203 done
23204
23205 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23206 if test -n "$ac_eof"; then
23207   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23208   ac_eof=`expr $ac_eof + 1`
23209 fi
23210
23211 cat >>$CONFIG_STATUS <<_ACEOF
23212 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23214 _ACEOF
23215 sed '
23216 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23217 s/^/s,@/; s/!/@,|#_!!_#|/
23218 :n
23219 t n
23220 s/'"$ac_delim"'$/,g/; t
23221 s/$/\\/; p
23222 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23223 ' >>$CONFIG_STATUS <conf$$subs.sed
23224 rm -f conf$$subs.sed
23225 cat >>$CONFIG_STATUS <<_ACEOF
23226 :end
23227 s/|#_!!_#|//g
23228 CEOF$ac_eof
23229 _ACEOF
23230
23231
23232 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23233 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23234 # trailing colons and then remove the whole line if VPATH becomes empty
23235 # (actually we leave an empty line to preserve line numbers).
23236 if test "x$srcdir" = x.; then
23237   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23238 s/:*\$(srcdir):*/:/
23239 s/:*\${srcdir}:*/:/
23240 s/:*@srcdir@:*/:/
23241 s/^\([^=]*=[     ]*\):*/\1/
23242 s/:*$//
23243 s/^[^=]*=[       ]*$//
23244 }'
23245 fi
23246
23247 cat >>$CONFIG_STATUS <<\_ACEOF
23248 fi # test -n "$CONFIG_FILES"
23249
23250
23251 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23252 do
23253   case $ac_tag in
23254   :[FHLC]) ac_mode=$ac_tag; continue;;
23255   esac
23256   case $ac_mode$ac_tag in
23257   :[FHL]*:*);;
23258   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23259 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23260    { (exit 1); exit 1; }; };;
23261   :[FH]-) ac_tag=-:-;;
23262   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23263   esac
23264   ac_save_IFS=$IFS
23265   IFS=:
23266   set x $ac_tag
23267   IFS=$ac_save_IFS
23268   shift
23269   ac_file=$1
23270   shift
23271
23272   case $ac_mode in
23273   :L) ac_source=$1;;
23274   :[FH])
23275     ac_file_inputs=
23276     for ac_f
23277     do
23278       case $ac_f in
23279       -) ac_f="$tmp/stdin";;
23280       *) # Look for the file first in the build tree, then in the source tree
23281          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23282          # because $ac_f cannot contain `:'.
23283          test -f "$ac_f" ||
23284            case $ac_f in
23285            [\\/$]*) false;;
23286            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23287            esac ||
23288            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23289 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23290    { (exit 1); exit 1; }; };;
23291       esac
23292       ac_file_inputs="$ac_file_inputs $ac_f"
23293     done
23294
23295     # Let's still pretend it is `configure' which instantiates (i.e., don't
23296     # use $as_me), people would be surprised to read:
23297     #    /* config.h.  Generated by config.status.  */
23298     configure_input="Generated from "`IFS=:
23299           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23300     if test x"$ac_file" != x-; then
23301       configure_input="$ac_file.  $configure_input"
23302       { echo "$as_me:$LINENO: creating $ac_file" >&5
23303 echo "$as_me: creating $ac_file" >&6;}
23304     fi
23305
23306     case $ac_tag in
23307     *:-:* | *:-) cat >"$tmp/stdin";;
23308     esac
23309     ;;
23310   esac
23311
23312   ac_dir=`$as_dirname -- "$ac_file" ||
23313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23314          X"$ac_file" : 'X\(//\)[^/]' \| \
23315          X"$ac_file" : 'X\(//\)$' \| \
23316          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23317 echo X"$ac_file" |
23318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23319             s//\1/
23320             q
23321           }
23322           /^X\(\/\/\)[^/].*/{
23323             s//\1/
23324             q
23325           }
23326           /^X\(\/\/\)$/{
23327             s//\1/
23328             q
23329           }
23330           /^X\(\/\).*/{
23331             s//\1/
23332             q
23333           }
23334           s/.*/./; q'`
23335   { as_dir="$ac_dir"
23336   case $as_dir in #(
23337   -*) as_dir=./$as_dir;;
23338   esac
23339   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23340     as_dirs=
23341     while :; do
23342       case $as_dir in #(
23343       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23344       *) as_qdir=$as_dir;;
23345       esac
23346       as_dirs="'$as_qdir' $as_dirs"
23347       as_dir=`$as_dirname -- "$as_dir" ||
23348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349          X"$as_dir" : 'X\(//\)[^/]' \| \
23350          X"$as_dir" : 'X\(//\)$' \| \
23351          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23352 echo X"$as_dir" |
23353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23354             s//\1/
23355             q
23356           }
23357           /^X\(\/\/\)[^/].*/{
23358             s//\1/
23359             q
23360           }
23361           /^X\(\/\/\)$/{
23362             s//\1/
23363             q
23364           }
23365           /^X\(\/\).*/{
23366             s//\1/
23367             q
23368           }
23369           s/.*/./; q'`
23370       test -d "$as_dir" && break
23371     done
23372     test -z "$as_dirs" || eval "mkdir $as_dirs"
23373   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23374 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23375    { (exit 1); exit 1; }; }; }
23376   ac_builddir=.
23377
23378 case "$ac_dir" in
23379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23380 *)
23381   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23382   # A ".." for each directory in $ac_dir_suffix.
23383   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23384   case $ac_top_builddir_sub in
23385   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23386   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23387   esac ;;
23388 esac
23389 ac_abs_top_builddir=$ac_pwd
23390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23391 # for backward compatibility:
23392 ac_top_builddir=$ac_top_build_prefix
23393
23394 case $srcdir in
23395   .)  # We are building in place.
23396     ac_srcdir=.
23397     ac_top_srcdir=$ac_top_builddir_sub
23398     ac_abs_top_srcdir=$ac_pwd ;;
23399   [\\/]* | ?:[\\/]* )  # Absolute name.
23400     ac_srcdir=$srcdir$ac_dir_suffix;
23401     ac_top_srcdir=$srcdir
23402     ac_abs_top_srcdir=$srcdir ;;
23403   *) # Relative name.
23404     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23405     ac_top_srcdir=$ac_top_build_prefix$srcdir
23406     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23407 esac
23408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23409
23410
23411   case $ac_mode in
23412   :F)
23413   #
23414   # CONFIG_FILE
23415   #
23416
23417   case $INSTALL in
23418   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23419   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23420   esac
23421 _ACEOF
23422
23423 cat >>$CONFIG_STATUS <<\_ACEOF
23424 # If the template does not know about datarootdir, expand it.
23425 # FIXME: This hack should be removed a few years after 2.60.
23426 ac_datarootdir_hack=; ac_datarootdir_seen=
23427
23428 case `sed -n '/datarootdir/ {
23429   p
23430   q
23431 }
23432 /@datadir@/p
23433 /@docdir@/p
23434 /@infodir@/p
23435 /@localedir@/p
23436 /@mandir@/p
23437 ' $ac_file_inputs` in
23438 *datarootdir*) ac_datarootdir_seen=yes;;
23439 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23440   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23441 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23442 _ACEOF
23443 cat >>$CONFIG_STATUS <<_ACEOF
23444   ac_datarootdir_hack='
23445   s&@datadir@&$datadir&g
23446   s&@docdir@&$docdir&g
23447   s&@infodir@&$infodir&g
23448   s&@localedir@&$localedir&g
23449   s&@mandir@&$mandir&g
23450     s&\\\${datarootdir}&$datarootdir&g' ;;
23451 esac
23452 _ACEOF
23453
23454 # Neutralize VPATH when `$srcdir' = `.'.
23455 # Shell code in configure.ac might set extrasub.
23456 # FIXME: do we really want to maintain this feature?
23457 cat >>$CONFIG_STATUS <<_ACEOF
23458   sed "$ac_vpsub
23459 $extrasub
23460 _ACEOF
23461 cat >>$CONFIG_STATUS <<\_ACEOF
23462 :t
23463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23464 s&@configure_input@&$configure_input&;t t
23465 s&@top_builddir@&$ac_top_builddir_sub&;t t
23466 s&@srcdir@&$ac_srcdir&;t t
23467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23468 s&@top_srcdir@&$ac_top_srcdir&;t t
23469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23470 s&@builddir@&$ac_builddir&;t t
23471 s&@abs_builddir@&$ac_abs_builddir&;t t
23472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23473 s&@INSTALL@&$ac_INSTALL&;t t
23474 $ac_datarootdir_hack
23475 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23476
23477 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23478   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23479   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23480   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23481 which seems to be undefined.  Please make sure it is defined." >&5
23482 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23483 which seems to be undefined.  Please make sure it is defined." >&2;}
23484
23485   rm -f "$tmp/stdin"
23486   case $ac_file in
23487   -) cat "$tmp/out"; rm -f "$tmp/out";;
23488   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23489   esac
23490  ;;
23491   :H)
23492   #
23493   # CONFIG_HEADER
23494   #
23495 _ACEOF
23496
23497 # Transform confdefs.h into a sed script `conftest.defines', that
23498 # substitutes the proper values into config.h.in to produce config.h.
23499 rm -f conftest.defines conftest.tail
23500 # First, append a space to every undef/define line, to ease matching.
23501 echo 's/$/ /' >conftest.defines
23502 # Then, protect against being on the right side of a sed subst, or in
23503 # an unquoted here document, in config.status.  If some macros were
23504 # called several times there might be several #defines for the same
23505 # symbol, which is useless.  But do not sort them, since the last
23506 # AC_DEFINE must be honored.
23507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23508 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23509 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23510 # PARAMS is the parameter list in the macro definition--in most cases, it's
23511 # just an empty string.
23512 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23513 ac_dB='\\)[      (].*,\\1define\\2'
23514 ac_dC=' '
23515 ac_dD=' ,'
23516
23517 uniq confdefs.h |
23518   sed -n '
23519         t rset
23520         :rset
23521         s/^[     ]*#[    ]*define[       ][      ]*//
23522         t ok
23523         d
23524         :ok
23525         s/[\\&,]/\\&/g
23526         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23527         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23528   ' >>conftest.defines
23529
23530 # Remove the space that was appended to ease matching.
23531 # Then replace #undef with comments.  This is necessary, for
23532 # example, in the case of _POSIX_SOURCE, which is predefined and required
23533 # on some systems where configure will not decide to define it.
23534 # (The regexp can be short, since the line contains either #define or #undef.)
23535 echo 's/ $//
23536 s,^[     #]*u.*,/* & */,' >>conftest.defines
23537
23538 # Break up conftest.defines:
23539 ac_max_sed_lines=50
23540
23541 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23542 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23543 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23544 # et cetera.
23545 ac_in='$ac_file_inputs'
23546 ac_out='"$tmp/out1"'
23547 ac_nxt='"$tmp/out2"'
23548
23549 while :
23550 do
23551   # Write a here document:
23552     cat >>$CONFIG_STATUS <<_ACEOF
23553     # First, check the format of the line:
23554     cat >"\$tmp/defines.sed" <<\\CEOF
23555 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23556 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23557 b
23558 :def
23559 _ACEOF
23560   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23561   echo 'CEOF
23562     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23563   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23564   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23565   grep . conftest.tail >/dev/null || break
23566   rm -f conftest.defines
23567   mv conftest.tail conftest.defines
23568 done
23569 rm -f conftest.defines conftest.tail
23570
23571 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23572 cat >>$CONFIG_STATUS <<\_ACEOF
23573   if test x"$ac_file" != x-; then
23574     echo "/* $configure_input  */" >"$tmp/config.h"
23575     cat "$ac_result" >>"$tmp/config.h"
23576     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23577       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23578 echo "$as_me: $ac_file is unchanged" >&6;}
23579     else
23580       rm -f $ac_file
23581       mv "$tmp/config.h" $ac_file
23582     fi
23583   else
23584     echo "/* $configure_input  */"
23585     cat "$ac_result"
23586   fi
23587   rm -f "$tmp/out12"
23588  ;;
23589
23590   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23591 echo "$as_me: executing $ac_file commands" >&6;}
23592  ;;
23593   esac
23594
23595
23596   case $ac_file$ac_mode in
23597     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23598    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23599     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23600    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23601     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23602    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23603     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23604    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23605     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23606    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23607     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23608    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23609     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23610    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23611     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23612    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23613     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23614    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23615     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23616    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23617     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23618    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23619     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23620    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23621     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23622    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23623
23624   esac
23625 done # for ac_tag
23626
23627
23628 { (exit 0); exit 0; }
23629 _ACEOF
23630 chmod +x $CONFIG_STATUS
23631 ac_clean_files=$ac_clean_files_save
23632
23633
23634 # configure is writing to config.log, and then calls config.status.
23635 # config.status does its own redirection, appending to config.log.
23636 # Unfortunately, on DOS this fails, as config.log is still kept open
23637 # by configure, so config.status won't be able to write to it; its
23638 # output is simply discarded.  So we exec the FD to /dev/null,
23639 # effectively closing config.log, so it can be properly (re)opened and
23640 # appended to by config.status.  When coming back to configure, we
23641 # need to make the FD available again.
23642 if test "$no_create" != yes; then
23643   ac_cs_success=:
23644   ac_config_status_args=
23645   test "$silent" = yes &&
23646     ac_config_status_args="$ac_config_status_args --quiet"
23647   exec 5>/dev/null
23648   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23649   exec 5>>config.log
23650   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23651   # would make configure fail if this is the last instruction.
23652   $ac_cs_success || { (exit 1); exit 1; }
23653 fi
23654
23655 #
23656 # CONFIG_SUBDIRS section.
23657 #
23658 if test "$no_recursion" != yes; then
23659
23660   # Remove --cache-file and --srcdir arguments so they do not pile up.
23661   ac_sub_configure_args=
23662   ac_prev=
23663   eval "set x $ac_configure_args"
23664   shift
23665   for ac_arg
23666   do
23667     if test -n "$ac_prev"; then
23668       ac_prev=
23669       continue
23670     fi
23671     case $ac_arg in
23672     -cache-file | --cache-file | --cache-fil | --cache-fi \
23673     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23674       ac_prev=cache_file ;;
23675     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23676     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23677     | --c=*)
23678       ;;
23679     --config-cache | -C)
23680       ;;
23681     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23682       ac_prev=srcdir ;;
23683     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23684       ;;
23685     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23686       ac_prev=prefix ;;
23687     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23688       ;;
23689     *)
23690       case $ac_arg in
23691       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23692       esac
23693       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23694     esac
23695   done
23696
23697   # Always prepend --prefix to ensure using the same prefix
23698   # in subdir configurations.
23699   ac_arg="--prefix=$prefix"
23700   case $ac_arg in
23701   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23702   esac
23703   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23704
23705   ac_popdir=`pwd`
23706   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23707
23708     # Do not complain, so a configure script can configure whichever
23709     # parts of a large source tree are present.
23710     test -d "$srcdir/$ac_dir" || continue
23711
23712     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23713     echo "$as_me:$LINENO: $ac_msg" >&5
23714     echo "$ac_msg" >&6
23715     { as_dir="$ac_dir"
23716   case $as_dir in #(
23717   -*) as_dir=./$as_dir;;
23718   esac
23719   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23720     as_dirs=
23721     while :; do
23722       case $as_dir in #(
23723       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23724       *) as_qdir=$as_dir;;
23725       esac
23726       as_dirs="'$as_qdir' $as_dirs"
23727       as_dir=`$as_dirname -- "$as_dir" ||
23728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729          X"$as_dir" : 'X\(//\)[^/]' \| \
23730          X"$as_dir" : 'X\(//\)$' \| \
23731          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23732 echo X"$as_dir" |
23733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23734             s//\1/
23735             q
23736           }
23737           /^X\(\/\/\)[^/].*/{
23738             s//\1/
23739             q
23740           }
23741           /^X\(\/\/\)$/{
23742             s//\1/
23743             q
23744           }
23745           /^X\(\/\).*/{
23746             s//\1/
23747             q
23748           }
23749           s/.*/./; q'`
23750       test -d "$as_dir" && break
23751     done
23752     test -z "$as_dirs" || eval "mkdir $as_dirs"
23753   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23754 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23755    { (exit 1); exit 1; }; }; }
23756     ac_builddir=.
23757
23758 case "$ac_dir" in
23759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23760 *)
23761   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23762   # A ".." for each directory in $ac_dir_suffix.
23763   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23764   case $ac_top_builddir_sub in
23765   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23766   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23767   esac ;;
23768 esac
23769 ac_abs_top_builddir=$ac_pwd
23770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23771 # for backward compatibility:
23772 ac_top_builddir=$ac_top_build_prefix
23773
23774 case $srcdir in
23775   .)  # We are building in place.
23776     ac_srcdir=.
23777     ac_top_srcdir=$ac_top_builddir_sub
23778     ac_abs_top_srcdir=$ac_pwd ;;
23779   [\\/]* | ?:[\\/]* )  # Absolute name.
23780     ac_srcdir=$srcdir$ac_dir_suffix;
23781     ac_top_srcdir=$srcdir
23782     ac_abs_top_srcdir=$srcdir ;;
23783   *) # Relative name.
23784     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23785     ac_top_srcdir=$ac_top_build_prefix$srcdir
23786     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23787 esac
23788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23789
23790
23791     cd "$ac_dir"
23792
23793     # Check for guested configure; otherwise get Cygnus style configure.
23794     if test -f "$ac_srcdir/configure.gnu"; then
23795       ac_sub_configure=$ac_srcdir/configure.gnu
23796     elif test -f "$ac_srcdir/configure"; then
23797       ac_sub_configure=$ac_srcdir/configure
23798     elif test -f "$ac_srcdir/configure.in"; then
23799       # This should be Cygnus configure.
23800       ac_sub_configure=$ac_aux_dir/configure
23801     else
23802       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23803 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23804       ac_sub_configure=
23805     fi
23806
23807     # The recursion is here.
23808     if test -n "$ac_sub_configure"; then
23809       # Make the cache file name correct relative to the subdirectory.
23810       case $cache_file in
23811       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23812       *) # Relative name.
23813         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23814       esac
23815
23816       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23817 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23818       # The eval makes quoting arguments work.
23819       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23820            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23821         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23822 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23823    { (exit 1); exit 1; }; }
23824     fi
23825
23826     cd "$ac_popdir"
23827   done
23828 fi
23829