Regen.
[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.3svn.
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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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_CLANG_ARCMT
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
691 ENABLE_OPTIMIZED
692 ENABLE_PROFILING
693 DISABLE_ASSERTIONS
694 ENABLE_WERROR
695 ENABLE_EXPENSIVE_CHECKS
696 EXPENSIVE_CHECKS
697 DEBUG_RUNTIME
698 DEBUG_SYMBOLS
699 KEEP_SYMBOLS
700 JIT
701 TARGET_HAS_JIT
702 ENABLE_DOCS
703 ENABLE_DOXYGEN
704 LLVM_ENABLE_THREADS
705 ENABLE_PTHREADS
706 LLVM_ENABLE_ZLIB
707 ENABLE_PIC
708 ENABLE_SHARED
709 ENABLE_EMBED_STDCXX
710 ENABLE_TIMESTAMPS
711 ENABLE_BACKTRACES
712 TARGETS_TO_BUILD
713 LLVM_ENUM_TARGETS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
717 OPTIMIZE_OPTION
718 EXTRA_OPTIONS
719 EXTRA_LD_OPTIONS
720 CLANG_SRC_ROOT
721 BINUTILS_INCDIR
722 INTERNAL_PREFIX
723 NM
724 ifGNUmake
725 LN_S
726 CMP
727 CP
728 DATE
729 FIND
730 MKDIR
731 MV
732 RANLIB
733 AR
734 RM
735 SED
736 TAR
737 BINPWD
738 GRAPHVIZ
739 DOT
740 FDP
741 NEATO
742 TWOPI
743 CIRCO
744 GV
745 DOTTY
746 XDOT_PY
747 INSTALL_PROGRAM
748 INSTALL_SCRIPT
749 INSTALL_DATA
750 BZIP2
751 CAT
752 DOXYGEN
753 GROFF
754 GZIPBIN
755 PDFROFF
756 ZIP
757 OCAMLC
758 OCAMLOPT
759 OCAMLDEP
760 OCAMLDOC
761 GAS
762 HAVE_LINK_VERSION_SCRIPT
763 INSTALL_LTDL_TRUE
764 INSTALL_LTDL_FALSE
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
767 LIBADD_DL
768 NO_VARIADIC_MACROS
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
772 NO_UNINITIALIZED
773 PYTHON
774 USE_UDIS86
775 USE_OPROFILE
776 USE_INTEL_JITEVENTS
777 XML2CONFIG
778 LIBXML2_LIBS
779 LIBXML2_INC
780 HAVE_PTHREAD
781 HAVE_LIBZ
782 HUGE_VAL_SANITY
783 MMAP_FILE
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_LIBDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 program_prefix
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 CXX
814 CXXFLAGS
815 CCC
816 CPP'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882   # If the previous option needs an argument, assign it.
883   if test -n "$ac_prev"; then
884     eval $ac_prev=\$ac_option
885     ac_prev=
886     continue
887   fi
888
889   case $ac_option in
890   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891   *)    ac_optarg=yes ;;
892   esac
893
894   # Accept the important Cygnus configure options, so we can diagnose typos.
895
896   case $ac_dashdash$ac_option in
897   --)
898     ac_dashdash=yes ;;
899
900   -bindir | --bindir | --bindi | --bind | --bin | --bi)
901     ac_prev=bindir ;;
902   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903     bindir=$ac_optarg ;;
904
905   -build | --build | --buil | --bui | --bu)
906     ac_prev=build_alias ;;
907   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908     build_alias=$ac_optarg ;;
909
910   -cache-file | --cache-file | --cache-fil | --cache-fi \
911   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912     ac_prev=cache_file ;;
913   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915     cache_file=$ac_optarg ;;
916
917   --config-cache | -C)
918     cache_file=config.cache ;;
919
920   -datadir | --datadir | --datadi | --datad)
921     ac_prev=datadir ;;
922   -datadir=* | --datadir=* | --datadi=* | --datad=*)
923     datadir=$ac_optarg ;;
924
925   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926   | --dataroo | --dataro | --datar)
927     ac_prev=datarootdir ;;
928   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930     datarootdir=$ac_optarg ;;
931
932   -disable-* | --disable-*)
933     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937    { (exit 1); exit 1; }; }
938     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939     eval enable_$ac_feature=no ;;
940
941   -docdir | --docdir | --docdi | --doc | --do)
942     ac_prev=docdir ;;
943   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944     docdir=$ac_optarg ;;
945
946   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947     ac_prev=dvidir ;;
948   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949     dvidir=$ac_optarg ;;
950
951   -enable-* | --enable-*)
952     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953     # Reject names that are not valid shell variable names.
954     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956    { (exit 1); exit 1; }; }
957     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958     eval enable_$ac_feature=\$ac_optarg ;;
959
960   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962   | --exec | --exe | --ex)
963     ac_prev=exec_prefix ;;
964   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966   | --exec=* | --exe=* | --ex=*)
967     exec_prefix=$ac_optarg ;;
968
969   -gas | --gas | --ga | --g)
970     # Obsolete; use --with-gas.
971     with_gas=yes ;;
972
973   -help | --help | --hel | --he | -h)
974     ac_init_help=long ;;
975   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976     ac_init_help=recursive ;;
977   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978     ac_init_help=short ;;
979
980   -host | --host | --hos | --ho)
981     ac_prev=host_alias ;;
982   -host=* | --host=* | --hos=* | --ho=*)
983     host_alias=$ac_optarg ;;
984
985   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986     ac_prev=htmldir ;;
987   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988   | --ht=*)
989     htmldir=$ac_optarg ;;
990
991   -includedir | --includedir | --includedi | --included | --include \
992   | --includ | --inclu | --incl | --inc)
993     ac_prev=includedir ;;
994   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995   | --includ=* | --inclu=* | --incl=* | --inc=*)
996     includedir=$ac_optarg ;;
997
998   -infodir | --infodir | --infodi | --infod | --info | --inf)
999     ac_prev=infodir ;;
1000   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001     infodir=$ac_optarg ;;
1002
1003   -libdir | --libdir | --libdi | --libd)
1004     ac_prev=libdir ;;
1005   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006     libdir=$ac_optarg ;;
1007
1008   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009   | --libexe | --libex | --libe)
1010     ac_prev=libexecdir ;;
1011   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012   | --libexe=* | --libex=* | --libe=*)
1013     libexecdir=$ac_optarg ;;
1014
1015   -localedir | --localedir | --localedi | --localed | --locale)
1016     ac_prev=localedir ;;
1017   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018     localedir=$ac_optarg ;;
1019
1020   -localstatedir | --localstatedir | --localstatedi | --localstated \
1021   | --localstate | --localstat | --localsta | --localst | --locals)
1022     ac_prev=localstatedir ;;
1023   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025     localstatedir=$ac_optarg ;;
1026
1027   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028     ac_prev=mandir ;;
1029   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030     mandir=$ac_optarg ;;
1031
1032   -nfp | --nfp | --nf)
1033     # Obsolete; use --without-fp.
1034     with_fp=no ;;
1035
1036   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037   | --no-cr | --no-c | -n)
1038     no_create=yes ;;
1039
1040   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042     no_recursion=yes ;;
1043
1044   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046   | --oldin | --oldi | --old | --ol | --o)
1047     ac_prev=oldincludedir ;;
1048   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051     oldincludedir=$ac_optarg ;;
1052
1053   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054     ac_prev=prefix ;;
1055   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056     prefix=$ac_optarg ;;
1057
1058   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059   | --program-pre | --program-pr | --program-p)
1060     ac_prev=program_prefix ;;
1061   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063     program_prefix=$ac_optarg ;;
1064
1065   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066   | --program-suf | --program-su | --program-s)
1067     ac_prev=program_suffix ;;
1068   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070     program_suffix=$ac_optarg ;;
1071
1072   -program-transform-name | --program-transform-name \
1073   | --program-transform-nam | --program-transform-na \
1074   | --program-transform-n | --program-transform- \
1075   | --program-transform | --program-transfor \
1076   | --program-transfo | --program-transf \
1077   | --program-trans | --program-tran \
1078   | --progr-tra | --program-tr | --program-t)
1079     ac_prev=program_transform_name ;;
1080   -program-transform-name=* | --program-transform-name=* \
1081   | --program-transform-nam=* | --program-transform-na=* \
1082   | --program-transform-n=* | --program-transform-=* \
1083   | --program-transform=* | --program-transfor=* \
1084   | --program-transfo=* | --program-transf=* \
1085   | --program-trans=* | --program-tran=* \
1086   | --progr-tra=* | --program-tr=* | --program-t=*)
1087     program_transform_name=$ac_optarg ;;
1088
1089   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090     ac_prev=pdfdir ;;
1091   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092     pdfdir=$ac_optarg ;;
1093
1094   -psdir | --psdir | --psdi | --psd | --ps)
1095     ac_prev=psdir ;;
1096   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097     psdir=$ac_optarg ;;
1098
1099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100   | -silent | --silent | --silen | --sile | --sil)
1101     silent=yes ;;
1102
1103   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104     ac_prev=sbindir ;;
1105   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106   | --sbi=* | --sb=*)
1107     sbindir=$ac_optarg ;;
1108
1109   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111   | --sharedst | --shareds | --shared | --share | --shar \
1112   | --sha | --sh)
1113     ac_prev=sharedstatedir ;;
1114   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117   | --sha=* | --sh=*)
1118     sharedstatedir=$ac_optarg ;;
1119
1120   -site | --site | --sit)
1121     ac_prev=site ;;
1122   -site=* | --site=* | --sit=*)
1123     site=$ac_optarg ;;
1124
1125   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126     ac_prev=srcdir ;;
1127   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128     srcdir=$ac_optarg ;;
1129
1130   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131   | --syscon | --sysco | --sysc | --sys | --sy)
1132     ac_prev=sysconfdir ;;
1133   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135     sysconfdir=$ac_optarg ;;
1136
1137   -target | --target | --targe | --targ | --tar | --ta | --t)
1138     ac_prev=target_alias ;;
1139   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140     target_alias=$ac_optarg ;;
1141
1142   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143     verbose=yes ;;
1144
1145   -version | --version | --versio | --versi | --vers | -V)
1146     ac_init_version=: ;;
1147
1148   -with-* | --with-*)
1149     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package| sed 's/-/_/g'`
1155     eval with_$ac_package=\$ac_optarg ;;
1156
1157   -without-* | --without-*)
1158     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid package name: $ac_package" >&2
1162    { (exit 1); exit 1; }; }
1163     ac_package=`echo $ac_package | sed 's/-/_/g'`
1164     eval with_$ac_package=no ;;
1165
1166   --x)
1167     # Obsolete; use --with-x.
1168     with_x=yes ;;
1169
1170   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171   | --x-incl | --x-inc | --x-in | --x-i)
1172     ac_prev=x_includes ;;
1173   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175     x_includes=$ac_optarg ;;
1176
1177   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179     ac_prev=x_libraries ;;
1180   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182     x_libraries=$ac_optarg ;;
1183
1184   -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186    { (exit 1); exit 1; }; }
1187     ;;
1188
1189   *=*)
1190     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194    { (exit 1); exit 1; }; }
1195     eval $ac_envvar=\$ac_optarg
1196     export $ac_envvar ;;
1197
1198   *)
1199     # FIXME: should be removed in autoconf 3.0.
1200     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204     ;;
1205
1206   esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211   { echo "$as_me: error: missing argument to $ac_option" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214
1215 # Be sure to have absolute directory names.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   case $ac_val in
1223     [\\/$]* | ?:[\\/]* )  continue;;
1224     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225   esac
1226   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227    { (exit 1); exit 1; }; }
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   { echo "$as_me: error: Working directory cannot be determined" >&2
1258    { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260   { echo "$as_me: error: pwd does not report name of working directory" >&2
1261    { (exit 1); exit 1; }; }
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$0" : 'X\(//\)[^/]' \| \
1271          X"$0" : 'X\(//\)$' \| \
1272          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306    { (exit 1); exit 1; }; }
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR           user executables [EPREFIX/bin]
1367   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR       program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR           object code libraries [EPREFIX/lib]
1373   --includedir=DIR       C header files [PREFIX/include]
1374   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR          info documentation [DATAROOTDIR/info]
1378   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR           man documentation [DATAROOTDIR/man]
1380   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1381   --htmldir=DIR          html documentation [DOCDIR]
1382   --dvidir=DIR           dvi documentation [DOCDIR]
1383   --pdfdir=DIR           pdf documentation [DOCDIR]
1384   --psdir=DIR            ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 System types:
1390   --build=BUILD     configure for building on BUILD [guessed]
1391   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392   --target=TARGET   configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405   --enable-polly          Use polly if available (default is YES)
1406   --enable-libcpp         Use libc++ if available (default is NO)
1407   --enable-cxx11          Use c++11 if available (default is NO)
1408   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1409   --enable-clang-static-analyzer
1410                           Enable building of clang Static Analyzer (default is
1411                           YES)
1412   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1413   --enable-optimized      Compile with optimizations enabled (default is NO)
1414   --enable-profiling      Compile with profiling enabled (default is NO)
1415   --enable-assertions     Compile with assertion checks enabled (default is
1416                           YES)
1417   --enable-werror         Compile with -Werror enabled (default is NO)
1418   --enable-expensive-checks
1419                           Compile with expensive debug checks enabled (default
1420                           is NO)
1421   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1422                           NO)
1423   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1424                           optimization is on and YES if it's off)
1425   --enable-keep-symbols   Do not strip installed executables)
1426   --enable-jit            Enable Just In Time Compiling (default is YES)
1427   --enable-docs           Build documents (default is YES)
1428   --enable-doxygen        Build doxygen documentation (default is NO)
1429   --enable-threads        Use threads if available (default is YES)
1430   --enable-pthreads       Use pthreads if available (default is YES)
1431   --enable-zlib           Use zlib for compression/decompression if available
1432                           (default is YES)
1433   --enable-pic            Build LLVM with Position Independent Code (default
1434                           is YES)
1435   --enable-shared         Build a shared library and link tools against it
1436                           (default is NO)
1437   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1438                           Win32 DLL (default is NO)
1439   --enable-timestamps     Enable embedding timestamp information in build
1440                           (default is YES)
1441   --enable-backtraces     Enable embedding backtraces on crash (default is
1442                           YES)
1443   --enable-targets        Build specific host targets: all or
1444                           target1,target2,... Valid targets are: host, x86,
1445                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1446                           xcore, msp430, nvptx, and cpp (default=all)
1447   --enable-experimental-targets
1448                           Build experimental host targets: disable or
1449                           target1,target2,... (default=disable)
1450   --enable-bindings       Build specific language bindings:
1451                           all,auto,none,{binding-name} (default=auto)
1452   --enable-libffi         Check for the presence of libffi (default is NO)
1453   --enable-ltdl-install   install libltdl
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-optimize-option  Select the compiler options to use for optimized
1459                           builds
1460   --with-extra-options    Specify additional options to compile LLVM with
1461   --with-extra-ld-options Specify additional options to link LLVM with
1462   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1463                           is stdlib)
1464   --with-clang-srcdir     Directory to the out-of-tree Clang source
1465   --with-clang-resource-dir
1466                           Relative directory from the Clang binary for
1467                           resource files
1468   --with-c-include-dirs   Colon separated list of directories clang will
1469                           search for headers
1470   --with-gcc-toolchain    Directory where gcc is installed.
1471   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1472   --with-binutils-include Specify path to binutils/include/ containing
1473                           plugin-api.h file for gold plugin.
1474   --with-bug-report-url   Specify the URL where bug reports should be
1475                           submitted (default=http://llvm.org/bugs/)
1476   --with-internal-prefix  Installation directory for internal files
1477   --with-python           path to python
1478   --with-udis86=<path>    Use udis86 external x86 disassembler library
1479   --with-oprofile=<prefix>
1480                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1481   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1482
1483
1484 Some influential environment variables:
1485   CC          C compiler command
1486   CFLAGS      C compiler flags
1487   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488               nonstandard directory <lib dir>
1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CXX         C++ compiler command
1492   CXXFLAGS    C++ compiler flags
1493   CPP         C preprocessor
1494
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1497
1498 Report bugs to <http://llvm.org/bugs/>.
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504   # If there are subdirs, report their specific --help.
1505   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506     test -d "$ac_dir" || continue
1507     ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513   # A ".." for each directory in $ac_dir_suffix.
1514   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515   case $ac_top_builddir_sub in
1516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518   esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526   .)  # We are building in place.
1527     ac_srcdir=.
1528     ac_top_srcdir=$ac_top_builddir_sub
1529     ac_abs_top_srcdir=$ac_pwd ;;
1530   [\\/]* | ?:[\\/]* )  # Absolute name.
1531     ac_srcdir=$srcdir$ac_dir_suffix;
1532     ac_top_srcdir=$srcdir
1533     ac_abs_top_srcdir=$srcdir ;;
1534   *) # Relative name.
1535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536     ac_top_srcdir=$ac_top_build_prefix$srcdir
1537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541     cd "$ac_dir" || { ac_status=$?; continue; }
1542     # Check for guested configure.
1543     if test -f "$ac_srcdir/configure.gnu"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546     elif test -f "$ac_srcdir/configure"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure" --help=recursive
1549     else
1550       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551     fi || ac_status=$?
1552     cd "$ac_pwd" || { ac_status=$?; break; }
1553   done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558   cat <<\_ACEOF
1559 LLVM configure 3.3svn
1560 generated by GNU Autoconf 2.60
1561
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566
1567 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1568 _ACEOF
1569   exit
1570 fi
1571 cat >config.log <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1574
1575 It was created by LLVM $as_me 3.3svn, which was
1576 generated by GNU Autoconf 2.60.  Invocation command line was
1577
1578   $ $0 $@
1579
1580 _ACEOF
1581 exec 5>>config.log
1582 {
1583 cat <<_ASUNAME
1584 ## --------- ##
1585 ## Platform. ##
1586 ## --------- ##
1587
1588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593
1594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1596
1597 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1598 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1601 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1602 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1603 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1604
1605 _ASUNAME
1606
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   echo "PATH: $as_dir"
1613 done
1614 IFS=$as_save_IFS
1615
1616 } >&5
1617
1618 cat >&5 <<_ACEOF
1619
1620
1621 ## ----------- ##
1622 ## Core tests. ##
1623 ## ----------- ##
1624
1625 _ACEOF
1626
1627
1628 # Keep a trace of the command line.
1629 # Strip out --no-create and --no-recursion so they do not pile up.
1630 # Strip out --silent because we don't want to record it for future runs.
1631 # Also quote any args containing shell meta-characters.
1632 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_configure_args=
1634 ac_configure_args0=
1635 ac_configure_args1=
1636 ac_must_keep_next=false
1637 for ac_pass in 1 2
1638 do
1639   for ac_arg
1640   do
1641     case $ac_arg in
1642     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644     | -silent | --silent | --silen | --sile | --sil)
1645       continue ;;
1646     *\'*)
1647       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648     esac
1649     case $ac_pass in
1650     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651     2)
1652       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653       if test $ac_must_keep_next = true; then
1654         ac_must_keep_next=false # Got value, back to normal.
1655       else
1656         case $ac_arg in
1657           *=* | --config-cache | -C | -disable-* | --disable-* \
1658           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660           | -with-* | --with-* | -without-* | --without-* | --x)
1661             case "$ac_configure_args0 " in
1662               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663             esac
1664             ;;
1665           -* ) ac_must_keep_next=true ;;
1666         esac
1667       fi
1668       ac_configure_args="$ac_configure_args '$ac_arg'"
1669       ;;
1670     esac
1671   done
1672 done
1673 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675
1676 # When interrupted or exit'd, cleanup temporary files, and complete
1677 # config.log.  We remove comments because anyway the quotes in there
1678 # would cause problems or look ugly.
1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681 trap 'exit_status=$?
1682   # Save into config.log some information that might help in debugging.
1683   {
1684     echo
1685
1686     cat <<\_ASBOX
1687 ## ---------------- ##
1688 ## Cache variables. ##
1689 ## ---------------- ##
1690 _ASBOX
1691     echo
1692     # The following way of writing the cache mishandles newlines in values,
1693 (
1694   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695     eval ac_val=\$$ac_var
1696     case $ac_val in #(
1697     *${as_nl}*)
1698       case $ac_var in #(
1699       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701       esac
1702       case $ac_var in #(
1703       _ | IFS | as_nl) ;; #(
1704       *) $as_unset $ac_var ;;
1705       esac ;;
1706     esac
1707   done
1708   (set) 2>&1 |
1709     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710     *${as_nl}ac_space=\ *)
1711       sed -n \
1712         "s/'\''/'\''\\\\'\'''\''/g;
1713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714       ;; #(
1715     *)
1716       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717       ;;
1718     esac |
1719     sort
1720 )
1721     echo
1722
1723     cat <<\_ASBOX
1724 ## ----------------- ##
1725 ## Output variables. ##
1726 ## ----------------- ##
1727 _ASBOX
1728     echo
1729     for ac_var in $ac_subst_vars
1730     do
1731       eval ac_val=\$$ac_var
1732       case $ac_val in
1733       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734       esac
1735       echo "$ac_var='\''$ac_val'\''"
1736     done | sort
1737     echo
1738
1739     if test -n "$ac_subst_files"; then
1740       cat <<\_ASBOX
1741 ## ------------------- ##
1742 ## File substitutions. ##
1743 ## ------------------- ##
1744 _ASBOX
1745       echo
1746       for ac_var in $ac_subst_files
1747       do
1748         eval ac_val=\$$ac_var
1749         case $ac_val in
1750         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751         esac
1752         echo "$ac_var='\''$ac_val'\''"
1753       done | sort
1754       echo
1755     fi
1756
1757     if test -s confdefs.h; then
1758       cat <<\_ASBOX
1759 ## ----------- ##
1760 ## confdefs.h. ##
1761 ## ----------- ##
1762 _ASBOX
1763       echo
1764       cat confdefs.h
1765       echo
1766     fi
1767     test "$ac_signal" != 0 &&
1768       echo "$as_me: caught signal $ac_signal"
1769     echo "$as_me: exit $exit_status"
1770   } >&5
1771   rm -f core *.core core.conftest.* &&
1772     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773     exit $exit_status
1774 ' 0
1775 for ac_signal in 1 2 13 15; do
1776   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 done
1778 ac_signal=0
1779
1780 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1781 rm -f -r conftest* confdefs.h
1782
1783 # Predefined preprocessor variables.
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 _ACEOF
1793
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 _ACEOF
1798
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 _ACEOF
1808
1809
1810 # Let the site file select an alternate cache file if it wants to.
1811 # Prefer explicitly selected file to automatically selected ones.
1812 if test -n "$CONFIG_SITE"; then
1813   set x "$CONFIG_SITE"
1814 elif test "x$prefix" != xNONE; then
1815   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 else
1817   set x "$ac_default_prefix/share/config.site" \
1818         "$ac_default_prefix/etc/config.site"
1819 fi
1820 shift
1821 for ac_site_file
1822 do
1823   if test -r "$ac_site_file"; then
1824     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825 echo "$as_me: loading site script $ac_site_file" >&6;}
1826     sed 's/^/| /' "$ac_site_file" >&5
1827     . "$ac_site_file"
1828   fi
1829 done
1830
1831 if test -r "$cache_file"; then
1832   # Some versions of bash will fail to source /dev/null (special
1833   # files actually), so we avoid doing that.
1834   if test -f "$cache_file"; then
1835     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836 echo "$as_me: loading cache $cache_file" >&6;}
1837     case $cache_file in
1838       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839       *)                      . "./$cache_file";;
1840     esac
1841   fi
1842 else
1843   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844 echo "$as_me: creating cache $cache_file" >&6;}
1845   >$cache_file
1846 fi
1847
1848 # Check that the precious variables saved in the cache have kept the same
1849 # value.
1850 ac_cache_corrupted=false
1851 for ac_var in $ac_precious_vars; do
1852   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853   eval ac_new_set=\$ac_env_${ac_var}_set
1854   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855   eval ac_new_val=\$ac_env_${ac_var}_value
1856   case $ac_old_set,$ac_new_set in
1857     set,)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,set)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,);;
1866     *)
1867       if test "x$ac_old_val" != "x$ac_new_val"; then
1868         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1871 echo "$as_me:   former value:  $ac_old_val" >&2;}
1872         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1873 echo "$as_me:   current value: $ac_new_val" >&2;}
1874         ac_cache_corrupted=:
1875       fi;;
1876   esac
1877   # Pass precious variables to config.status.
1878   if test "$ac_new_set" = set; then
1879     case $ac_new_val in
1880     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881     *) ac_arg=$ac_var=$ac_new_val ;;
1882     esac
1883     case " $ac_configure_args " in
1884       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1885       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886     esac
1887   fi
1888 done
1889 if $ac_cache_corrupted; then
1890   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921 ac_ext=c
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926
1927
1928
1929 cat >>confdefs.h <<\_ACEOF
1930 #define LLVM_VERSION_MAJOR 3
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MINOR 3
1936 _ACEOF
1937
1938
1939 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1940
1941
1942
1943
1944
1945
1946
1947 ac_aux_dir=
1948 for ac_dir in autoconf "$srcdir"/autoconf; do
1949   if test -f "$ac_dir/install-sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install-sh -c"
1952     break
1953   elif test -f "$ac_dir/install.sh"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/install.sh -c"
1956     break
1957   elif test -f "$ac_dir/shtool"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/shtool install -c"
1960     break
1961   fi
1962 done
1963 if test -z "$ac_aux_dir"; then
1964   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1965 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # These three variables are undocumented and unsupported,
1970 # and are intended to be withdrawn in a future Autoconf release.
1971 # They can cause serious problems if a builder's source tree is in a directory
1972 # whose full name contains unusual characters.
1973 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1974 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1975 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1976
1977
1978
1979 if test ${srcdir} != "." ; then
1980   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1981     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1982 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1983    { (exit 1); exit 1; }; }
1984   fi
1985 fi
1986
1987 ${CFLAGS=}
1988 ${CXXFLAGS=}
1989
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996   for ac_prog in clang llvm-gcc gcc
1997   do
1998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   if test -n "$CC"; then
2006   ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2015     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021 IFS=$as_save_IFS
2022
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   { echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6; }
2029 else
2030   { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2032 fi
2033
2034
2035     test -n "$CC" && break
2036   done
2037 fi
2038 if test -z "$CC"; then
2039   ac_ct_CC=$CC
2040   for ac_prog in clang llvm-gcc gcc
2041 do
2042   # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_CC"; then
2050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2059     ac_cv_prog_ac_ct_CC="$ac_prog"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065 IFS=$as_save_IFS
2066
2067 fi
2068 fi
2069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070 if test -n "$ac_ct_CC"; then
2071   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072 echo "${ECHO_T}$ac_ct_CC" >&6; }
2073 else
2074   { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2076 fi
2077
2078
2079   test -n "$ac_ct_CC" && break
2080 done
2081
2082   if test "x$ac_ct_CC" = x; then
2083     CC=""
2084   else
2085     case $cross_compiling:$ac_tool_warned in
2086 yes:)
2087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet.  If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet.  If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093 ac_tool_warned=yes ;;
2094 esac
2095     CC=$ac_ct_CC
2096   fi
2097 fi
2098
2099
2100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: no acceptable C compiler found in \$PATH
2103 See \`config.log' for more details." >&2;}
2104    { (exit 1); exit 1; }; }
2105
2106 # Provide some information about the compiler.
2107 echo "$as_me:$LINENO: checking for C compiler version" >&5
2108 ac_compiler=`set X $ac_compile; echo $2`
2109 { (ac_try="$ac_compiler --version >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler --version >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119 { (ac_try="$ac_compiler -v >&5"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125   (eval "$ac_compiler -v >&5") 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129 { (ac_try="$ac_compiler -V >&5"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135   (eval "$ac_compiler -V >&5") 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139
2140 cat >conftest.$ac_ext <<_ACEOF
2141 /* confdefs.h.  */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h.  */
2146
2147 int
2148 main ()
2149 {
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 ac_clean_files_save=$ac_clean_files
2156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2159 # of exeext.
2160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163 #
2164 # List of possible output files, starting from the most likely.
2165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2166 # only as a last resort.  b.out is created by i960 compilers.
2167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2168 #
2169 # The IRIX 6 linker writes into existing files which may not be
2170 # executable, retaining their permissions.  Remove them first so a
2171 # subsequent execution test works.
2172 ac_rmfiles=
2173 for ac_file in $ac_files
2174 do
2175   case $ac_file in
2176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2178   esac
2179 done
2180 rm -f $ac_rmfiles
2181
2182 if { (ac_try="$ac_link_default"
2183 case "(($ac_try" in
2184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185   *) ac_try_echo=$ac_try;;
2186 esac
2187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2188   (eval "$ac_link_default") 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2194 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2195 # so that the user can short-circuit this test for compilers unknown to
2196 # Autoconf.
2197 for ac_file in $ac_files
2198 do
2199   test -f "$ac_file" || continue
2200   case $ac_file in
2201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2202         ;;
2203     [ab].out )
2204         # We found the default executable, but exeext='' is most
2205         # certainly right.
2206         break;;
2207     *.* )
2208         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2209         then :; else
2210            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211         fi
2212         # We set ac_cv_exeext here because the later test for it is not
2213         # safe: cross compilers may not add the suffix if given an `-o'
2214         # argument, so we may need to know it at that point already.
2215         # Even if this section looks crufty: it has the advantage of
2216         # actually working.
2217         break;;
2218     * )
2219         break;;
2220   esac
2221 done
2222 test "$ac_cv_exeext" = no && ac_cv_exeext=
2223
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&2;}
2232    { (exit 77); exit 77; }; }
2233 fi
2234
2235 ac_exeext=$ac_cv_exeext
2236 { echo "$as_me:$LINENO: result: $ac_file" >&5
2237 echo "${ECHO_T}$ac_file" >&6; }
2238
2239 # Check that the compiler produces executables we can run.  If not, either
2240 # the compiler is broken, or we cross compile.
2241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244 # If not cross compiling, check that we can run a simple program.
2245 if test "$cross_compiling" != yes; then
2246   if { ac_try='./$ac_file'
2247   { (case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252   (eval "$ac_try") 2>&5
2253   ac_status=$?
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); }; }; then
2256     cross_compiling=no
2257   else
2258     if test "$cross_compiling" = maybe; then
2259         cross_compiling=yes
2260     else
2261         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&2;}
2267    { (exit 1); exit 1; }; }
2268     fi
2269   fi
2270 fi
2271 { echo "$as_me:$LINENO: result: yes" >&5
2272 echo "${ECHO_T}yes" >&6; }
2273
2274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2275 ac_clean_files=$ac_clean_files_save
2276 # Check that the compiler produces executables we can run.  If not, either
2277 # the compiler is broken, or we cross compile.
2278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2281 echo "${ECHO_T}$cross_compiling" >&6; }
2282
2283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2285 if { (ac_try="$ac_link"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291   (eval "$ac_link") 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; then
2295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297 # work properly (i.e., refer to `conftest.exe'), while it won't with
2298 # `rm'.
2299 for ac_file in conftest.exe conftest conftest.*; do
2300   test -f "$ac_file" || continue
2301   case $ac_file in
2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304           break;;
2305     * ) break;;
2306   esac
2307 done
2308 else
2309   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2312 See \`config.log' for more details." >&2;}
2313    { (exit 1); exit 1; }; }
2314 fi
2315
2316 rm -f conftest$ac_cv_exeext
2317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2319
2320 rm -f conftest.$ac_ext
2321 EXEEXT=$ac_cv_exeext
2322 ac_exeext=$EXEEXT
2323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2325 if test "${ac_cv_objext+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h.  */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h.  */
2334
2335 int
2336 main ()
2337 {
2338
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 rm -f conftest.o conftest.obj
2344 if { (ac_try="$ac_compile"
2345 case "(($ac_try" in
2346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347   *) ac_try_echo=$ac_try;;
2348 esac
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350   (eval "$ac_compile") 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; then
2354   for ac_file in conftest.o conftest.obj conftest.*; do
2355   test -f "$ac_file" || continue;
2356   case $ac_file in
2357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2358     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2359        break;;
2360   esac
2361 done
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2369 See \`config.log' for more details." >&2;}
2370    { (exit 1); exit 1; }; }
2371 fi
2372
2373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2374 fi
2375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2376 echo "${ECHO_T}$ac_cv_objext" >&6; }
2377 OBJEXT=$ac_cv_objext
2378 ac_objext=$OBJEXT
2379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2390
2391 int
2392 main ()
2393 {
2394 #ifndef __GNUC__
2395        choke me
2396 #endif
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (ac_try="$ac_compile"
2404 case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409   (eval "$ac_compile") 2>conftest.er1
2410   ac_status=$?
2411   grep -v '^ *+' conftest.er1 >conftest.err
2412   rm -f conftest.er1
2413   cat conftest.err >&5
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); } &&
2416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2417   { (case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_try") 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; } &&
2426          { ac_try='test -s conftest.$ac_objext'
2427   { (case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_try") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; }; then
2436   ac_compiler_gnu=yes
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441         ac_compiler_gnu=no
2442 fi
2443
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446
2447 fi
2448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2450 GCC=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS=${CFLAGS+set}
2452 ac_save_CFLAGS=$CFLAGS
2453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_cc_g+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   ac_save_c_werror_flag=$ac_c_werror_flag
2459    ac_c_werror_flag=yes
2460    ac_cv_prog_cc_g=no
2461    CFLAGS="-g"
2462    cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468
2469 int
2470 main ()
2471 {
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_compile") 2>conftest.er1
2485   ac_status=$?
2486   grep -v '^ *+' conftest.er1 >conftest.err
2487   rm -f conftest.er1
2488   cat conftest.err >&5
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); } &&
2491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492   { (case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497   (eval "$ac_try") 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; } &&
2501          { ac_try='test -s conftest.$ac_objext'
2502   { (case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_try") 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511   ac_cv_prog_cc_g=yes
2512 else
2513   echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516         CFLAGS=""
2517       cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (ac_try="$ac_compile"
2534 case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539   (eval "$ac_compile") 2>conftest.er1
2540   ac_status=$?
2541   grep -v '^ *+' conftest.er1 >conftest.err
2542   rm -f conftest.er1
2543   cat conftest.err >&5
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); } &&
2546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2547   { (case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_try") 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_try") 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   :
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571         ac_c_werror_flag=$ac_save_c_werror_flag
2572          CFLAGS="-g"
2573          cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h.  */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h.  */
2579
2580 int
2581 main ()
2582 {
2583
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (ac_try="$ac_compile"
2590 case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595   (eval "$ac_compile") 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } &&
2602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2603   { (case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_try") 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_try") 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_cv_prog_cc_g=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627
2628 fi
2629
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 fi
2632
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637    ac_c_werror_flag=$ac_save_c_werror_flag
2638 fi
2639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2641 if test "$ac_test_CFLAGS" = set; then
2642   CFLAGS=$ac_save_CFLAGS
2643 elif test $ac_cv_prog_cc_g = yes; then
2644   if test "$GCC" = yes; then
2645     CFLAGS="-g -O2"
2646   else
2647     CFLAGS="-g"
2648   fi
2649 else
2650   if test "$GCC" = yes; then
2651     CFLAGS="-O2"
2652   else
2653     CFLAGS=
2654   fi
2655 fi
2656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_cc_c89+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   ac_cv_prog_cc_c89=no
2662 ac_save_CC=$CC
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669 #include <stdarg.h>
2670 #include <stdio.h>
2671 #include <sys/types.h>
2672 #include <sys/stat.h>
2673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2674 struct buf { int x; };
2675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676 static char *e (p, i)
2677      char **p;
2678      int i;
2679 {
2680   return p[i];
2681 }
2682 static char *f (char * (*g) (char **, int), char **p, ...)
2683 {
2684   char *s;
2685   va_list v;
2686   va_start (v,p);
2687   s = g (p, va_arg (v,int));
2688   va_end (v);
2689   return s;
2690 }
2691
2692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2693    function prototypes and stuff, but not '\xHH' hex character constants.
2694    These don't provoke an error unfortunately, instead are silently treated
2695    as 'x'.  The following induces an error, until -std is added to get
2696    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2697    array size at least.  It's necessary to write '\x00'==0 to get something
2698    that's true only with -std.  */
2699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700
2701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2702    inside strings and character constants.  */
2703 #define FOO(x) 'x'
2704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2705
2706 int test (int i, double x);
2707 struct s1 {int (*f) (int a);};
2708 struct s2 {int (*f) (double a);};
2709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2710 int argc;
2711 char **argv;
2712 int
2713 main ()
2714 {
2715 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2721         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 do
2723   CC="$ac_save_CC $ac_arg"
2724   rm -f conftest.$ac_objext
2725 if { (ac_try="$ac_compile"
2726 case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_compile") 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739   { (case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_try") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; } &&
2748          { ac_try='test -s conftest.$ac_objext'
2749   { (case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_try") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758   ac_cv_prog_cc_c89=$ac_arg
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763
2764 fi
2765
2766 rm -f core conftest.err conftest.$ac_objext
2767   test "x$ac_cv_prog_cc_c89" != "xno" && break
2768 done
2769 rm -f conftest.$ac_ext
2770 CC=$ac_save_CC
2771
2772 fi
2773 # AC_CACHE_VAL
2774 case "x$ac_cv_prog_cc_c89" in
2775   x)
2776     { echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6; } ;;
2778   xno)
2779     { echo "$as_me:$LINENO: result: unsupported" >&5
2780 echo "${ECHO_T}unsupported" >&6; } ;;
2781   *)
2782     CC="$CC $ac_cv_prog_cc_c89"
2783     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2784 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2785 esac
2786
2787
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794 ac_ext=cpp
2795 ac_cpp='$CXXCPP $CPPFLAGS'
2796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2799 if test -z "$CXX"; then
2800   if test -n "$CCC"; then
2801     CXX=$CCC
2802   else
2803     if test -n "$ac_tool_prefix"; then
2804   for ac_prog in clang++ llvm-g++ g++
2805   do
2806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CXX+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   if test -n "$CXX"; then
2814   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CXX=$ac_cv_prog_CXX
2834 if test -n "$CXX"; then
2835   { echo "$as_me:$LINENO: result: $CXX" >&5
2836 echo "${ECHO_T}$CXX" >&6; }
2837 else
2838   { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2840 fi
2841
2842
2843     test -n "$CXX" && break
2844   done
2845 fi
2846 if test -z "$CXX"; then
2847   ac_ct_CXX=$CXX
2848   for ac_prog in clang++ llvm-g++ g++
2849 do
2850   # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$ac_ct_CXX"; then
2858   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2867     ac_cv_prog_ac_ct_CXX="$ac_prog"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2878 if test -n "$ac_ct_CXX"; then
2879   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2880 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2881 else
2882   { echo "$as_me:$LINENO: result: no" >&5
2883 echo "${ECHO_T}no" >&6; }
2884 fi
2885
2886
2887   test -n "$ac_ct_CXX" && break
2888 done
2889
2890   if test "x$ac_ct_CXX" = x; then
2891     CXX="g++"
2892   else
2893     case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2896 whose name does not start with the host triplet.  If you think this
2897 configuration is useful to you, please write to autoconf@gnu.org." >&5
2898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet.  If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2901 ac_tool_warned=yes ;;
2902 esac
2903     CXX=$ac_ct_CXX
2904   fi
2905 fi
2906
2907   fi
2908 fi
2909 # Provide some information about the compiler.
2910 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2911 ac_compiler=`set X $ac_compile; echo $2`
2912 { (ac_try="$ac_compiler --version >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler --version >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922 { (ac_try="$ac_compiler -v >&5"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_compiler -v >&5") 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }
2932 { (ac_try="$ac_compiler -V >&5"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compiler -V >&5") 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }
2942
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954
2955 int
2956 main ()
2957 {
2958 #ifndef __GNUC__
2959        choke me
2960 #endif
2961
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compile") 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2981   { (case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_try") 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; } &&
2990          { ac_try='test -s conftest.$ac_objext'
2991   { (case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_try") 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; }; then
3000   ac_compiler_gnu=yes
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005         ac_compiler_gnu=no
3006 fi
3007
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3010
3011 fi
3012 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3013 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3014 GXX=`test $ac_compiler_gnu = yes && echo yes`
3015 ac_test_CXXFLAGS=${CXXFLAGS+set}
3016 ac_save_CXXFLAGS=$CXXFLAGS
3017 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3018 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3019 if test "${ac_cv_prog_cxx_g+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3023    ac_cxx_werror_flag=yes
3024    ac_cv_prog_cxx_g=no
3025    CXXFLAGS="-g"
3026    cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032
3033 int
3034 main ()
3035 {
3036
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } &&
3055          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3056   { (case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_try") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; } &&
3065          { ac_try='test -s conftest.$ac_objext'
3066   { (case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_try") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; }; then
3075   ac_cv_prog_cxx_g=yes
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080         CXXFLAGS=""
3081       cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_compile") 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } &&
3110          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3111   { (case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_try") 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; } &&
3120          { ac_try='test -s conftest.$ac_objext'
3121   { (case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_try") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   :
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3136          CXXFLAGS="-g"
3137          cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143
3144 int
3145 main ()
3146 {
3147
3148   ;
3149   return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_compile") 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } &&
3166          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3167   { (case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_try") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }; } &&
3176          { ac_try='test -s conftest.$ac_objext'
3177   { (case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_try") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_cv_prog_cxx_g=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3205 if test "$ac_test_CXXFLAGS" = set; then
3206   CXXFLAGS=$ac_save_CXXFLAGS
3207 elif test $ac_cv_prog_cxx_g = yes; then
3208   if test "$GXX" = yes; then
3209     CXXFLAGS="-g -O2"
3210   else
3211     CXXFLAGS="-g"
3212   fi
3213 else
3214   if test "$GXX" = yes; then
3215     CXXFLAGS="-O2"
3216   else
3217     CXXFLAGS=
3218   fi
3219 fi
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3233 # On Suns, sometimes $CPP names a directory.
3234 if test -n "$CPP" && test -d "$CPP"; then
3235   CPP=
3236 fi
3237 if test -z "$CPP"; then
3238   if test "${ac_cv_prog_CPP+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241       # Double quotes because CPP needs to be expanded
3242     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243     do
3244       ac_preproc_ok=false
3245 for ac_c_preproc_warn_flag in '' yes
3246 do
3247   # Use a header file that comes with gcc, so configuring glibc
3248   # with a fresh cross-compiler works.
3249   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250   # <limits.h> exists even on freestanding compilers.
3251   # On the NeXT, cc -E runs the code through the compiler's parser,
3252   # not just through cpp. "Syntax error" is here to catch this case.
3253   cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 #ifdef __STDC__
3260 # include <limits.h>
3261 #else
3262 # include <assert.h>
3263 #endif
3264                      Syntax error
3265 _ACEOF
3266 if { (ac_try="$ac_cpp conftest.$ac_ext"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } >/dev/null; then
3279   if test -s conftest.err; then
3280     ac_cpp_err=$ac_c_preproc_warn_flag
3281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3282   else
3283     ac_cpp_err=
3284   fi
3285 else
3286   ac_cpp_err=yes
3287 fi
3288 if test -z "$ac_cpp_err"; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294   # Broken: fails on valid input.
3295 continue
3296 fi
3297
3298 rm -f conftest.err conftest.$ac_ext
3299
3300   # OK, works on sane cases.  Now check whether nonexistent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null; then
3323   if test -s conftest.err; then
3324     ac_cpp_err=$ac_c_preproc_warn_flag
3325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326   else
3327     ac_cpp_err=
3328   fi
3329 else
3330   ac_cpp_err=yes
3331 fi
3332 if test -z "$ac_cpp_err"; then
3333   # Broken: success on invalid input.
3334 continue
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339   # Passes both tests.
3340 ac_preproc_ok=:
3341 break
3342 fi
3343
3344 rm -f conftest.err conftest.$ac_ext
3345
3346 done
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3350   break
3351 fi
3352
3353     done
3354     ac_cv_prog_CPP=$CPP
3355
3356 fi
3357   CPP=$ac_cv_prog_CPP
3358 else
3359   ac_cv_prog_CPP=$CPP
3360 fi
3361 { echo "$as_me:$LINENO: result: $CPP" >&5
3362 echo "${ECHO_T}$CPP" >&6; }
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3365 do
3366   # Use a header file that comes with gcc, so configuring glibc
3367   # with a fresh cross-compiler works.
3368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369   # <limits.h> exists even on freestanding compilers.
3370   # On the NeXT, cc -E runs the code through the compiler's parser,
3371   # not just through cpp. "Syntax error" is here to catch this case.
3372   cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378 #ifdef __STDC__
3379 # include <limits.h>
3380 #else
3381 # include <assert.h>
3382 #endif
3383                      Syntax error
3384 _ACEOF
3385 if { (ac_try="$ac_cpp conftest.$ac_ext"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392   ac_status=$?
3393   grep -v '^ *+' conftest.er1 >conftest.err
3394   rm -f conftest.er1
3395   cat conftest.err >&5
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); } >/dev/null; then
3398   if test -s conftest.err; then
3399     ac_cpp_err=$ac_c_preproc_warn_flag
3400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401   else
3402     ac_cpp_err=
3403   fi
3404 else
3405   ac_cpp_err=yes
3406 fi
3407 if test -z "$ac_cpp_err"; then
3408   :
3409 else
3410   echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413   # Broken: fails on valid input.
3414 continue
3415 fi
3416
3417 rm -f conftest.err conftest.$ac_ext
3418
3419   # OK, works on sane cases.  Now check whether nonexistent headers
3420   # can be detected and how.
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #include <ac_nonexistent.h>
3428 _ACEOF
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } >/dev/null; then
3442   if test -s conftest.err; then
3443     ac_cpp_err=$ac_c_preproc_warn_flag
3444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445   else
3446     ac_cpp_err=
3447   fi
3448 else
3449   ac_cpp_err=yes
3450 fi
3451 if test -z "$ac_cpp_err"; then
3452   # Broken: success on invalid input.
3453 continue
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458   # Passes both tests.
3459 ac_preproc_ok=:
3460 break
3461 fi
3462
3463 rm -f conftest.err conftest.$ac_ext
3464
3465 done
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then
3469   :
3470 else
3471   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472 See \`config.log' for more details." >&5
3473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474 See \`config.log' for more details." >&2;}
3475    { (exit 1); exit 1; }; }
3476 fi
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485 if test "$CXX" = "clang++" ; then
3486   { echo "$as_me:$LINENO: checking whether clang works" >&5
3487 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3488   ac_ext=cpp
3489 ac_cpp='$CXXCPP $CPPFLAGS'
3490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3493
3494
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501 #include <limits>
3502 #if __has_include (<cxxabi.h>)
3503 #include <cxxabi.h>
3504 #endif
3505 #if __has_include (<unwind.h>)
3506 #include <unwind.h>
3507 #endif
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (ac_try="$ac_compile"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524   (eval "$ac_compile") 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532   { (case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_try") 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }; } &&
3541          { ac_try='test -s conftest.$ac_objext'
3542   { (case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_try") 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3551
3552   { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3554
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559
3560   { echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6; }
3562   { { 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
3563 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;}
3564    { (exit 1); exit 1; }; }
3565
3566 fi
3567
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569   ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
3575 fi
3576
3577
3578
3579 if test -d ${srcdir}/projects/llvm-gcc ; then
3580   subdirs="$subdirs projects/llvm-gcc"
3581
3582 fi
3583
3584 if test -d ${srcdir}/projects/test-suite ; then
3585   subdirs="$subdirs projects/test-suite"
3586
3587 fi
3588
3589 if test -d ${srcdir}/projects/llvm-test ; then
3590   subdirs="$subdirs projects/llvm-test"
3591
3592 fi
3593
3594 if test -d ${srcdir}/projects/poolalloc ; then
3595   subdirs="$subdirs projects/poolalloc"
3596
3597 fi
3598
3599 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3600   subdirs="$subdirs projects/llvm-poolalloc"
3601
3602 fi
3603
3604 for i in `ls ${srcdir}/projects`
3605 do
3606   if test -d ${srcdir}/projects/${i} ; then
3607     case ${i} in
3608       sample)       subdirs="$subdirs projects/sample"
3609     ;;
3610       privbracket)  subdirs="$subdirs projects/privbracket"
3611  ;;
3612       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3613  ;;
3614       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3615 ;;
3616       llvm-java)    subdirs="$subdirs projects/llvm-java"
3617  ;;
3618       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3619    ;;
3620       safecode)     subdirs="$subdirs projects/safecode"
3621  ;;
3622       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3623  ;;
3624       compiler-rt)       ;;
3625       llvm-gcc)       ;;
3626       test-suite)     ;;
3627       llvm-test)      ;;
3628       poolalloc)      ;;
3629       llvm-poolalloc) ;;
3630       *)
3631         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3632 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3633         ;;
3634     esac
3635   fi
3636 done
3637
3638 # Check whether --enable-polly was given.
3639 if test "${enable_polly+set}" = set; then
3640   enableval=$enable_polly;
3641 else
3642   enableval=default
3643 fi
3644
3645 case "$enableval" in
3646   yes) ENABLE_POLLY=1
3647  ;;
3648   no)  ENABLE_POLLY=0
3649  ;;
3650   default) ENABLE_POLLY=1
3651  ;;
3652   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3653 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3654    { (exit 1); exit 1; }; } ;;
3655 esac
3656
3657
3658 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3659   LLVM_HAS_POLLY=1
3660
3661   subdirs="$subdirs tools/polly"
3662
3663 fi
3664
3665
3666 # Make sure we can run config.sub.
3667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3669 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3670    { (exit 1); exit 1; }; }
3671
3672 { echo "$as_me:$LINENO: checking build system type" >&5
3673 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3674 if test "${ac_cv_build+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_build_alias=$build_alias
3678 test "x$ac_build_alias" = x &&
3679   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3680 test "x$ac_build_alias" = x &&
3681   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3682 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3683    { (exit 1); exit 1; }; }
3684 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3685   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3686 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3687    { (exit 1); exit 1; }; }
3688
3689 fi
3690 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3691 echo "${ECHO_T}$ac_cv_build" >&6; }
3692 case $ac_cv_build in
3693 *-*-*) ;;
3694 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3695 echo "$as_me: error: invalid value of canonical build" >&2;}
3696    { (exit 1); exit 1; }; };;
3697 esac
3698 build=$ac_cv_build
3699 ac_save_IFS=$IFS; IFS='-'
3700 set x $ac_cv_build
3701 shift
3702 build_cpu=$1
3703 build_vendor=$2
3704 shift; shift
3705 # Remember, the first character of IFS is used to create $*,
3706 # except with old shells:
3707 build_os=$*
3708 IFS=$ac_save_IFS
3709 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3710
3711
3712 { echo "$as_me:$LINENO: checking host system type" >&5
3713 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3714 if test "${ac_cv_host+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   if test "x$host_alias" = x; then
3718   ac_cv_host=$ac_cv_build
3719 else
3720   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3721     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3722 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3723    { (exit 1); exit 1; }; }
3724 fi
3725
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3728 echo "${ECHO_T}$ac_cv_host" >&6; }
3729 case $ac_cv_host in
3730 *-*-*) ;;
3731 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3732 echo "$as_me: error: invalid value of canonical host" >&2;}
3733    { (exit 1); exit 1; }; };;
3734 esac
3735 host=$ac_cv_host
3736 ac_save_IFS=$IFS; IFS='-'
3737 set x $ac_cv_host
3738 shift
3739 host_cpu=$1
3740 host_vendor=$2
3741 shift; shift
3742 # Remember, the first character of IFS is used to create $*,
3743 # except with old shells:
3744 host_os=$*
3745 IFS=$ac_save_IFS
3746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3747
3748
3749 { echo "$as_me:$LINENO: checking target system type" >&5
3750 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3751 if test "${ac_cv_target+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   if test "x$target_alias" = x; then
3755   ac_cv_target=$ac_cv_host
3756 else
3757   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3758     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3759 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3760    { (exit 1); exit 1; }; }
3761 fi
3762
3763 fi
3764 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3765 echo "${ECHO_T}$ac_cv_target" >&6; }
3766 case $ac_cv_target in
3767 *-*-*) ;;
3768 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3769 echo "$as_me: error: invalid value of canonical target" >&2;}
3770    { (exit 1); exit 1; }; };;
3771 esac
3772 target=$ac_cv_target
3773 ac_save_IFS=$IFS; IFS='-'
3774 set x $ac_cv_target
3775 shift
3776 target_cpu=$1
3777 target_vendor=$2
3778 shift; shift
3779 # Remember, the first character of IFS is used to create $*,
3780 # except with old shells:
3781 target_os=$*
3782 IFS=$ac_save_IFS
3783 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3784
3785
3786 # The aliases save the names the user supplied, while $host etc.
3787 # will get canonicalized.
3788 test -n "$target_alias" &&
3789   test "$program_prefix$program_suffix$program_transform_name" = \
3790     NONENONEs,x,x, &&
3791   program_prefix=${target_alias}-
3792
3793 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3794 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3795 if test "${llvm_cv_os_type+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   case $host in
3799   *-*-aix*)
3800     llvm_cv_link_all_option="-Wl,--whole-archive"
3801     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3802     llvm_cv_os_type="AIX"
3803     llvm_cv_platform_type="Unix" ;;
3804   *-*-irix*)
3805     llvm_cv_link_all_option="-Wl,--whole-archive"
3806     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807     llvm_cv_os_type="IRIX"
3808     llvm_cv_platform_type="Unix" ;;
3809   *-*-cygwin*)
3810     llvm_cv_link_all_option="-Wl,--whole-archive"
3811     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812     llvm_cv_os_type="Cygwin"
3813     llvm_cv_platform_type="Unix" ;;
3814   *-*-darwin*)
3815     llvm_cv_link_all_option="-Wl,-all_load"
3816     llvm_cv_no_link_all_option="-Wl,-noall_load"
3817     llvm_cv_os_type="Darwin"
3818     llvm_cv_platform_type="Unix" ;;
3819   *-*-minix*)
3820     llvm_cv_link_all_option="-Wl,-all_load"
3821     llvm_cv_no_link_all_option="-Wl,-noall_load"
3822     llvm_cv_os_type="Minix"
3823     llvm_cv_platform_type="Unix" ;;
3824   *-*-freebsd* | *-*-kfreebsd-gnu)
3825     llvm_cv_link_all_option="-Wl,--whole-archive"
3826     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827     llvm_cv_os_type="FreeBSD"
3828     llvm_cv_platform_type="Unix" ;;
3829   *-*-openbsd*)
3830     llvm_cv_link_all_option="-Wl,--whole-archive"
3831     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832     llvm_cv_os_type="OpenBSD"
3833     llvm_cv_platform_type="Unix" ;;
3834   *-*-netbsd*)
3835     llvm_cv_link_all_option="-Wl,--whole-archive"
3836     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837     llvm_cv_os_type="NetBSD"
3838     llvm_cv_platform_type="Unix" ;;
3839   *-*-dragonfly*)
3840     llvm_cv_link_all_option="-Wl,--whole-archive"
3841     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842     llvm_cv_os_type="DragonFly"
3843     llvm_cv_platform_type="Unix" ;;
3844   *-*-hpux*)
3845     llvm_cv_link_all_option="-Wl,--whole-archive"
3846     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847     llvm_cv_os_type="HP-UX"
3848     llvm_cv_platform_type="Unix" ;;
3849   *-*-interix*)
3850     llvm_cv_link_all_option="-Wl,--whole-archive"
3851     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852     llvm_cv_os_type="Interix"
3853     llvm_cv_platform_type="Unix" ;;
3854   *-*-linux*)
3855     llvm_cv_link_all_option="-Wl,--whole-archive"
3856     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857     llvm_cv_os_type="Linux"
3858     llvm_cv_platform_type="Unix" ;;
3859   *-*-gnu*)
3860     llvm_cv_link_all_option="-Wl,--whole-archive"
3861     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862     llvm_cv_os_type="GNU"
3863     llvm_cv_platform_type="Unix" ;;
3864   *-*-solaris*)
3865     llvm_cv_link_all_option="-Wl,-z,allextract"
3866     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3867     llvm_cv_os_type="SunOS"
3868     llvm_cv_platform_type="Unix" ;;
3869   *-*-auroraux*)
3870     llvm_cv_link_all_option="-Wl,-z,allextract"
3871     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3872     llvm_cv_os_type="AuroraUX"
3873     llvm_cv_platform_type="Unix" ;;
3874   *-*-win32*)
3875     llvm_cv_link_all_option="-Wl,--whole-archive"
3876     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877     llvm_cv_os_type="Win32"
3878     llvm_cv_platform_type="Win32" ;;
3879   *-*-mingw*)
3880     llvm_cv_link_all_option="-Wl,--whole-archive"
3881     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882     llvm_cv_os_type="MingW"
3883     llvm_cv_platform_type="Win32" ;;
3884   *-*-haiku*)
3885     llvm_cv_link_all_option="-Wl,--whole-archive"
3886     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887     llvm_cv_os_type="Haiku"
3888     llvm_cv_platform_type="Unix" ;;
3889   *-unknown-eabi*)
3890     llvm_cv_link_all_option="-Wl,--whole-archive"
3891     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892     llvm_cv_os_type="Freestanding"
3893     llvm_cv_platform_type="Unix" ;;
3894   *-unknown-elf*)
3895     llvm_cv_link_all_option="-Wl,--whole-archive"
3896     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897     llvm_cv_os_type="Freestanding"
3898     llvm_cv_platform_type="Unix" ;;
3899   *)
3900     llvm_cv_link_all_option=""
3901     llvm_cv_no_link_all_option=""
3902     llvm_cv_os_type="Unknown"
3903     llvm_cv_platform_type="Unknown" ;;
3904 esac
3905 fi
3906 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3907 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3908
3909 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3910 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3911 if test "${llvm_cv_target_os_type+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   case $target in
3915   *-*-aix*)
3916     llvm_cv_target_os_type="AIX" ;;
3917   *-*-irix*)
3918     llvm_cv_target_os_type="IRIX" ;;
3919   *-*-cygwin*)
3920     llvm_cv_target_os_type="Cygwin" ;;
3921   *-*-darwin*)
3922     llvm_cv_target_os_type="Darwin" ;;
3923   *-*-minix*)
3924     llvm_cv_target_os_type="Minix" ;;
3925   *-*-freebsd* | *-*-kfreebsd-gnu)
3926     llvm_cv_target_os_type="FreeBSD" ;;
3927   *-*-openbsd*)
3928     llvm_cv_target_os_type="OpenBSD" ;;
3929   *-*-netbsd*)
3930     llvm_cv_target_os_type="NetBSD" ;;
3931   *-*-dragonfly*)
3932     llvm_cv_target_os_type="DragonFly" ;;
3933   *-*-hpux*)
3934     llvm_cv_target_os_type="HP-UX" ;;
3935   *-*-interix*)
3936     llvm_cv_target_os_type="Interix" ;;
3937   *-*-linux*)
3938     llvm_cv_target_os_type="Linux" ;;
3939   *-*-gnu*)
3940     llvm_cv_target_os_type="GNU" ;;
3941   *-*-solaris*)
3942     llvm_cv_target_os_type="SunOS" ;;
3943   *-*-auroraux*)
3944     llvm_cv_target_os_type="AuroraUX" ;;
3945   *-*-win32*)
3946     llvm_cv_target_os_type="Win32" ;;
3947   *-*-mingw*)
3948     llvm_cv_target_os_type="MingW" ;;
3949   *-*-haiku*)
3950     llvm_cv_target_os_type="Haiku" ;;
3951   *-*-rtems*)
3952     llvm_cv_target_os_type="RTEMS" ;;
3953   *-*-nacl*)
3954     llvm_cv_target_os_type="NativeClient" ;;
3955   *-unknown-eabi*)
3956     llvm_cv_target_os_type="Freestanding" ;;
3957   *)
3958     llvm_cv_target_os_type="Unknown" ;;
3959 esac
3960 fi
3961 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3962 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3963
3964 if test "$llvm_cv_os_type" = "Unknown" ; then
3965   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3966 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3967    { (exit 1); exit 1; }; }
3968 fi
3969
3970 OS=$llvm_cv_os_type
3971
3972 HOST_OS=$llvm_cv_os_type
3973
3974 TARGET_OS=$llvm_cv_target_os_type
3975
3976
3977 LINKALL=$llvm_cv_link_all_option
3978
3979 NOLINKALL=$llvm_cv_no_link_all_option
3980
3981
3982 case $llvm_cv_platform_type in
3983   Unix)
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define LLVM_ON_UNIX 1
3987 _ACEOF
3988
3989     LLVM_ON_UNIX=1
3990
3991     LLVM_ON_WIN32=0
3992
3993     ;;
3994   Win32)
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define LLVM_ON_WIN32 1
3998 _ACEOF
3999
4000     LLVM_ON_UNIX=0
4001
4002     LLVM_ON_WIN32=1
4003
4004     ;;
4005 esac
4006
4007 { echo "$as_me:$LINENO: checking target architecture" >&5
4008 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4009 if test "${llvm_cv_target_arch+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   case $target in
4013   i?86-*)                 llvm_cv_target_arch="x86" ;;
4014   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4015   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4016   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4017   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4018   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4019   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4020   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4021   xcore-*)                llvm_cv_target_arch="XCore" ;;
4022   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4023   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4024   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4025   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4026   *)                      llvm_cv_target_arch="Unknown" ;;
4027 esac
4028 fi
4029 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4030 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4031
4032 if test "$llvm_cv_target_arch" = "Unknown" ; then
4033   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4034 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4035 fi
4036
4037 case "$llvm_cv_target_arch" in
4038     x86)     LLVM_NATIVE_ARCH="X86" ;;
4039     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4040     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4041 esac
4042
4043 ARCH=$llvm_cv_target_arch
4044
4045
4046 case $host in
4047   i?86-*)                 host_arch="x86" ;;
4048   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4049   sparc*-*)               host_arch="Sparc" ;;
4050   powerpc*-*)             host_arch="PowerPC" ;;
4051   arm*-*)                 host_arch="ARM" ;;
4052   aarch64*-*)             host_arch="AArch64" ;;
4053   mips-* | mips64-*)      host_arch="Mips" ;;
4054   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4055   xcore-*)                host_arch="XCore" ;;
4056   msp430-*)               host_arch="MSP430" ;;
4057   hexagon-*)              host_arch="Hexagon" ;;
4058   mblaze-*)               host_arch="MBlaze" ;;
4059   *)                      host_arch="Unknown" ;;
4060 esac
4061
4062 if test "$host_arch" = "Unknown" ; then
4063   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4064 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4065 fi
4066
4067 HOST_ARCH=$host_arch
4068
4069
4070
4071
4072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4074 if test "${ac_cv_path_GREP+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   # Extract the first word of "grep ggrep" to use in msg output
4078 if test -z "$GREP"; then
4079 set dummy grep ggrep; ac_prog_name=$2
4080 if test "${ac_cv_path_GREP+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   ac_path_GREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_prog in grep ggrep; do
4091   for ac_exec_ext in '' $ac_executable_extensions; do
4092     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4094     # Check for GNU ac_path_GREP and select it if it is found.
4095   # Check for GNU $ac_path_GREP
4096 case `"$ac_path_GREP" --version 2>&1` in
4097 *GNU*)
4098   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099 *)
4100   ac_count=0
4101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4102   while :
4103   do
4104     cat "conftest.in" "conftest.in" >"conftest.tmp"
4105     mv "conftest.tmp" "conftest.in"
4106     cp "conftest.in" "conftest.nl"
4107     echo 'GREP' >> "conftest.nl"
4108     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110     ac_count=`expr $ac_count + 1`
4111     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112       # Best one so far, save it but keep looking for a better one
4113       ac_cv_path_GREP="$ac_path_GREP"
4114       ac_path_GREP_max=$ac_count
4115     fi
4116     # 10*(2^10) chars as input seems more than enough
4117     test $ac_count -gt 10 && break
4118   done
4119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 esac
4121
4122
4123     $ac_path_GREP_found && break 3
4124   done
4125 done
4126
4127 done
4128 IFS=$as_save_IFS
4129
4130
4131 fi
4132
4133 GREP="$ac_cv_path_GREP"
4134 if test -z "$GREP"; then
4135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137    { (exit 1); exit 1; }; }
4138 fi
4139
4140 else
4141   ac_cv_path_GREP=$GREP
4142 fi
4143
4144
4145 fi
4146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4148  GREP="$ac_cv_path_GREP"
4149
4150
4151 { echo "$as_me:$LINENO: checking for egrep" >&5
4152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_EGREP+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157    then ac_cv_path_EGREP="$GREP -E"
4158    else
4159      # Extract the first word of "egrep" to use in msg output
4160 if test -z "$EGREP"; then
4161 set dummy egrep; ac_prog_name=$2
4162 if test "${ac_cv_path_EGREP+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   ac_path_EGREP_found=false
4166 # Loop through the user's path and test for each of PROGNAME-LIST
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_prog in egrep; do
4173   for ac_exec_ext in '' $ac_executable_extensions; do
4174     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4176     # Check for GNU ac_path_EGREP and select it if it is found.
4177   # Check for GNU $ac_path_EGREP
4178 case `"$ac_path_EGREP" --version 2>&1` in
4179 *GNU*)
4180   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181 *)
4182   ac_count=0
4183   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4184   while :
4185   do
4186     cat "conftest.in" "conftest.in" >"conftest.tmp"
4187     mv "conftest.tmp" "conftest.in"
4188     cp "conftest.in" "conftest.nl"
4189     echo 'EGREP' >> "conftest.nl"
4190     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192     ac_count=`expr $ac_count + 1`
4193     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194       # Best one so far, save it but keep looking for a better one
4195       ac_cv_path_EGREP="$ac_path_EGREP"
4196       ac_path_EGREP_max=$ac_count
4197     fi
4198     # 10*(2^10) chars as input seems more than enough
4199     test $ac_count -gt 10 && break
4200   done
4201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 esac
4203
4204
4205     $ac_path_EGREP_found && break 3
4206   done
4207 done
4208
4209 done
4210 IFS=$as_save_IFS
4211
4212
4213 fi
4214
4215 EGREP="$ac_cv_path_EGREP"
4216 if test -z "$EGREP"; then
4217   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4219    { (exit 1); exit 1; }; }
4220 fi
4221
4222 else
4223   ac_cv_path_EGREP=$EGREP
4224 fi
4225
4226
4227    fi
4228 fi
4229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4231  EGREP="$ac_cv_path_EGREP"
4232
4233
4234 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4236 if test "${ac_cv_header_stdc+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 #include <stdlib.h>
4246 #include <stdarg.h>
4247 #include <string.h>
4248 #include <float.h>
4249
4250 int
4251 main ()
4252 {
4253
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_compile") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } &&
4272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273   { (case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_try") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; } &&
4282          { ac_try='test -s conftest.$ac_objext'
4283   { (case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_try") 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   ac_cv_header_stdc=yes
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297         ac_cv_header_stdc=no
4298 fi
4299
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301
4302 if test $ac_cv_header_stdc = yes; then
4303   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4304   cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310 #include <string.h>
4311
4312 _ACEOF
4313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314   $EGREP "memchr" >/dev/null 2>&1; then
4315   :
4316 else
4317   ac_cv_header_stdc=no
4318 fi
4319 rm -f conftest*
4320
4321 fi
4322
4323 if test $ac_cv_header_stdc = yes; then
4324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325   cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #include <stdlib.h>
4332
4333 _ACEOF
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335   $EGREP "free" >/dev/null 2>&1; then
4336   :
4337 else
4338   ac_cv_header_stdc=no
4339 fi
4340 rm -f conftest*
4341
4342 fi
4343
4344 if test $ac_cv_header_stdc = yes; then
4345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4346   if test "$cross_compiling" = yes; then
4347   :
4348 else
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #include <ctype.h>
4356 #include <stdlib.h>
4357 #if ((' ' & 0x0FF) == 0x020)
4358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4360 #else
4361 # define ISLOWER(c) \
4362                    (('a' <= (c) && (c) <= 'i') \
4363                      || ('j' <= (c) && (c) <= 'r') \
4364                      || ('s' <= (c) && (c) <= 'z'))
4365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4366 #endif
4367
4368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369 int
4370 main ()
4371 {
4372   int i;
4373   for (i = 0; i < 256; i++)
4374     if (XOR (islower (i), ISLOWER (i))
4375         || toupper (i) != TOUPPER (i))
4376       return 2;
4377   return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest$ac_exeext
4381 if { (ac_try="$ac_link"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_link") 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4391   { (case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396   (eval "$ac_try") 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   :
4401 else
4402   echo "$as_me: program exited with status $ac_status" >&5
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ( exit $ac_status )
4407 ac_cv_header_stdc=no
4408 fi
4409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4410 fi
4411
4412
4413 fi
4414 fi
4415 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436                   inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4451
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (ac_try="$ac_compile"
4456 case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461   (eval "$ac_compile") 2>conftest.er1
4462   ac_status=$?
4463   grep -v '^ *+' conftest.er1 >conftest.err
4464   rm -f conftest.er1
4465   cat conftest.err >&5
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } &&
4468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469   { (case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_try") 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484   (eval "$ac_try") 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   eval "$as_ac_Header=yes"
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         eval "$as_ac_Header=no"
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 fi
4498 ac_res=`eval echo '${'$as_ac_Header'}'`
4499                { echo "$as_me:$LINENO: result: $ac_res" >&5
4500 echo "${ECHO_T}$ac_res" >&6; }
4501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4502   cat >>confdefs.h <<_ACEOF
4503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 _ACEOF
4505
4506 fi
4507
4508 done
4509
4510
4511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4513 if test "${ac_cv_c_bigendian+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   # See if sys/param.h defines the BYTE_ORDER macro.
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523 #include <sys/types.h>
4524 #include <sys/param.h>
4525
4526 int
4527 main ()
4528 {
4529 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4530  bogus endian macros
4531 #endif
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (ac_try="$ac_compile"
4539 case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_compile") 2>conftest.er1
4545   ac_status=$?
4546   grep -v '^ *+' conftest.er1 >conftest.err
4547   rm -f conftest.er1
4548   cat conftest.err >&5
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } &&
4551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4552   { (case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557   (eval "$ac_try") 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; } &&
4561          { ac_try='test -s conftest.$ac_objext'
4562   { (case "(($ac_try" in
4563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564   *) ac_try_echo=$ac_try;;
4565 esac
4566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4567   (eval "$ac_try") 2>&5
4568   ac_status=$?
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); }; }; then
4571   # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #include <sys/types.h>
4579 #include <sys/param.h>
4580
4581 int
4582 main ()
4583 {
4584 #if BYTE_ORDER != BIG_ENDIAN
4585  not big endian
4586 #endif
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_compile") 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607   { (case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_try") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622   (eval "$ac_try") 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; }; then
4626   ac_cv_c_bigendian=yes
4627 else
4628   echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631         ac_cv_c_bigendian=no
4632 fi
4633
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639         # It does not; compile a test program.
4640 if test "$cross_compiling" = yes; then
4641   # try to guess the endianness by grepping values into an object file
4642   ac_cv_c_bigendian=unknown
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4650 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4651 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4652 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4653 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4654 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4655 int
4656 main ()
4657 {
4658  _ascii (); _ebcdic ();
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_compile") 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } &&
4677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4678   { (case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_try") 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; } &&
4687          { ac_try='test -s conftest.$ac_objext'
4688   { (case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693   (eval "$ac_try") 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; }; then
4697   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4698   ac_cv_c_bigendian=yes
4699 fi
4700 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4701   if test "$ac_cv_c_bigendian" = unknown; then
4702     ac_cv_c_bigendian=no
4703   else
4704     # finding both strings is unlikely to happen, but who knows?
4705     ac_cv_c_bigendian=unknown
4706   fi
4707 fi
4708 else
4709   echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712
4713 fi
4714
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 else
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_includes_default
4724 int
4725 main ()
4726 {
4727
4728   /* Are we little or big endian?  From Harbison&Steele.  */
4729   union
4730   {
4731     long int l;
4732     char c[sizeof (long int)];
4733   } u;
4734   u.l = 1;
4735   return u.c[sizeof (long int) - 1] == 1;
4736
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 rm -f conftest$ac_exeext
4742 if { (ac_try="$ac_link"
4743 case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_link") 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4752   { (case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_try") 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   ac_cv_c_bigendian=no
4762 else
4763   echo "$as_me: program exited with status $ac_status" >&5
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ( exit $ac_status )
4768 ac_cv_c_bigendian=yes
4769 fi
4770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4771 fi
4772
4773
4774 fi
4775
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4779 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4780 case $ac_cv_c_bigendian in
4781   yes)
4782     ENDIAN=big
4783  ;;
4784   no)
4785     ENDIAN=little
4786  ;;
4787   *)
4788     { { echo "$as_me:$LINENO: error: unknown endianness
4789 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4790 echo "$as_me: error: unknown endianness
4791 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4792    { (exit 1); exit 1; }; } ;;
4793 esac
4794
4795
4796 if test "$cross_compiling" = yes; then
4797   LLVM_CROSS_COMPILING=1
4798
4799
4800 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4801 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4802 if test "${ac_cv_build_exeext+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4806   ac_cv_build_exeext=.exe
4807 else
4808   ac_build_prefix=${build_alias}-
4809
4810   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_build_prefix}gcc; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   if test -n "$BUILD_CC"; then
4818   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 BUILD_CC=$ac_cv_prog_BUILD_CC
4838 if test -n "$BUILD_CC"; then
4839   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4840 echo "${ECHO_T}$BUILD_CC" >&6; }
4841 else
4842   { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4844 fi
4845
4846
4847   if test -z "$BUILD_CC"; then
4848      # Extract the first word of "gcc", so it can be a program name with args.
4849 set dummy gcc; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   if test -n "$BUILD_CC"; then
4856   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863   for ac_exec_ext in '' $ac_executable_extensions; do
4864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4865     ac_cv_prog_BUILD_CC="gcc"
4866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867     break 2
4868   fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 BUILD_CC=$ac_cv_prog_BUILD_CC
4876 if test -n "$BUILD_CC"; then
4877   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4878 echo "${ECHO_T}$BUILD_CC" >&6; }
4879 else
4880   { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4882 fi
4883
4884
4885      if test -z "$BUILD_CC"; then
4886        # Extract the first word of "cc", so it can be a program name with args.
4887 set dummy cc; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   if test -n "$BUILD_CC"; then
4894   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4895 else
4896   ac_prog_rejected=no
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4905        ac_prog_rejected=yes
4906        continue
4907      fi
4908     ac_cv_prog_BUILD_CC="cc"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 if test $ac_prog_rejected = yes; then
4917   # We found a bogon in the path, so make sure we never use it.
4918   set dummy $ac_cv_prog_BUILD_CC
4919   shift
4920   if test $# != 0; then
4921     # We chose a different compiler from the bogus one.
4922     # However, it has the same basename, so the bogon will be chosen
4923     # first if we set BUILD_CC to just the basename; use the full file name.
4924     shift
4925     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4926   fi
4927 fi
4928 fi
4929 fi
4930 BUILD_CC=$ac_cv_prog_BUILD_CC
4931 if test -n "$BUILD_CC"; then
4932   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4933 echo "${ECHO_T}$BUILD_CC" >&6; }
4934 else
4935   { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4937 fi
4938
4939
4940      fi
4941   fi
4942   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4943 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4944    { (exit 1); exit 1; }; }
4945   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4946   rm -f conftest*
4947   echo 'int main () { return 0; }' > conftest.$ac_ext
4948   ac_cv_build_exeext=
4949   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4950   (eval $ac_build_link) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; then
4954     for file in conftest.*; do
4955       case $file in
4956       *.c | *.o | *.obj | *.dSYM) ;;
4957       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4958       esac
4959     done
4960   else
4961     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4962 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4963    { (exit 1); exit 1; }; }
4964   fi
4965   rm -f conftest*
4966   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4967 fi
4968 fi
4969
4970 BUILD_EXEEXT=""
4971 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4972 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4973 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4974 ac_build_exeext=$BUILD_EXEEXT
4975
4976   ac_build_prefix=${build_alias}-
4977   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4978 set dummy ${ac_build_prefix}g++; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   if test -n "$BUILD_CXX"; then
4985   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4994     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5005 if test -n "$BUILD_CXX"; then
5006   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5007 echo "${ECHO_T}$BUILD_CXX" >&6; }
5008 else
5009   { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5011 fi
5012
5013
5014   if test -z "$BUILD_CXX"; then
5015      # Extract the first word of "g++", so it can be a program name with args.
5016 set dummy g++; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   if test -n "$BUILD_CXX"; then
5023   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030   for ac_exec_ext in '' $ac_executable_extensions; do
5031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5032     ac_cv_prog_BUILD_CXX="g++"
5033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi
5041 fi
5042 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5043 if test -n "$BUILD_CXX"; then
5044   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5045 echo "${ECHO_T}$BUILD_CXX" >&6; }
5046 else
5047   { echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6; }
5049 fi
5050
5051
5052      if test -z "$BUILD_CXX"; then
5053        # Extract the first word of "c++", so it can be a program name with args.
5054 set dummy c++; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   if test -n "$BUILD_CXX"; then
5061   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5062 else
5063   ac_prog_rejected=no
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069   for ac_exec_ext in '' $ac_executable_extensions; do
5070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5071     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5072        ac_prog_rejected=yes
5073        continue
5074      fi
5075     ac_cv_prog_BUILD_CXX="c++"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 if test $ac_prog_rejected = yes; then
5084   # We found a bogon in the path, so make sure we never use it.
5085   set dummy $ac_cv_prog_BUILD_CXX
5086   shift
5087   if test $# != 0; then
5088     # We chose a different compiler from the bogus one.
5089     # However, it has the same basename, so the bogon will be chosen
5090     # first if we set BUILD_CXX to just the basename; use the full file name.
5091     shift
5092     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5093   fi
5094 fi
5095 fi
5096 fi
5097 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5098 if test -n "$BUILD_CXX"; then
5099   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5100 echo "${ECHO_T}$BUILD_CXX" >&6; }
5101 else
5102   { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5104 fi
5105
5106
5107      fi
5108   fi
5109 else
5110   LLVM_CROSS_COMPILING=0
5111
5112 fi
5113
5114 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5115   cvsbuild="yes"
5116   optimize="no"
5117   CVSBUILD=CVSBUILD=1
5118
5119 else
5120   cvsbuild="no"
5121   optimize="yes"
5122 fi
5123
5124
5125 # Check whether --enable-libcpp was given.
5126 if test "${enable_libcpp+set}" = set; then
5127   enableval=$enable_libcpp;
5128 else
5129   enableval=default
5130 fi
5131
5132 case "$enableval" in
5133   yes) ENABLE_LIBCPP=1
5134  ;;
5135   no)  ENABLE_LIBCPP=0
5136  ;;
5137   default) ENABLE_LIBCPP=0
5138 ;;
5139   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5140 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5141    { (exit 1); exit 1; }; } ;;
5142 esac
5143
5144 # Check whether --enable-cxx11 was given.
5145 if test "${enable_cxx11+set}" = set; then
5146   enableval=$enable_cxx11;
5147 else
5148   enableval=default
5149 fi
5150
5151 case "$enableval" in
5152   yes) ENABLE_CXX11=1
5153  ;;
5154   no)  ENABLE_CXX11=0
5155  ;;
5156   default) ENABLE_CXX11=0
5157 ;;
5158   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5160    { (exit 1); exit 1; }; } ;;
5161 esac
5162
5163 clang_arcmt="yes"
5164 # Check whether --enable-clang-arcmt was given.
5165 if test "${enable_clang_arcmt+set}" = set; then
5166   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5167 else
5168   enableval="yes"
5169 fi
5170
5171 case "$enableval" in
5172   yes) ENABLE_CLANG_ARCMT=1
5173  ;;
5174   no)  ENABLE_CLANG_ARCMT=0
5175  ;;
5176   default) ENABLE_CLANG_ARCMT=1
5177 ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5182
5183 clang_static_analyzer="yes"
5184 # Check whether --enable-clang-static-analyzer was given.
5185 if test "${enable_clang_static_analyzer+set}" = set; then
5186   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5187 else
5188   enableval="yes"
5189 fi
5190
5191 case "$enableval" in
5192   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5193  ;;
5194   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5195  ;;
5196   default) ENABLE_CLANG_STATIC_ANALYZER=1
5197 ;;
5198   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5200    { (exit 1); exit 1; }; } ;;
5201 esac
5202
5203 # Check whether --enable-clang-rewriter was given.
5204 if test "${enable_clang_rewriter+set}" = set; then
5205   enableval=$enable_clang_rewriter;
5206 else
5207   enableval="yes"
5208 fi
5209
5210 case "$enableval" in
5211   yes) ENABLE_CLANG_REWRITER=1
5212  ;;
5213   no)
5214     if test ${clang_arcmt} != "no" ; then
5215       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5216 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5217    { (exit 1); exit 1; }; }
5218     fi
5219     if test ${clang_static_analyzer} != "no" ; then
5220       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5221 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5222    { (exit 1); exit 1; }; }
5223     fi
5224     ENABLE_CLANG_REWRITER=0
5225
5226     ;;
5227   default) ENABLE_CLANG_REWRITER=1
5228 ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-optimized was given.
5235 if test "${enable_optimized+set}" = set; then
5236   enableval=$enable_optimized;
5237 else
5238   enableval=$optimize
5239 fi
5240
5241 if test ${enableval} = "no" ; then
5242   ENABLE_OPTIMIZED=
5243
5244 else
5245   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5246
5247 fi
5248
5249 # Check whether --enable-profiling was given.
5250 if test "${enable_profiling+set}" = set; then
5251   enableval=$enable_profiling;
5252 else
5253   enableval="no"
5254 fi
5255
5256 if test ${enableval} = "no" ; then
5257   ENABLE_PROFILING=
5258
5259 else
5260   ENABLE_PROFILING=ENABLE_PROFILING=1
5261
5262 fi
5263
5264 # Check whether --enable-assertions was given.
5265 if test "${enable_assertions+set}" = set; then
5266   enableval=$enable_assertions;
5267 else
5268   enableval="yes"
5269 fi
5270
5271 if test ${enableval} = "yes" ; then
5272   DISABLE_ASSERTIONS=
5273
5274 else
5275   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5276
5277 fi
5278
5279 # Check whether --enable-werror was given.
5280 if test "${enable_werror+set}" = set; then
5281   enableval=$enable_werror;
5282 else
5283   enableval="no"
5284 fi
5285
5286 case "$enableval" in
5287   yes) ENABLE_WERROR=1
5288  ;;
5289   no)  ENABLE_WERROR=0
5290  ;;
5291   default) ENABLE_WERROR=0
5292 ;;
5293   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296 esac
5297
5298 # Check whether --enable-expensive-checks was given.
5299 if test "${enable_expensive_checks+set}" = set; then
5300   enableval=$enable_expensive_checks;
5301 else
5302   enableval="no"
5303 fi
5304
5305 if test ${enableval} = "yes" ; then
5306   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5307
5308   EXPENSIVE_CHECKS=yes
5309
5310 else
5311   ENABLE_EXPENSIVE_CHECKS=
5312
5313   EXPENSIVE_CHECKS=no
5314
5315 fi
5316
5317 # Check whether --enable-debug-runtime was given.
5318 if test "${enable_debug_runtime+set}" = set; then
5319   enableval=$enable_debug_runtime;
5320 else
5321   enableval=no
5322 fi
5323
5324 if test ${enableval} = "no" ; then
5325   DEBUG_RUNTIME=
5326
5327 else
5328   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5329
5330 fi
5331
5332 # Check whether --enable-debug-symbols was given.
5333 if test "${enable_debug_symbols+set}" = set; then
5334   enableval=$enable_debug_symbols;
5335 else
5336   enableval=no
5337 fi
5338
5339 if test ${enableval} = "no" ; then
5340   DEBUG_SYMBOLS=
5341
5342 else
5343   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5344
5345 fi
5346
5347 # Check whether --enable-keep-symbols was given.
5348 if test "${enable_keep_symbols+set}" = set; then
5349   enableval=$enable_keep_symbols;
5350 else
5351   enableval=no
5352 fi
5353
5354 if test ${enableval} = "no" ; then
5355   KEEP_SYMBOLS=
5356
5357 else
5358   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5359
5360 fi
5361
5362 # Check whether --enable-jit was given.
5363 if test "${enable_jit+set}" = set; then
5364   enableval=$enable_jit;
5365 else
5366   enableval=default
5367 fi
5368
5369 if test ${enableval} = "no"
5370 then
5371   JIT=
5372
5373 else
5374   case "$llvm_cv_target_arch" in
5375     x86)         TARGET_HAS_JIT=1
5376  ;;
5377     Sparc)       TARGET_HAS_JIT=0
5378  ;;
5379     PowerPC)     TARGET_HAS_JIT=1
5380  ;;
5381     x86_64)      TARGET_HAS_JIT=1
5382  ;;
5383     ARM)         TARGET_HAS_JIT=1
5384  ;;
5385     AArch64)     TARGET_HAS_JIT=0
5386  ;;
5387     Mips)        TARGET_HAS_JIT=1
5388  ;;
5389     XCore)       TARGET_HAS_JIT=0
5390  ;;
5391     MSP430)      TARGET_HAS_JIT=0
5392  ;;
5393     Hexagon)     TARGET_HAS_JIT=0
5394  ;;
5395     MBlaze)      TARGET_HAS_JIT=0
5396  ;;
5397     NVPTX)       TARGET_HAS_JIT=0
5398  ;;
5399     *)           TARGET_HAS_JIT=0
5400  ;;
5401   esac
5402 fi
5403
5404 # Check whether --enable-docs was given.
5405 if test "${enable_docs+set}" = set; then
5406   enableval=$enable_docs;
5407 else
5408   enableval=default
5409 fi
5410
5411 case "$enableval" in
5412   yes) ENABLE_DOCS=1
5413  ;;
5414   no)  ENABLE_DOCS=0
5415  ;;
5416   default) ENABLE_DOCS=1
5417  ;;
5418   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5419 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5420    { (exit 1); exit 1; }; } ;;
5421 esac
5422
5423 # Check whether --enable-doxygen was given.
5424 if test "${enable_doxygen+set}" = set; then
5425   enableval=$enable_doxygen;
5426 else
5427   enableval=default
5428 fi
5429
5430 case "$enableval" in
5431   yes) ENABLE_DOXYGEN=1
5432  ;;
5433   no)  ENABLE_DOXYGEN=0
5434  ;;
5435   default) ENABLE_DOXYGEN=0
5436  ;;
5437   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5438 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5439    { (exit 1); exit 1; }; } ;;
5440 esac
5441
5442 # Check whether --enable-threads was given.
5443 if test "${enable_threads+set}" = set; then
5444   enableval=$enable_threads;
5445 else
5446   enableval=default
5447 fi
5448
5449 case "$enableval" in
5450   yes) LLVM_ENABLE_THREADS=1
5451  ;;
5452   no)  LLVM_ENABLE_THREADS=0
5453  ;;
5454   default) LLVM_ENABLE_THREADS=1
5455  ;;
5456   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5457 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5458    { (exit 1); exit 1; }; } ;;
5459 esac
5460
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5463 _ACEOF
5464
5465
5466 # Check whether --enable-pthreads was given.
5467 if test "${enable_pthreads+set}" = set; then
5468   enableval=$enable_pthreads;
5469 else
5470   enableval=default
5471 fi
5472
5473 case "$enableval" in
5474   yes) ENABLE_PTHREADS=1
5475  ;;
5476   no)  ENABLE_PTHREADS=0
5477  ;;
5478   default) ENABLE_PTHREADS=1
5479  ;;
5480   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5481 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5482    { (exit 1); exit 1; }; } ;;
5483 esac
5484
5485 # Check whether --enable-zlib was given.
5486 if test "${enable_zlib+set}" = set; then
5487   enableval=$enable_zlib;
5488 else
5489   enableval=default
5490 fi
5491
5492 case "$enableval" in
5493   yes) LLVM_ENABLE_ZLIB=1
5494  ;;
5495   no)  LLVM_ENABLE_ZLIB=0
5496  ;;
5497   default) LLVM_ENABLE_ZLIB=1
5498  ;;
5499   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5500 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5501    { (exit 1); exit 1; }; } ;;
5502 esac
5503
5504 cat >>confdefs.h <<_ACEOF
5505 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5506 _ACEOF
5507
5508
5509 # Check whether --enable-pic was given.
5510 if test "${enable_pic+set}" = set; then
5511   enableval=$enable_pic;
5512 else
5513   enableval=default
5514 fi
5515
5516 case "$enableval" in
5517   yes) ENABLE_PIC=1
5518  ;;
5519   no)  ENABLE_PIC=0
5520  ;;
5521   default) ENABLE_PIC=1
5522  ;;
5523   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5524 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5525    { (exit 1); exit 1; }; } ;;
5526 esac
5527
5528 cat >>confdefs.h <<_ACEOF
5529 #define ENABLE_PIC $ENABLE_PIC
5530 _ACEOF
5531
5532
5533 # Check whether --enable-shared was given.
5534 if test "${enable_shared+set}" = set; then
5535   enableval=$enable_shared;
5536 else
5537   enableval=default
5538 fi
5539
5540 case "$enableval" in
5541   yes) ENABLE_SHARED=1
5542  ;;
5543   no)  ENABLE_SHARED=0
5544  ;;
5545   default) ENABLE_SHARED=0
5546  ;;
5547   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5548 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5549    { (exit 1); exit 1; }; } ;;
5550 esac
5551
5552 # Check whether --enable-embed-stdcxx was given.
5553 if test "${enable_embed_stdcxx+set}" = set; then
5554   enableval=$enable_embed_stdcxx;
5555 else
5556   enableval=default
5557 fi
5558
5559 case "$enableval" in
5560   yes) ENABLE_EMBED_STDCXX=1
5561  ;;
5562   no)  ENABLE_EMBED_STDCXX=0
5563  ;;
5564   default) ENABLE_EMBED_STDCXX=0
5565  ;;
5566   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5567 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5568    { (exit 1); exit 1; }; } ;;
5569 esac
5570
5571 # Check whether --enable-timestamps was given.
5572 if test "${enable_timestamps+set}" = set; then
5573   enableval=$enable_timestamps;
5574 else
5575   enableval=default
5576 fi
5577
5578 case "$enableval" in
5579   yes) ENABLE_TIMESTAMPS=1
5580  ;;
5581   no)  ENABLE_TIMESTAMPS=0
5582  ;;
5583   default) ENABLE_TIMESTAMPS=1
5584  ;;
5585   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5586 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5587    { (exit 1); exit 1; }; } ;;
5588 esac
5589
5590 cat >>confdefs.h <<_ACEOF
5591 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5592 _ACEOF
5593
5594
5595
5596 # Check whether --enable-backtraces was given.
5597 if test "${enable_backtraces+set}" = set; then
5598   enableval=$enable_backtraces;
5599 else
5600   enableval=default
5601 fi
5602
5603 case "$enableval" in
5604   yes) ENABLE_BACKTRACES=1
5605  ;;
5606   no)  ENABLE_BACKTRACES=0
5607  ;;
5608   default) ENABLE_BACKTRACES=1
5609  ;;
5610   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5611 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5612    { (exit 1); exit 1; }; } ;;
5613 esac
5614
5615 cat >>confdefs.h <<_ACEOF
5616 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5617 _ACEOF
5618
5619
5620 TARGETS_TO_BUILD=""
5621 # Check whether --enable-targets was given.
5622 if test "${enable_targets+set}" = set; then
5623   enableval=$enable_targets;
5624 else
5625   enableval=all
5626 fi
5627
5628 if test "$enableval" = host-only ; then
5629   enableval=host
5630 fi
5631 case "$enableval" in
5632   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5633   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5634       case "$a_target" in
5635         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5636         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5637         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5638         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5639         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5640         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5641         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5642         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5643         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5644         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5645         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5646         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5647         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5648         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5649         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5650         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5651         host) case "$llvm_cv_target_arch" in
5652             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5653             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5654             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5655             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5656             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5657             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5658             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5660             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5661             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5662             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5663             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5664             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5665 echo "$as_me: error: Can not set target to build" >&2;}
5666    { (exit 1); exit 1; }; } ;;
5667           esac ;;
5668         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5669 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5670    { (exit 1); exit 1; }; } ;;
5671       esac
5672   done
5673   ;;
5674 esac
5675
5676 # Check whether --enable-experimental-targets was given.
5677 if test "${enable_experimental_targets+set}" = set; then
5678   enableval=$enable_experimental_targets;
5679 else
5680   enableval=disable
5681 fi
5682
5683
5684 if test ${enableval} != "disable"
5685 then
5686   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5687 fi
5688
5689 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5690
5691
5692 for a_target in $TARGETS_TO_BUILD; do
5693   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5694
5695 cat >>confdefs.h <<_ACEOF
5696 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5697 _ACEOF
5698
5699     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5700     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5701     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5702     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5703     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5704       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5705     fi
5706     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5707       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5708     fi
5709
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5712 _ACEOF
5713
5714
5715 cat >>confdefs.h <<_ACEOF
5716 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5717 _ACEOF
5718
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5727 _ACEOF
5728
5729     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5730
5731 cat >>confdefs.h <<_ACEOF
5732 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5733 _ACEOF
5734
5735     fi
5736     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5737
5738 cat >>confdefs.h <<_ACEOF
5739 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5740 _ACEOF
5741
5742     fi
5743   fi
5744 done
5745
5746 LLVM_ENUM_TARGETS=""
5747 LLVM_ENUM_ASM_PRINTERS=""
5748 LLVM_ENUM_ASM_PARSERS=""
5749 LLVM_ENUM_DISASSEMBLERS=""
5750 for target_to_build in $TARGETS_TO_BUILD; do
5751   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5752   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5753     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5754   fi
5755   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5756     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5757   fi
5758   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5759     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5760   fi
5761 done
5762
5763
5764
5765
5766
5767
5768 # Check whether --with-optimize-option was given.
5769 if test "${with_optimize_option+set}" = set; then
5770   withval=$with_optimize_option;
5771 else
5772   withval=default
5773 fi
5774
5775 { echo "$as_me:$LINENO: checking optimization flags" >&5
5776 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5777 case "$withval" in
5778   default)
5779     case "$llvm_cv_os_type" in
5780     FreeBSD) optimize_option=-O2 ;;
5781     MingW) optimize_option=-O2 ;;
5782     *)     optimize_option=-O3 ;;
5783     esac ;;
5784   *) optimize_option="$withval" ;;
5785 esac
5786 OPTIMIZE_OPTION=$optimize_option
5787
5788 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5789 echo "${ECHO_T}$optimize_option" >&6; }
5790
5791
5792 # Check whether --with-extra-options was given.
5793 if test "${with_extra_options+set}" = set; then
5794   withval=$with_extra_options;
5795 else
5796   withval=default
5797 fi
5798
5799 case "$withval" in
5800   default) EXTRA_OPTIONS= ;;
5801   *) EXTRA_OPTIONS=$withval ;;
5802 esac
5803 EXTRA_OPTIONS=$EXTRA_OPTIONS
5804
5805
5806
5807 # Check whether --with-extra-ld-options was given.
5808 if test "${with_extra_ld_options+set}" = set; then
5809   withval=$with_extra_ld_options;
5810 else
5811   withval=default
5812 fi
5813
5814 case "$withval" in
5815   default) EXTRA_LD_OPTIONS= ;;
5816   *) EXTRA_LD_OPTIONS=$withval ;;
5817 esac
5818 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5819
5820
5821 # Check whether --enable-bindings was given.
5822 if test "${enable_bindings+set}" = set; then
5823   enableval=$enable_bindings;
5824 else
5825   enableval=default
5826 fi
5827
5828 BINDINGS_TO_BUILD=""
5829 case "$enableval" in
5830   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5831   all ) BINDINGS_TO_BUILD="ocaml" ;;
5832   none | no) BINDINGS_TO_BUILD="" ;;
5833   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5834       case "$a_binding" in
5835         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5836         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5837 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5838    { (exit 1); exit 1; }; } ;;
5839       esac
5840   done
5841   ;;
5842 esac
5843
5844
5845 # Check whether --with-ocaml-libdir was given.
5846 if test "${with_ocaml_libdir+set}" = set; then
5847   withval=$with_ocaml_libdir;
5848 else
5849   withval=auto
5850 fi
5851
5852 case "$withval" in
5853   auto) with_ocaml_libdir="$withval" ;;
5854   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5855   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5856 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5857    { (exit 1); exit 1; }; } ;;
5858 esac
5859
5860
5861 # Check whether --with-clang-srcdir was given.
5862 if test "${with_clang_srcdir+set}" = set; then
5863   withval=$with_clang_srcdir;
5864 else
5865   withval="-"
5866 fi
5867
5868 case "$withval" in
5869   -) clang_src_root="" ;;
5870   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5871   *) clang_src_root="$ac_pwd/$withval" ;;
5872 esac
5873 CLANG_SRC_ROOT=$clang_src_root
5874
5875
5876
5877 # Check whether --with-clang-resource-dir was given.
5878 if test "${with_clang_resource_dir+set}" = set; then
5879   withval=$with_clang_resource_dir;
5880 else
5881   withval=""
5882 fi
5883
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define CLANG_RESOURCE_DIR "$withval"
5887 _ACEOF
5888
5889
5890
5891 # Check whether --with-c-include-dirs was given.
5892 if test "${with_c_include_dirs+set}" = set; then
5893   withval=$with_c_include_dirs;
5894 else
5895   withval=""
5896 fi
5897
5898
5899 cat >>confdefs.h <<_ACEOF
5900 #define C_INCLUDE_DIRS "$withval"
5901 _ACEOF
5902
5903
5904 # Clang normally uses the system c++ headers and libraries. With this option,
5905 # clang will use the ones provided by a gcc installation instead. This option should
5906 # be passed the same value that was used with --prefix when configuring gcc.
5907
5908 # Check whether --with-gcc-toolchain was given.
5909 if test "${with_gcc_toolchain+set}" = set; then
5910   withval=$with_gcc_toolchain;
5911 else
5912   withval=""
5913 fi
5914
5915
5916 cat >>confdefs.h <<_ACEOF
5917 #define GCC_INSTALL_PREFIX "$withval"
5918 _ACEOF
5919
5920
5921
5922 # Check whether --with-default-sysroot was given.
5923 if test "${with_default_sysroot+set}" = set; then
5924   withval=$with_default_sysroot;
5925 else
5926   withval=""
5927 fi
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define DEFAULT_SYSROOT "$withval"
5932 _ACEOF
5933
5934
5935
5936 # Check whether --with-binutils-include was given.
5937 if test "${with_binutils_include+set}" = set; then
5938   withval=$with_binutils_include;
5939 else
5940   withval=default
5941 fi
5942
5943 case "$withval" in
5944   default) WITH_BINUTILS_INCDIR=default ;;
5945   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5946   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5947 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5948    { (exit 1); exit 1; }; } ;;
5949 esac
5950 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5951   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5952
5953   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5954      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5955      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5956 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5957    { (exit 1); exit 1; }; };
5958   fi
5959 fi
5960
5961
5962 # Check whether --with-bug-report-url was given.
5963 if test "${with_bug_report_url+set}" = set; then
5964   withval=$with_bug_report_url;
5965 else
5966   withval="http://llvm.org/bugs/"
5967 fi
5968
5969
5970 cat >>confdefs.h <<_ACEOF
5971 #define BUG_REPORT_URL "$withval"
5972 _ACEOF
5973
5974
5975 # Check whether --enable-libffi was given.
5976 if test "${enable_libffi+set}" = set; then
5977   enableval=$enable_libffi; case "$enableval" in
5978     yes) llvm_cv_enable_libffi="yes" ;;
5979     no)  llvm_cv_enable_libffi="no"  ;;
5980     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5981 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5982    { (exit 1); exit 1; }; } ;;
5983   esac
5984 else
5985   llvm_cv_enable_libffi=no
5986 fi
5987
5988
5989
5990 # Check whether --with-internal-prefix was given.
5991 if test "${with_internal_prefix+set}" = set; then
5992   withval=$with_internal_prefix;
5993 else
5994   withval=""
5995 fi
5996
5997 INTERNAL_PREFIX=$withval
5998
5999
6000
6001 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6002 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6003 if test "${lt_cv_path_NM+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$NM"; then
6007   # Let the user override the test.
6008   lt_cv_path_NM="$NM"
6009 else
6010   lt_nm_to_check="${ac_tool_prefix}nm"
6011   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6012     lt_nm_to_check="$lt_nm_to_check nm"
6013   fi
6014   for lt_tmp_nm in $lt_nm_to_check; do
6015     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6017       IFS="$lt_save_ifs"
6018       test -z "$ac_dir" && ac_dir=.
6019       tmp_nm="$ac_dir/$lt_tmp_nm"
6020       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6021         # Check to see if the nm accepts a BSD-compat flag.
6022         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6023         #   nm: unknown option "B" ignored
6024         # Tru64's nm complains that /dev/null is an invalid object file
6025         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6026         */dev/null* | *'Invalid file or object type'*)
6027           lt_cv_path_NM="$tmp_nm -B"
6028           break
6029           ;;
6030         *)
6031           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6032           */dev/null*)
6033             lt_cv_path_NM="$tmp_nm -p"
6034             break
6035             ;;
6036           *)
6037             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6038             continue # so that we can try to find one that supports BSD flags
6039             ;;
6040           esac
6041           ;;
6042         esac
6043       fi
6044     done
6045     IFS="$lt_save_ifs"
6046   done
6047   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6048 fi
6049 fi
6050 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6051 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6052 NM="$lt_cv_path_NM"
6053
6054
6055
6056 { echo "$as_me:$LINENO: checking for GNU make" >&5
6057 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6058 if test "${llvm_cv_gnu_make_command+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   llvm_cv_gnu_make_command=''
6062  for a in "$MAKE" make gmake gnumake ; do
6063   if test -z "$a" ; then continue ; fi ;
6064   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6065   then
6066    llvm_cv_gnu_make_command=$a ;
6067    break;
6068   fi
6069  done
6070 fi
6071 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6072 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6073  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6074    ifGNUmake='' ;
6075  else
6076    ifGNUmake='#' ;
6077    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6078 echo "${ECHO_T}\"Not found\"" >&6; };
6079  fi
6080
6081
6082 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6083 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6084 LN_S=$as_ln_s
6085 if test "$LN_S" = "ln -s"; then
6086   { echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6090 echo "${ECHO_T}no, using $LN_S" >&6; }
6091 fi
6092
6093 # Extract the first word of "cmp", so it can be a program name with args.
6094 set dummy cmp; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_path_CMP+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   case $CMP in
6101   [\\/]* | ?:[\\/]*)
6102   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6103   ;;
6104   *)
6105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110   for ac_exec_ext in '' $ac_executable_extensions; do
6111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6112     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119
6120   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6121   ;;
6122 esac
6123 fi
6124 CMP=$ac_cv_path_CMP
6125 if test -n "$CMP"; then
6126   { echo "$as_me:$LINENO: result: $CMP" >&5
6127 echo "${ECHO_T}$CMP" >&6; }
6128 else
6129   { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6131 fi
6132
6133
6134 # Extract the first word of "cp", so it can be a program name with args.
6135 set dummy cp; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_CP+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   case $CP in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6162   ;;
6163 esac
6164 fi
6165 CP=$ac_cv_path_CP
6166 if test -n "$CP"; then
6167   { echo "$as_me:$LINENO: result: $CP" >&5
6168 echo "${ECHO_T}$CP" >&6; }
6169 else
6170   { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6173
6174
6175 # Extract the first word of "date", so it can be a program name with args.
6176 set dummy date; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_path_DATE+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   case $DATE in
6183   [\\/]* | ?:[\\/]*)
6184   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6185   ;;
6186   *)
6187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6203   ;;
6204 esac
6205 fi
6206 DATE=$ac_cv_path_DATE
6207 if test -n "$DATE"; then
6208   { echo "$as_me:$LINENO: result: $DATE" >&5
6209 echo "${ECHO_T}$DATE" >&6; }
6210 else
6211   { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6213 fi
6214
6215
6216 # Extract the first word of "find", so it can be a program name with args.
6217 set dummy find; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_path_FIND+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   case $FIND in
6224   [\\/]* | ?:[\\/]*)
6225   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6226   ;;
6227   *)
6228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231   IFS=$as_save_IFS
6232   test -z "$as_dir" && as_dir=.
6233   for ac_exec_ext in '' $ac_executable_extensions; do
6234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237     break 2
6238   fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6242
6243   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6244   ;;
6245 esac
6246 fi
6247 FIND=$ac_cv_path_FIND
6248 if test -n "$FIND"; then
6249   { echo "$as_me:$LINENO: result: $FIND" >&5
6250 echo "${ECHO_T}$FIND" >&6; }
6251 else
6252   { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6254 fi
6255
6256
6257 # Extract the first word of "grep", so it can be a program name with args.
6258 set dummy grep; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_GREP+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   case $GREP in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6285   ;;
6286 esac
6287 fi
6288 GREP=$ac_cv_path_GREP
6289 if test -n "$GREP"; then
6290   { echo "$as_me:$LINENO: result: $GREP" >&5
6291 echo "${ECHO_T}$GREP" >&6; }
6292 else
6293   { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6295 fi
6296
6297
6298 # Extract the first word of "mkdir", so it can be a program name with args.
6299 set dummy mkdir; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_MKDIR+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $MKDIR in
6306   [\\/]* | ?:[\\/]*)
6307   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6308   ;;
6309   *)
6310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315   for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6326   ;;
6327 esac
6328 fi
6329 MKDIR=$ac_cv_path_MKDIR
6330 if test -n "$MKDIR"; then
6331   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6332 echo "${ECHO_T}$MKDIR" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6337
6338
6339 # Extract the first word of "mv", so it can be a program name with args.
6340 set dummy mv; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_MV+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   case $MV in
6347   [\\/]* | ?:[\\/]*)
6348   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6349   ;;
6350   *)
6351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356   for ac_exec_ext in '' $ac_executable_extensions; do
6357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6367   ;;
6368 esac
6369 fi
6370 MV=$ac_cv_path_MV
6371 if test -n "$MV"; then
6372   { echo "$as_me:$LINENO: result: $MV" >&5
6373 echo "${ECHO_T}$MV" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379
6380 if test -n "$ac_tool_prefix"; then
6381   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_RANLIB+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   if test -n "$RANLIB"; then
6389   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396   for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 RANLIB=$ac_cv_prog_RANLIB
6409 if test -n "$RANLIB"; then
6410   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6411 echo "${ECHO_T}$RANLIB" >&6; }
6412 else
6413   { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6415 fi
6416
6417
6418 fi
6419 if test -z "$ac_cv_prog_RANLIB"; then
6420   ac_ct_RANLIB=$RANLIB
6421   # Extract the first word of "ranlib", so it can be a program name with args.
6422 set dummy ranlib; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   if test -n "$ac_ct_RANLIB"; then
6429   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_prog_ac_ct_RANLIB="ranlib"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6449 if test -n "$ac_ct_RANLIB"; then
6450   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6451 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6452 else
6453   { echo "$as_me:$LINENO: result: no" >&5
6454 echo "${ECHO_T}no" >&6; }
6455 fi
6456
6457   if test "x$ac_ct_RANLIB" = x; then
6458     RANLIB=":"
6459   else
6460     case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6463 whose name does not start with the host triplet.  If you think this
6464 configuration is useful to you, please write to autoconf@gnu.org." >&5
6465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6466 whose name does not start with the host triplet.  If you think this
6467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     RANLIB=$ac_ct_RANLIB
6471   fi
6472 else
6473   RANLIB="$ac_cv_prog_RANLIB"
6474 fi
6475
6476 if test -n "$ac_tool_prefix"; then
6477   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6478 set dummy ${ac_tool_prefix}ar; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_prog_AR+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   if test -n "$AR"; then
6485   ac_cv_prog_AR="$AR" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_prog_AR="${ac_tool_prefix}ar"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 AR=$ac_cv_prog_AR
6505 if test -n "$AR"; then
6506   { echo "$as_me:$LINENO: result: $AR" >&5
6507 echo "${ECHO_T}$AR" >&6; }
6508 else
6509   { echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6; }
6511 fi
6512
6513
6514 fi
6515 if test -z "$ac_cv_prog_AR"; then
6516   ac_ct_AR=$AR
6517   # Extract the first word of "ar", so it can be a program name with args.
6518 set dummy ar; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   if test -n "$ac_ct_AR"; then
6525   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532   for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_ac_ct_AR="ar"
6535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539 done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6545 if test -n "$ac_ct_AR"; then
6546   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6547 echo "${ECHO_T}$ac_ct_AR" >&6; }
6548 else
6549   { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6551 fi
6552
6553   if test "x$ac_ct_AR" = x; then
6554     AR="false"
6555   else
6556     case $cross_compiling:$ac_tool_warned in
6557 yes:)
6558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet.  If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&5
6561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6562 whose name does not start with the host triplet.  If you think this
6563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566     AR=$ac_ct_AR
6567   fi
6568 else
6569   AR="$ac_cv_prog_AR"
6570 fi
6571
6572 # Extract the first word of "rm", so it can be a program name with args.
6573 set dummy rm; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_RM+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   case $RM in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589   for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6600   ;;
6601 esac
6602 fi
6603 RM=$ac_cv_path_RM
6604 if test -n "$RM"; then
6605   { echo "$as_me:$LINENO: result: $RM" >&5
6606 echo "${ECHO_T}$RM" >&6; }
6607 else
6608   { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6610 fi
6611
6612
6613 # Extract the first word of "sed", so it can be a program name with args.
6614 set dummy sed; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_SED+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $SED in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6623   ;;
6624   *)
6625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6641   ;;
6642 esac
6643 fi
6644 SED=$ac_cv_path_SED
6645 if test -n "$SED"; then
6646   { echo "$as_me:$LINENO: result: $SED" >&5
6647 echo "${ECHO_T}$SED" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6651 fi
6652
6653
6654 # Extract the first word of "tar", so it can be a program name with args.
6655 set dummy tar; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_TAR+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $TAR in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6682   ;;
6683 esac
6684 fi
6685 TAR=$ac_cv_path_TAR
6686 if test -n "$TAR"; then
6687   { echo "$as_me:$LINENO: result: $TAR" >&5
6688 echo "${ECHO_T}$TAR" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695 # Extract the first word of "pwd", so it can be a program name with args.
6696 set dummy pwd; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_BINPWD+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $BINPWD in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6723   ;;
6724 esac
6725 fi
6726 BINPWD=$ac_cv_path_BINPWD
6727 if test -n "$BINPWD"; then
6728   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6729 echo "${ECHO_T}$BINPWD" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736
6737 # Extract the first word of "Graphviz", so it can be a program name with args.
6738 set dummy Graphviz; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   case $GRAPHVIZ in
6745   [\\/]* | ?:[\\/]*)
6746   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6747   ;;
6748   *)
6749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6765   ;;
6766 esac
6767 fi
6768 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6769 if test -n "$GRAPHVIZ"; then
6770   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6771 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6779
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_GRAPHVIZ 1
6782 _ACEOF
6783
6784     if test "$llvm_cv_os_type" = "MingW" ; then
6785     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786   fi
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6790 _ACEOF
6791
6792 fi
6793 # Extract the first word of "dot", so it can be a program name with args.
6794 set dummy dot; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOT+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   case $DOT in
6801   [\\/]* | ?:[\\/]*)
6802   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6803   ;;
6804   *)
6805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810   for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6821   ;;
6822 esac
6823 fi
6824 DOT=$ac_cv_path_DOT
6825 if test -n "$DOT"; then
6826   { echo "$as_me:$LINENO: result: $DOT" >&5
6827 echo "${ECHO_T}$DOT" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833
6834 if test "$DOT" != "echo dot" ; then
6835
6836 cat >>confdefs.h <<\_ACEOF
6837 #define HAVE_DOT 1
6838 _ACEOF
6839
6840     if test "$llvm_cv_os_type" = "MingW" ; then
6841     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842   fi
6843
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6846 _ACEOF
6847
6848 fi
6849 # Extract the first word of "fdp", so it can be a program name with args.
6850 set dummy fdp; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_FDP+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   case $FDP in
6857   [\\/]* | ?:[\\/]*)
6858   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6859   ;;
6860   *)
6861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6877   ;;
6878 esac
6879 fi
6880 FDP=$ac_cv_path_FDP
6881 if test -n "$FDP"; then
6882   { echo "$as_me:$LINENO: result: $FDP" >&5
6883 echo "${ECHO_T}$FDP" >&6; }
6884 else
6885   { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6887 fi
6888
6889
6890 if test "$FDP" != "echo fdp" ; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_FDP 1
6894 _ACEOF
6895
6896     if test "$llvm_cv_os_type" = "MingW" ; then
6897     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898   fi
6899
6900 cat >>confdefs.h <<_ACEOF
6901 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6902 _ACEOF
6903
6904 fi
6905 # Extract the first word of "neato", so it can be a program name with args.
6906 set dummy neato; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_NEATO+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $NEATO in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6933   ;;
6934 esac
6935 fi
6936 NEATO=$ac_cv_path_NEATO
6937 if test -n "$NEATO"; then
6938   { echo "$as_me:$LINENO: result: $NEATO" >&5
6939 echo "${ECHO_T}$NEATO" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945
6946 if test "$NEATO" != "echo neato" ; then
6947
6948 cat >>confdefs.h <<\_ACEOF
6949 #define HAVE_NEATO 1
6950 _ACEOF
6951
6952     if test "$llvm_cv_os_type" = "MingW" ; then
6953     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6954   fi
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6958 _ACEOF
6959
6960 fi
6961 # Extract the first word of "twopi", so it can be a program name with args.
6962 set dummy twopi; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_path_TWOPI+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   case $TWOPI in
6969   [\\/]* | ?:[\\/]*)
6970   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6971   ;;
6972   *)
6973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978   for ac_exec_ext in '' $ac_executable_extensions; do
6979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6980     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6989   ;;
6990 esac
6991 fi
6992 TWOPI=$ac_cv_path_TWOPI
6993 if test -n "$TWOPI"; then
6994   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6995 echo "${ECHO_T}$TWOPI" >&6; }
6996 else
6997   { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7000
7001
7002 if test "$TWOPI" != "echo twopi" ; then
7003
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_TWOPI 1
7006 _ACEOF
7007
7008     if test "$llvm_cv_os_type" = "MingW" ; then
7009     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7010   fi
7011
7012 cat >>confdefs.h <<_ACEOF
7013 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7014 _ACEOF
7015
7016 fi
7017 # Extract the first word of "circo", so it can be a program name with args.
7018 set dummy circo; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_CIRCO+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $CIRCO in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7045   ;;
7046 esac
7047 fi
7048 CIRCO=$ac_cv_path_CIRCO
7049 if test -n "$CIRCO"; then
7050   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7051 echo "${ECHO_T}$CIRCO" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 if test "$CIRCO" != "echo circo" ; then
7059
7060 cat >>confdefs.h <<\_ACEOF
7061 #define HAVE_CIRCO 1
7062 _ACEOF
7063
7064     if test "$llvm_cv_os_type" = "MingW" ; then
7065     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7066   fi
7067
7068 cat >>confdefs.h <<_ACEOF
7069 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7070 _ACEOF
7071
7072 fi
7073 for ac_prog in gv gsview32
7074 do
7075   # Extract the first word of "$ac_prog", so it can be a program name with args.
7076 set dummy $ac_prog; ac_word=$2
7077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079 if test "${ac_cv_path_GV+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   case $GV in
7083   [\\/]* | ?:[\\/]*)
7084   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7085   ;;
7086   *)
7087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102   ;;
7103 esac
7104 fi
7105 GV=$ac_cv_path_GV
7106 if test -n "$GV"; then
7107   { echo "$as_me:$LINENO: result: $GV" >&5
7108 echo "${ECHO_T}$GV" >&6; }
7109 else
7110   { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7112 fi
7113
7114
7115   test -n "$GV" && break
7116 done
7117 test -n "$GV" || GV="echo gv"
7118
7119 if test "$GV" != "echo gv" ; then
7120
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_GV 1
7123 _ACEOF
7124
7125     if test "$llvm_cv_os_type" = "MingW" ; then
7126     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7127   fi
7128
7129 cat >>confdefs.h <<_ACEOF
7130 #define LLVM_PATH_GV "$GV${EXEEXT}"
7131 _ACEOF
7132
7133 fi
7134 # Extract the first word of "dotty", so it can be a program name with args.
7135 set dummy dotty; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_path_DOTTY+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   case $DOTTY in
7142   [\\/]* | ?:[\\/]*)
7143   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7144   ;;
7145   *)
7146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151   for ac_exec_ext in '' $ac_executable_extensions; do
7152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7153     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7162   ;;
7163 esac
7164 fi
7165 DOTTY=$ac_cv_path_DOTTY
7166 if test -n "$DOTTY"; then
7167   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7168 echo "${ECHO_T}$DOTTY" >&6; }
7169 else
7170   { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7172 fi
7173
7174
7175 if test "$DOTTY" != "echo dotty" ; then
7176
7177 cat >>confdefs.h <<\_ACEOF
7178 #define HAVE_DOTTY 1
7179 _ACEOF
7180
7181     if test "$llvm_cv_os_type" = "MingW" ; then
7182     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7183   fi
7184
7185 cat >>confdefs.h <<_ACEOF
7186 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7187 _ACEOF
7188
7189 fi
7190 # Extract the first word of "xdot.py", so it can be a program name with args.
7191 set dummy xdot.py; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   case $XDOT_PY in
7198   [\\/]* | ?:[\\/]*)
7199   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7200   ;;
7201   *)
7202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7218   ;;
7219 esac
7220 fi
7221 XDOT_PY=$ac_cv_path_XDOT_PY
7222 if test -n "$XDOT_PY"; then
7223   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7224 echo "${ECHO_T}$XDOT_PY" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230
7231 if test "$XDOT_PY" != "echo xdot.py" ; then
7232
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_XDOT_PY 1
7235 _ACEOF
7236
7237     if test "$llvm_cv_os_type" = "MingW" ; then
7238     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7239   fi
7240
7241 cat >>confdefs.h <<_ACEOF
7242 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7243 _ACEOF
7244
7245 fi
7246
7247 # Find a good install program.  We prefer a C program (faster),
7248 # so one script is as good as another.  But avoid the broken or
7249 # incompatible versions:
7250 # SysV /etc/install, /usr/sbin/install
7251 # SunOS /usr/etc/install
7252 # IRIX /sbin/install
7253 # AIX /bin/install
7254 # AmigaOS /C/install, which installs bootblocks on floppy discs
7255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7258 # OS/2's system install, which has a completely different semantic
7259 # ./install, which can be erroneously created by make from ./install.sh.
7260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7262 if test -z "$INSTALL"; then
7263 if test "${ac_cv_path_install+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271   # Account for people who put trailing slashes in PATH elements.
7272 case $as_dir/ in
7273   ./ | .// | /cC/* | \
7274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7275   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7276   /usr/ucb/* ) ;;
7277   *)
7278     # OSF1 and SCO ODT 3.0 have their own names for install.
7279     # Don't use installbsd from OSF since it installs stuff as root
7280     # by default.
7281     for ac_prog in ginstall scoinst install; do
7282       for ac_exec_ext in '' $ac_executable_extensions; do
7283         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7284           if test $ac_prog = install &&
7285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7286             # AIX install.  It has an incompatible calling convention.
7287             :
7288           elif test $ac_prog = install &&
7289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7290             # program-specific install script used by HP pwplus--don't use.
7291             :
7292           else
7293             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7294             break 3
7295           fi
7296         fi
7297       done
7298     done
7299     ;;
7300 esac
7301 done
7302 IFS=$as_save_IFS
7303
7304
7305 fi
7306   if test "${ac_cv_path_install+set}" = set; then
7307     INSTALL=$ac_cv_path_install
7308   else
7309     # As a last resort, use the slow shell script.  Don't cache a
7310     # value for INSTALL within a source directory, because that will
7311     # break other packages using the cache if that directory is
7312     # removed, or if the value is a relative name.
7313     INSTALL=$ac_install_sh
7314   fi
7315 fi
7316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7317 echo "${ECHO_T}$INSTALL" >&6; }
7318
7319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7320 # It thinks the first close brace ends the variable substitution.
7321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7322
7323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7324
7325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7326
7327 case "$INSTALL" in
7328  [\\/$]* | ?:[\\/]* ) ;;
7329  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7330 esac
7331
7332 # Extract the first word of "bzip2", so it can be a program name with args.
7333 set dummy bzip2; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_BZIP2+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   case $BZIP2 in
7340   [\\/]* | ?:[\\/]*)
7341   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7342   ;;
7343   *)
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359   ;;
7360 esac
7361 fi
7362 BZIP2=$ac_cv_path_BZIP2
7363 if test -n "$BZIP2"; then
7364   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7365 echo "${ECHO_T}$BZIP2" >&6; }
7366 else
7367   { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7369 fi
7370
7371
7372 # Extract the first word of "cat", so it can be a program name with args.
7373 set dummy cat; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_path_CAT+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   case $CAT in
7380   [\\/]* | ?:[\\/]*)
7381   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7382   ;;
7383   *)
7384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389   for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399   ;;
7400 esac
7401 fi
7402 CAT=$ac_cv_path_CAT
7403 if test -n "$CAT"; then
7404   { echo "$as_me:$LINENO: result: $CAT" >&5
7405 echo "${ECHO_T}$CAT" >&6; }
7406 else
7407   { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7409 fi
7410
7411
7412 # Extract the first word of "doxygen", so it can be a program name with args.
7413 set dummy doxygen; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $DOXYGEN in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   ;;
7440 esac
7441 fi
7442 DOXYGEN=$ac_cv_path_DOXYGEN
7443 if test -n "$DOXYGEN"; then
7444   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7445 echo "${ECHO_T}$DOXYGEN" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452 # Extract the first word of "groff", so it can be a program name with args.
7453 set dummy groff; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_path_GROFF+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   case $GROFF in
7460   [\\/]* | ?:[\\/]*)
7461   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7462   ;;
7463   *)
7464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469   for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479   ;;
7480 esac
7481 fi
7482 GROFF=$ac_cv_path_GROFF
7483 if test -n "$GROFF"; then
7484   { echo "$as_me:$LINENO: result: $GROFF" >&5
7485 echo "${ECHO_T}$GROFF" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491
7492 # Extract the first word of "gzip", so it can be a program name with args.
7493 set dummy gzip; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $GZIPBIN in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519   ;;
7520 esac
7521 fi
7522 GZIPBIN=$ac_cv_path_GZIPBIN
7523 if test -n "$GZIPBIN"; then
7524   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7525 echo "${ECHO_T}$GZIPBIN" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532 # Extract the first word of "pdfroff", so it can be a program name with args.
7533 set dummy pdfroff; ac_word=$2
7534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536 if test "${ac_cv_path_PDFROFF+set}" = set; then
7537   echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539   case $PDFROFF in
7540   [\\/]* | ?:[\\/]*)
7541   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7542   ;;
7543   *)
7544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549   for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559   ;;
7560 esac
7561 fi
7562 PDFROFF=$ac_cv_path_PDFROFF
7563 if test -n "$PDFROFF"; then
7564   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7565 echo "${ECHO_T}$PDFROFF" >&6; }
7566 else
7567   { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7569 fi
7570
7571
7572 # Extract the first word of "zip", so it can be a program name with args.
7573 set dummy zip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_ZIP+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $ZIP in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599   ;;
7600 esac
7601 fi
7602 ZIP=$ac_cv_path_ZIP
7603 if test -n "$ZIP"; then
7604   { echo "$as_me:$LINENO: result: $ZIP" >&5
7605 echo "${ECHO_T}$ZIP" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7610
7611
7612 for ac_prog in ocamlc
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_OCAMLC+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $OCAMLC in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641   ;;
7642 esac
7643 fi
7644 OCAMLC=$ac_cv_path_OCAMLC
7645 if test -n "$OCAMLC"; then
7646   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647 echo "${ECHO_T}$OCAMLC" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7652
7653
7654   test -n "$OCAMLC" && break
7655 done
7656
7657 for ac_prog in ocamlopt
7658 do
7659   # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $OCAMLOPT in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686   ;;
7687 esac
7688 fi
7689 OCAMLOPT=$ac_cv_path_OCAMLOPT
7690 if test -n "$OCAMLOPT"; then
7691   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692 echo "${ECHO_T}$OCAMLOPT" >&6; }
7693 else
7694   { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7696 fi
7697
7698
7699   test -n "$OCAMLOPT" && break
7700 done
7701
7702 for ac_prog in ocamldep
7703 do
7704   # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   case $OCAMLDEP in
7712   [\\/]* | ?:[\\/]*)
7713   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7714   ;;
7715   *)
7716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731   ;;
7732 esac
7733 fi
7734 OCAMLDEP=$ac_cv_path_OCAMLDEP
7735 if test -n "$OCAMLDEP"; then
7736   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737 echo "${ECHO_T}$OCAMLDEP" >&6; }
7738 else
7739   { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7741 fi
7742
7743
7744   test -n "$OCAMLDEP" && break
7745 done
7746
7747 for ac_prog in ocamldoc
7748 do
7749   # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy $ac_prog; ac_word=$2
7751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   case $OCAMLDOC in
7757   [\\/]* | ?:[\\/]*)
7758   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7759   ;;
7760   *)
7761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7768     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776   ;;
7777 esac
7778 fi
7779 OCAMLDOC=$ac_cv_path_OCAMLDOC
7780 if test -n "$OCAMLDOC"; then
7781   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782 echo "${ECHO_T}$OCAMLDOC" >&6; }
7783 else
7784   { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7786 fi
7787
7788
7789   test -n "$OCAMLDOC" && break
7790 done
7791
7792 for ac_prog in gas as
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GAS+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   case $GAS in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821   ;;
7822 esac
7823 fi
7824 GAS=$ac_cv_path_GAS
7825 if test -n "$GAS"; then
7826   { echo "$as_me:$LINENO: result: $GAS" >&5
7827 echo "${ECHO_T}$GAS" >&6; }
7828 else
7829   { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7831 fi
7832
7833
7834   test -n "$GAS" && break
7835 done
7836
7837
7838 { echo "$as_me:$LINENO: checking for linker version" >&5
7839 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_version+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843
7844    version_string="$(ld -v 2>&1 | head -1)"
7845
7846    # Check for ld64.
7847    if (echo "$version_string" | grep -q "ld64"); then
7848      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7849    else
7850      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7851    fi
7852
7853 fi
7854 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7856
7857 cat >>confdefs.h <<_ACEOF
7858 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7859 _ACEOF
7860
7861
7862
7863 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865 if test "${llvm_cv_link_use_r+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868    ac_ext=c
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874   oldcflags="$CFLAGS"
7875   CFLAGS="$CFLAGS -Wl,-R."
7876   cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882
7883 int
7884 main ()
7885 {
7886
7887   ;
7888   return 0;
7889 }
7890 _ACEOF
7891 rm -f conftest.$ac_objext conftest$ac_exeext
7892 if { (ac_try="$ac_link"
7893 case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898   (eval "$ac_link") 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906   { (case "(($ac_try" in
7907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908   *) ac_try_echo=$ac_try;;
7909 esac
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911   (eval "$ac_try") 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_try") 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; }; then
7925   llvm_cv_link_use_r=yes
7926 else
7927   echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930         llvm_cv_link_use_r=no
7931 fi
7932
7933 rm -f core conftest.err conftest.$ac_objext \
7934       conftest$ac_exeext conftest.$ac_ext
7935   CFLAGS="$oldcflags"
7936   ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
7942
7943 fi
7944 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7946 if test "$llvm_cv_link_use_r" = yes ; then
7947
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_LINK_R 1
7950 _ACEOF
7951
7952   fi
7953
7954
7955 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958   echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960    ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966   oldcflags="$CFLAGS"
7967   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974
7975 int
7976 main ()
7977 {
7978
7979   ;
7980   return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_link") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } &&
7997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998   { (case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_try") 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; } &&
8007          { ac_try='test -s conftest$ac_exeext'
8008   { (case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_try") 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   llvm_cv_link_use_export_dynamic=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8021
8022         llvm_cv_link_use_export_dynamic=no
8023 fi
8024
8025 rm -f core conftest.err conftest.$ac_objext \
8026       conftest$ac_exeext conftest.$ac_ext
8027   CFLAGS="$oldcflags"
8028   ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034
8035 fi
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8038 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8039
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_LINK_EXPORT_DYNAMIC 1
8042 _ACEOF
8043
8044   fi
8045
8046
8047 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049 if test "${llvm_cv_link_use_version_script+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052    ac_ext=c
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8057
8058   oldcflags="$CFLAGS"
8059
8060   # The following code is from the autoconf manual,
8061   # "11.13: Limitations of Usual Tools".
8062   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063   # Use mktemp if possible; otherwise fall back on mkdir,
8064   # with $RANDOM to make collisions less likely.
8065   : ${TMPDIR=/tmp}
8066   {
8067     tmp=`
8068       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8069     ` &&
8070     test -n "$tmp" && test -d "$tmp"
8071   } || {
8072     tmp=$TMPDIR/foo$$-$RANDOM
8073     (umask 077 && mkdir "$tmp")
8074   } || exit $?
8075
8076   echo "{" > "$tmp/export.map"
8077   echo "  global: main;" >> "$tmp/export.map"
8078   echo "  local: *;" >> "$tmp/export.map"
8079   echo "};" >> "$tmp/export.map"
8080
8081   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088
8089 int
8090 main ()
8091 {
8092
8093   ;
8094   return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101   *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104   (eval "$ac_link") 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest$ac_exeext'
8122   { (case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_try") 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; }; then
8131   llvm_cv_link_use_version_script=yes
8132 else
8133   echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136         llvm_cv_link_use_version_script=no
8137 fi
8138
8139 rm -f core conftest.err conftest.$ac_objext \
8140       conftest$ac_exeext conftest.$ac_ext
8141   rm "$tmp/export.map"
8142   rmdir "$tmp"
8143   CFLAGS="$oldcflags"
8144   ac_ext=c
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150
8151 fi
8152 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154 if test "$llvm_cv_link_use_version_script" = yes ; then
8155   HAVE_LINK_VERSION_SCRIPT=1
8156
8157   fi
8158
8159
8160
8161
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 int
8175 main ()
8176 {
8177 /* FIXME: Include the comments suggested by Paul. */
8178 #ifndef __cplusplus
8179   /* Ultrix mips cc rejects this.  */
8180   typedef int charset[2];
8181   const charset x;
8182   /* SunOS 4.1.1 cc rejects this.  */
8183   char const *const *ccp;
8184   char **p;
8185   /* NEC SVR4.0.2 mips cc rejects this.  */
8186   struct point {int x, y;};
8187   static struct point const zero = {0,0};
8188   /* AIX XL C 1.02.0.0 rejects this.
8189      It does not let you subtract one const X* pointer from another in
8190      an arm of an if-expression whose if-part is not a constant
8191      expression */
8192   const char *g = "string";
8193   ccp = &g + (g ? g-g : 0);
8194   /* HPUX 7.0 cc rejects these. */
8195   ++ccp;
8196   p = (char**) ccp;
8197   ccp = (char const *const *) p;
8198   { /* SCO 3.2v4 cc rejects this.  */
8199     char *t;
8200     char const *s = 0 ? (char *) 0 : (char const *) 0;
8201
8202     *t++ = 0;
8203     if (s) return 0;
8204   }
8205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8206     int x[] = {25, 17};
8207     const int *foo = &x[0];
8208     ++foo;
8209   }
8210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211     typedef const int *iptr;
8212     iptr p = 0;
8213     ++p;
8214   }
8215   { /* AIX XL C 1.02.0.0 rejects this saying
8216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217     struct s { int j; const int *ap[3]; };
8218     struct s *b; b->j = 5;
8219   }
8220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221     const int foo = 10;
8222     if (!foo) return 0;
8223   }
8224   return !x[0] && !zero.x;
8225 #endif
8226
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8233 case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_compile") 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246   { (case "(($ac_try" in
8247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248   *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251   (eval "$ac_try") 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); }; } &&
8255          { ac_try='test -s conftest.$ac_objext'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; }; then
8265   ac_cv_c_const=yes
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         ac_cv_c_const=no
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define const
8281 _ACEOF
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290 ac_header_dirent=no
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h.  */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h.  */
8304 #include <sys/types.h>
8305 #include <$ac_hdr>
8306
8307 int
8308 main ()
8309 {
8310 if ((DIR *) 0)
8311 return 0;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_compile") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } &&
8330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331   { (case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_try") 2>&5
8337   ac_status=$?
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); }; } &&
8340          { ac_try='test -s conftest.$ac_objext'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   eval "$as_ac_Header=yes"
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355         eval "$as_ac_Header=no"
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361                { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364   cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8366 _ACEOF
8367
8368 ac_header_dirent=$ac_hdr; break
8369 fi
8370
8371 done
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386
8387 /* Override any GCC internal prototype to avoid an error.
8388    Use char because int might match the return type of a GCC
8389    builtin and then its argument prototype would still apply.  */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 char opendir ();
8394 int
8395 main ()
8396 {
8397 return opendir ();
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 for ac_lib in '' dir; do
8403   if test -z "$ac_lib"; then
8404     ac_res="none required"
8405   else
8406     ac_res=-l$ac_lib
8407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8408   fi
8409   rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_link") 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest$ac_exeext'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_search_opendir=$ac_res
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext \
8452       conftest$ac_exeext
8453   if test "${ac_cv_search_opendir+set}" = set; then
8454   break
8455 fi
8456 done
8457 if test "${ac_cv_search_opendir+set}" = set; then
8458   :
8459 else
8460   ac_cv_search_opendir=no
8461 fi
8462 rm conftest.$ac_ext
8463 LIBS=$ac_func_search_save_LIBS
8464 fi
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8470
8471 fi
8472
8473 else
8474   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479   ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 /* Override any GCC internal prototype to avoid an error.
8488    Use char because int might match the return type of a GCC
8489    builtin and then its argument prototype would still apply.  */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char opendir ();
8494 int
8495 main ()
8496 {
8497 return opendir ();
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 for ac_lib in '' x; do
8503   if test -z "$ac_lib"; then
8504     ac_res="none required"
8505   else
8506     ac_res=-l$ac_lib
8507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8508   fi
8509   rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8511 case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_link") 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524   { (case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_try") 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest$ac_exeext'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_search_opendir=$ac_res
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548
8549 fi
8550
8551 rm -f core conftest.err conftest.$ac_objext \
8552       conftest$ac_exeext
8553   if test "${ac_cv_search_opendir+set}" = set; then
8554   break
8555 fi
8556 done
8557 if test "${ac_cv_search_opendir+set}" = set; then
8558   :
8559 else
8560   ac_cv_search_opendir=no
8561 fi
8562 rm conftest.$ac_ext
8563 LIBS=$ac_func_search_save_LIBS
8564 fi
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570
8571 fi
8572
8573 fi
8574
8575
8576 for ac_header in dlfcn.h
8577 do
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 fi
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586                { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8588 else
8589   # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598 $ac_includes_default
8599 #include <$ac_header>
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_compile") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616   { (case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_try") 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; } &&
8625          { ac_try='test -s conftest.$ac_objext'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_header_compiler=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640         ac_header_compiler=no
8641 fi
8642
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8646
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 #include <$ac_header>
8657 _ACEOF
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8659 case "(($ac_try" in
8660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661   *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } >/dev/null; then
8671   if test -s conftest.err; then
8672     ac_cpp_err=$ac_c_preproc_warn_flag
8673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8674   else
8675     ac_cpp_err=
8676   fi
8677 else
8678   ac_cpp_err=yes
8679 fi
8680 if test -z "$ac_cpp_err"; then
8681   ac_header_preproc=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686   ac_header_preproc=no
8687 fi
8688
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8692
8693 # So?  What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695   yes:no: )
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700     ac_header_preproc=yes
8701     ;;
8702   no:yes:* )
8703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715     ( cat <<\_ASBOX
8716 ## ------------------------------------ ##
8717 ## Report this to http://llvm.org/bugs/ ##
8718 ## ------------------------------------ ##
8719 _ASBOX
8720      ) | sed "s/^/$as_me: WARNING:     /" >&2
8721     ;;
8722 esac
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   eval "$as_ac_Header=\$ac_header_preproc"
8729 fi
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731                { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8733
8734 fi
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736   cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 _ACEOF
8739
8740 fi
8741
8742 done
8743
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746   enableval=$enable_ltdl_install;
8747 fi
8748
8749
8750
8751
8752 if test x"${enable_ltdl_install-no}" != xno; then
8753   INSTALL_LTDL_TRUE=
8754   INSTALL_LTDL_FALSE='#'
8755 else
8756   INSTALL_LTDL_TRUE='#'
8757   INSTALL_LTDL_FALSE=
8758 fi
8759
8760
8761
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763   CONVENIENCE_LTDL_TRUE=
8764   CONVENIENCE_LTDL_FALSE='#'
8765 else
8766   CONVENIENCE_LTDL_TRUE='#'
8767   CONVENIENCE_LTDL_FALSE=
8768 fi
8769
8770
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8773 library_names_spec=
8774 libname_spec='lib$name'
8775 soname_spec=
8776 shrext_cmds=".so"
8777 postinstall_cmds=
8778 postuninstall_cmds=
8779 finish_cmds=
8780 finish_eval=
8781 shlibpath_var=
8782 shlibpath_overrides_runpath=unknown
8783 version_type=none
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789     # if the path contains ";" then we assume it to be the separator
8790     # otherwise default to the standard path separator (i.e. ":") - it is
8791     # assumed that no part of a normal pathname contains ";" but that should
8792     # okay in the real world where ";" in dirpaths is itself problematic.
8793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8794   else
8795     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8796   fi
8797 else
8798   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8799 fi
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8802
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8806
8807 case $host_os in
8808 aix3*)
8809   version_type=linux
8810   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811   shlibpath_var=LIBPATH
8812
8813   # AIX 3 has no versioning support, so we append a major version to the name.
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   ;;
8816
8817 aix4* | aix5*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   hardcode_into_libs=yes
8822   if test "$host_cpu" = ia64; then
8823     # AIX 5 supports IA64
8824     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825     shlibpath_var=LD_LIBRARY_PATH
8826   else
8827     # With GCC up to 2.95.x, collect2 would create an import file
8828     # for dependence libraries.  The import file would start with
8829     # the line `#! .'.  This would cause the generated library to
8830     # depend on `.', always an invalid library.  This was fixed in
8831     # development snapshots of GCC prior to 3.0.
8832     case $host_os in
8833       aix4 | aix4.[01] | aix4.[01].*)
8834       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8835            echo ' yes '
8836            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8837         :
8838       else
8839         can_build_shared=no
8840       fi
8841       ;;
8842     esac
8843     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844     # soname into executable. Probably we can add versioning support to
8845     # collect2, so additional links can be useful in future.
8846     if test "$aix_use_runtimelinking" = yes; then
8847       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848       # instead of lib<name>.a to let people know that these are not
8849       # typical AIX shared libraries.
8850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851     else
8852       # We preserve .a as extension for shared libraries through AIX4.2
8853       # and later when we are not doing run time linking.
8854       library_names_spec='${libname}${release}.a $libname.a'
8855       soname_spec='${libname}${release}${shared_ext}$major'
8856     fi
8857     shlibpath_var=LIBPATH
8858   fi
8859   ;;
8860
8861 amigaos*)
8862   library_names_spec='$libname.ixlibrary $libname.a'
8863   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864   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'
8865   ;;
8866
8867 beos*)
8868   library_names_spec='${libname}${shared_ext}'
8869   dynamic_linker="$host_os ld.so"
8870   shlibpath_var=LIBRARY_PATH
8871   ;;
8872
8873 bsdi[45]*)
8874   version_type=linux
8875   need_version=no
8876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877   soname_spec='${libname}${release}${shared_ext}$major'
8878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879   shlibpath_var=LD_LIBRARY_PATH
8880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882   # the default ld.so.conf also contains /usr/contrib/lib and
8883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884   # libtool to hard-code these into programs
8885   ;;
8886
8887 cygwin* | mingw* | pw32*)
8888   version_type=windows
8889   shrext_cmds=".dll"
8890   need_version=no
8891   need_lib_prefix=no
8892
8893   case $GCC,$host_os in
8894   yes,cygwin* | yes,mingw* | yes,pw32*)
8895     library_names_spec='$libname.dll.a'
8896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897     postinstall_cmds='base_file=`basename \${file}`~
8898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899       dldir=$destdir/`dirname \$dlpath`~
8900       test -d \$dldir || mkdir -p \$dldir~
8901       $install_prog $dir/$dlname \$dldir/$dlname~
8902       chmod a+x \$dldir/$dlname'
8903     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904       dlpath=$dir/\$dldll~
8905        $rm \$dlpath'
8906     shlibpath_overrides_runpath=yes
8907
8908     case $host_os in
8909     cygwin*)
8910       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913       ;;
8914     mingw*)
8915       # MinGW DLLs use traditional 'lib' prefix
8916       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919         # It is most probably a Windows format PATH printed by
8920         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921         # path with ; separators, and with drive letters. We can handle the
8922         # drive letters (cygwin fileutils understands them), so leave them,
8923         # especially as we might pass files found there to a mingw objdump,
8924         # which wouldn't understand a cygwinified path. Ahh.
8925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8926       else
8927         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8928       fi
8929       ;;
8930     pw32*)
8931       # pw32 DLLs use 'pw' prefix rather than 'lib'
8932       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8933       ;;
8934     esac
8935     ;;
8936
8937   *)
8938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939     ;;
8940   esac
8941   dynamic_linker='Win32 ld.exe'
8942   # FIXME: first we should search . and the directory the executable is in
8943   shlibpath_var=PATH
8944   ;;
8945
8946 darwin* | rhapsody*)
8947   dynamic_linker="$host_os dyld"
8948   version_type=darwin
8949   need_lib_prefix=no
8950   need_version=no
8951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952   soname_spec='${libname}${release}${major}$shared_ext'
8953   shlibpath_overrides_runpath=yes
8954   shlibpath_var=DYLD_LIBRARY_PATH
8955   shrext_cmds='.dylib'
8956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957   if test "$GCC" = yes; then
8958     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"`
8959   else
8960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8961   fi
8962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8963   ;;
8964
8965 dgux*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   ;;
8973
8974 freebsd1.*)
8975   dynamic_linker=no
8976   ;;
8977
8978 kfreebsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   hardcode_into_libs=yes
8987   dynamic_linker='GNU ld.so'
8988   ;;
8989
8990 freebsd* | dragonfly*)
8991   # DragonFly does not have aout.  When/if they implement a new
8992   # versioning mechanism, adjust this.
8993   if test -x /usr/bin/objformat; then
8994     objformat=`/usr/bin/objformat`
8995   else
8996     case $host_os in
8997     freebsd[123].*) objformat=aout ;;
8998     *) objformat=elf ;;
8999     esac
9000   fi
9001   version_type=freebsd-$objformat
9002   case $version_type in
9003     freebsd-elf*)
9004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9005       need_version=no
9006       need_lib_prefix=no
9007       ;;
9008     freebsd-*)
9009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9010       need_version=yes
9011       ;;
9012   esac
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_os in
9015   freebsd2.*)
9016     shlibpath_overrides_runpath=yes
9017     ;;
9018   freebsd3.[01]* | freebsdelf3.[01]*)
9019     shlibpath_overrides_runpath=yes
9020     hardcode_into_libs=yes
9021     ;;
9022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024     shlibpath_overrides_runpath=no
9025     hardcode_into_libs=yes
9026     ;;
9027   freebsd*) # from 4.6 on
9028     shlibpath_overrides_runpath=yes
9029     hardcode_into_libs=yes
9030     ;;
9031   esac
9032   ;;
9033
9034 gnu*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   hardcode_into_libs=yes
9042   ;;
9043
9044 hpux9* | hpux10* | hpux11*)
9045   # Give a soname corresponding to the major version so that dld.sl refuses to
9046   # link against other versions.
9047   version_type=sunos
9048   need_lib_prefix=no
9049   need_version=no
9050   case $host_cpu in
9051   ia64*)
9052     shrext_cmds='.so'
9053     hardcode_into_libs=yes
9054     dynamic_linker="$host_os dld.so"
9055     shlibpath_var=LD_LIBRARY_PATH
9056     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058     soname_spec='${libname}${release}${shared_ext}$major'
9059     if test "X$HPUX_IA64_MODE" = X32; then
9060       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9061     else
9062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9063     fi
9064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065     ;;
9066    hppa*64*)
9067      shrext_cmds='.sl'
9068      hardcode_into_libs=yes
9069      dynamic_linker="$host_os dld.sl"
9070      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073      soname_spec='${libname}${release}${shared_ext}$major'
9074      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076      ;;
9077    *)
9078     shrext_cmds='.sl'
9079     dynamic_linker="$host_os dld.sl"
9080     shlibpath_var=SHLIB_PATH
9081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083     soname_spec='${libname}${release}${shared_ext}$major'
9084     ;;
9085   esac
9086   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087   postinstall_cmds='chmod 555 $lib'
9088   ;;
9089
9090 interix3*)
9091   version_type=linux
9092   need_lib_prefix=no
9093   need_version=no
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095   soname_spec='${libname}${release}${shared_ext}$major'
9096   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=no
9099   hardcode_into_libs=yes
9100   ;;
9101
9102 irix5* | irix6* | nonstopux*)
9103   case $host_os in
9104     nonstopux*) version_type=nonstopux ;;
9105     *)
9106         if test "$lt_cv_prog_gnu_ld" = yes; then
9107                 version_type=linux
9108         else
9109                 version_type=irix
9110         fi ;;
9111   esac
9112   need_lib_prefix=no
9113   need_version=no
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9116   case $host_os in
9117   irix5* | nonstopux*)
9118     libsuff= shlibsuff=
9119     ;;
9120   *)
9121     case $LD in # libtool.m4 will add one of these switches to LD
9122     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123       libsuff= shlibsuff= libmagic=32-bit;;
9124     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125       libsuff=32 shlibsuff=N32 libmagic=N32;;
9126     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128     *) libsuff= shlibsuff= libmagic=never-match;;
9129     esac
9130     ;;
9131   esac
9132   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133   shlibpath_overrides_runpath=no
9134   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9141   dynamic_linker=no
9142   ;;
9143
9144 # This must be Linux ELF.
9145 linux*)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   # This implies no fast_install, which is unacceptable.
9155   # Some rework will be needed to allow for fast_install
9156   # before this can be enabled.
9157   hardcode_into_libs=yes
9158
9159   # Append ld.so.conf contents to the search path
9160   if test -f /etc/ld.so.conf; then
9161     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' ' '`
9162     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163   fi
9164
9165   # We used to test for /lib/ld.so.1 and disable shared libraries on
9166   # powerpc, because MkLinux only supported shared libraries with the
9167   # GNU dynamic linker.  Since this was broken with cross compilers,
9168   # most powerpc-linux boxes support dynamic linking these days and
9169   # people can always --disable-shared, the test was removed, and we
9170   # assume the GNU/Linux dynamic linker is in use.
9171   dynamic_linker='GNU/Linux ld.so'
9172   ;;
9173
9174 knetbsd*-gnu)
9175   version_type=linux
9176   need_lib_prefix=no
9177   need_version=no
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   shlibpath_overrides_runpath=no
9182   hardcode_into_libs=yes
9183   dynamic_linker='GNU ld.so'
9184   ;;
9185
9186 netbsd*)
9187   version_type=sunos
9188   need_lib_prefix=no
9189   need_version=no
9190   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193     dynamic_linker='NetBSD (a.out) ld.so'
9194   else
9195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196     soname_spec='${libname}${release}${shared_ext}$major'
9197     dynamic_linker='NetBSD ld.elf_so'
9198   fi
9199   shlibpath_var=LD_LIBRARY_PATH
9200   shlibpath_overrides_runpath=yes
9201   hardcode_into_libs=yes
9202   ;;
9203
9204 newsos6)
9205   version_type=linux
9206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   shlibpath_overrides_runpath=yes
9209   ;;
9210
9211 nto-qnx*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   shlibpath_overrides_runpath=yes
9219   ;;
9220
9221 openbsd* | bitrig*)
9222   version_type=sunos
9223   sys_lib_dlsearch_path_spec="/usr/lib"
9224   need_lib_prefix=no
9225   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9226   case $host_os in
9227     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228     *)                         need_version=no  ;;
9229   esac
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9234     case $host_os in
9235       openbsd2.[89] | openbsd2.[89].*)
9236         shlibpath_overrides_runpath=no
9237         ;;
9238       *)
9239         shlibpath_overrides_runpath=yes
9240         ;;
9241       esac
9242   else
9243     shlibpath_overrides_runpath=yes
9244   fi
9245   ;;
9246
9247 os2*)
9248   libname_spec='$name'
9249   shrext_cmds=".dll"
9250   need_lib_prefix=no
9251   library_names_spec='$libname${shared_ext} $libname.a'
9252   dynamic_linker='OS/2 ld.exe'
9253   shlibpath_var=LIBPATH
9254   ;;
9255
9256 osf3* | osf4* | osf5*)
9257   version_type=osf
9258   need_lib_prefix=no
9259   need_version=no
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265   ;;
9266
9267 solaris*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   shlibpath_var=LD_LIBRARY_PATH
9274   shlibpath_overrides_runpath=yes
9275   hardcode_into_libs=yes
9276   # ldd complains unless libraries are executable
9277   postinstall_cmds='chmod +x $lib'
9278   ;;
9279
9280 sunos4*)
9281   version_type=sunos
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=yes
9286   if test "$with_gnu_ld" = yes; then
9287     need_lib_prefix=no
9288   fi
9289   need_version=yes
9290   ;;
9291
9292 sysv4 | sysv4.3*)
9293   version_type=linux
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   case $host_vendor in
9298     sni)
9299       shlibpath_overrides_runpath=no
9300       need_lib_prefix=no
9301       export_dynamic_flag_spec='${wl}-Blargedynsym'
9302       runpath_var=LD_RUN_PATH
9303       ;;
9304     siemens)
9305       need_lib_prefix=no
9306       ;;
9307     motorola)
9308       need_lib_prefix=no
9309       need_version=no
9310       shlibpath_overrides_runpath=no
9311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9312       ;;
9313   esac
9314   ;;
9315
9316 sysv4*MP*)
9317   if test -d /usr/nec ;then
9318     version_type=linux
9319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320     soname_spec='$libname${shared_ext}.$major'
9321     shlibpath_var=LD_LIBRARY_PATH
9322   fi
9323   ;;
9324
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326   version_type=freebsd-elf
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   hardcode_into_libs=yes
9333   if test "$with_gnu_ld" = yes; then
9334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335     shlibpath_overrides_runpath=no
9336   else
9337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338     shlibpath_overrides_runpath=yes
9339     case $host_os in
9340       sco3.2v5*)
9341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9342         ;;
9343     esac
9344   fi
9345   sys_lib_dlsearch_path_spec='/usr/lib'
9346   ;;
9347
9348 uts4*)
9349   version_type=linux
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   ;;
9354
9355 *)
9356   dynamic_linker=no
9357   ;;
9358 esac
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9362
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366 fi
9367
9368
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374
9375 module=yes
9376 eval libltdl_cv_shlibext=$shrext_cmds
9377
9378 fi
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9382
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9385 _ACEOF
9386
9387 fi
9388
9389
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   libltdl_cv_shlibpath_var="$shlibpath_var"
9396 fi
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9400
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9403 _ACEOF
9404
9405 fi
9406
9407
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9414 fi
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9418   sys_search_path=
9419   for dir in $libltdl_cv_sys_search_path; do
9420     if test -z "$sys_search_path"; then
9421       sys_search_path="$dir"
9422     else
9423       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9424     fi
9425   done
9426
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9429 _ACEOF
9430
9431 fi
9432
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   libltdl_cv_objdir="$objdir"
9439   if test -n "$objdir"; then
9440     :
9441   else
9442     rm -f .libs 2>/dev/null
9443     mkdir .libs 2>/dev/null
9444     if test -d .libs; then
9445       libltdl_cv_objdir=.libs
9446     else
9447       # MS-DOS does not allow filenames that begin with a dot.
9448       libltdl_cv_objdir=_libs
9449     fi
9450   rmdir .libs 2>/dev/null
9451   fi
9452
9453 fi
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9459 _ACEOF
9460
9461
9462
9463
9464
9465
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9475
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9478
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9481
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9484
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9487
9488 # Define system-specific variables.
9489 case $host_os in
9490 aix*)
9491   symcode='[BCDT]'
9492   ;;
9493 cygwin* | mingw* | pw32*)
9494   symcode='[ABCDGISTW]'
9495   ;;
9496 hpux*) # Its linker distinguishes data from code symbols
9497   if test "$host_cpu" = ia64; then
9498     symcode='[ABCDEGRST]'
9499   fi
9500   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501   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'"
9502   ;;
9503 linux*)
9504   if test "$host_cpu" = ia64; then
9505     symcode='[ABCDGIRSTW]'
9506     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507     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'"
9508   fi
9509   ;;
9510 irix* | nonstopux*)
9511   symcode='[BCDEGRST]'
9512   ;;
9513 osf*)
9514   symcode='[BCDEGQRST]'
9515   ;;
9516 solaris*)
9517   symcode='[BDRT]'
9518   ;;
9519 sco3.2v5*)
9520   symcode='[DT]'
9521   ;;
9522 sysv4.2uw2*)
9523   symcode='[DT]'
9524   ;;
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9526   symcode='[ABDT]'
9527   ;;
9528 sysv4)
9529   symcode='[DFNSTU]'
9530   ;;
9531 esac
9532
9533 # Handle CRLF in mingw tool chain
9534 opt_cr=
9535 case $build_os in
9536 mingw*)
9537   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9538   ;;
9539 esac
9540
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544   symcode='[ABCDGIRSTW]' ;;
9545 esac
9546
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9549
9550   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551   symxfrm="\\1 $ac_symprfx\\2 \\2"
9552
9553   # Write the raw and C identifiers.
9554   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9555
9556   # Check to see that the pipe works correctly.
9557   pipe_works=no
9558
9559   rm -f conftest*
9560   cat > conftest.$ac_ext <<EOF
9561 #ifdef __cplusplus
9562 extern "C" {
9563 #endif
9564 char nm_test_var;
9565 void nm_test_func(){}
9566 #ifdef __cplusplus
9567 }
9568 #endif
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9570 EOF
9571
9572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573   (eval $ac_compile) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; then
9577     # Now try to grab the symbols.
9578     nlist=conftest.nm
9579     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && test -s "$nlist"; then
9584       # Try sorting and uniquifying the output.
9585       if sort "$nlist" | uniq > "$nlist"T; then
9586         mv -f "$nlist"T "$nlist"
9587       else
9588         rm -f "$nlist"T
9589       fi
9590
9591       # Make sure that we snagged all the symbols we need.
9592       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594           cat <<EOF > conftest.$ac_ext
9595 #ifdef __cplusplus
9596 extern "C" {
9597 #endif
9598
9599 EOF
9600           # Now generate the symbol file.
9601           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9602
9603           cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9606 #else
9607 # define lt_ptr_t char *
9608 # define const
9609 #endif
9610
9611 /* The mapping between symbol names and symbols. */
9612 const struct {
9613   const char *name;
9614   lt_ptr_t address;
9615 }
9616 lt_preloaded_symbols[] =
9617 {
9618 EOF
9619           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620           cat <<\EOF >> conftest.$ac_ext
9621   {0, (lt_ptr_t) 0}
9622 };
9623
9624 #ifdef __cplusplus
9625 }
9626 #endif
9627 EOF
9628           # Now try linking the two files.
9629           mv conftest.$ac_objext conftstm.$ac_objext
9630           lt_save_LIBS="$LIBS"
9631           lt_save_CFLAGS="$CFLAGS"
9632           LIBS="conftstm.$ac_objext"
9633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635   (eval $ac_link) 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9639             pipe_works=yes
9640           fi
9641           LIBS="$lt_save_LIBS"
9642           CFLAGS="$lt_save_CFLAGS"
9643         else
9644           echo "cannot find nm_test_func in $nlist" >&5
9645         fi
9646       else
9647         echo "cannot find nm_test_var in $nlist" >&5
9648       fi
9649     else
9650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9651     fi
9652   else
9653     echo "$progname: failed program was:" >&5
9654     cat conftest.$ac_ext >&5
9655   fi
9656   rm -f conftest* conftst*
9657
9658   # Do not use the global_symbol_pipe unless it works.
9659   if test "$pipe_works" = yes; then
9660     break
9661   else
9662     lt_cv_sys_global_symbol_pipe=
9663   fi
9664 done
9665
9666 fi
9667
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669   lt_cv_sys_global_symbol_to_cdecl=
9670 fi
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672   { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9674 else
9675   { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9677 fi
9678
9679
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683   echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686     libltdl_cv_preloaded_symbols=yes
9687   else
9688     libltdl_cv_preloaded_symbols=no
9689   fi
9690
9691 fi
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9695
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9698 _ACEOF
9699
9700 fi
9701
9702 LIBADD_DL=
9703
9704 ac_ext=c
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9724 #define shl_load innocuous_shl_load
9725
9726 /* System header to define __stub macros and hopefully few prototypes,
9727     which can conflict with char shl_load (); below.
9728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729     <limits.h> exists even on freestanding compilers.  */
9730
9731 #ifdef __STDC__
9732 # include <limits.h>
9733 #else
9734 # include <assert.h>
9735 #endif
9736
9737 #undef shl_load
9738
9739 /* Override any GCC internal prototype to avoid an error.
9740    Use char because int might match the return type of a GCC
9741    builtin and then its argument prototype would still apply.  */
9742 #ifdef __cplusplus
9743 extern "C"
9744 #endif
9745 char shl_load ();
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9750 choke me
9751 #endif
9752
9753 int
9754 main ()
9755 {
9756 return shl_load ();
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_link") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776   { (case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_try") 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_func_shl_load=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800         ac_cv_func_shl_load=no
9801 fi
9802
9803 rm -f core conftest.err conftest.$ac_objext \
9804       conftest$ac_exeext conftest.$ac_ext
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9812 _ACEOF
9813
9814 else
9815   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char shl_load ();
9836 int
9837 main ()
9838 {
9839 return shl_load ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_lib_dld_shl_load=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_lib_dld_shl_load=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9896 _ACEOF
9897
9898         LIBADD_DL="$LIBADD_DL -ldld"
9899 else
9900   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   ac_check_lib_save_LIBS=$LIBS
9906 LIBS="-ldl  $LIBS"
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913
9914 /* Override any GCC internal prototype to avoid an error.
9915    Use char because int might match the return type of a GCC
9916    builtin and then its argument prototype would still apply.  */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char dlopen ();
9921 int
9922 main ()
9923 {
9924 return dlopen ();
9925   ;
9926   return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9931 case "(($ac_try" in
9932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933   *) ac_try_echo=$ac_try;;
9934 esac
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936   (eval "$ac_link") 2>conftest.er1
9937   ac_status=$?
9938   grep -v '^ *+' conftest.er1 >conftest.err
9939   rm -f conftest.er1
9940   cat conftest.err >&5
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); } &&
9943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944   { (case "(($ac_try" in
9945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946   *) ac_try_echo=$ac_try;;
9947 esac
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949   (eval "$ac_try") 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_try") 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; }; then
9963   ac_cv_lib_dl_dlopen=yes
9964 else
9965   echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968         ac_cv_lib_dl_dlopen=no
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext \
9972       conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9974 fi
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9978
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9981 _ACEOF
9982
9983                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9984 else
9985   cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #if HAVE_DLFCN_H
9992 #  include <dlfcn.h>
9993 #endif
9994
9995 int
9996 main ()
9997 {
9998 dlopen(0, 0);
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_link") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018   { (case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_try") 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest$ac_exeext'
10028   { (case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_try") 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10040 _ACEOF
10041  libltdl_cv_func_dlopen="yes"
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10045
10046         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld  $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char dlopen ();
10067 int
10068 main ()
10069 {
10070 return dlopen ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_link") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090   { (case "(($ac_try" in
10091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092   *) ac_try_echo=$ac_try;;
10093 esac
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095   (eval "$ac_try") 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_cv_lib_svld_dlopen=yes
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114         ac_cv_lib_svld_dlopen=no
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext \
10118       conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10120 fi
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10124
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10127 _ACEOF
10128
10129                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10130 else
10131   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134   echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136   ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldld  $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char dld_link ();
10152 int
10153 main ()
10154 {
10155 return dld_link ();
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_link") 2>conftest.er1
10168   ac_status=$?
10169   grep -v '^ *+' conftest.er1 >conftest.err
10170   rm -f conftest.er1
10171   cat conftest.err >&5
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175   { (case "(($ac_try" in
10176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177   *) ac_try_echo=$ac_try;;
10178 esac
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180   (eval "$ac_try") 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_lib_dld_dld_link=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199         ac_cv_lib_dld_dld_link=no
10200 fi
10201
10202 rm -f core conftest.err conftest.$ac_objext \
10203       conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10205 fi
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10209
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_DLD 1
10212 _ACEOF
10213
10214                 LIBADD_DL="$LIBADD_DL -ldld"
10215 else
10216   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h.  */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h.  */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10230
10231 /* System header to define __stub macros and hopefully few prototypes,
10232     which can conflict with char _dyld_func_lookup (); below.
10233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234     <limits.h> exists even on freestanding compilers.  */
10235
10236 #ifdef __STDC__
10237 # include <limits.h>
10238 #else
10239 # include <assert.h>
10240 #endif
10241
10242 #undef _dyld_func_lookup
10243
10244 /* Override any GCC internal prototype to avoid an error.
10245    Use char because int might match the return type of a GCC
10246    builtin and then its argument prototype would still apply.  */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252     to always fail with ENOSYS.  Some functions are actually named
10253     something starting with __ and the normal name is an alias.  */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10255 choke me
10256 #endif
10257
10258 int
10259 main ()
10260 {
10261 return _dyld_func_lookup ();
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_link") 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } &&
10280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281   { (case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_try") 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest$ac_exeext'
10291   { (case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_try") 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   ac_cv_func__dyld_func_lookup=yes
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305         ac_cv_func__dyld_func_lookup=no
10306 fi
10307
10308 rm -f core conftest.err conftest.$ac_objext \
10309       conftest$ac_exeext conftest.$ac_ext
10310 fi
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10314
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10317 _ACEOF
10318
10319 fi
10320
10321
10322 fi
10323
10324
10325 fi
10326
10327
10328 fi
10329
10330 rm -f core conftest.err conftest.$ac_objext \
10331       conftest$ac_exeext conftest.$ac_ext
10332
10333 fi
10334
10335
10336 fi
10337
10338
10339 fi
10340
10341
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10343 then
10344   lt_save_LIBS="$LIBS"
10345   LIBS="$LIBS $LIBADD_DL"
10346
10347 for ac_func in dlerror
10348 do
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10363 #define $ac_func innocuous_$ac_func
10364
10365 /* System header to define __stub macros and hopefully few prototypes,
10366     which can conflict with char $ac_func (); below.
10367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368     <limits.h> exists even on freestanding compilers.  */
10369
10370 #ifdef __STDC__
10371 # include <limits.h>
10372 #else
10373 # include <assert.h>
10374 #endif
10375
10376 #undef $ac_func
10377
10378 /* Override any GCC internal prototype to avoid an error.
10379    Use char because int might match the return type of a GCC
10380    builtin and then its argument prototype would still apply.  */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char $ac_func ();
10385 /* The GNU C library defines this for functions which it implements
10386     to always fail with ENOSYS.  Some functions are actually named
10387     something starting with __ and the normal name is an alias.  */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10389 choke me
10390 #endif
10391
10392 int
10393 main ()
10394 {
10395 return $ac_func ();
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404   *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407   (eval "$ac_link") 2>conftest.er1
10408   ac_status=$?
10409   grep -v '^ *+' conftest.er1 >conftest.err
10410   rm -f conftest.er1
10411   cat conftest.err >&5
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415   { (case "(($ac_try" in
10416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417   *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420   (eval "$ac_try") 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }; } &&
10424          { ac_try='test -s conftest$ac_exeext'
10425   { (case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_try") 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   eval "$as_ac_var=yes"
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         eval "$as_ac_var=no"
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext \
10443       conftest$ac_exeext conftest.$ac_ext
10444 fi
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446                { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449   cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10451 _ACEOF
10452
10453 fi
10454 done
10455
10456   LIBS="$lt_save_LIBS"
10457 fi
10458 ac_ext=c
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10463
10464
10465
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   ac_cv_sys_symbol_underscore=no
10472   cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10475 EOF
10476   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477   (eval $ac_compile) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; then
10481     # Now try to grab the symbols.
10482     ac_nlist=conftest.nm
10483     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } && test -s "$ac_nlist"; then
10488       # See whether the symbols have a leading underscore.
10489       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490         ac_cv_sys_symbol_underscore=yes
10491       else
10492         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10493           :
10494         else
10495           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10496         fi
10497       fi
10498     else
10499       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10500     fi
10501   else
10502     echo "configure: failed program was:" >&5
10503     cat conftest.c >&5
10504   fi
10505   rm -rf conftest*
10506
10507 fi
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10510
10511
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513   if test x"$libltdl_cv_func_dlopen" = xyes ||
10514      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518   echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520   libltdl_cv_need_uscore=unknown
10521           save_LIBS="$LIBS"
10522           LIBS="$LIBS $LIBADD_DL"
10523           if test "$cross_compiling" = yes; then :
10524   libltdl_cv_need_uscore=cross
10525 else
10526   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527   lt_status=$lt_dlunknown
10528   cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531
10532 #if HAVE_DLFCN_H
10533 #include <dlfcn.h>
10534 #endif
10535
10536 #include <stdio.h>
10537
10538 #ifdef RTLD_GLOBAL
10539 #  define LT_DLGLOBAL           RTLD_GLOBAL
10540 #else
10541 #  ifdef DL_GLOBAL
10542 #    define LT_DLGLOBAL         DL_GLOBAL
10543 #  else
10544 #    define LT_DLGLOBAL         0
10545 #  endif
10546 #endif
10547
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549    find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10551 #  ifdef RTLD_LAZY
10552 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10553 #  else
10554 #    ifdef DL_LAZY
10555 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10556 #    else
10557 #      ifdef RTLD_NOW
10558 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10559 #      else
10560 #        ifdef DL_NOW
10561 #          define LT_DLLAZY_OR_NOW      DL_NOW
10562 #        else
10563 #          define LT_DLLAZY_OR_NOW      0
10564 #        endif
10565 #      endif
10566 #    endif
10567 #  endif
10568 #endif
10569
10570 #ifdef __cplusplus
10571 extern "C" void exit (int);
10572 #endif
10573
10574 void fnord() { int i=42;}
10575 int main ()
10576 {
10577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578   int status = $lt_dlunknown;
10579
10580   if (self)
10581     {
10582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584       /* dlclose (self); */
10585     }
10586   else
10587     puts (dlerror ());
10588
10589     exit (status);
10590 }
10591 EOF
10592   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593   (eval $ac_link) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597     (./conftest; exit; ) >&5 2>/dev/null
10598     lt_status=$?
10599     case x$lt_status in
10600       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602       x$lt_dlunknown|x*)  ;;
10603     esac
10604   else :
10605     # compilation failed
10606
10607   fi
10608 fi
10609 rm -fr conftest*
10610
10611           LIBS="$save_LIBS"
10612
10613 fi
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10616   fi
10617 fi
10618
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10620
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10623 _ACEOF
10624
10625 fi
10626
10627
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   # PORTME does your system automatically load deplibs for dlopen?
10634   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635   # For now, we just catch OSes we know something about -- in the
10636   # future, we'll try test this programmatically.
10637   libltdl_cv_sys_dlopen_deplibs=unknown
10638   case "$host_os" in
10639   aix3*|aix4.1.*|aix4.2.*)
10640     # Unknown whether this is true for these versions of AIX, but
10641     # we want this `case' here to explicitly catch those versions.
10642     libltdl_cv_sys_dlopen_deplibs=unknown
10643     ;;
10644   aix[45]*)
10645     libltdl_cv_sys_dlopen_deplibs=yes
10646     ;;
10647   darwin*)
10648     # Assuming the user has installed a libdl from somewhere, this is true
10649     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650     libltdl_cv_sys_dlopen_deplibs=yes
10651     ;;
10652   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653     # GNU and its variants, using gnu ld.so (Glibc)
10654     libltdl_cv_sys_dlopen_deplibs=yes
10655     ;;
10656   hpux10*|hpux11*)
10657     libltdl_cv_sys_dlopen_deplibs=yes
10658     ;;
10659   interix*)
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   irix[12345]*|irix6.[01]*)
10663     # Catch all versions of IRIX before 6.2, and indicate that we don't
10664     # know how it worked for any of those versions.
10665     libltdl_cv_sys_dlopen_deplibs=unknown
10666     ;;
10667   irix*)
10668     # The case above catches anything before 6.2, and it's known that
10669     # at 6.2 and later dlopen does load deplibs.
10670     libltdl_cv_sys_dlopen_deplibs=yes
10671     ;;
10672   netbsd*)
10673     libltdl_cv_sys_dlopen_deplibs=yes
10674     ;;
10675   openbsd*)
10676     libltdl_cv_sys_dlopen_deplibs=yes
10677     ;;
10678   osf[1234]*)
10679     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680     # it did *not* use an RPATH in a shared library to find objects the
10681     # library depends on, so we explicitly say `no'.
10682     libltdl_cv_sys_dlopen_deplibs=no
10683     ;;
10684   osf5.0|osf5.0a|osf5.1)
10685     # dlopen *does* load deplibs and with the right loader patch applied
10686     # it even uses RPATH in a shared library to search for shared objects
10687     # that the library depends on, but there's no easy way to know if that
10688     # patch is installed.  Since this is the case, all we can really
10689     # say is unknown -- it depends on the patch being installed.  If
10690     # it is, this changes to `yes'.  Without it, it would be `no'.
10691     libltdl_cv_sys_dlopen_deplibs=unknown
10692     ;;
10693   osf*)
10694     # the two cases above should catch all versions of osf <= 5.1.  Read
10695     # the comments above for what we know about them.
10696     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697     # is used to find them so we can finally say `yes'.
10698     libltdl_cv_sys_dlopen_deplibs=yes
10699     ;;
10700   solaris*)
10701     libltdl_cv_sys_dlopen_deplibs=yes
10702     ;;
10703   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704     libltdl_cv_sys_dlopen_deplibs=yes
10705     ;;
10706   esac
10707
10708 fi
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10715 _ACEOF
10716
10717 fi
10718
10719
10720 for ac_header in argz.h
10721 do
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 fi
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730                { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10732 else
10733   # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $ac_includes_default
10743 #include <$ac_header>
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760   { (case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_try") 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779   ac_header_compiler=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784         ac_header_compiler=no
10785 fi
10786
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10790
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 #include <$ac_header>
10801 _ACEOF
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } >/dev/null; then
10815   if test -s conftest.err; then
10816     ac_cpp_err=$ac_c_preproc_warn_flag
10817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10818   else
10819     ac_cpp_err=
10820   fi
10821 else
10822   ac_cpp_err=yes
10823 fi
10824 if test -z "$ac_cpp_err"; then
10825   ac_header_preproc=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830   ac_header_preproc=no
10831 fi
10832
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10836
10837 # So?  What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10839   yes:no: )
10840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844     ac_header_preproc=yes
10845     ;;
10846   no:yes:* )
10847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10859     ( cat <<\_ASBOX
10860 ## ------------------------------------ ##
10861 ## Report this to http://llvm.org/bugs/ ##
10862 ## ------------------------------------ ##
10863 _ASBOX
10864      ) | sed "s/^/$as_me: WARNING:     /" >&2
10865     ;;
10866 esac
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   eval "$as_ac_Header=\$ac_header_preproc"
10873 fi
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875                { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10877
10878 fi
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880   cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 _ACEOF
10883
10884 fi
10885
10886 done
10887
10888
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892   echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894   cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900 #if HAVE_ARGZ_H
10901 #  include <argz.h>
10902 #endif
10903
10904 typedef error_t ac__type_new_;
10905 int
10906 main ()
10907 {
10908 if ((ac__type_new_ *) 0)
10909   return 0;
10910 if (sizeof (ac__type_new_))
10911   return 0;
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_compile") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest.$ac_objext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   ac_cv_type_error_t=yes
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         ac_cv_type_error_t=no
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10963
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10966 _ACEOF
10967
10968
10969 else
10970
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10973 _ACEOF
10974
10975 fi
10976
10977
10978
10979
10980
10981
10982
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10984 do
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10999 #define $ac_func innocuous_$ac_func
11000
11001 /* System header to define __stub macros and hopefully few prototypes,
11002     which can conflict with char $ac_func (); below.
11003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004     <limits.h> exists even on freestanding compilers.  */
11005
11006 #ifdef __STDC__
11007 # include <limits.h>
11008 #else
11009 # include <assert.h>
11010 #endif
11011
11012 #undef $ac_func
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015    Use char because int might match the return type of a GCC
11016    builtin and then its argument prototype would still apply.  */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char $ac_func ();
11021 /* The GNU C library defines this for functions which it implements
11022     to always fail with ENOSYS.  Some functions are actually named
11023     something starting with __ and the normal name is an alias.  */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11025 choke me
11026 #endif
11027
11028 int
11029 main ()
11030 {
11031 return $ac_func ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_link") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051   { (case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_try") 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; } &&
11060          { ac_try='test -s conftest$ac_exeext'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   eval "$as_ac_var=yes"
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075         eval "$as_ac_var=no"
11076 fi
11077
11078 rm -f core conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082                { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085   cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 _ACEOF
11088
11089 fi
11090 done
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11120                   stdio.h unistd.h
11121 do
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 fi
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132 else
11133   # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_compile") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_header_compiler=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184         ac_header_compiler=no
11185 fi
11186
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11190
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <$ac_header>
11201 _ACEOF
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } >/dev/null; then
11215   if test -s conftest.err; then
11216     ac_cpp_err=$ac_c_preproc_warn_flag
11217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218   else
11219     ac_cpp_err=
11220   fi
11221 else
11222   ac_cpp_err=yes
11223 fi
11224 if test -z "$ac_cpp_err"; then
11225   ac_header_preproc=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230   ac_header_preproc=no
11231 fi
11232
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11236
11237 # So?  What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239   yes:no: )
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244     ac_header_preproc=yes
11245     ;;
11246   no:yes:* )
11247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259     ( cat <<\_ASBOX
11260 ## ------------------------------------ ##
11261 ## Report this to http://llvm.org/bugs/ ##
11262 ## ------------------------------------ ##
11263 _ASBOX
11264      ) | sed "s/^/$as_me: WARNING:     /" >&2
11265     ;;
11266 esac
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   eval "$as_ac_Header=\$ac_header_preproc"
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277
11278 fi
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11283
11284 fi
11285
11286 done
11287
11288
11289
11290
11291
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11293 do
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 fi
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 else
11305   # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 $ac_includes_default
11315 #include <$ac_header>
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_compile") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332   { (case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_try") 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; } &&
11341          { ac_try='test -s conftest.$ac_objext'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_header_compiler=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356         ac_header_compiler=no
11357 fi
11358
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11362
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <$ac_header>
11373 _ACEOF
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11381   ac_status=$?
11382   grep -v '^ *+' conftest.er1 >conftest.err
11383   rm -f conftest.er1
11384   cat conftest.err >&5
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } >/dev/null; then
11387   if test -s conftest.err; then
11388     ac_cpp_err=$ac_c_preproc_warn_flag
11389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11390   else
11391     ac_cpp_err=
11392   fi
11393 else
11394   ac_cpp_err=yes
11395 fi
11396 if test -z "$ac_cpp_err"; then
11397   ac_header_preproc=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402   ac_header_preproc=no
11403 fi
11404
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11408
11409 # So?  What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411   yes:no: )
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416     ac_header_preproc=yes
11417     ;;
11418   no:yes:* )
11419     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431     ( cat <<\_ASBOX
11432 ## ------------------------------------ ##
11433 ## Report this to http://llvm.org/bugs/ ##
11434 ## ------------------------------------ ##
11435 _ASBOX
11436      ) | sed "s/^/$as_me: WARNING:     /" >&2
11437     ;;
11438 esac
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   eval "$as_ac_Header=\$ac_header_preproc"
11445 fi
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447                { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11449
11450 fi
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452   cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 _ACEOF
11455
11456 fi
11457
11458 done
11459
11460
11461
11462 for ac_header in string.h strings.h
11463 do
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 fi
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474 else
11475   # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h.  */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h.  */
11484 $ac_includes_default
11485 #include <$ac_header>
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_compile") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } &&
11501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; } &&
11511          { ac_try='test -s conftest.$ac_objext'
11512   { (case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_try") 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; }; then
11521   ac_header_compiler=yes
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526         ac_header_compiler=no
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } >/dev/null; then
11557   if test -s conftest.err; then
11558     ac_cpp_err=$ac_c_preproc_warn_flag
11559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560   else
11561     ac_cpp_err=
11562   fi
11563 else
11564   ac_cpp_err=yes
11565 fi
11566 if test -z "$ac_cpp_err"; then
11567   ac_header_preproc=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572   ac_header_preproc=no
11573 fi
11574
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579 # So?  What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581   yes:no: )
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586     ac_header_preproc=yes
11587     ;;
11588   no:yes:* )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601     ( cat <<\_ASBOX
11602 ## ------------------------------------ ##
11603 ## Report this to http://llvm.org/bugs/ ##
11604 ## ------------------------------------ ##
11605 _ASBOX
11606      ) | sed "s/^/$as_me: WARNING:     /" >&2
11607     ;;
11608 esac
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   eval "$as_ac_Header=\$ac_header_preproc"
11615 fi
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617                { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11619
11620 fi
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 _ACEOF
11625  break
11626 fi
11627
11628 done
11629
11630
11631
11632
11633 for ac_func in strchr index
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define $ac_func innocuous_$ac_func
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef $ac_func
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 choke me
11676 #endif
11677
11678 int
11679 main ()
11680 {
11681 return $ac_func ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_link") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   eval "$as_ac_var=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725         eval "$as_ac_var=no"
11726 fi
11727
11728 rm -f core conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11738  break
11739 fi
11740 done
11741
11742
11743
11744 for ac_func in strrchr rindex
11745 do
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11760 #define $ac_func innocuous_$ac_func
11761
11762 /* System header to define __stub macros and hopefully few prototypes,
11763     which can conflict with char $ac_func (); below.
11764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765     <limits.h> exists even on freestanding compilers.  */
11766
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772
11773 #undef $ac_func
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 choke me
11787 #endif
11788
11789 int
11790 main ()
11791 {
11792 return $ac_func ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_link") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812   { (case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_try") 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; } &&
11821          { ac_try='test -s conftest$ac_exeext'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   eval "$as_ac_var=yes"
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836         eval "$as_ac_var=no"
11837 fi
11838
11839 rm -f core conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11841 fi
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843                { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846   cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 _ACEOF
11849  break
11850 fi
11851 done
11852
11853
11854
11855 for ac_func in memcpy bcopy
11856 do
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863   cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11871 #define $ac_func innocuous_$ac_func
11872
11873 /* System header to define __stub macros and hopefully few prototypes,
11874     which can conflict with char $ac_func (); below.
11875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876     <limits.h> exists even on freestanding compilers.  */
11877
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11883
11884 #undef $ac_func
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887    Use char because int might match the return type of a GCC
11888    builtin and then its argument prototype would still apply.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char $ac_func ();
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 choke me
11898 #endif
11899
11900 int
11901 main ()
11902 {
11903 return $ac_func ();
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_link") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   eval "$as_ac_var=yes"
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         eval "$as_ac_var=no"
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954                { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 _ACEOF
11960  break
11961 fi
11962 done
11963
11964
11965
11966 for ac_func in memmove strcmp
11967 do
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11982 #define $ac_func innocuous_$ac_func
11983
11984 /* System header to define __stub macros and hopefully few prototypes,
11985     which can conflict with char $ac_func (); below.
11986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987     <limits.h> exists even on freestanding compilers.  */
11988
11989 #ifdef __STDC__
11990 # include <limits.h>
11991 #else
11992 # include <assert.h>
11993 #endif
11994
11995 #undef $ac_func
11996
11997 /* Override any GCC internal prototype to avoid an error.
11998    Use char because int might match the return type of a GCC
11999    builtin and then its argument prototype would still apply.  */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char $ac_func ();
12004 /* The GNU C library defines this for functions which it implements
12005     to always fail with ENOSYS.  Some functions are actually named
12006     something starting with __ and the normal name is an alias.  */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12008 choke me
12009 #endif
12010
12011 int
12012 main ()
12013 {
12014 return $ac_func ();
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_link") 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; } &&
12043          { ac_try='test -s conftest$ac_exeext'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   eval "$as_ac_var=yes"
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058         eval "$as_ac_var=no"
12059 fi
12060
12061 rm -f core conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065                { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12071
12072 fi
12073 done
12074
12075
12076
12077
12078 for ac_func in closedir opendir readdir
12079 do
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12094 #define $ac_func innocuous_$ac_func
12095
12096 /* System header to define __stub macros and hopefully few prototypes,
12097     which can conflict with char $ac_func (); below.
12098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099     <limits.h> exists even on freestanding compilers.  */
12100
12101 #ifdef __STDC__
12102 # include <limits.h>
12103 #else
12104 # include <assert.h>
12105 #endif
12106
12107 #undef $ac_func
12108
12109 /* Override any GCC internal prototype to avoid an error.
12110    Use char because int might match the return type of a GCC
12111    builtin and then its argument prototype would still apply.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char $ac_func ();
12116 /* The GNU C library defines this for functions which it implements
12117     to always fail with ENOSYS.  Some functions are actually named
12118     something starting with __ and the normal name is an alias.  */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12120 choke me
12121 #endif
12122
12123 int
12124 main ()
12125 {
12126 return $ac_func ();
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_link") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } &&
12145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146   { (case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_try") 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; } &&
12155          { ac_try='test -s conftest$ac_exeext'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   eval "$as_ac_var=yes"
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170         eval "$as_ac_var=no"
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext \
12174       conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177                { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180   cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 _ACEOF
12183
12184 fi
12185 done
12186
12187
12188
12189 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12190 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12191
12192 ICC=no
12193 IXX=no
12194 case $CC in
12195   icc*|icpc*)
12196     ICC=yes
12197     IXX=yes
12198     ;;
12199    *)
12200     ;;
12201 esac
12202
12203 if test "$GCC" != "yes" && test "$ICC" != "yes"
12204 then
12205   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12206 echo "$as_me: error: gcc|icc required but not found" >&2;}
12207    { (exit 1); exit 1; }; }
12208 fi
12209
12210 if test "$GXX" != "yes" && test "$IXX" != "yes"
12211 then
12212   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12213 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12214    { (exit 1); exit 1; }; }
12215 fi
12216
12217 if test "$GCC" = "yes"
12218 then
12219   cat >conftest.$ac_ext <<_ACEOF
12220
12221   /* confdefs.h.  */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h.  */
12226
12227     #if !defined(__GNUC__) || __GNUC__ < 3
12228     #error Unsupported GCC version
12229     #endif
12230
12231
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237   *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240   (eval "$ac_compile") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } &&
12247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248   { (case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_try") 2>&5
12254   ac_status=$?
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); }; } &&
12257          { ac_try='test -s conftest.$ac_objext'
12258   { (case "(($ac_try" in
12259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260   *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263   (eval "$ac_try") 2>&5
12264   ac_status=$?
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); }; }; then
12267   :
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12274    { (exit 1); exit 1; }; }
12275 fi
12276
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 fi
12279
12280 if test -z "$llvm_cv_gnu_make_command"
12281 then
12282   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12283 echo "$as_me: error: GNU Make required but not found" >&2;}
12284    { (exit 1); exit 1; }; }
12285 fi
12286
12287 { echo "$as_me:$LINENO: result: ok" >&5
12288 echo "${ECHO_T}ok" >&6; }
12289
12290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12292 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12293
12294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12295
12296 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12297
12298
12299 NO_UNINITIALIZED=
12300 NO_MAYBE_UNINITIALIZED=
12301 if test "$GXX" = "yes"
12302 then
12303   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12304
12305         if test -z "$NO_MAYBE_UNINITIALIZED"
12306   then
12307     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12308
12309   fi
12310 fi
12311 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12312 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12313
12314
12315 # Check whether --with-python was given.
12316 if test "${with_python+set}" = set; then
12317   withval=$with_python; PYTHON="$withval"
12318 fi
12319
12320
12321 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12322   { echo "$as_me:$LINENO: checking for python" >&5
12323 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12324   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12325 echo "${ECHO_T}user defined: $with_python" >&6; }
12326 else
12327   if test -n "$PYTHON" ; then
12328     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12329 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12330   fi
12331
12332   # Extract the first word of "python python2 python26", so it can be a program name with args.
12333 set dummy python python2 python26; ac_word=$2
12334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12336 if test "${ac_cv_path_PYTHON+set}" = set; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339   case $PYTHON in
12340   [\\/]* | ?:[\\/]*)
12341   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12342   ;;
12343   *)
12344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349   for ac_exec_ext in '' $ac_executable_extensions; do
12350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12351     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356 done
12357 IFS=$as_save_IFS
12358
12359   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12360 echo "${ECHO_T}not found" >&6; }
12361                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12362 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12363    { (exit 1); exit 1; }; }"
12364   ;;
12365 esac
12366 fi
12367 PYTHON=$ac_cv_path_PYTHON
12368 if test -n "$PYTHON"; then
12369   { echo "$as_me:$LINENO: result: $PYTHON" >&5
12370 echo "${ECHO_T}$PYTHON" >&6; }
12371 else
12372   { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12374 fi
12375
12376
12377 fi
12378
12379 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12380 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12381 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12382 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12383 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12384 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12385 if   test "$ac_python_version_major" -eq "2" \
12386    && test "$ac_python_version_minor" -ge "5" ; then
12387   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12388 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12389 else
12390   { echo "$as_me:$LINENO: result: not found" >&5
12391 echo "${ECHO_T}not found" >&6; }
12392   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12393 See \`config.log' for more details." >&5
12394 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12395 See \`config.log' for more details." >&2;}
12396    { (exit 1); exit 1; }; }
12397 fi
12398
12399
12400
12401 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12402 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12403 if test "${ac_cv_lib_m_sin+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lm  $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416    Use char because int might match the return type of a GCC
12417    builtin and then its argument prototype would still apply.  */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char sin ();
12422 int
12423 main ()
12424 {
12425 return sin ();
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (ac_try="$ac_link"
12432 case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_link") 2>conftest.er1
12438   ac_status=$?
12439   grep -v '^ *+' conftest.er1 >conftest.err
12440   rm -f conftest.er1
12441   cat conftest.err >&5
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12445   { (case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_try") 2>&5
12451   ac_status=$?
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; } &&
12454          { ac_try='test -s conftest$ac_exeext'
12455   { (case "(($ac_try" in
12456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457   *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460   (eval "$ac_try") 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; }; then
12464   ac_cv_lib_m_sin=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469         ac_cv_lib_m_sin=no
12470 fi
12471
12472 rm -f core conftest.err conftest.$ac_objext \
12473       conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12475 fi
12476 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12477 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12478 if test $ac_cv_lib_m_sin = yes; then
12479   cat >>confdefs.h <<_ACEOF
12480 #define HAVE_LIBM 1
12481 _ACEOF
12482
12483   LIBS="-lm $LIBS"
12484
12485 fi
12486
12487 if test "$llvm_cv_os_type" = "MingW" ; then
12488
12489 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12490 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12491 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-limagehlp  $LIBS"
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502
12503
12504 int
12505 main ()
12506 {
12507 return main ();
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_link") 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527   { (case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_try") 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest$ac_exeext'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   ac_cv_lib_imagehlp_main=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551         ac_cv_lib_imagehlp_main=no
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext \
12555       conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12557 fi
12558 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12559 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12560 if test $ac_cv_lib_imagehlp_main = yes; then
12561   cat >>confdefs.h <<_ACEOF
12562 #define HAVE_LIBIMAGEHLP 1
12563 _ACEOF
12564
12565   LIBS="-limagehlp $LIBS"
12566
12567 fi
12568
12569
12570 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12571 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12572 if test "${ac_cv_lib_psapi_main+set}" = set; then
12573   echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575   ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lpsapi  $LIBS"
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583
12584
12585 int
12586 main ()
12587 {
12588 return main ();
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (ac_try="$ac_link"
12595 case "(($ac_try" in
12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597   *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600   (eval "$ac_link") 2>conftest.er1
12601   ac_status=$?
12602   grep -v '^ *+' conftest.er1 >conftest.err
12603   rm -f conftest.er1
12604   cat conftest.err >&5
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608   { (case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_try") 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); }; } &&
12617          { ac_try='test -s conftest$ac_exeext'
12618   { (case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_try") 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   ac_cv_lib_psapi_main=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632         ac_cv_lib_psapi_main=no
12633 fi
12634
12635 rm -f core conftest.err conftest.$ac_objext \
12636       conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12638 fi
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12640 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12641 if test $ac_cv_lib_psapi_main = yes; then
12642   cat >>confdefs.h <<_ACEOF
12643 #define HAVE_LIBPSAPI 1
12644 _ACEOF
12645
12646   LIBS="-lpsapi $LIBS"
12647
12648 fi
12649
12650 fi
12651
12652 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12653 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12654 if test "${ac_cv_search_dlopen+set}" = set; then
12655   echo $ECHO_N "(cached) $ECHO_C" >&6
12656 else
12657   ac_func_search_save_LIBS=$LIBS
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664
12665 /* Override any GCC internal prototype to avoid an error.
12666    Use char because int might match the return type of a GCC
12667    builtin and then its argument prototype would still apply.  */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char dlopen ();
12672 int
12673 main ()
12674 {
12675 return dlopen ();
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 for ac_lib in '' dl; do
12681   if test -z "$ac_lib"; then
12682     ac_res="none required"
12683   else
12684     ac_res=-l$ac_lib
12685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12686   fi
12687   rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_link") 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; } &&
12711          { ac_try='test -s conftest$ac_exeext'
12712   { (case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_try") 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_search_dlopen=$ac_res
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726
12727 fi
12728
12729 rm -f core conftest.err conftest.$ac_objext \
12730       conftest$ac_exeext
12731   if test "${ac_cv_search_dlopen+set}" = set; then
12732   break
12733 fi
12734 done
12735 if test "${ac_cv_search_dlopen+set}" = set; then
12736   :
12737 else
12738   ac_cv_search_dlopen=no
12739 fi
12740 rm conftest.$ac_ext
12741 LIBS=$ac_func_search_save_LIBS
12742 fi
12743 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12744 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12745 ac_res=$ac_cv_search_dlopen
12746 if test "$ac_res" != no; then
12747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12748
12749 cat >>confdefs.h <<\_ACEOF
12750 #define HAVE_DLOPEN 1
12751 _ACEOF
12752
12753 else
12754   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12755 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12756 fi
12757
12758
12759 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12760 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12761 if test "${ac_cv_search_clock_gettime+set}" = set; then
12762   echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764   ac_func_search_save_LIBS=$LIBS
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771
12772 /* Override any GCC internal prototype to avoid an error.
12773    Use char because int might match the return type of a GCC
12774    builtin and then its argument prototype would still apply.  */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char clock_gettime ();
12779 int
12780 main ()
12781 {
12782 return clock_gettime ();
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 for ac_lib in '' rt; do
12788   if test -z "$ac_lib"; then
12789     ac_res="none required"
12790   else
12791     ac_res=-l$ac_lib
12792     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12793   fi
12794   rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (ac_try="$ac_link"
12796 case "(($ac_try" in
12797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798   *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801   (eval "$ac_link") 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809   { (case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_try") 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; } &&
12818          { ac_try='test -s conftest$ac_exeext'
12819   { (case "(($ac_try" in
12820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821   *) ac_try_echo=$ac_try;;
12822 esac
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824   (eval "$ac_try") 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   ac_cv_search_clock_gettime=$ac_res
12829 else
12830   echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12832
12833
12834 fi
12835
12836 rm -f core conftest.err conftest.$ac_objext \
12837       conftest$ac_exeext
12838   if test "${ac_cv_search_clock_gettime+set}" = set; then
12839   break
12840 fi
12841 done
12842 if test "${ac_cv_search_clock_gettime+set}" = set; then
12843   :
12844 else
12845   ac_cv_search_clock_gettime=no
12846 fi
12847 rm conftest.$ac_ext
12848 LIBS=$ac_func_search_save_LIBS
12849 fi
12850 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12851 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12852 ac_res=$ac_cv_search_clock_gettime
12853 if test "$ac_res" != no; then
12854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12855
12856 fi
12857
12858
12859 if test "$llvm_cv_enable_libffi" = "yes" ; then
12860   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12861 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12862 if test "${ac_cv_search_ffi_call+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   ac_func_search_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h.  */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h.  */
12872
12873 /* Override any GCC internal prototype to avoid an error.
12874    Use char because int might match the return type of a GCC
12875    builtin and then its argument prototype would still apply.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 char ffi_call ();
12880 int
12881 main ()
12882 {
12883 return ffi_call ();
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 for ac_lib in '' ffi; do
12889   if test -z "$ac_lib"; then
12890     ac_res="none required"
12891   else
12892     ac_res=-l$ac_lib
12893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12894   fi
12895   rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_link") 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } &&
12909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910   { (case "(($ac_try" in
12911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912   *) ac_try_echo=$ac_try;;
12913 esac
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915   (eval "$ac_try") 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; } &&
12919          { ac_try='test -s conftest$ac_exeext'
12920   { (case "(($ac_try" in
12921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922   *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925   (eval "$ac_try") 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); }; }; then
12929   ac_cv_search_ffi_call=$ac_res
12930 else
12931   echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934
12935 fi
12936
12937 rm -f core conftest.err conftest.$ac_objext \
12938       conftest$ac_exeext
12939   if test "${ac_cv_search_ffi_call+set}" = set; then
12940   break
12941 fi
12942 done
12943 if test "${ac_cv_search_ffi_call+set}" = set; then
12944   :
12945 else
12946   ac_cv_search_ffi_call=no
12947 fi
12948 rm conftest.$ac_ext
12949 LIBS=$ac_func_search_save_LIBS
12950 fi
12951 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12952 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12953 ac_res=$ac_cv_search_ffi_call
12954 if test "$ac_res" != no; then
12955   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12956
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_FFI_CALL 1
12959 _ACEOF
12960
12961 else
12962   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12963 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12964    { (exit 1); exit 1; }; }
12965 fi
12966
12967 fi
12968
12969 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12970 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12971 if test "${ac_cv_search_mallinfo+set}" = set; then
12972   echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974   ac_func_search_save_LIBS=$LIBS
12975 cat >conftest.$ac_ext <<_ACEOF
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981
12982 /* Override any GCC internal prototype to avoid an error.
12983    Use char because int might match the return type of a GCC
12984    builtin and then its argument prototype would still apply.  */
12985 #ifdef __cplusplus
12986 extern "C"
12987 #endif
12988 char mallinfo ();
12989 int
12990 main ()
12991 {
12992 return mallinfo ();
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 for ac_lib in '' malloc; do
12998   if test -z "$ac_lib"; then
12999     ac_res="none required"
13000   else
13001     ac_res=-l$ac_lib
13002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13003   fi
13004   rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (ac_try="$ac_link"
13006 case "(($ac_try" in
13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008   *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011   (eval "$ac_link") 2>conftest.er1
13012   ac_status=$?
13013   grep -v '^ *+' conftest.er1 >conftest.err
13014   rm -f conftest.er1
13015   cat conftest.err >&5
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } &&
13018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019   { (case "(($ac_try" in
13020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021   *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024   (eval "$ac_try") 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; } &&
13028          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; }; then
13038   ac_cv_search_mallinfo=$ac_res
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043
13044 fi
13045
13046 rm -f core conftest.err conftest.$ac_objext \
13047       conftest$ac_exeext
13048   if test "${ac_cv_search_mallinfo+set}" = set; then
13049   break
13050 fi
13051 done
13052 if test "${ac_cv_search_mallinfo+set}" = set; then
13053   :
13054 else
13055   ac_cv_search_mallinfo=no
13056 fi
13057 rm conftest.$ac_ext
13058 LIBS=$ac_func_search_save_LIBS
13059 fi
13060 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13061 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13062 ac_res=$ac_cv_search_mallinfo
13063 if test "$ac_res" != no; then
13064   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13065
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_MALLINFO 1
13068 _ACEOF
13069
13070 fi
13071
13072
13073 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13074
13075 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13076 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-lpthread  $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h.  */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h.  */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char pthread_mutex_init ();
13096 int
13097 main ()
13098 {
13099 return pthread_mutex_init ();
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108   *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111   (eval "$ac_link") 2>conftest.er1
13112   ac_status=$?
13113   grep -v '^ *+' conftest.er1 >conftest.err
13114   rm -f conftest.er1
13115   cat conftest.err >&5
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); } &&
13118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119   { (case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_try") 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; } &&
13128          { ac_try='test -s conftest$ac_exeext'
13129   { (case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_try") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_cv_lib_pthread_pthread_mutex_init=yes
13139 else
13140   echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13142
13143         ac_cv_lib_pthread_pthread_mutex_init=no
13144 fi
13145
13146 rm -f core conftest.err conftest.$ac_objext \
13147       conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13149 fi
13150 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13151 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13152 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13153   cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBPTHREAD 1
13155 _ACEOF
13156
13157   LIBS="-lpthread $LIBS"
13158
13159 fi
13160
13161   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13162 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13163 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   ac_func_search_save_LIBS=$LIBS
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173
13174 /* Override any GCC internal prototype to avoid an error.
13175    Use char because int might match the return type of a GCC
13176    builtin and then its argument prototype would still apply.  */
13177 #ifdef __cplusplus
13178 extern "C"
13179 #endif
13180 char pthread_mutex_lock ();
13181 int
13182 main ()
13183 {
13184 return pthread_mutex_lock ();
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 for ac_lib in '' pthread; do
13190   if test -z "$ac_lib"; then
13191     ac_res="none required"
13192   else
13193     ac_res=-l$ac_lib
13194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13195   fi
13196   rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_link") 2>conftest.er1
13204   ac_status=$?
13205   grep -v '^ *+' conftest.er1 >conftest.err
13206   rm -f conftest.er1
13207   cat conftest.err >&5
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); } &&
13210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211   { (case "(($ac_try" in
13212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213   *) ac_try_echo=$ac_try;;
13214 esac
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216   (eval "$ac_try") 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; } &&
13220          { ac_try='test -s conftest$ac_exeext'
13221   { (case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_try") 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); }; }; then
13230   ac_cv_search_pthread_mutex_lock=$ac_res
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235
13236 fi
13237
13238 rm -f core conftest.err conftest.$ac_objext \
13239       conftest$ac_exeext
13240   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13241   break
13242 fi
13243 done
13244 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13245   :
13246 else
13247   ac_cv_search_pthread_mutex_lock=no
13248 fi
13249 rm conftest.$ac_ext
13250 LIBS=$ac_func_search_save_LIBS
13251 fi
13252 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13253 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13254 ac_res=$ac_cv_search_pthread_mutex_lock
13255 if test "$ac_res" != no; then
13256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_PTHREAD_MUTEX_LOCK 1
13260 _ACEOF
13261
13262 fi
13263
13264   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13265 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13266 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269   ac_func_search_save_LIBS=$LIBS
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276
13277 /* Override any GCC internal prototype to avoid an error.
13278    Use char because int might match the return type of a GCC
13279    builtin and then its argument prototype would still apply.  */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char pthread_rwlock_init ();
13284 int
13285 main ()
13286 {
13287 return pthread_rwlock_init ();
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 for ac_lib in '' pthread; do
13293   if test -z "$ac_lib"; then
13294     ac_res="none required"
13295   else
13296     ac_res=-l$ac_lib
13297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13298   fi
13299   rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (ac_try="$ac_link"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_link") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } &&
13313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; } &&
13323          { ac_try='test -s conftest$ac_exeext'
13324   { (case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_try") 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   ac_cv_search_pthread_rwlock_init=$ac_res
13334 else
13335   echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338
13339 fi
13340
13341 rm -f core conftest.err conftest.$ac_objext \
13342       conftest$ac_exeext
13343   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13344   break
13345 fi
13346 done
13347 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13348   :
13349 else
13350   ac_cv_search_pthread_rwlock_init=no
13351 fi
13352 rm conftest.$ac_ext
13353 LIBS=$ac_func_search_save_LIBS
13354 fi
13355 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13356 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13357 ac_res=$ac_cv_search_pthread_rwlock_init
13358 if test "$ac_res" != no; then
13359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13360
13361 cat >>confdefs.h <<\_ACEOF
13362 #define HAVE_PTHREAD_RWLOCK_INIT 1
13363 _ACEOF
13364
13365 fi
13366
13367   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13368 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13369 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13370   echo $ECHO_N "(cached) $ECHO_C" >&6
13371 else
13372   ac_func_search_save_LIBS=$LIBS
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379
13380 /* Override any GCC internal prototype to avoid an error.
13381    Use char because int might match the return type of a GCC
13382    builtin and then its argument prototype would still apply.  */
13383 #ifdef __cplusplus
13384 extern "C"
13385 #endif
13386 char pthread_getspecific ();
13387 int
13388 main ()
13389 {
13390 return pthread_getspecific ();
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 for ac_lib in '' pthread; do
13396   if test -z "$ac_lib"; then
13397     ac_res="none required"
13398   else
13399     ac_res=-l$ac_lib
13400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13401   fi
13402   rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_link") 2>conftest.er1
13410   ac_status=$?
13411   grep -v '^ *+' conftest.er1 >conftest.err
13412   rm -f conftest.er1
13413   cat conftest.err >&5
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } &&
13416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417   { (case "(($ac_try" in
13418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419   *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422   (eval "$ac_try") 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; } &&
13426          { ac_try='test -s conftest$ac_exeext'
13427   { (case "(($ac_try" in
13428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429   *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432   (eval "$ac_try") 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; }; then
13436   ac_cv_search_pthread_getspecific=$ac_res
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441
13442 fi
13443
13444 rm -f core conftest.err conftest.$ac_objext \
13445       conftest$ac_exeext
13446   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13447   break
13448 fi
13449 done
13450 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13451   :
13452 else
13453   ac_cv_search_pthread_getspecific=no
13454 fi
13455 rm conftest.$ac_ext
13456 LIBS=$ac_func_search_save_LIBS
13457 fi
13458 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13459 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13460 ac_res=$ac_cv_search_pthread_getspecific
13461 if test "$ac_res" != no; then
13462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13463
13464 cat >>confdefs.h <<\_ACEOF
13465 #define HAVE_PTHREAD_GETSPECIFIC 1
13466 _ACEOF
13467
13468 fi
13469
13470 fi
13471
13472 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13473
13474 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13475 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13476 if test "${ac_cv_lib_z_compress2+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   ac_check_lib_save_LIBS=$LIBS
13480 LIBS="-lz  $LIBS"
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 /* Override any GCC internal prototype to avoid an error.
13489    Use char because int might match the return type of a GCC
13490    builtin and then its argument prototype would still apply.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 char compress2 ();
13495 int
13496 main ()
13497 {
13498 return compress2 ();
13499   ;
13500   return 0;
13501 }
13502 _ACEOF
13503 rm -f conftest.$ac_objext conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510   (eval "$ac_link") 2>conftest.er1
13511   ac_status=$?
13512   grep -v '^ *+' conftest.er1 >conftest.err
13513   rm -f conftest.er1
13514   cat conftest.err >&5
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518   { (case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_try") 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; } &&
13527          { ac_try='test -s conftest$ac_exeext'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; }; then
13537   ac_cv_lib_z_compress2=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542         ac_cv_lib_z_compress2=no
13543 fi
13544
13545 rm -f core conftest.err conftest.$ac_objext \
13546       conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13548 fi
13549 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13550 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13551 if test $ac_cv_lib_z_compress2 = yes; then
13552   cat >>confdefs.h <<_ACEOF
13553 #define HAVE_LIBZ 1
13554 _ACEOF
13555
13556   LIBS="-lz $LIBS"
13557
13558 fi
13559
13560 fi
13561
13562
13563 # Check whether --with-udis86 was given.
13564 if test "${with_udis86+set}" = set; then
13565   withval=$with_udis86;
13566       USE_UDIS86=1
13567
13568       case "$withval" in
13569         /usr/lib|yes) ;;
13570         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13571       esac
13572
13573 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13574 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13575 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13576   echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578   ac_check_lib_save_LIBS=$LIBS
13579 LIBS="-ludis86  $LIBS"
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586
13587 /* Override any GCC internal prototype to avoid an error.
13588    Use char because int might match the return type of a GCC
13589    builtin and then its argument prototype would still apply.  */
13590 #ifdef __cplusplus
13591 extern "C"
13592 #endif
13593 char ud_init ();
13594 int
13595 main ()
13596 {
13597 return ud_init ();
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (ac_try="$ac_link"
13604 case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_link") 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617   { (case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_try") 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest$ac_exeext'
13627   { (case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632   (eval "$ac_try") 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_lib_udis86_ud_init=yes
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641         ac_cv_lib_udis86_ud_init=no
13642 fi
13643
13644 rm -f core conftest.err conftest.$ac_objext \
13645       conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13647 fi
13648 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13649 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13650 if test $ac_cv_lib_udis86_ud_init = yes; then
13651   cat >>confdefs.h <<_ACEOF
13652 #define HAVE_LIBUDIS86 1
13653 _ACEOF
13654
13655   LIBS="-ludis86 $LIBS"
13656
13657 else
13658
13659         echo "Error! You need to have libudis86 around."
13660         exit -1
13661
13662 fi
13663
13664
13665 else
13666   USE_UDIS86=0
13667
13668 fi
13669
13670
13671 cat >>confdefs.h <<_ACEOF
13672 #define USE_UDIS86 $USE_UDIS86
13673 _ACEOF
13674
13675
13676
13677 # Check whether --with-oprofile was given.
13678 if test "${with_oprofile+set}" = set; then
13679   withval=$with_oprofile;
13680       USE_OPROFILE=1
13681
13682       case "$withval" in
13683         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13684         no) llvm_cv_oppath=
13685             USE_OPROFILE=0
13686  ;;
13687         *) llvm_cv_oppath="${withval}/lib/oprofile"
13688            CPPFLAGS="-I${withval}/include";;
13689       esac
13690       case $llvm_cv_os_type in
13691         Linux)
13692           if test -n "$llvm_cv_oppath" ; then
13693             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13694                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13695 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13696 if test "${ac_cv_search_bfd_init+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_func_search_save_LIBS=$LIBS
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706
13707 /* Override any GCC internal prototype to avoid an error.
13708    Use char because int might match the return type of a GCC
13709    builtin and then its argument prototype would still apply.  */
13710 #ifdef __cplusplus
13711 extern "C"
13712 #endif
13713 char bfd_init ();
13714 int
13715 main ()
13716 {
13717 return bfd_init ();
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 for ac_lib in '' bfd; do
13723   if test -z "$ac_lib"; then
13724     ac_res="none required"
13725   else
13726     ac_res=-l$ac_lib
13727     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13728   fi
13729   rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_link") 2>conftest.er1
13737   ac_status=$?
13738   grep -v '^ *+' conftest.er1 >conftest.err
13739   rm -f conftest.er1
13740   cat conftest.err >&5
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); } &&
13743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; } &&
13753          { ac_try='test -s conftest$ac_exeext'
13754   { (case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_try") 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_search_bfd_init=$ac_res
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768
13769 fi
13770
13771 rm -f core conftest.err conftest.$ac_objext \
13772       conftest$ac_exeext
13773   if test "${ac_cv_search_bfd_init+set}" = set; then
13774   break
13775 fi
13776 done
13777 if test "${ac_cv_search_bfd_init+set}" = set; then
13778   :
13779 else
13780   ac_cv_search_bfd_init=no
13781 fi
13782 rm conftest.$ac_ext
13783 LIBS=$ac_func_search_save_LIBS
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13786 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13787 ac_res=$ac_cv_search_bfd_init
13788 if test "$ac_res" != no; then
13789   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790
13791 fi
13792
13793             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13794 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13795 if test "${ac_cv_search_op_open_agent+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   ac_func_search_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805
13806 /* Override any GCC internal prototype to avoid an error.
13807    Use char because int might match the return type of a GCC
13808    builtin and then its argument prototype would still apply.  */
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 char op_open_agent ();
13813 int
13814 main ()
13815 {
13816 return op_open_agent ();
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 for ac_lib in '' opagent; do
13822   if test -z "$ac_lib"; then
13823     ac_res="none required"
13824   else
13825     ac_res=-l$ac_lib
13826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13827   fi
13828   rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_link") 2>conftest.er1
13836   ac_status=$?
13837   grep -v '^ *+' conftest.er1 >conftest.err
13838   rm -f conftest.er1
13839   cat conftest.err >&5
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843   { (case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_try") 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; } &&
13852          { ac_try='test -s conftest$ac_exeext'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; }; then
13862   ac_cv_search_op_open_agent=$ac_res
13863 else
13864   echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867
13868 fi
13869
13870 rm -f core conftest.err conftest.$ac_objext \
13871       conftest$ac_exeext
13872   if test "${ac_cv_search_op_open_agent+set}" = set; then
13873   break
13874 fi
13875 done
13876 if test "${ac_cv_search_op_open_agent+set}" = set; then
13877   :
13878 else
13879   ac_cv_search_op_open_agent=no
13880 fi
13881 rm conftest.$ac_ext
13882 LIBS=$ac_func_search_save_LIBS
13883 fi
13884 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13885 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13886 ac_res=$ac_cv_search_op_open_agent
13887 if test "$ac_res" != no; then
13888   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13889
13890 else
13891
13892               echo "Error! You need to have libopagent around."
13893               exit -1
13894
13895 fi
13896
13897             if test "${ac_cv_header_opagent_h+set}" = set; then
13898   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13899 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13900 if test "${ac_cv_header_opagent_h+set}" = set; then
13901   echo $ECHO_N "(cached) $ECHO_C" >&6
13902 fi
13903 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13904 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13905 else
13906   # Is the header compilable?
13907 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13908 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915 $ac_includes_default
13916 #include <opagent.h>
13917 _ACEOF
13918 rm -f conftest.$ac_objext
13919 if { (ac_try="$ac_compile"
13920 case "(($ac_try" in
13921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922   *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925   (eval "$ac_compile") 2>conftest.er1
13926   ac_status=$?
13927   grep -v '^ *+' conftest.er1 >conftest.err
13928   rm -f conftest.er1
13929   cat conftest.err >&5
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); } &&
13932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13933   { (case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_try") 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; } &&
13942          { ac_try='test -s conftest.$ac_objext'
13943   { (case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_try") 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_header_compiler=yes
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957         ac_header_compiler=no
13958 fi
13959
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6; }
13963
13964 # Is the header present?
13965 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13966 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #include <opagent.h>
13974 _ACEOF
13975 if { (ac_try="$ac_cpp conftest.$ac_ext"
13976 case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13982   ac_status=$?
13983   grep -v '^ *+' conftest.er1 >conftest.err
13984   rm -f conftest.er1
13985   cat conftest.err >&5
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); } >/dev/null; then
13988   if test -s conftest.err; then
13989     ac_cpp_err=$ac_c_preproc_warn_flag
13990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13991   else
13992     ac_cpp_err=
13993   fi
13994 else
13995   ac_cpp_err=yes
13996 fi
13997 if test -z "$ac_cpp_err"; then
13998   ac_header_preproc=yes
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003   ac_header_preproc=no
14004 fi
14005
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14009
14010 # So?  What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14012   yes:no: )
14013     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14017     ac_header_preproc=yes
14018     ;;
14019   no:yes:* )
14020     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14032     ( cat <<\_ASBOX
14033 ## ------------------------------------ ##
14034 ## Report this to http://llvm.org/bugs/ ##
14035 ## ------------------------------------ ##
14036 _ASBOX
14037      ) | sed "s/^/$as_me: WARNING:     /" >&2
14038     ;;
14039 esac
14040 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14041 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_opagent_h+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   ac_cv_header_opagent_h=$ac_header_preproc
14046 fi
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14049
14050 fi
14051 if test $ac_cv_header_opagent_h = yes; then
14052   :
14053 else
14054
14055               echo "Error! You need to have opagent.h around."
14056               exit -1
14057
14058 fi
14059
14060
14061           fi ;;
14062         *)
14063           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14064 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14065    { (exit 1); exit 1; }; } ;;
14066       esac
14067
14068 else
14069
14070       USE_OPROFILE=0
14071
14072
14073 fi
14074
14075
14076 cat >>confdefs.h <<_ACEOF
14077 #define LLVM_USE_OPROFILE $USE_OPROFILE
14078 _ACEOF
14079
14080
14081
14082 # Check whether --with-intel-jitevents was given.
14083 if test "${with_intel_jitevents+set}" = set; then
14084   withval=$with_intel_jitevents;
14085        case "$withval" in
14086           yes) USE_INTEL_JITEVENTS=1
14087 ;;
14088           no)  USE_INTEL_JITEVENTS=0
14089 ;;
14090           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14091 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14092    { (exit 1); exit 1; }; };;
14093        esac
14094
14095       case $llvm_cv_os_type in
14096         Linux|Win32|Cygwin|MingW) ;;
14097         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14098 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14099    { (exit 1); exit 1; }; };;
14100       esac
14101
14102       case "$llvm_cv_target_arch" in
14103         x86|x86_64) ;;
14104         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14105 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14106    { (exit 1); exit 1; }; };;
14107       esac
14108
14109 else
14110
14111       USE_INTEL_JITEVENTS=0
14112
14113
14114 fi
14115
14116
14117 cat >>confdefs.h <<_ACEOF
14118 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14119 _ACEOF
14120
14121
14122 for ac_prog in xml2-config
14123 do
14124   # Extract the first word of "$ac_prog", so it can be a program name with args.
14125 set dummy $ac_prog; ac_word=$2
14126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14128 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   if test -n "$XML2CONFIG"; then
14132   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14133 else
14134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14136 do
14137   IFS=$as_save_IFS
14138   test -z "$as_dir" && as_dir=.
14139   for ac_exec_ext in '' $ac_executable_extensions; do
14140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14141     ac_cv_prog_XML2CONFIG="$ac_prog"
14142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14143     break 2
14144   fi
14145 done
14146 done
14147 IFS=$as_save_IFS
14148
14149 fi
14150 fi
14151 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14152 if test -n "$XML2CONFIG"; then
14153   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14154 echo "${ECHO_T}$XML2CONFIG" >&6; }
14155 else
14156   { echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6; }
14158 fi
14159
14160
14161   test -n "$XML2CONFIG" && break
14162 done
14163
14164
14165 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14166 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14167 if test "x$XML2CONFIG" = "x"; then
14168  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14169 echo "${ECHO_T}xml2-config not found" >&6; }
14170 else
14171  LIBXML2_INC=`$XML2CONFIG --cflags`
14172  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14173 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14174  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14175 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14176 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14177   echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179   ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lxml2  $LIBS"
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h.  */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h.  */
14187
14188 /* Override any GCC internal prototype to avoid an error.
14189    Use char because int might match the return type of a GCC
14190    builtin and then its argument prototype would still apply.  */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 char xmlReadFile ();
14195 int
14196 main ()
14197 {
14198 return xmlReadFile ();
14199   ;
14200   return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210   (eval "$ac_link") 2>conftest.er1
14211   ac_status=$?
14212   grep -v '^ *+' conftest.er1 >conftest.err
14213   rm -f conftest.er1
14214   cat conftest.err >&5
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; } &&
14227          { ac_try='test -s conftest$ac_exeext'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_lib_xml2_xmlReadFile=yes
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242         ac_cv_lib_xml2_xmlReadFile=no
14243 fi
14244
14245 rm -f core conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14248 fi
14249 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14250 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14251 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14252
14253 cat >>confdefs.h <<\_ACEOF
14254 #define CLANG_HAVE_LIBXML 1
14255 _ACEOF
14256
14257                                 LIBXML2_LIBS="-lxml2"
14258 fi
14259
14260 fi
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270 ac_header_dirent=no
14271 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14272   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14273 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14274 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278   cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 #include <sys/types.h>
14285 #include <$ac_hdr>
14286
14287 int
14288 main ()
14289 {
14290 if ((DIR *) 0)
14291 return 0;
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_compile") 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311   { (case "(($ac_try" in
14312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313   *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316   (eval "$ac_try") 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   eval "$as_ac_Header=yes"
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335         eval "$as_ac_Header=no"
14336 fi
14337
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 fi
14340 ac_res=`eval echo '${'$as_ac_Header'}'`
14341                { echo "$as_me:$LINENO: result: $ac_res" >&5
14342 echo "${ECHO_T}$ac_res" >&6; }
14343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14344   cat >>confdefs.h <<_ACEOF
14345 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14346 _ACEOF
14347
14348 ac_header_dirent=$ac_hdr; break
14349 fi
14350
14351 done
14352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14353 if test $ac_header_dirent = dirent.h; then
14354   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14356 if test "${ac_cv_search_opendir+set}" = set; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   ac_func_search_save_LIBS=$LIBS
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366
14367 /* Override any GCC internal prototype to avoid an error.
14368    Use char because int might match the return type of a GCC
14369    builtin and then its argument prototype would still apply.  */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 char opendir ();
14374 int
14375 main ()
14376 {
14377 return opendir ();
14378   ;
14379   return 0;
14380 }
14381 _ACEOF
14382 for ac_lib in '' dir; do
14383   if test -z "$ac_lib"; then
14384     ac_res="none required"
14385   else
14386     ac_res=-l$ac_lib
14387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14388   fi
14389   rm -f conftest.$ac_objext conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393   *) ac_try_echo=$ac_try;;
14394 esac
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396   (eval "$ac_link") 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; } &&
14413          { ac_try='test -s conftest$ac_exeext'
14414   { (case "(($ac_try" in
14415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416   *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419   (eval "$ac_try") 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); }; }; then
14423   ac_cv_search_opendir=$ac_res
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext \
14432       conftest$ac_exeext
14433   if test "${ac_cv_search_opendir+set}" = set; then
14434   break
14435 fi
14436 done
14437 if test "${ac_cv_search_opendir+set}" = set; then
14438   :
14439 else
14440   ac_cv_search_opendir=no
14441 fi
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14444 fi
14445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14447 ac_res=$ac_cv_search_opendir
14448 if test "$ac_res" != no; then
14449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14450
14451 fi
14452
14453 else
14454   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14455 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14456 if test "${ac_cv_search_opendir+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   ac_func_search_save_LIBS=$LIBS
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466
14467 /* Override any GCC internal prototype to avoid an error.
14468    Use char because int might match the return type of a GCC
14469    builtin and then its argument prototype would still apply.  */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char opendir ();
14474 int
14475 main ()
14476 {
14477 return opendir ();
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 for ac_lib in '' x; do
14483   if test -z "$ac_lib"; then
14484     ac_res="none required"
14485   else
14486     ac_res=-l$ac_lib
14487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14488   fi
14489   rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (ac_try="$ac_link"
14491 case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_link") 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14504   { (case "(($ac_try" in
14505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506   *) ac_try_echo=$ac_try;;
14507 esac
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509   (eval "$ac_try") 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; } &&
14513          { ac_try='test -s conftest$ac_exeext'
14514   { (case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_try") 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   ac_cv_search_opendir=$ac_res
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528
14529 fi
14530
14531 rm -f core conftest.err conftest.$ac_objext \
14532       conftest$ac_exeext
14533   if test "${ac_cv_search_opendir+set}" = set; then
14534   break
14535 fi
14536 done
14537 if test "${ac_cv_search_opendir+set}" = set; then
14538   :
14539 else
14540   ac_cv_search_opendir=no
14541 fi
14542 rm conftest.$ac_ext
14543 LIBS=$ac_func_search_save_LIBS
14544 fi
14545 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14546 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14547 ac_res=$ac_cv_search_opendir
14548 if test "$ac_res" != no; then
14549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14550
14551 fi
14552
14553 fi
14554
14555 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14556 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14557 if test "${ac_cv_header_mmap_anon+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560    ac_ext=c
14561 ac_cpp='$CPP $CPPFLAGS'
14562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14565
14566   cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572 #include <sys/mman.h>
14573 #include <unistd.h>
14574 #include <fcntl.h>
14575 int
14576 main ()
14577 {
14578 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (ac_try="$ac_compile"
14585 case "(($ac_try" in
14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587   *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_compile") 2>conftest.er1
14591   ac_status=$?
14592   grep -v '^ *+' conftest.er1 >conftest.err
14593   rm -f conftest.er1
14594   cat conftest.err >&5
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); } &&
14597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14598   { (case "(($ac_try" in
14599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600   *) ac_try_echo=$ac_try;;
14601 esac
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603   (eval "$ac_try") 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; } &&
14607          { ac_try='test -s conftest.$ac_objext'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; }; then
14617   ac_cv_header_mmap_anon=yes
14618 else
14619   echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622         ac_cv_header_mmap_anon=no
14623 fi
14624
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626   ac_ext=c
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14631
14632
14633 fi
14634 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14635 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14636 if test "$ac_cv_header_mmap_anon" = yes; then
14637
14638 cat >>confdefs.h <<\_ACEOF
14639 #define HAVE_MMAP_ANONYMOUS 1
14640 _ACEOF
14641
14642 fi
14643
14644 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14645 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_stat_broken+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649   cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 #include <sys/types.h>
14656 #include <sys/stat.h>
14657
14658 #if defined S_ISBLK && defined S_IFDIR
14659 # if S_ISBLK (S_IFDIR)
14660 You lose.
14661 # endif
14662 #endif
14663
14664 #if defined S_ISBLK && defined S_IFCHR
14665 # if S_ISBLK (S_IFCHR)
14666 You lose.
14667 # endif
14668 #endif
14669
14670 #if defined S_ISLNK && defined S_IFREG
14671 # if S_ISLNK (S_IFREG)
14672 You lose.
14673 # endif
14674 #endif
14675
14676 #if defined S_ISSOCK && defined S_IFREG
14677 # if S_ISSOCK (S_IFREG)
14678 You lose.
14679 # endif
14680 #endif
14681
14682 _ACEOF
14683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14684   $EGREP "You lose" >/dev/null 2>&1; then
14685   ac_cv_header_stat_broken=yes
14686 else
14687   ac_cv_header_stat_broken=no
14688 fi
14689 rm -f conftest*
14690
14691 fi
14692 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14693 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14694 if test $ac_cv_header_stat_broken = yes; then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define STAT_MACROS_BROKEN 1
14698 _ACEOF
14699
14700 fi
14701
14702 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14703 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14704 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 #include <sys/types.h>
14714 #include <sys/wait.h>
14715 #ifndef WEXITSTATUS
14716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14717 #endif
14718 #ifndef WIFEXITED
14719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14720 #endif
14721
14722 int
14723 main ()
14724 {
14725   int s;
14726   wait (&s);
14727   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14728   ;
14729   return 0;
14730 }
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
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_compile") 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); } &&
14746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747   { (case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_try") 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762   (eval "$ac_try") 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; }; then
14766   ac_cv_header_sys_wait_h=yes
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771         ac_cv_header_sys_wait_h=no
14772 fi
14773
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 fi
14776 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14777 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14778 if test $ac_cv_header_sys_wait_h = yes; then
14779
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_SYS_WAIT_H 1
14782 _ACEOF
14783
14784 fi
14785
14786 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14787 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14788 if test "${ac_cv_header_time+set}" = set; then
14789   echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791   cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 #include <sys/types.h>
14798 #include <sys/time.h>
14799 #include <time.h>
14800
14801 int
14802 main ()
14803 {
14804 if ((struct tm *) 0)
14805 return 0;
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (ac_try="$ac_compile"
14812 case "(($ac_try" in
14813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814   *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817   (eval "$ac_compile") 2>conftest.er1
14818   ac_status=$?
14819   grep -v '^ *+' conftest.er1 >conftest.err
14820   rm -f conftest.er1
14821   cat conftest.err >&5
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } &&
14824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14825   { (case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_try") 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; } &&
14834          { ac_try='test -s conftest.$ac_objext'
14835   { (case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840   (eval "$ac_try") 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_cv_header_time=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849         ac_cv_header_time=no
14850 fi
14851
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 fi
14854 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14855 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14856 if test $ac_cv_header_time = yes; then
14857
14858 cat >>confdefs.h <<\_ACEOF
14859 #define TIME_WITH_SYS_TIME 1
14860 _ACEOF
14861
14862 fi
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872 for ac_header in cxxabi.h dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14873 do
14874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14876   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 fi
14881 ac_res=`eval echo '${'$as_ac_Header'}'`
14882                { echo "$as_me:$LINENO: result: $ac_res" >&5
14883 echo "${ECHO_T}$ac_res" >&6; }
14884 else
14885   # Is the header compilable?
14886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894 $ac_includes_default
14895 #include <$ac_header>
14896 _ACEOF
14897 rm -f conftest.$ac_objext
14898 if { (ac_try="$ac_compile"
14899 case "(($ac_try" in
14900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901   *) ac_try_echo=$ac_try;;
14902 esac
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904   (eval "$ac_compile") 2>conftest.er1
14905   ac_status=$?
14906   grep -v '^ *+' conftest.er1 >conftest.err
14907   rm -f conftest.er1
14908   cat conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } &&
14911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14912   { (case "(($ac_try" in
14913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914   *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917   (eval "$ac_try") 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; } &&
14921          { ac_try='test -s conftest.$ac_objext'
14922   { (case "(($ac_try" in
14923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924   *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927   (eval "$ac_try") 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; }; then
14931   ac_header_compiler=yes
14932 else
14933   echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14935
14936         ac_header_compiler=no
14937 fi
14938
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6; }
14942
14943 # Is the header present?
14944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952 #include <$ac_header>
14953 _ACEOF
14954 if { (ac_try="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961   ac_status=$?
14962   grep -v '^ *+' conftest.er1 >conftest.err
14963   rm -f conftest.er1
14964   cat conftest.err >&5
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } >/dev/null; then
14967   if test -s conftest.err; then
14968     ac_cpp_err=$ac_c_preproc_warn_flag
14969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14970   else
14971     ac_cpp_err=
14972   fi
14973 else
14974   ac_cpp_err=yes
14975 fi
14976 if test -z "$ac_cpp_err"; then
14977   ac_header_preproc=yes
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982   ac_header_preproc=no
14983 fi
14984
14985 rm -f conftest.err conftest.$ac_ext
14986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6; }
14988
14989 # So?  What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991   yes:no: )
14992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14996     ac_header_preproc=yes
14997     ;;
14998   no:yes:* )
14999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15011     ( cat <<\_ASBOX
15012 ## ------------------------------------ ##
15013 ## Report this to http://llvm.org/bugs/ ##
15014 ## ------------------------------------ ##
15015 _ASBOX
15016      ) | sed "s/^/$as_me: WARNING:     /" >&2
15017     ;;
15018 esac
15019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   eval "$as_ac_Header=\$ac_header_preproc"
15025 fi
15026 ac_res=`eval echo '${'$as_ac_Header'}'`
15027                { echo "$as_me:$LINENO: result: $ac_res" >&5
15028 echo "${ECHO_T}$ac_res" >&6; }
15029
15030 fi
15031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15032   cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15034 _ACEOF
15035
15036 fi
15037
15038 done
15039
15040
15041
15042
15043
15044
15045
15046 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15047 do
15048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 fi
15055 ac_res=`eval echo '${'$as_ac_Header'}'`
15056                { echo "$as_me:$LINENO: result: $ac_res" >&5
15057 echo "${ECHO_T}$ac_res" >&6; }
15058 else
15059   # Is the header compilable?
15060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 $ac_includes_default
15069 #include <$ac_header>
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_compile") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086   { (case "(($ac_try" in
15087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088   *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091   (eval "$ac_try") 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; } &&
15095          { ac_try='test -s conftest.$ac_objext'
15096   { (case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101   (eval "$ac_try") 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_header_compiler=yes
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110         ac_header_compiler=no
15111 fi
15112
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6; }
15116
15117 # Is the header present?
15118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15120 cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 #include <$ac_header>
15127 _ACEOF
15128 if { (ac_try="$ac_cpp conftest.$ac_ext"
15129 case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } >/dev/null; then
15141   if test -s conftest.err; then
15142     ac_cpp_err=$ac_c_preproc_warn_flag
15143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15144   else
15145     ac_cpp_err=
15146   fi
15147 else
15148   ac_cpp_err=yes
15149 fi
15150 if test -z "$ac_cpp_err"; then
15151   ac_header_preproc=yes
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156   ac_header_preproc=no
15157 fi
15158
15159 rm -f conftest.err conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161 echo "${ECHO_T}$ac_header_preproc" >&6; }
15162
15163 # So?  What about this header?
15164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15165   yes:no: )
15166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15170     ac_header_preproc=yes
15171     ;;
15172   no:yes:* )
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15185     ( cat <<\_ASBOX
15186 ## ------------------------------------ ##
15187 ## Report this to http://llvm.org/bugs/ ##
15188 ## ------------------------------------ ##
15189 _ASBOX
15190      ) | sed "s/^/$as_me: WARNING:     /" >&2
15191     ;;
15192 esac
15193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196   echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198   eval "$as_ac_Header=\$ac_header_preproc"
15199 fi
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201                { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15203
15204 fi
15205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15206   cat >>confdefs.h <<_ACEOF
15207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15208 _ACEOF
15209
15210 fi
15211
15212 done
15213
15214
15215
15216 for ac_header in utime.h windows.h
15217 do
15218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15223   echo $ECHO_N "(cached) $ECHO_C" >&6
15224 fi
15225 ac_res=`eval echo '${'$as_ac_Header'}'`
15226                { echo "$as_me:$LINENO: result: $ac_res" >&5
15227 echo "${ECHO_T}$ac_res" >&6; }
15228 else
15229   # Is the header compilable?
15230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15232 cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h.  */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h.  */
15238 $ac_includes_default
15239 #include <$ac_header>
15240 _ACEOF
15241 rm -f conftest.$ac_objext
15242 if { (ac_try="$ac_compile"
15243 case "(($ac_try" in
15244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245   *) ac_try_echo=$ac_try;;
15246 esac
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248   (eval "$ac_compile") 2>conftest.er1
15249   ac_status=$?
15250   grep -v '^ *+' conftest.er1 >conftest.err
15251   rm -f conftest.er1
15252   cat conftest.err >&5
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); } &&
15255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15262   ac_status=$?
15263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264   (exit $ac_status); }; } &&
15265          { ac_try='test -s conftest.$ac_objext'
15266   { (case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_try") 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; }; then
15275   ac_header_compiler=yes
15276 else
15277   echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15279
15280         ac_header_compiler=no
15281 fi
15282
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285 echo "${ECHO_T}$ac_header_compiler" >&6; }
15286
15287 # Is the header present?
15288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296 #include <$ac_header>
15297 _ACEOF
15298 if { (ac_try="$ac_cpp conftest.$ac_ext"
15299 case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } >/dev/null; then
15311   if test -s conftest.err; then
15312     ac_cpp_err=$ac_c_preproc_warn_flag
15313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15314   else
15315     ac_cpp_err=
15316   fi
15317 else
15318   ac_cpp_err=yes
15319 fi
15320 if test -z "$ac_cpp_err"; then
15321   ac_header_preproc=yes
15322 else
15323   echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15325
15326   ac_header_preproc=no
15327 fi
15328
15329 rm -f conftest.err conftest.$ac_ext
15330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15331 echo "${ECHO_T}$ac_header_preproc" >&6; }
15332
15333 # So?  What about this header?
15334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15335   yes:no: )
15336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15340     ac_header_preproc=yes
15341     ;;
15342   no:yes:* )
15343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355     ( cat <<\_ASBOX
15356 ## ------------------------------------ ##
15357 ## Report this to http://llvm.org/bugs/ ##
15358 ## ------------------------------------ ##
15359 _ASBOX
15360      ) | sed "s/^/$as_me: WARNING:     /" >&2
15361     ;;
15362 esac
15363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   eval "$as_ac_Header=\$ac_header_preproc"
15369 fi
15370 ac_res=`eval echo '${'$as_ac_Header'}'`
15371                { echo "$as_me:$LINENO: result: $ac_res" >&5
15372 echo "${ECHO_T}$ac_res" >&6; }
15373
15374 fi
15375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15376   cat >>confdefs.h <<_ACEOF
15377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15378 _ACEOF
15379
15380 fi
15381
15382 done
15383
15384
15385
15386
15387
15388
15389 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15390 do
15391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 fi
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399                { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15401 else
15402   # Is the header compilable?
15403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 $ac_includes_default
15412 #include <$ac_header>
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418   *) ac_try_echo=$ac_try;;
15419 esac
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421   (eval "$ac_compile") 2>conftest.er1
15422   ac_status=$?
15423   grep -v '^ *+' conftest.er1 >conftest.err
15424   rm -f conftest.er1
15425   cat conftest.err >&5
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); } &&
15428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; } &&
15438          { ac_try='test -s conftest.$ac_objext'
15439   { (case "(($ac_try" in
15440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441   *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444   (eval "$ac_try") 2>&5
15445   ac_status=$?
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448   ac_header_compiler=yes
15449 else
15450   echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452
15453         ac_header_compiler=no
15454 fi
15455
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15459
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 #include <$ac_header>
15470 _ACEOF
15471 if { (ac_try="$ac_cpp conftest.$ac_ext"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } >/dev/null; then
15484   if test -s conftest.err; then
15485     ac_cpp_err=$ac_c_preproc_warn_flag
15486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15487   else
15488     ac_cpp_err=
15489   fi
15490 else
15491   ac_cpp_err=yes
15492 fi
15493 if test -z "$ac_cpp_err"; then
15494   ac_header_preproc=yes
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499   ac_header_preproc=no
15500 fi
15501
15502 rm -f conftest.err conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15504 echo "${ECHO_T}$ac_header_preproc" >&6; }
15505
15506 # So?  What about this header?
15507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508   yes:no: )
15509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15513     ac_header_preproc=yes
15514     ;;
15515   no:yes:* )
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15528     ( cat <<\_ASBOX
15529 ## ------------------------------------ ##
15530 ## Report this to http://llvm.org/bugs/ ##
15531 ## ------------------------------------ ##
15532 _ASBOX
15533      ) | sed "s/^/$as_me: WARNING:     /" >&2
15534     ;;
15535 esac
15536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   eval "$as_ac_Header=\$ac_header_preproc"
15542 fi
15543 ac_res=`eval echo '${'$as_ac_Header'}'`
15544                { echo "$as_me:$LINENO: result: $ac_res" >&5
15545 echo "${ECHO_T}$ac_res" >&6; }
15546
15547 fi
15548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15549   cat >>confdefs.h <<_ACEOF
15550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551 _ACEOF
15552
15553 fi
15554
15555 done
15556
15557
15558
15559
15560
15561 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15562 do
15563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 fi
15570 ac_res=`eval echo '${'$as_ac_Header'}'`
15571                { echo "$as_me:$LINENO: result: $ac_res" >&5
15572 echo "${ECHO_T}$ac_res" >&6; }
15573 else
15574   # Is the header compilable?
15575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583 $ac_includes_default
15584 #include <$ac_header>
15585 _ACEOF
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_compile") 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601   { (case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_try") 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest.$ac_objext'
15611   { (case "(($ac_try" in
15612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613   *) ac_try_echo=$ac_try;;
15614 esac
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616   (eval "$ac_try") 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620   ac_header_compiler=yes
15621 else
15622   echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625         ac_header_compiler=no
15626 fi
15627
15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632 # Is the header present?
15633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641 #include <$ac_header>
15642 _ACEOF
15643 if { (ac_try="$ac_cpp conftest.$ac_ext"
15644 case "(($ac_try" in
15645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646   *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } >/dev/null; then
15656   if test -s conftest.err; then
15657     ac_cpp_err=$ac_c_preproc_warn_flag
15658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659   else
15660     ac_cpp_err=
15661   fi
15662 else
15663   ac_cpp_err=yes
15664 fi
15665 if test -z "$ac_cpp_err"; then
15666   ac_header_preproc=yes
15667 else
15668   echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671   ac_header_preproc=no
15672 fi
15673
15674 rm -f conftest.err conftest.$ac_ext
15675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678 # So?  What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680   yes:no: )
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685     ac_header_preproc=yes
15686     ;;
15687   no:yes:* )
15688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700     ( cat <<\_ASBOX
15701 ## ------------------------------------ ##
15702 ## Report this to http://llvm.org/bugs/ ##
15703 ## ------------------------------------ ##
15704 _ASBOX
15705      ) | sed "s/^/$as_me: WARNING:     /" >&2
15706     ;;
15707 esac
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711   echo $ECHO_N "(cached) $ECHO_C" >&6
15712 else
15713   eval "$as_ac_Header=\$ac_header_preproc"
15714 fi
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716                { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15718
15719 fi
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721   cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723 _ACEOF
15724
15725 fi
15726
15727 done
15728
15729
15730 for ac_header in valgrind/valgrind.h
15731 do
15732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15737   echo $ECHO_N "(cached) $ECHO_C" >&6
15738 fi
15739 ac_res=`eval echo '${'$as_ac_Header'}'`
15740                { echo "$as_me:$LINENO: result: $ac_res" >&5
15741 echo "${ECHO_T}$ac_res" >&6; }
15742 else
15743   # Is the header compilable?
15744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15746 cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752 $ac_includes_default
15753 #include <$ac_header>
15754 _ACEOF
15755 rm -f conftest.$ac_objext
15756 if { (ac_try="$ac_compile"
15757 case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_compile") 2>conftest.er1
15763   ac_status=$?
15764   grep -v '^ *+' conftest.er1 >conftest.err
15765   rm -f conftest.er1
15766   cat conftest.err >&5
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } &&
15769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770   { (case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775   (eval "$ac_try") 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; } &&
15779          { ac_try='test -s conftest.$ac_objext'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789   ac_header_compiler=yes
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794         ac_header_compiler=no
15795 fi
15796
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6; }
15800
15801 # Is the header present?
15802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 #include <$ac_header>
15811 _ACEOF
15812 if { (ac_try="$ac_cpp conftest.$ac_ext"
15813 case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15819   ac_status=$?
15820   grep -v '^ *+' conftest.er1 >conftest.err
15821   rm -f conftest.er1
15822   cat conftest.err >&5
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } >/dev/null; then
15825   if test -s conftest.err; then
15826     ac_cpp_err=$ac_c_preproc_warn_flag
15827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15828   else
15829     ac_cpp_err=
15830   fi
15831 else
15832   ac_cpp_err=yes
15833 fi
15834 if test -z "$ac_cpp_err"; then
15835   ac_header_preproc=yes
15836 else
15837   echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15839
15840   ac_header_preproc=no
15841 fi
15842
15843 rm -f conftest.err conftest.$ac_ext
15844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15845 echo "${ECHO_T}$ac_header_preproc" >&6; }
15846
15847 # So?  What about this header?
15848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15849   yes:no: )
15850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15854     ac_header_preproc=yes
15855     ;;
15856   no:yes:* )
15857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15869     ( cat <<\_ASBOX
15870 ## ------------------------------------ ##
15871 ## Report this to http://llvm.org/bugs/ ##
15872 ## ------------------------------------ ##
15873 _ASBOX
15874      ) | sed "s/^/$as_me: WARNING:     /" >&2
15875     ;;
15876 esac
15877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15880   echo $ECHO_N "(cached) $ECHO_C" >&6
15881 else
15882   eval "$as_ac_Header=\$ac_header_preproc"
15883 fi
15884 ac_res=`eval echo '${'$as_ac_Header'}'`
15885                { echo "$as_me:$LINENO: result: $ac_res" >&5
15886 echo "${ECHO_T}$ac_res" >&6; }
15887
15888 fi
15889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15890   cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15892 _ACEOF
15893
15894 fi
15895
15896 done
15897
15898
15899 for ac_header in fenv.h
15900 do
15901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 fi
15908 ac_res=`eval echo '${'$as_ac_Header'}'`
15909                { echo "$as_me:$LINENO: result: $ac_res" >&5
15910 echo "${ECHO_T}$ac_res" >&6; }
15911 else
15912   # Is the header compilable?
15913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921 $ac_includes_default
15922 #include <$ac_header>
15923 _ACEOF
15924 rm -f conftest.$ac_objext
15925 if { (ac_try="$ac_compile"
15926 case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_compile") 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } &&
15938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15939   { (case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_try") 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; } &&
15948          { ac_try='test -s conftest.$ac_objext'
15949   { (case "(($ac_try" in
15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951   *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954   (eval "$ac_try") 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; }; then
15958   ac_header_compiler=yes
15959 else
15960   echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963         ac_header_compiler=no
15964 fi
15965
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15968 echo "${ECHO_T}$ac_header_compiler" >&6; }
15969
15970 # Is the header present?
15971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979 #include <$ac_header>
15980 _ACEOF
15981 if { (ac_try="$ac_cpp conftest.$ac_ext"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } >/dev/null; then
15994   if test -s conftest.err; then
15995     ac_cpp_err=$ac_c_preproc_warn_flag
15996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15997   else
15998     ac_cpp_err=
15999   fi
16000 else
16001   ac_cpp_err=yes
16002 fi
16003 if test -z "$ac_cpp_err"; then
16004   ac_header_preproc=yes
16005 else
16006   echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16008
16009   ac_header_preproc=no
16010 fi
16011
16012 rm -f conftest.err conftest.$ac_ext
16013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16014 echo "${ECHO_T}$ac_header_preproc" >&6; }
16015
16016 # So?  What about this header?
16017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16018   yes:no: )
16019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16023     ac_header_preproc=yes
16024     ;;
16025   no:yes:* )
16026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16028     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16029 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16030     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16032     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16033 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16038     ( cat <<\_ASBOX
16039 ## ------------------------------------ ##
16040 ## Report this to http://llvm.org/bugs/ ##
16041 ## ------------------------------------ ##
16042 _ASBOX
16043      ) | sed "s/^/$as_me: WARNING:     /" >&2
16044     ;;
16045 esac
16046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16049   echo $ECHO_N "(cached) $ECHO_C" >&6
16050 else
16051   eval "$as_ac_Header=\$ac_header_preproc"
16052 fi
16053 ac_res=`eval echo '${'$as_ac_Header'}'`
16054                { echo "$as_me:$LINENO: result: $ac_res" >&5
16055 echo "${ECHO_T}$ac_res" >&6; }
16056
16057 fi
16058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16059   cat >>confdefs.h <<_ACEOF
16060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16061 _ACEOF
16062
16063 fi
16064
16065 done
16066
16067 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16068 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16069 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16070   echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072   cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078 #include <fenv.h>
16079
16080 int
16081 main ()
16082 {
16083 #ifndef FE_ALL_EXCEPT
16084   char *p = (char *) FE_ALL_EXCEPT;
16085   return !p;
16086 #endif
16087
16088   ;
16089   return 0;
16090 }
16091 _ACEOF
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_compile") 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } &&
16106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16107   { (case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_try") 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; } &&
16116          { ac_try='test -s conftest.$ac_objext'
16117   { (case "(($ac_try" in
16118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119   *) ac_try_echo=$ac_try;;
16120 esac
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122   (eval "$ac_try") 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   ac_cv_have_decl_FE_ALL_EXCEPT=yes
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131         ac_cv_have_decl_FE_ALL_EXCEPT=no
16132 fi
16133
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 fi
16136 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16137 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16138 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16139
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_DECL_FE_ALL_EXCEPT 1
16142 _ACEOF
16143
16144
16145 else
16146   cat >>confdefs.h <<_ACEOF
16147 #define HAVE_DECL_FE_ALL_EXCEPT 0
16148 _ACEOF
16149
16150
16151 fi
16152 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16153 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16154 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16155   echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157   cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h.  */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h.  */
16163 #include <fenv.h>
16164
16165 int
16166 main ()
16167 {
16168 #ifndef FE_INEXACT
16169   char *p = (char *) FE_INEXACT;
16170   return !p;
16171 #endif
16172
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (ac_try="$ac_compile"
16179 case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_compile") 2>conftest.er1
16185   ac_status=$?
16186   grep -v '^ *+' conftest.er1 >conftest.err
16187   rm -f conftest.er1
16188   cat conftest.err >&5
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); } &&
16191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16192   { (case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_try") 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; } &&
16201          { ac_try='test -s conftest.$ac_objext'
16202   { (case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207   (eval "$ac_try") 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); }; }; then
16211   ac_cv_have_decl_FE_INEXACT=yes
16212 else
16213   echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216         ac_cv_have_decl_FE_INEXACT=no
16217 fi
16218
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 fi
16221 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16222 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16223 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16224
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_DECL_FE_INEXACT 1
16227 _ACEOF
16228
16229
16230 else
16231   cat >>confdefs.h <<_ACEOF
16232 #define HAVE_DECL_FE_INEXACT 0
16233 _ACEOF
16234
16235
16236 fi
16237
16238
16239 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16240
16241 for ac_header in pthread.h
16242 do
16243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16245   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 fi
16250 ac_res=`eval echo '${'$as_ac_Header'}'`
16251                { echo "$as_me:$LINENO: result: $ac_res" >&5
16252 echo "${ECHO_T}$ac_res" >&6; }
16253 else
16254   # Is the header compilable?
16255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h.  */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h.  */
16263 $ac_includes_default
16264 #include <$ac_header>
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_compile") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } &&
16280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281   { (case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_try") 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; } &&
16290          { ac_try='test -s conftest.$ac_objext'
16291   { (case "(($ac_try" in
16292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293   *) ac_try_echo=$ac_try;;
16294 esac
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296   (eval "$ac_try") 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; }; then
16300   ac_header_compiler=yes
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305         ac_header_compiler=no
16306 fi
16307
16308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16310 echo "${ECHO_T}$ac_header_compiler" >&6; }
16311
16312 # Is the header present?
16313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16315 cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321 #include <$ac_header>
16322 _ACEOF
16323 if { (ac_try="$ac_cpp conftest.$ac_ext"
16324 case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16330   ac_status=$?
16331   grep -v '^ *+' conftest.er1 >conftest.err
16332   rm -f conftest.er1
16333   cat conftest.err >&5
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); } >/dev/null; then
16336   if test -s conftest.err; then
16337     ac_cpp_err=$ac_c_preproc_warn_flag
16338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16339   else
16340     ac_cpp_err=
16341   fi
16342 else
16343   ac_cpp_err=yes
16344 fi
16345 if test -z "$ac_cpp_err"; then
16346   ac_header_preproc=yes
16347 else
16348   echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351   ac_header_preproc=no
16352 fi
16353
16354 rm -f conftest.err conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16356 echo "${ECHO_T}$ac_header_preproc" >&6; }
16357
16358 # So?  What about this header?
16359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16360   yes:no: )
16361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16365     ac_header_preproc=yes
16366     ;;
16367   no:yes:* )
16368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16370     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16371 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16374     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16375 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16380     ( cat <<\_ASBOX
16381 ## ------------------------------------ ##
16382 ## Report this to http://llvm.org/bugs/ ##
16383 ## ------------------------------------ ##
16384 _ASBOX
16385      ) | sed "s/^/$as_me: WARNING:     /" >&2
16386     ;;
16387 esac
16388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   eval "$as_ac_Header=\$ac_header_preproc"
16394 fi
16395 ac_res=`eval echo '${'$as_ac_Header'}'`
16396                { echo "$as_me:$LINENO: result: $ac_res" >&5
16397 echo "${ECHO_T}$ac_res" >&6; }
16398
16399 fi
16400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16401   cat >>confdefs.h <<_ACEOF
16402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16403 _ACEOF
16404  HAVE_PTHREAD=1
16405
16406 else
16407   HAVE_PTHREAD=0
16408
16409 fi
16410
16411 done
16412
16413 else
16414   HAVE_PTHREAD=0
16415
16416 fi
16417 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16418
16419 for ac_header in zlib.h
16420 do
16421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 fi
16428 ac_res=`eval echo '${'$as_ac_Header'}'`
16429                { echo "$as_me:$LINENO: result: $ac_res" >&5
16430 echo "${ECHO_T}$ac_res" >&6; }
16431 else
16432   # Is the header compilable?
16433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441 $ac_includes_default
16442 #include <$ac_header>
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_compile") 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } &&
16458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459   { (case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_try") 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; } &&
16468          { ac_try='test -s conftest.$ac_objext'
16469   { (case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_try") 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   ac_header_compiler=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483         ac_header_compiler=no
16484 fi
16485
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16488 echo "${ECHO_T}$ac_header_compiler" >&6; }
16489
16490 # Is the header present?
16491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16493 cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h.  */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h.  */
16499 #include <$ac_header>
16500 _ACEOF
16501 if { (ac_try="$ac_cpp conftest.$ac_ext"
16502 case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16508   ac_status=$?
16509   grep -v '^ *+' conftest.er1 >conftest.err
16510   rm -f conftest.er1
16511   cat conftest.err >&5
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } >/dev/null; then
16514   if test -s conftest.err; then
16515     ac_cpp_err=$ac_c_preproc_warn_flag
16516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16517   else
16518     ac_cpp_err=
16519   fi
16520 else
16521   ac_cpp_err=yes
16522 fi
16523 if test -z "$ac_cpp_err"; then
16524   ac_header_preproc=yes
16525 else
16526   echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529   ac_header_preproc=no
16530 fi
16531
16532 rm -f conftest.err conftest.$ac_ext
16533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16534 echo "${ECHO_T}$ac_header_preproc" >&6; }
16535
16536 # So?  What about this header?
16537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16538   yes:no: )
16539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16543     ac_header_preproc=yes
16544     ;;
16545   no:yes:* )
16546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16558     ( cat <<\_ASBOX
16559 ## ------------------------------------ ##
16560 ## Report this to http://llvm.org/bugs/ ##
16561 ## ------------------------------------ ##
16562 _ASBOX
16563      ) | sed "s/^/$as_me: WARNING:     /" >&2
16564     ;;
16565 esac
16566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16569   echo $ECHO_N "(cached) $ECHO_C" >&6
16570 else
16571   eval "$as_ac_Header=\$ac_header_preproc"
16572 fi
16573 ac_res=`eval echo '${'$as_ac_Header'}'`
16574                { echo "$as_me:$LINENO: result: $ac_res" >&5
16575 echo "${ECHO_T}$ac_res" >&6; }
16576
16577 fi
16578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16579   cat >>confdefs.h <<_ACEOF
16580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16581 _ACEOF
16582  HAVE_LIBZ=1
16583
16584 else
16585   HAVE_LIBZ=0
16586
16587 fi
16588
16589 done
16590
16591 else
16592   HAVE_LIBZ=0
16593
16594 fi
16595
16596 if test "$llvm_cv_enable_libffi" = "yes" ; then
16597
16598
16599 for ac_header in ffi.h ffi/ffi.h
16600 do
16601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16603   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 fi
16608 ac_res=`eval echo '${'$as_ac_Header'}'`
16609                { echo "$as_me:$LINENO: result: $ac_res" >&5
16610 echo "${ECHO_T}$ac_res" >&6; }
16611 else
16612   # Is the header compilable?
16613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 $ac_includes_default
16622 #include <$ac_header>
16623 _ACEOF
16624 rm -f conftest.$ac_objext
16625 if { (ac_try="$ac_compile"
16626 case "(($ac_try" in
16627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628   *) ac_try_echo=$ac_try;;
16629 esac
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631   (eval "$ac_compile") 2>conftest.er1
16632   ac_status=$?
16633   grep -v '^ *+' conftest.er1 >conftest.err
16634   rm -f conftest.er1
16635   cat conftest.err >&5
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } &&
16638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639   { (case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_try") 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; } &&
16648          { ac_try='test -s conftest.$ac_objext'
16649   { (case "(($ac_try" in
16650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651   *) ac_try_echo=$ac_try;;
16652 esac
16653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654   (eval "$ac_try") 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }; then
16658   ac_header_compiler=yes
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16662
16663         ac_header_compiler=no
16664 fi
16665
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668 echo "${ECHO_T}$ac_header_compiler" >&6; }
16669
16670 # Is the header present?
16671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 #include <$ac_header>
16680 _ACEOF
16681 if { (ac_try="$ac_cpp conftest.$ac_ext"
16682 case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } >/dev/null; then
16694   if test -s conftest.err; then
16695     ac_cpp_err=$ac_c_preproc_warn_flag
16696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16697   else
16698     ac_cpp_err=
16699   fi
16700 else
16701   ac_cpp_err=yes
16702 fi
16703 if test -z "$ac_cpp_err"; then
16704   ac_header_preproc=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709   ac_header_preproc=no
16710 fi
16711
16712 rm -f conftest.err conftest.$ac_ext
16713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714 echo "${ECHO_T}$ac_header_preproc" >&6; }
16715
16716 # So?  What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16718   yes:no: )
16719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16723     ac_header_preproc=yes
16724     ;;
16725   no:yes:* )
16726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16738     ( cat <<\_ASBOX
16739 ## ------------------------------------ ##
16740 ## Report this to http://llvm.org/bugs/ ##
16741 ## ------------------------------------ ##
16742 _ASBOX
16743      ) | sed "s/^/$as_me: WARNING:     /" >&2
16744     ;;
16745 esac
16746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749   echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751   eval "$as_ac_Header=\$ac_header_preproc"
16752 fi
16753 ac_res=`eval echo '${'$as_ac_Header'}'`
16754                { echo "$as_me:$LINENO: result: $ac_res" >&5
16755 echo "${ECHO_T}$ac_res" >&6; }
16756
16757 fi
16758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16759   cat >>confdefs.h <<_ACEOF
16760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16761 _ACEOF
16762
16763 fi
16764
16765 done
16766
16767 fi
16768
16769
16770 for ac_header in CrashReporterClient.h
16771 do
16772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16774   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777   echo $ECHO_N "(cached) $ECHO_C" >&6
16778 fi
16779 ac_res=`eval echo '${'$as_ac_Header'}'`
16780                { echo "$as_me:$LINENO: result: $ac_res" >&5
16781 echo "${ECHO_T}$ac_res" >&6; }
16782 else
16783   # Is the header compilable?
16784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 $ac_includes_default
16793 #include <$ac_header>
16794 _ACEOF
16795 rm -f conftest.$ac_objext
16796 if { (ac_try="$ac_compile"
16797 case "(($ac_try" in
16798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799   *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802   (eval "$ac_compile") 2>conftest.er1
16803   ac_status=$?
16804   grep -v '^ *+' conftest.er1 >conftest.err
16805   rm -f conftest.er1
16806   cat conftest.err >&5
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); } &&
16809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810   { (case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815   (eval "$ac_try") 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; } &&
16819          { ac_try='test -s conftest.$ac_objext'
16820   { (case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_try") 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; }; then
16829   ac_header_compiler=yes
16830 else
16831   echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834         ac_header_compiler=no
16835 fi
16836
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16839 echo "${ECHO_T}$ac_header_compiler" >&6; }
16840
16841 # Is the header present?
16842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850 #include <$ac_header>
16851 _ACEOF
16852 if { (ac_try="$ac_cpp conftest.$ac_ext"
16853 case "(($ac_try" in
16854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855   *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16859   ac_status=$?
16860   grep -v '^ *+' conftest.er1 >conftest.err
16861   rm -f conftest.er1
16862   cat conftest.err >&5
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } >/dev/null; then
16865   if test -s conftest.err; then
16866     ac_cpp_err=$ac_c_preproc_warn_flag
16867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16868   else
16869     ac_cpp_err=
16870   fi
16871 else
16872   ac_cpp_err=yes
16873 fi
16874 if test -z "$ac_cpp_err"; then
16875   ac_header_preproc=yes
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880   ac_header_preproc=no
16881 fi
16882
16883 rm -f conftest.err conftest.$ac_ext
16884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16885 echo "${ECHO_T}$ac_header_preproc" >&6; }
16886
16887 # So?  What about this header?
16888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16889   yes:no: )
16890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16894     ac_header_preproc=yes
16895     ;;
16896   no:yes:* )
16897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16909     ( cat <<\_ASBOX
16910 ## ------------------------------------ ##
16911 ## Report this to http://llvm.org/bugs/ ##
16912 ## ------------------------------------ ##
16913 _ASBOX
16914      ) | sed "s/^/$as_me: WARNING:     /" >&2
16915     ;;
16916 esac
16917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   eval "$as_ac_Header=\$ac_header_preproc"
16923 fi
16924 ac_res=`eval echo '${'$as_ac_Header'}'`
16925                { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927
16928 fi
16929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16930   cat >>confdefs.h <<_ACEOF
16931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16932 _ACEOF
16933
16934 fi
16935
16936 done
16937
16938
16939 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16940 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942
16943   /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948
16949     extern const char *__crashreporter_info__;
16950     int main() {
16951       __crashreporter_info__ = "test";
16952       return 0;
16953     }
16954
16955
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_link") 2>conftest.er1
16965   ac_status=$?
16966   grep -v '^ *+' conftest.er1 >conftest.err
16967   rm -f conftest.er1
16968   cat conftest.err >&5
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972   { (case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_try") 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; } &&
16981          { ac_try='test -s conftest$ac_exeext'
16982   { (case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_try") 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; }; then
16991
16992   { echo "$as_me:$LINENO: result: yes" >&5
16993 echo "${ECHO_T}yes" >&6; }
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_CRASHREPORTER_INFO 1
16997 _ACEOF
16998
16999
17000 else
17001   echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004
17005   { echo "$as_me:$LINENO: result: no" >&5
17006 echo "${ECHO_T}no" >&6; }
17007
17008 cat >>confdefs.h <<\_ACEOF
17009 #define HAVE_CRASHREPORTER_INFO 0
17010 _ACEOF
17011
17012
17013 fi
17014
17015 rm -f core conftest.err conftest.$ac_objext \
17016       conftest$ac_exeext conftest.$ac_ext
17017
17018
17019
17020   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17021 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17022 if test "${ac_cv_huge_val_sanity+set}" = set; then
17023   echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025
17026     ac_ext=cpp
17027 ac_cpp='$CXXCPP $CPPFLAGS'
17028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17031
17032     ac_save_CXXFLAGS=$CXXFLAGS
17033     CXXFLAGS="$CXXFLAGS -pedantic"
17034     if test "$cross_compiling" = yes; then
17035   ac_cv_huge_val_sanity=yes
17036 else
17037   cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043 #include <math.h>
17044 int
17045 main ()
17046 {
17047 double x = HUGE_VAL; return x != x;
17048   ;
17049   return 0;
17050 }
17051 _ACEOF
17052 rm -f conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059   (eval "$ac_link") 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17063   { (case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_try") 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   ac_cv_huge_val_sanity=yes
17073 else
17074   echo "$as_me: program exited with status $ac_status" >&5
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ( exit $ac_status )
17079 ac_cv_huge_val_sanity=no
17080 fi
17081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17082 fi
17083
17084
17085     CXXFLAGS=$ac_save_CXXFLAGS
17086     ac_ext=c
17087 ac_cpp='$CPP $CPPFLAGS'
17088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17091
17092
17093 fi
17094 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17095 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17096   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17097
17098
17099 { echo "$as_me:$LINENO: checking for pid_t" >&5
17100 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17101 if test "${ac_cv_type_pid_t+set}" = set; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104   cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110 $ac_includes_default
17111 typedef pid_t ac__type_new_;
17112 int
17113 main ()
17114 {
17115 if ((ac__type_new_ *) 0)
17116   return 0;
17117 if (sizeof (ac__type_new_))
17118   return 0;
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130   (eval "$ac_compile") 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; } &&
17147          { ac_try='test -s conftest.$ac_objext'
17148   { (case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_try") 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   ac_cv_type_pid_t=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162         ac_cv_type_pid_t=no
17163 fi
17164
17165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166 fi
17167 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17168 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17169 if test $ac_cv_type_pid_t = yes; then
17170   :
17171 else
17172
17173 cat >>confdefs.h <<_ACEOF
17174 #define pid_t int
17175 _ACEOF
17176
17177 fi
17178
17179 { echo "$as_me:$LINENO: checking for size_t" >&5
17180 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17181 if test "${ac_cv_type_size_t+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190 $ac_includes_default
17191 typedef size_t ac__type_new_;
17192 int
17193 main ()
17194 {
17195 if ((ac__type_new_ *) 0)
17196   return 0;
17197 if (sizeof (ac__type_new_))
17198   return 0;
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_compile") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218   { (case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_try") 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; } &&
17227          { ac_try='test -s conftest.$ac_objext'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   ac_cv_type_size_t=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         ac_cv_type_size_t=no
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246 fi
17247 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17248 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17249 if test $ac_cv_type_size_t = yes; then
17250   :
17251 else
17252
17253 cat >>confdefs.h <<_ACEOF
17254 #define size_t unsigned int
17255 _ACEOF
17256
17257 fi
17258
17259
17260 cat >>confdefs.h <<_ACEOF
17261 #define RETSIGTYPE void
17262 _ACEOF
17263
17264 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17265 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17266 if test "${ac_cv_struct_tm+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269   cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275 #include <sys/types.h>
17276 #include <time.h>
17277
17278 int
17279 main ()
17280 {
17281 struct tm *tp; tp->tm_sec;
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293   (eval "$ac_compile") 2>conftest.er1
17294   ac_status=$?
17295   grep -v '^ *+' conftest.er1 >conftest.err
17296   rm -f conftest.er1
17297   cat conftest.err >&5
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); } &&
17300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17301   { (case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306   (eval "$ac_try") 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; } &&
17310          { ac_try='test -s conftest.$ac_objext'
17311   { (case "(($ac_try" in
17312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313   *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316   (eval "$ac_try") 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); }; }; then
17320   ac_cv_struct_tm=time.h
17321 else
17322   echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325         ac_cv_struct_tm=sys/time.h
17326 fi
17327
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 fi
17330 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17331 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17332 if test $ac_cv_struct_tm = sys/time.h; then
17333
17334 cat >>confdefs.h <<\_ACEOF
17335 #define TM_IN_SYS_TIME 1
17336 _ACEOF
17337
17338 fi
17339
17340 { echo "$as_me:$LINENO: checking for int64_t" >&5
17341 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17342 if test "${ac_cv_type_int64_t+set}" = set; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345   cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351 $ac_includes_default
17352 typedef int64_t ac__type_new_;
17353 int
17354 main ()
17355 {
17356 if ((ac__type_new_ *) 0)
17357   return 0;
17358 if (sizeof (ac__type_new_))
17359   return 0;
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext
17365 if { (ac_try="$ac_compile"
17366 case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_compile") 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17379   { (case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_try") 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; } &&
17388          { ac_try='test -s conftest.$ac_objext'
17389   { (case "(($ac_try" in
17390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391   *) ac_try_echo=$ac_try;;
17392 esac
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394   (eval "$ac_try") 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; }; then
17398   ac_cv_type_int64_t=yes
17399 else
17400   echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17402
17403         ac_cv_type_int64_t=no
17404 fi
17405
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 fi
17408 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17409 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17410 if test $ac_cv_type_int64_t = yes; then
17411
17412 cat >>confdefs.h <<_ACEOF
17413 #define HAVE_INT64_T 1
17414 _ACEOF
17415
17416
17417 else
17418   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17419 echo "$as_me: error: Type int64_t required but not found" >&2;}
17420    { (exit 1); exit 1; }; }
17421 fi
17422
17423 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17424 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17425 if test "${ac_cv_type_uint64_t+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 $ac_includes_default
17435 typedef uint64_t ac__type_new_;
17436 int
17437 main ()
17438 {
17439 if ((ac__type_new_ *) 0)
17440   return 0;
17441 if (sizeof (ac__type_new_))
17442   return 0;
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext
17448 if { (ac_try="$ac_compile"
17449 case "(($ac_try" in
17450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451   *) ac_try_echo=$ac_try;;
17452 esac
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454   (eval "$ac_compile") 2>conftest.er1
17455   ac_status=$?
17456   grep -v '^ *+' conftest.er1 >conftest.err
17457   rm -f conftest.er1
17458   cat conftest.err >&5
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); } &&
17461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17462   { (case "(($ac_try" in
17463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464   *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467   (eval "$ac_try") 2>&5
17468   ac_status=$?
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); }; } &&
17471          { ac_try='test -s conftest.$ac_objext'
17472   { (case "(($ac_try" in
17473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474   *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477   (eval "$ac_try") 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; }; then
17481   ac_cv_type_uint64_t=yes
17482 else
17483   echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486         ac_cv_type_uint64_t=no
17487 fi
17488
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 fi
17491 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17492 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17493 if test $ac_cv_type_uint64_t = yes; then
17494
17495 cat >>confdefs.h <<_ACEOF
17496 #define HAVE_UINT64_T 1
17497 _ACEOF
17498
17499
17500 else
17501   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17502 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17503 if test "${ac_cv_type_u_int64_t+set}" = set; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512 $ac_includes_default
17513 typedef u_int64_t ac__type_new_;
17514 int
17515 main ()
17516 {
17517 if ((ac__type_new_ *) 0)
17518   return 0;
17519 if (sizeof (ac__type_new_))
17520   return 0;
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext
17526 if { (ac_try="$ac_compile"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_compile") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } &&
17539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540   { (case "(($ac_try" in
17541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542   *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545   (eval "$ac_try") 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; } &&
17549          { ac_try='test -s conftest.$ac_objext'
17550   { (case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555   (eval "$ac_try") 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); }; }; then
17559   ac_cv_type_u_int64_t=yes
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564         ac_cv_type_u_int64_t=no
17565 fi
17566
17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 fi
17569 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17570 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17571 if test $ac_cv_type_u_int64_t = yes; then
17572
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_U_INT64_T 1
17575 _ACEOF
17576
17577
17578 else
17579   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17580 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17581    { (exit 1); exit 1; }; }
17582 fi
17583
17584 fi
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17596 do
17597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17611 #define $ac_func innocuous_$ac_func
17612
17613 /* System header to define __stub macros and hopefully few prototypes,
17614     which can conflict with char $ac_func (); below.
17615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17616     <limits.h> exists even on freestanding compilers.  */
17617
17618 #ifdef __STDC__
17619 # include <limits.h>
17620 #else
17621 # include <assert.h>
17622 #endif
17623
17624 #undef $ac_func
17625
17626 /* Override any GCC internal prototype to avoid an error.
17627    Use char because int might match the return type of a GCC
17628    builtin and then its argument prototype would still apply.  */
17629 #ifdef __cplusplus
17630 extern "C"
17631 #endif
17632 char $ac_func ();
17633 /* The GNU C library defines this for functions which it implements
17634     to always fail with ENOSYS.  Some functions are actually named
17635     something starting with __ and the normal name is an alias.  */
17636 #if defined __stub_$ac_func || defined __stub___$ac_func
17637 choke me
17638 #endif
17639
17640 int
17641 main ()
17642 {
17643 return $ac_func ();
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_link") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663   { (case "(($ac_try" in
17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665   *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668   (eval "$ac_try") 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest$ac_exeext'
17673   { (case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_try") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   eval "$as_ac_var=yes"
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687         eval "$as_ac_var=no"
17688 fi
17689
17690 rm -f core conftest.err conftest.$ac_objext \
17691       conftest$ac_exeext conftest.$ac_ext
17692 fi
17693 ac_res=`eval echo '${'$as_ac_var'}'`
17694                { echo "$as_me:$LINENO: result: $ac_res" >&5
17695 echo "${ECHO_T}$ac_res" >&6; }
17696 if test `eval echo '${'$as_ac_var'}'` = yes; then
17697   cat >>confdefs.h <<_ACEOF
17698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17699 _ACEOF
17700
17701 fi
17702 done
17703
17704
17705
17706
17707
17708 for ac_func in powf fmodf strtof round
17709 do
17710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17714   echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716   cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17724 #define $ac_func innocuous_$ac_func
17725
17726 /* System header to define __stub macros and hopefully few prototypes,
17727     which can conflict with char $ac_func (); below.
17728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17729     <limits.h> exists even on freestanding compilers.  */
17730
17731 #ifdef __STDC__
17732 # include <limits.h>
17733 #else
17734 # include <assert.h>
17735 #endif
17736
17737 #undef $ac_func
17738
17739 /* Override any GCC internal prototype to avoid an error.
17740    Use char because int might match the return type of a GCC
17741    builtin and then its argument prototype would still apply.  */
17742 #ifdef __cplusplus
17743 extern "C"
17744 #endif
17745 char $ac_func ();
17746 /* The GNU C library defines this for functions which it implements
17747     to always fail with ENOSYS.  Some functions are actually named
17748     something starting with __ and the normal name is an alias.  */
17749 #if defined __stub_$ac_func || defined __stub___$ac_func
17750 choke me
17751 #endif
17752
17753 int
17754 main ()
17755 {
17756 return $ac_func ();
17757   ;
17758   return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (ac_try="$ac_link"
17763 case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_link") 2>conftest.er1
17769   ac_status=$?
17770   grep -v '^ *+' conftest.er1 >conftest.err
17771   rm -f conftest.er1
17772   cat conftest.err >&5
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); } &&
17775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17776   { (case "(($ac_try" in
17777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778   *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781   (eval "$ac_try") 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }; } &&
17785          { ac_try='test -s conftest$ac_exeext'
17786   { (case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791   (eval "$ac_try") 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   eval "$as_ac_var=yes"
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800         eval "$as_ac_var=no"
17801 fi
17802
17803 rm -f core conftest.err conftest.$ac_objext \
17804       conftest$ac_exeext conftest.$ac_ext
17805 fi
17806 ac_res=`eval echo '${'$as_ac_var'}'`
17807                { echo "$as_me:$LINENO: result: $ac_res" >&5
17808 echo "${ECHO_T}$ac_res" >&6; }
17809 if test `eval echo '${'$as_ac_var'}'` = yes; then
17810   cat >>confdefs.h <<_ACEOF
17811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17812 _ACEOF
17813
17814 fi
17815 done
17816
17817
17818
17819
17820
17821
17822 for ac_func in log log2 log10 exp exp2
17823 do
17824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830   cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17838 #define $ac_func innocuous_$ac_func
17839
17840 /* System header to define __stub macros and hopefully few prototypes,
17841     which can conflict with char $ac_func (); below.
17842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843     <limits.h> exists even on freestanding compilers.  */
17844
17845 #ifdef __STDC__
17846 # include <limits.h>
17847 #else
17848 # include <assert.h>
17849 #endif
17850
17851 #undef $ac_func
17852
17853 /* Override any GCC internal prototype to avoid an error.
17854    Use char because int might match the return type of a GCC
17855    builtin and then its argument prototype would still apply.  */
17856 #ifdef __cplusplus
17857 extern "C"
17858 #endif
17859 char $ac_func ();
17860 /* The GNU C library defines this for functions which it implements
17861     to always fail with ENOSYS.  Some functions are actually named
17862     something starting with __ and the normal name is an alias.  */
17863 #if defined __stub_$ac_func || defined __stub___$ac_func
17864 choke me
17865 #endif
17866
17867 int
17868 main ()
17869 {
17870 return $ac_func ();
17871   ;
17872   return 0;
17873 }
17874 _ACEOF
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879   *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882   (eval "$ac_link") 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } &&
17889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17890   { (case "(($ac_try" in
17891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892   *) ac_try_echo=$ac_try;;
17893 esac
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895   (eval "$ac_try") 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; } &&
17899          { ac_try='test -s conftest$ac_exeext'
17900   { (case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_try") 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; }; then
17909   eval "$as_ac_var=yes"
17910 else
17911   echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914         eval "$as_ac_var=no"
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext \
17918       conftest$ac_exeext conftest.$ac_ext
17919 fi
17920 ac_res=`eval echo '${'$as_ac_var'}'`
17921                { echo "$as_me:$LINENO: result: $ac_res" >&5
17922 echo "${ECHO_T}$ac_res" >&6; }
17923 if test `eval echo '${'$as_ac_var'}'` = yes; then
17924   cat >>confdefs.h <<_ACEOF
17925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17926 _ACEOF
17927
17928 fi
17929 done
17930
17931
17932
17933
17934
17935
17936 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17937 do
17938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944   cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17952 #define $ac_func innocuous_$ac_func
17953
17954 /* System header to define __stub macros and hopefully few prototypes,
17955     which can conflict with char $ac_func (); below.
17956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17957     <limits.h> exists even on freestanding compilers.  */
17958
17959 #ifdef __STDC__
17960 # include <limits.h>
17961 #else
17962 # include <assert.h>
17963 #endif
17964
17965 #undef $ac_func
17966
17967 /* Override any GCC internal prototype to avoid an error.
17968    Use char because int might match the return type of a GCC
17969    builtin and then its argument prototype would still apply.  */
17970 #ifdef __cplusplus
17971 extern "C"
17972 #endif
17973 char $ac_func ();
17974 /* The GNU C library defines this for functions which it implements
17975     to always fail with ENOSYS.  Some functions are actually named
17976     something starting with __ and the normal name is an alias.  */
17977 #if defined __stub_$ac_func || defined __stub___$ac_func
17978 choke me
17979 #endif
17980
17981 int
17982 main ()
17983 {
17984 return $ac_func ();
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (ac_try="$ac_link"
17991 case "(($ac_try" in
17992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993   *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996   (eval "$ac_link") 2>conftest.er1
17997   ac_status=$?
17998   grep -v '^ *+' conftest.er1 >conftest.err
17999   rm -f conftest.er1
18000   cat conftest.err >&5
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); } &&
18003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; } &&
18013          { ac_try='test -s conftest$ac_exeext'
18014   { (case "(($ac_try" in
18015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016   *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019   (eval "$ac_try") 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; }; then
18023   eval "$as_ac_var=yes"
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028         eval "$as_ac_var=no"
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext \
18032       conftest$ac_exeext conftest.$ac_ext
18033 fi
18034 ac_res=`eval echo '${'$as_ac_var'}'`
18035                { echo "$as_me:$LINENO: result: $ac_res" >&5
18036 echo "${ECHO_T}$ac_res" >&6; }
18037 if test `eval echo '${'$as_ac_var'}'` = yes; then
18038   cat >>confdefs.h <<_ACEOF
18039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18040 _ACEOF
18041
18042 fi
18043 done
18044
18045
18046
18047
18048 for ac_func in isatty mkdtemp mkstemp
18049 do
18050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18064 #define $ac_func innocuous_$ac_func
18065
18066 /* System header to define __stub macros and hopefully few prototypes,
18067     which can conflict with char $ac_func (); below.
18068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069     <limits.h> exists even on freestanding compilers.  */
18070
18071 #ifdef __STDC__
18072 # include <limits.h>
18073 #else
18074 # include <assert.h>
18075 #endif
18076
18077 #undef $ac_func
18078
18079 /* Override any GCC internal prototype to avoid an error.
18080    Use char because int might match the return type of a GCC
18081    builtin and then its argument prototype would still apply.  */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 char $ac_func ();
18086 /* The GNU C library defines this for functions which it implements
18087     to always fail with ENOSYS.  Some functions are actually named
18088     something starting with __ and the normal name is an alias.  */
18089 #if defined __stub_$ac_func || defined __stub___$ac_func
18090 choke me
18091 #endif
18092
18093 int
18094 main ()
18095 {
18096 return $ac_func ();
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (ac_try="$ac_link"
18103 case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108   (eval "$ac_link") 2>conftest.er1
18109   ac_status=$?
18110   grep -v '^ *+' conftest.er1 >conftest.err
18111   rm -f conftest.er1
18112   cat conftest.err >&5
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); } &&
18115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116   { (case "(($ac_try" in
18117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118   *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121   (eval "$ac_try") 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; } &&
18125          { ac_try='test -s conftest$ac_exeext'
18126   { (case "(($ac_try" in
18127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128   *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131   (eval "$ac_try") 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; }; then
18135   eval "$as_ac_var=yes"
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140         eval "$as_ac_var=no"
18141 fi
18142
18143 rm -f core conftest.err conftest.$ac_objext \
18144       conftest$ac_exeext conftest.$ac_ext
18145 fi
18146 ac_res=`eval echo '${'$as_ac_var'}'`
18147                { echo "$as_me:$LINENO: result: $ac_res" >&5
18148 echo "${ECHO_T}$ac_res" >&6; }
18149 if test `eval echo '${'$as_ac_var'}'` = yes; then
18150   cat >>confdefs.h <<_ACEOF
18151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 _ACEOF
18153
18154 fi
18155 done
18156
18157
18158
18159
18160
18161
18162
18163
18164 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18165 do
18166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18170   echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172   cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18180 #define $ac_func innocuous_$ac_func
18181
18182 /* System header to define __stub macros and hopefully few prototypes,
18183     which can conflict with char $ac_func (); below.
18184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18185     <limits.h> exists even on freestanding compilers.  */
18186
18187 #ifdef __STDC__
18188 # include <limits.h>
18189 #else
18190 # include <assert.h>
18191 #endif
18192
18193 #undef $ac_func
18194
18195 /* Override any GCC internal prototype to avoid an error.
18196    Use char because int might match the return type of a GCC
18197    builtin and then its argument prototype would still apply.  */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 char $ac_func ();
18202 /* The GNU C library defines this for functions which it implements
18203     to always fail with ENOSYS.  Some functions are actually named
18204     something starting with __ and the normal name is an alias.  */
18205 #if defined __stub_$ac_func || defined __stub___$ac_func
18206 choke me
18207 #endif
18208
18209 int
18210 main ()
18211 {
18212 return $ac_func ();
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221   *) ac_try_echo=$ac_try;;
18222 esac
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224   (eval "$ac_link") 2>conftest.er1
18225   ac_status=$?
18226   grep -v '^ *+' conftest.er1 >conftest.err
18227   rm -f conftest.er1
18228   cat conftest.err >&5
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); } &&
18231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232   { (case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_try") 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_try") 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; }; then
18251   eval "$as_ac_var=yes"
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256         eval "$as_ac_var=no"
18257 fi
18258
18259 rm -f core conftest.err conftest.$ac_objext \
18260       conftest$ac_exeext conftest.$ac_ext
18261 fi
18262 ac_res=`eval echo '${'$as_ac_var'}'`
18263                { echo "$as_me:$LINENO: result: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266   cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18268 _ACEOF
18269
18270 fi
18271 done
18272
18273
18274
18275
18276
18277 for ac_func in strerror strerror_r setenv arc4random
18278 do
18279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285   cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18293 #define $ac_func innocuous_$ac_func
18294
18295 /* System header to define __stub macros and hopefully few prototypes,
18296     which can conflict with char $ac_func (); below.
18297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298     <limits.h> exists even on freestanding compilers.  */
18299
18300 #ifdef __STDC__
18301 # include <limits.h>
18302 #else
18303 # include <assert.h>
18304 #endif
18305
18306 #undef $ac_func
18307
18308 /* Override any GCC internal prototype to avoid an error.
18309    Use char because int might match the return type of a GCC
18310    builtin and then its argument prototype would still apply.  */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char $ac_func ();
18315 /* The GNU C library defines this for functions which it implements
18316     to always fail with ENOSYS.  Some functions are actually named
18317     something starting with __ and the normal name is an alias.  */
18318 #if defined __stub_$ac_func || defined __stub___$ac_func
18319 choke me
18320 #endif
18321
18322 int
18323 main ()
18324 {
18325 return $ac_func ();
18326   ;
18327   return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (ac_try="$ac_link"
18332 case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337   (eval "$ac_link") 2>conftest.er1
18338   ac_status=$?
18339   grep -v '^ *+' conftest.er1 >conftest.err
18340   rm -f conftest.er1
18341   cat conftest.err >&5
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); } &&
18344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345   { (case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350   (eval "$ac_try") 2>&5
18351   ac_status=$?
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); }; } &&
18354          { ac_try='test -s conftest$ac_exeext'
18355   { (case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360   (eval "$ac_try") 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   eval "$as_ac_var=yes"
18365 else
18366   echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18368
18369         eval "$as_ac_var=no"
18370 fi
18371
18372 rm -f core conftest.err conftest.$ac_objext \
18373       conftest$ac_exeext conftest.$ac_ext
18374 fi
18375 ac_res=`eval echo '${'$as_ac_var'}'`
18376                { echo "$as_me:$LINENO: result: $ac_res" >&5
18377 echo "${ECHO_T}$ac_res" >&6; }
18378 if test `eval echo '${'$as_ac_var'}'` = yes; then
18379   cat >>confdefs.h <<_ACEOF
18380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18381 _ACEOF
18382
18383 fi
18384 done
18385
18386
18387
18388
18389
18390 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18391 do
18392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398   cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18406 #define $ac_func innocuous_$ac_func
18407
18408 /* System header to define __stub macros and hopefully few prototypes,
18409     which can conflict with char $ac_func (); below.
18410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411     <limits.h> exists even on freestanding compilers.  */
18412
18413 #ifdef __STDC__
18414 # include <limits.h>
18415 #else
18416 # include <assert.h>
18417 #endif
18418
18419 #undef $ac_func
18420
18421 /* Override any GCC internal prototype to avoid an error.
18422    Use char because int might match the return type of a GCC
18423    builtin and then its argument prototype would still apply.  */
18424 #ifdef __cplusplus
18425 extern "C"
18426 #endif
18427 char $ac_func ();
18428 /* The GNU C library defines this for functions which it implements
18429     to always fail with ENOSYS.  Some functions are actually named
18430     something starting with __ and the normal name is an alias.  */
18431 #if defined __stub_$ac_func || defined __stub___$ac_func
18432 choke me
18433 #endif
18434
18435 int
18436 main ()
18437 {
18438 return $ac_func ();
18439   ;
18440   return 0;
18441 }
18442 _ACEOF
18443 rm -f conftest.$ac_objext conftest$ac_exeext
18444 if { (ac_try="$ac_link"
18445 case "(($ac_try" in
18446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447   *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450   (eval "$ac_link") 2>conftest.er1
18451   ac_status=$?
18452   grep -v '^ *+' conftest.er1 >conftest.err
18453   rm -f conftest.er1
18454   cat conftest.err >&5
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } &&
18457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458   { (case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_try") 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; } &&
18467          { ac_try='test -s conftest$ac_exeext'
18468   { (case "(($ac_try" in
18469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470   *) ac_try_echo=$ac_try;;
18471 esac
18472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473   (eval "$ac_try") 2>&5
18474   ac_status=$?
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); }; }; then
18477   eval "$as_ac_var=yes"
18478 else
18479   echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482         eval "$as_ac_var=no"
18483 fi
18484
18485 rm -f core conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 fi
18488 ac_res=`eval echo '${'$as_ac_var'}'`
18489                { echo "$as_me:$LINENO: result: $ac_res" >&5
18490 echo "${ECHO_T}$ac_res" >&6; }
18491 if test `eval echo '${'$as_ac_var'}'` = yes; then
18492   cat >>confdefs.h <<_ACEOF
18493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18494 _ACEOF
18495
18496 fi
18497 done
18498
18499
18500
18501
18502
18503
18504 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18505 do
18506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18510   echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512   cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18520 #define $ac_func innocuous_$ac_func
18521
18522 /* System header to define __stub macros and hopefully few prototypes,
18523     which can conflict with char $ac_func (); below.
18524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18525     <limits.h> exists even on freestanding compilers.  */
18526
18527 #ifdef __STDC__
18528 # include <limits.h>
18529 #else
18530 # include <assert.h>
18531 #endif
18532
18533 #undef $ac_func
18534
18535 /* Override any GCC internal prototype to avoid an error.
18536    Use char because int might match the return type of a GCC
18537    builtin and then its argument prototype would still apply.  */
18538 #ifdef __cplusplus
18539 extern "C"
18540 #endif
18541 char $ac_func ();
18542 /* The GNU C library defines this for functions which it implements
18543     to always fail with ENOSYS.  Some functions are actually named
18544     something starting with __ and the normal name is an alias.  */
18545 #if defined __stub_$ac_func || defined __stub___$ac_func
18546 choke me
18547 #endif
18548
18549 int
18550 main ()
18551 {
18552 return $ac_func ();
18553   ;
18554   return 0;
18555 }
18556 _ACEOF
18557 rm -f conftest.$ac_objext conftest$ac_exeext
18558 if { (ac_try="$ac_link"
18559 case "(($ac_try" in
18560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561   *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564   (eval "$ac_link") 2>conftest.er1
18565   ac_status=$?
18566   grep -v '^ *+' conftest.er1 >conftest.err
18567   rm -f conftest.er1
18568   cat conftest.err >&5
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } &&
18571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572   { (case "(($ac_try" in
18573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574   *) ac_try_echo=$ac_try;;
18575 esac
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577   (eval "$ac_try") 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; } &&
18581          { ac_try='test -s conftest$ac_exeext'
18582   { (case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587   (eval "$ac_try") 2>&5
18588   ac_status=$?
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); }; }; then
18591   eval "$as_ac_var=yes"
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596         eval "$as_ac_var=no"
18597 fi
18598
18599 rm -f core conftest.err conftest.$ac_objext \
18600       conftest$ac_exeext conftest.$ac_ext
18601 fi
18602 ac_res=`eval echo '${'$as_ac_var'}'`
18603                { echo "$as_me:$LINENO: result: $ac_res" >&5
18604 echo "${ECHO_T}$ac_res" >&6; }
18605 if test `eval echo '${'$as_ac_var'}'` = yes; then
18606   cat >>confdefs.h <<_ACEOF
18607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18608 _ACEOF
18609
18610 fi
18611 done
18612
18613 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18614 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18615 if test "${llvm_cv_c_printf_a+set}" = set; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618   ac_ext=c
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18623
18624  if test "$cross_compiling" = yes; then
18625   llvmac_cv_c_printf_a=no
18626 else
18627   cat >conftest.$ac_ext <<_ACEOF
18628
18629   /* confdefs.h.  */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h.  */
18634
18635 #include <stdio.h>
18636 #include <stdlib.h>
18637
18638 int
18639 main ()
18640 {
18641
18642 volatile double A, B;
18643 char Buffer[100];
18644 A = 1;
18645 A /= 10.0;
18646 sprintf(Buffer, "%a", A);
18647 B = atof(Buffer);
18648 if (A != B)
18649   return (1);
18650 if (A != 0x1.999999999999ap-4)
18651   return (1);
18652 return (0);
18653   ;
18654   return 0;
18655 }
18656 _ACEOF
18657 rm -f conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661   *) ac_try_echo=$ac_try;;
18662 esac
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664   (eval "$ac_link") 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18668   { (case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_try") 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; }; then
18677   llvm_cv_c_printf_a=yes
18678 else
18679   echo "$as_me: program exited with status $ac_status" >&5
18680 echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18682
18683 ( exit $ac_status )
18684 llvmac_cv_c_printf_a=no
18685 fi
18686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18687 fi
18688
18689
18690  ac_ext=c
18691 ac_cpp='$CPP $CPPFLAGS'
18692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18695
18696 fi
18697 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18698 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18699  if test "$llvm_cv_c_printf_a" = "yes"; then
18700
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_PRINTF_A 1
18703 _ACEOF
18704
18705  fi
18706
18707
18708
18709   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18710 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18711 if test "${ac_cv_func_rand48+set}" = set; then
18712   echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714
18715     ac_ext=cpp
18716 ac_cpp='$CXXCPP $CPPFLAGS'
18717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18720
18721     cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727 #include <stdlib.h>
18728 int
18729 main ()
18730 {
18731 srand48(0);lrand48();drand48();
18732   ;
18733   return 0;
18734 }
18735 _ACEOF
18736 rm -f conftest.$ac_objext
18737 if { (ac_try="$ac_compile"
18738 case "(($ac_try" in
18739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740   *) ac_try_echo=$ac_try;;
18741 esac
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743   (eval "$ac_compile") 2>conftest.er1
18744   ac_status=$?
18745   grep -v '^ *+' conftest.er1 >conftest.err
18746   rm -f conftest.er1
18747   cat conftest.err >&5
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); } &&
18750          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18751   { (case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_try") 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; } &&
18760          { ac_try='test -s conftest.$ac_objext'
18761   { (case "(($ac_try" in
18762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763   *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766   (eval "$ac_try") 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; }; then
18770   ac_cv_func_rand48=yes
18771 else
18772   echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775         ac_cv_func_rand48=no
18776 fi
18777
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779     ac_ext=c
18780 ac_cpp='$CPP $CPPFLAGS'
18781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18784
18785
18786 fi
18787 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18788 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18789
18790 if test "$ac_cv_func_rand48" = "yes" ; then
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_RAND48 1
18794 _ACEOF
18795
18796 fi
18797
18798
18799 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18800 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18801 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18802   echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804   cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 $ac_includes_default
18811 int
18812 main ()
18813 {
18814 #ifndef strerror_s
18815   char *p = (char *) strerror_s;
18816   return !p;
18817 #endif
18818
18819   ;
18820   return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_compile") 2>conftest.er1
18831   ac_status=$?
18832   grep -v '^ *+' conftest.er1 >conftest.err
18833   rm -f conftest.er1
18834   cat conftest.err >&5
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); } &&
18837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18838   { (case "(($ac_try" in
18839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840   *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843   (eval "$ac_try") 2>&5
18844   ac_status=$?
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); }; } &&
18847          { ac_try='test -s conftest.$ac_objext'
18848   { (case "(($ac_try" in
18849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850   *) ac_try_echo=$ac_try;;
18851 esac
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853   (eval "$ac_try") 2>&5
18854   ac_status=$?
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); }; }; then
18857   ac_cv_have_decl_strerror_s=yes
18858 else
18859   echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862         ac_cv_have_decl_strerror_s=no
18863 fi
18864
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 fi
18867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18868 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18869 if test $ac_cv_have_decl_strerror_s = yes; then
18870
18871 cat >>confdefs.h <<_ACEOF
18872 #define HAVE_DECL_STRERROR_S 1
18873 _ACEOF
18874
18875
18876 else
18877   cat >>confdefs.h <<_ACEOF
18878 #define HAVE_DECL_STRERROR_S 0
18879 _ACEOF
18880
18881
18882 fi
18883
18884
18885
18886 if test "$llvm_cv_os_type" = "MingW" ; then
18887   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18888 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18889 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18890   echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892   ac_check_lib_save_LIBS=$LIBS
18893 LIBS="-lgcc  $LIBS"
18894 cat >conftest.$ac_ext <<_ACEOF
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900
18901 /* Override any GCC internal prototype to avoid an error.
18902    Use char because int might match the return type of a GCC
18903    builtin and then its argument prototype would still apply.  */
18904 #ifdef __cplusplus
18905 extern "C"
18906 #endif
18907 char _alloca ();
18908 int
18909 main ()
18910 {
18911 return _alloca ();
18912   ;
18913   return 0;
18914 }
18915 _ACEOF
18916 rm -f conftest.$ac_objext conftest$ac_exeext
18917 if { (ac_try="$ac_link"
18918 case "(($ac_try" in
18919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920   *) ac_try_echo=$ac_try;;
18921 esac
18922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923   (eval "$ac_link") 2>conftest.er1
18924   ac_status=$?
18925   grep -v '^ *+' conftest.er1 >conftest.err
18926   rm -f conftest.er1
18927   cat conftest.err >&5
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); } &&
18930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18931   { (case "(($ac_try" in
18932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933   *) ac_try_echo=$ac_try;;
18934 esac
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936   (eval "$ac_try") 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); }; } &&
18940          { ac_try='test -s conftest$ac_exeext'
18941   { (case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_try") 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; }; then
18950   ac_cv_lib_gcc__alloca=yes
18951 else
18952   echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955         ac_cv_lib_gcc__alloca=no
18956 fi
18957
18958 rm -f core conftest.err conftest.$ac_objext \
18959       conftest$ac_exeext conftest.$ac_ext
18960 LIBS=$ac_check_lib_save_LIBS
18961 fi
18962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18963 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18964 if test $ac_cv_lib_gcc__alloca = yes; then
18965
18966 cat >>confdefs.h <<\_ACEOF
18967 #define HAVE__ALLOCA 1
18968 _ACEOF
18969
18970 fi
18971
18972   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18973 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18974 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18975   echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977   ac_check_lib_save_LIBS=$LIBS
18978 LIBS="-lgcc  $LIBS"
18979 cat >conftest.$ac_ext <<_ACEOF
18980 /* confdefs.h.  */
18981 _ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h.  */
18985
18986 /* Override any GCC internal prototype to avoid an error.
18987    Use char because int might match the return type of a GCC
18988    builtin and then its argument prototype would still apply.  */
18989 #ifdef __cplusplus
18990 extern "C"
18991 #endif
18992 char __alloca ();
18993 int
18994 main ()
18995 {
18996 return __alloca ();
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_link") 2>conftest.er1
19009   ac_status=$?
19010   grep -v '^ *+' conftest.er1 >conftest.err
19011   rm -f conftest.er1
19012   cat conftest.err >&5
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } &&
19015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19016   { (case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_try") 2>&5
19022   ac_status=$?
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); }; } &&
19025          { ac_try='test -s conftest$ac_exeext'
19026   { (case "(($ac_try" in
19027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028   *) ac_try_echo=$ac_try;;
19029 esac
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031   (eval "$ac_try") 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035   ac_cv_lib_gcc___alloca=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         ac_cv_lib_gcc___alloca=no
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext \
19044       conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19046 fi
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19048 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19049 if test $ac_cv_lib_gcc___alloca = yes; then
19050
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE___ALLOCA 1
19053 _ACEOF
19054
19055 fi
19056
19057   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19058 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19059 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   ac_check_lib_save_LIBS=$LIBS
19063 LIBS="-lgcc  $LIBS"
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h.  */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h.  */
19070
19071 /* Override any GCC internal prototype to avoid an error.
19072    Use char because int might match the return type of a GCC
19073    builtin and then its argument prototype would still apply.  */
19074 #ifdef __cplusplus
19075 extern "C"
19076 #endif
19077 char __chkstk ();
19078 int
19079 main ()
19080 {
19081 return __chkstk ();
19082   ;
19083   return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (ac_try="$ac_link"
19088 case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_link") 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } &&
19100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19101   { (case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106   (eval "$ac_try") 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); }; } &&
19110          { ac_try='test -s conftest$ac_exeext'
19111   { (case "(($ac_try" in
19112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113   *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116   (eval "$ac_try") 2>&5
19117   ac_status=$?
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); }; }; then
19120   ac_cv_lib_gcc___chkstk=yes
19121 else
19122   echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125         ac_cv_lib_gcc___chkstk=no
19126 fi
19127
19128 rm -f core conftest.err conftest.$ac_objext \
19129       conftest$ac_exeext conftest.$ac_ext
19130 LIBS=$ac_check_lib_save_LIBS
19131 fi
19132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19133 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19134 if test $ac_cv_lib_gcc___chkstk = yes; then
19135
19136 cat >>confdefs.h <<\_ACEOF
19137 #define HAVE___CHKSTK 1
19138 _ACEOF
19139
19140 fi
19141
19142   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19143 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19144 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19145   echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147   ac_check_lib_save_LIBS=$LIBS
19148 LIBS="-lgcc  $LIBS"
19149 cat >conftest.$ac_ext <<_ACEOF
19150 /* confdefs.h.  */
19151 _ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h.  */
19155
19156 /* Override any GCC internal prototype to avoid an error.
19157    Use char because int might match the return type of a GCC
19158    builtin and then its argument prototype would still apply.  */
19159 #ifdef __cplusplus
19160 extern "C"
19161 #endif
19162 char ___chkstk ();
19163 int
19164 main ()
19165 {
19166 return ___chkstk ();
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175   *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178   (eval "$ac_link") 2>conftest.er1
19179   ac_status=$?
19180   grep -v '^ *+' conftest.er1 >conftest.err
19181   rm -f conftest.er1
19182   cat conftest.err >&5
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); } &&
19185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19186   { (case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191   (eval "$ac_try") 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; } &&
19195          { ac_try='test -s conftest$ac_exeext'
19196   { (case "(($ac_try" in
19197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198   *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201   (eval "$ac_try") 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; }; then
19205   ac_cv_lib_gcc____chkstk=yes
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210         ac_cv_lib_gcc____chkstk=no
19211 fi
19212
19213 rm -f core conftest.err conftest.$ac_objext \
19214       conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19216 fi
19217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19218 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19219 if test $ac_cv_lib_gcc____chkstk = yes; then
19220
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE____CHKSTK 1
19223 _ACEOF
19224
19225 fi
19226
19227
19228   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19229 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19230 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19231   echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233   ac_check_lib_save_LIBS=$LIBS
19234 LIBS="-lgcc  $LIBS"
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241
19242 /* Override any GCC internal prototype to avoid an error.
19243    Use char because int might match the return type of a GCC
19244    builtin and then its argument prototype would still apply.  */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char __ashldi3 ();
19249 int
19250 main ()
19251 {
19252 return __ashldi3 ();
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext conftest$ac_exeext
19258 if { (ac_try="$ac_link"
19259 case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_link") 2>conftest.er1
19265   ac_status=$?
19266   grep -v '^ *+' conftest.er1 >conftest.err
19267   rm -f conftest.er1
19268   cat conftest.err >&5
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); } &&
19271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19272   { (case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_try") 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; } &&
19281          { ac_try='test -s conftest$ac_exeext'
19282   { (case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_try") 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   ac_cv_lib_gcc___ashldi3=yes
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296         ac_cv_lib_gcc___ashldi3=no
19297 fi
19298
19299 rm -f core conftest.err conftest.$ac_objext \
19300       conftest$ac_exeext conftest.$ac_ext
19301 LIBS=$ac_check_lib_save_LIBS
19302 fi
19303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19304 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19305 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19306
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE___ASHLDI3 1
19309 _ACEOF
19310
19311 fi
19312
19313   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19314 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19316   echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318   ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lgcc  $LIBS"
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326
19327 /* Override any GCC internal prototype to avoid an error.
19328    Use char because int might match the return type of a GCC
19329    builtin and then its argument prototype would still apply.  */
19330 #ifdef __cplusplus
19331 extern "C"
19332 #endif
19333 char __ashrdi3 ();
19334 int
19335 main ()
19336 {
19337 return __ashrdi3 ();
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (ac_try="$ac_link"
19344 case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_link") 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357   { (case "(($ac_try" in
19358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359   *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362   (eval "$ac_try") 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest$ac_exeext'
19367   { (case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_try") 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }; }; then
19376   ac_cv_lib_gcc___ashrdi3=yes
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381         ac_cv_lib_gcc___ashrdi3=no
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext \
19385       conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19387 fi
19388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19389 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19390 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19391
19392 cat >>confdefs.h <<\_ACEOF
19393 #define HAVE___ASHRDI3 1
19394 _ACEOF
19395
19396 fi
19397
19398   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19399 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19400 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19401   echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403   ac_check_lib_save_LIBS=$LIBS
19404 LIBS="-lgcc  $LIBS"
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411
19412 /* Override any GCC internal prototype to avoid an error.
19413    Use char because int might match the return type of a GCC
19414    builtin and then its argument prototype would still apply.  */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char __divdi3 ();
19419 int
19420 main ()
19421 {
19422 return __divdi3 ();
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434   (eval "$ac_link") 2>conftest.er1
19435   ac_status=$?
19436   grep -v '^ *+' conftest.er1 >conftest.err
19437   rm -f conftest.er1
19438   cat conftest.err >&5
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); } &&
19441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19442   { (case "(($ac_try" in
19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444   *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447   (eval "$ac_try") 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; } &&
19451          { ac_try='test -s conftest$ac_exeext'
19452   { (case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_try") 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; }; then
19461   ac_cv_lib_gcc___divdi3=yes
19462 else
19463   echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466         ac_cv_lib_gcc___divdi3=no
19467 fi
19468
19469 rm -f core conftest.err conftest.$ac_objext \
19470       conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19472 fi
19473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19474 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19475 if test $ac_cv_lib_gcc___divdi3 = yes; then
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE___DIVDI3 1
19479 _ACEOF
19480
19481 fi
19482
19483   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19484 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19485 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19486   echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488   ac_check_lib_save_LIBS=$LIBS
19489 LIBS="-lgcc  $LIBS"
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496
19497 /* Override any GCC internal prototype to avoid an error.
19498    Use char because int might match the return type of a GCC
19499    builtin and then its argument prototype would still apply.  */
19500 #ifdef __cplusplus
19501 extern "C"
19502 #endif
19503 char __fixdfdi ();
19504 int
19505 main ()
19506 {
19507 return __fixdfdi ();
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (ac_try="$ac_link"
19514 case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_link") 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } &&
19526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527   { (case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_try") 2>&5
19533   ac_status=$?
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); }; } &&
19536          { ac_try='test -s conftest$ac_exeext'
19537   { (case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542   (eval "$ac_try") 2>&5
19543   ac_status=$?
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); }; }; then
19546   ac_cv_lib_gcc___fixdfdi=yes
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         ac_cv_lib_gcc___fixdfdi=no
19552 fi
19553
19554 rm -f core conftest.err conftest.$ac_objext \
19555       conftest$ac_exeext conftest.$ac_ext
19556 LIBS=$ac_check_lib_save_LIBS
19557 fi
19558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19559 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19560 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE___FIXDFDI 1
19564 _ACEOF
19565
19566 fi
19567
19568   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19569 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19570 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   ac_check_lib_save_LIBS=$LIBS
19574 LIBS="-lgcc  $LIBS"
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581
19582 /* Override any GCC internal prototype to avoid an error.
19583    Use char because int might match the return type of a GCC
19584    builtin and then its argument prototype would still apply.  */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 char __fixsfdi ();
19589 int
19590 main ()
19591 {
19592 return __fixsfdi ();
19593   ;
19594   return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_link") 2>conftest.er1
19605   ac_status=$?
19606   grep -v '^ *+' conftest.er1 >conftest.err
19607   rm -f conftest.er1
19608   cat conftest.err >&5
19609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610   (exit $ac_status); } &&
19611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19612   { (case "(($ac_try" in
19613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614   *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617   (eval "$ac_try") 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; } &&
19621          { ac_try='test -s conftest$ac_exeext'
19622   { (case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_try") 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631   ac_cv_lib_gcc___fixsfdi=yes
19632 else
19633   echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636         ac_cv_lib_gcc___fixsfdi=no
19637 fi
19638
19639 rm -f core conftest.err conftest.$ac_objext \
19640       conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19642 fi
19643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19644 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19645 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE___FIXSFDI 1
19649 _ACEOF
19650
19651 fi
19652
19653   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19654 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658   ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-lgcc  $LIBS"
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666
19667 /* Override any GCC internal prototype to avoid an error.
19668    Use char because int might match the return type of a GCC
19669    builtin and then its argument prototype would still apply.  */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 char __floatdidf ();
19674 int
19675 main ()
19676 {
19677 return __floatdidf ();
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_link") 2>conftest.er1
19690   ac_status=$?
19691   grep -v '^ *+' conftest.er1 >conftest.err
19692   rm -f conftest.er1
19693   cat conftest.err >&5
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } &&
19696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19697   { (case "(($ac_try" in
19698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699   *) ac_try_echo=$ac_try;;
19700 esac
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702   (eval "$ac_try") 2>&5
19703   ac_status=$?
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); }; } &&
19706          { ac_try='test -s conftest$ac_exeext'
19707   { (case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_try") 2>&5
19713   ac_status=$?
19714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715   (exit $ac_status); }; }; then
19716   ac_cv_lib_gcc___floatdidf=yes
19717 else
19718   echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721         ac_cv_lib_gcc___floatdidf=no
19722 fi
19723
19724 rm -f core conftest.err conftest.$ac_objext \
19725       conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19727 fi
19728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19729 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19730 if test $ac_cv_lib_gcc___floatdidf = yes; then
19731
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE___FLOATDIDF 1
19734 _ACEOF
19735
19736 fi
19737
19738   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19739 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19740 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   ac_check_lib_save_LIBS=$LIBS
19744 LIBS="-lgcc  $LIBS"
19745 cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h.  */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h.  */
19751
19752 /* Override any GCC internal prototype to avoid an error.
19753    Use char because int might match the return type of a GCC
19754    builtin and then its argument prototype would still apply.  */
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char __lshrdi3 ();
19759 int
19760 main ()
19761 {
19762 return __lshrdi3 ();
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext conftest$ac_exeext
19768 if { (ac_try="$ac_link"
19769 case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_link") 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } &&
19781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19782   { (case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_try") 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; } &&
19791          { ac_try='test -s conftest$ac_exeext'
19792   { (case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_try") 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; }; then
19801   ac_cv_lib_gcc___lshrdi3=yes
19802 else
19803   echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806         ac_cv_lib_gcc___lshrdi3=no
19807 fi
19808
19809 rm -f core conftest.err conftest.$ac_objext \
19810       conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19812 fi
19813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19814 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19815 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19816
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE___LSHRDI3 1
19819 _ACEOF
19820
19821 fi
19822
19823   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19824 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19825 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lgcc  $LIBS"
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836
19837 /* Override any GCC internal prototype to avoid an error.
19838    Use char because int might match the return type of a GCC
19839    builtin and then its argument prototype would still apply.  */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 char __moddi3 ();
19844 int
19845 main ()
19846 {
19847 return __moddi3 ();
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856   *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859   (eval "$ac_link") 2>conftest.er1
19860   ac_status=$?
19861   grep -v '^ *+' conftest.er1 >conftest.err
19862   rm -f conftest.er1
19863   cat conftest.err >&5
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } &&
19866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19867   { (case "(($ac_try" in
19868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869   *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872   (eval "$ac_try") 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; } &&
19876          { ac_try='test -s conftest$ac_exeext'
19877   { (case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_try") 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; }; then
19886   ac_cv_lib_gcc___moddi3=yes
19887 else
19888   echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891         ac_cv_lib_gcc___moddi3=no
19892 fi
19893
19894 rm -f core conftest.err conftest.$ac_objext \
19895       conftest$ac_exeext conftest.$ac_ext
19896 LIBS=$ac_check_lib_save_LIBS
19897 fi
19898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19899 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19900 if test $ac_cv_lib_gcc___moddi3 = yes; then
19901
19902 cat >>confdefs.h <<\_ACEOF
19903 #define HAVE___MODDI3 1
19904 _ACEOF
19905
19906 fi
19907
19908   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19909 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19910 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913   ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lgcc  $LIBS"
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921
19922 /* Override any GCC internal prototype to avoid an error.
19923    Use char because int might match the return type of a GCC
19924    builtin and then its argument prototype would still apply.  */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 char __udivdi3 ();
19929 int
19930 main ()
19931 {
19932 return __udivdi3 ();
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941   *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944   (eval "$ac_link") 2>conftest.er1
19945   ac_status=$?
19946   grep -v '^ *+' conftest.er1 >conftest.err
19947   rm -f conftest.er1
19948   cat conftest.err >&5
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952   { (case "(($ac_try" in
19953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954   *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957   (eval "$ac_try") 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; } &&
19961          { ac_try='test -s conftest$ac_exeext'
19962   { (case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_try") 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_cv_lib_gcc___udivdi3=yes
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976         ac_cv_lib_gcc___udivdi3=no
19977 fi
19978
19979 rm -f core conftest.err conftest.$ac_objext \
19980       conftest$ac_exeext conftest.$ac_ext
19981 LIBS=$ac_check_lib_save_LIBS
19982 fi
19983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19984 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19985 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19986
19987 cat >>confdefs.h <<\_ACEOF
19988 #define HAVE___UDIVDI3 1
19989 _ACEOF
19990
19991 fi
19992
19993   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19994 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19995 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19996   echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998   ac_check_lib_save_LIBS=$LIBS
19999 LIBS="-lgcc  $LIBS"
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h.  */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h.  */
20006
20007 /* Override any GCC internal prototype to avoid an error.
20008    Use char because int might match the return type of a GCC
20009    builtin and then its argument prototype would still apply.  */
20010 #ifdef __cplusplus
20011 extern "C"
20012 #endif
20013 char __umoddi3 ();
20014 int
20015 main ()
20016 {
20017 return __umoddi3 ();
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_link") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } &&
20036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037   { (case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_try") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; } &&
20046          { ac_try='test -s conftest$ac_exeext'
20047   { (case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_try") 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; }; then
20056   ac_cv_lib_gcc___umoddi3=yes
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061         ac_cv_lib_gcc___umoddi3=no
20062 fi
20063
20064 rm -f core conftest.err conftest.$ac_objext \
20065       conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20067 fi
20068 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20069 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20070 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20071
20072 cat >>confdefs.h <<\_ACEOF
20073 #define HAVE___UMODDI3 1
20074 _ACEOF
20075
20076 fi
20077
20078
20079   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20080 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20081 if test "${ac_cv_lib_gcc___main+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084   ac_check_lib_save_LIBS=$LIBS
20085 LIBS="-lgcc  $LIBS"
20086 cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092
20093 /* Override any GCC internal prototype to avoid an error.
20094    Use char because int might match the return type of a GCC
20095    builtin and then its argument prototype would still apply.  */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 char __main ();
20100 int
20101 main ()
20102 {
20103 return __main ();
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112   *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115   (eval "$ac_link") 2>conftest.er1
20116   ac_status=$?
20117   grep -v '^ *+' conftest.er1 >conftest.err
20118   rm -f conftest.er1
20119   cat conftest.err >&5
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); } &&
20122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20123   { (case "(($ac_try" in
20124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125   *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128   (eval "$ac_try") 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); }; } &&
20132          { ac_try='test -s conftest$ac_exeext'
20133   { (case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_try") 2>&5
20139   ac_status=$?
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); }; }; then
20142   ac_cv_lib_gcc___main=yes
20143 else
20144   echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147         ac_cv_lib_gcc___main=no
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext \
20151       conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20153 fi
20154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20155 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20156 if test $ac_cv_lib_gcc___main = yes; then
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE___MAIN 1
20160 _ACEOF
20161
20162 fi
20163
20164   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20165 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20166 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20167   echo $ECHO_N "(cached) $ECHO_C" >&6
20168 else
20169   ac_check_lib_save_LIBS=$LIBS
20170 LIBS="-lgcc  $LIBS"
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177
20178 /* Override any GCC internal prototype to avoid an error.
20179    Use char because int might match the return type of a GCC
20180    builtin and then its argument prototype would still apply.  */
20181 #ifdef __cplusplus
20182 extern "C"
20183 #endif
20184 char __cmpdi2 ();
20185 int
20186 main ()
20187 {
20188 return __cmpdi2 ();
20189   ;
20190   return 0;
20191 }
20192 _ACEOF
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_link") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } &&
20207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208   { (case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_try") 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; } &&
20217          { ac_try='test -s conftest$ac_exeext'
20218   { (case "(($ac_try" in
20219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220   *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223   (eval "$ac_try") 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; }; then
20227   ac_cv_lib_gcc___cmpdi2=yes
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         ac_cv_lib_gcc___cmpdi2=no
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext \
20236       conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20238 fi
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20240 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20241 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20242
20243 cat >>confdefs.h <<\_ACEOF
20244 #define HAVE___CMPDI2 1
20245 _ACEOF
20246
20247 fi
20248
20249 fi
20250
20251 if test "$llvm_cv_os_type" = "MingW" ; then
20252   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20253 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20254   cat >conftest.$ac_ext <<_ACEOF
20255
20256   /* confdefs.h.  */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h.  */
20261
20262     #include <windows.h>
20263     #include <imagehlp.h>
20264     extern void foo(PENUMLOADED_MODULES_CALLBACK);
20265     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20266
20267
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_compile") 2>conftest.er1
20277   ac_status=$?
20278   grep -v '^ *+' conftest.er1 >conftest.err
20279   rm -f conftest.er1
20280   cat conftest.err >&5
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); } &&
20283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20293          { ac_try='test -s conftest.$ac_objext'
20294   { (case "(($ac_try" in
20295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296   *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299   (eval "$ac_try") 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; }; then
20303
20304   { echo "$as_me:$LINENO: result: yes" >&5
20305 echo "${ECHO_T}yes" >&6; }
20306   llvm_cv_win32_elmcb_pcstr="PCSTR"
20307
20308 else
20309   echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312
20313   { echo "$as_me:$LINENO: result: no" >&5
20314 echo "${ECHO_T}no" >&6; }
20315   llvm_cv_win32_elmcb_pcstr="PSTR"
20316
20317 fi
20318
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320
20321 cat >>confdefs.h <<_ACEOF
20322 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20323 _ACEOF
20324
20325 fi
20326
20327
20328
20329   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20330 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20331 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20332   echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334
20335     ac_ext=cpp
20336 ac_cpp='$CXXCPP $CPPFLAGS'
20337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20340
20341     cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347 #include <math.h>
20348 int
20349 main ()
20350 {
20351 float f; isnan(f);
20352   ;
20353   return 0;
20354 }
20355 _ACEOF
20356 rm -f conftest.$ac_objext
20357 if { (ac_try="$ac_compile"
20358 case "(($ac_try" in
20359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360   *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363   (eval "$ac_compile") 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } &&
20370          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20371   { (case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_try") 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest.$ac_objext'
20381   { (case "(($ac_try" in
20382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383   *) ac_try_echo=$ac_try;;
20384 esac
20385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386   (eval "$ac_try") 2>&5
20387   ac_status=$?
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); }; }; then
20390   ac_cv_func_isnan_in_math_h=yes
20391 else
20392   echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20394
20395         ac_cv_func_isnan_in_math_h=no
20396 fi
20397
20398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399     ac_ext=c
20400 ac_cpp='$CPP $CPPFLAGS'
20401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20404
20405
20406 fi
20407 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20408 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20409
20410
20411 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20412
20413 cat >>confdefs.h <<\_ACEOF
20414 #define HAVE_ISNAN_IN_MATH_H 1
20415 _ACEOF
20416
20417 fi
20418
20419
20420   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20421 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20422 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20423   echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425
20426     ac_ext=cpp
20427 ac_cpp='$CXXCPP $CPPFLAGS'
20428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20431
20432     cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h.  */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h.  */
20438 #include <cmath>
20439 int
20440 main ()
20441 {
20442 float f; isnan(f);
20443   ;
20444   return 0;
20445 }
20446 _ACEOF
20447 rm -f conftest.$ac_objext
20448 if { (ac_try="$ac_compile"
20449 case "(($ac_try" in
20450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451   *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454   (eval "$ac_compile") 2>conftest.er1
20455   ac_status=$?
20456   grep -v '^ *+' conftest.er1 >conftest.err
20457   rm -f conftest.er1
20458   cat conftest.err >&5
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); } &&
20461          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20462   { (case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_try") 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_try") 2>&5
20478   ac_status=$?
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); }; }; then
20481   ac_cv_func_isnan_in_cmath=yes
20482 else
20483   echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486         ac_cv_func_isnan_in_cmath=no
20487 fi
20488
20489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490     ac_ext=c
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495
20496
20497 fi
20498 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20499 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20500
20501 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20502
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE_ISNAN_IN_CMATH 1
20505 _ACEOF
20506
20507 fi
20508
20509
20510   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20511 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20512 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515
20516     ac_ext=cpp
20517 ac_cpp='$CXXCPP $CPPFLAGS'
20518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20521
20522     cat >conftest.$ac_ext <<_ACEOF
20523 /* confdefs.h.  */
20524 _ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h.  */
20528 #include <cmath>
20529 int
20530 main ()
20531 {
20532 float f; std::isnan(f);
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (ac_try="$ac_compile"
20539 case "(($ac_try" in
20540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541   *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544   (eval "$ac_compile") 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } &&
20551          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20552   { (case "(($ac_try" in
20553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554   *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557   (eval "$ac_try") 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; } &&
20561          { ac_try='test -s conftest.$ac_objext'
20562   { (case "(($ac_try" in
20563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564   *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567   (eval "$ac_try") 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; }; then
20571   ac_cv_func_std_isnan_in_cmath=yes
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576         ac_cv_func_std_isnan_in_cmath=no
20577 fi
20578
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580     ac_ext=c
20581 ac_cpp='$CPP $CPPFLAGS'
20582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585
20586
20587 fi
20588 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20589 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20590
20591 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20592
20593 cat >>confdefs.h <<\_ACEOF
20594 #define HAVE_STD_ISNAN_IN_CMATH 1
20595 _ACEOF
20596
20597 fi
20598
20599
20600
20601
20602   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20603 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20604 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607
20608     ac_ext=cpp
20609 ac_cpp='$CXXCPP $CPPFLAGS'
20610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20613
20614     cat >conftest.$ac_ext <<_ACEOF
20615 /* confdefs.h.  */
20616 _ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h.  */
20620 #include <math.h>
20621 int
20622 main ()
20623 {
20624 float f; isinf(f);
20625   ;
20626   return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_compile") 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; } &&
20653          { ac_try='test -s conftest.$ac_objext'
20654   { (case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_try") 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; }; then
20663   ac_cv_func_isinf_in_math_h=yes
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         ac_cv_func_isinf_in_math_h=no
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20672     ac_ext=c
20673 ac_cpp='$CPP $CPPFLAGS'
20674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677
20678
20679 fi
20680 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20681 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20682
20683 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_ISINF_IN_MATH_H 1
20687 _ACEOF
20688
20689 fi
20690
20691
20692   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20693 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20694 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20695   echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697
20698     ac_ext=cpp
20699 ac_cpp='$CXXCPP $CPPFLAGS'
20700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20703
20704     cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h.  */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h.  */
20710 #include <cmath>
20711 int
20712 main ()
20713 {
20714 float f; isinf(f);
20715   ;
20716   return 0;
20717 }
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723   *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726   (eval "$ac_compile") 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } &&
20733          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20734   { (case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_try") 2>&5
20740   ac_status=$?
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); }; } &&
20743          { ac_try='test -s conftest.$ac_objext'
20744   { (case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_try") 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; }; then
20753   ac_cv_func_isinf_in_cmath=yes
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758         ac_cv_func_isinf_in_cmath=no
20759 fi
20760
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762     ac_ext=c
20763 ac_cpp='$CPP $CPPFLAGS'
20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768
20769 fi
20770 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20771 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20772
20773 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_ISINF_IN_CMATH 1
20777 _ACEOF
20778
20779 fi
20780
20781
20782   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20783 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20784 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787
20788     ac_ext=cpp
20789 ac_cpp='$CXXCPP $CPPFLAGS'
20790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793
20794     cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h.  */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h.  */
20800 #include <cmath>
20801 int
20802 main ()
20803 {
20804 float f; std::isinf(f);
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_compile") 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20824   { (case "(($ac_try" in
20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826   *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829   (eval "$ac_try") 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); }; } &&
20833          { ac_try='test -s conftest.$ac_objext'
20834   { (case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_try") 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   ac_cv_func_std_isinf_in_cmath=yes
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848         ac_cv_func_std_isinf_in_cmath=no
20849 fi
20850
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852     ac_ext=c
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858
20859 fi
20860 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20861 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20862
20863 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20864
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_STD_ISINF_IN_CMATH 1
20867 _ACEOF
20868
20869 fi
20870
20871
20872   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20873 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20874 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20875   echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877
20878     ac_ext=cpp
20879 ac_cpp='$CXXCPP $CPPFLAGS'
20880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20883
20884     cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 #include <ieeefp.h>
20891 int
20892 main ()
20893 {
20894 float f; finite(f);
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_compile") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } &&
20913          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20914   { (case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_try") 2>&5
20920   ac_status=$?
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); }; } &&
20923          { ac_try='test -s conftest.$ac_objext'
20924   { (case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929   (eval "$ac_try") 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; }; then
20933   ac_cv_func_finite_in_ieeefp_h=yes
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938         ac_cv_func_finite_in_ieeefp_h=no
20939 fi
20940
20941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942     ac_ext=c
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20947
20948
20949 fi
20950 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20951 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20952
20953 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20954
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_FINITE_IN_IEEEFP_H 1
20957 _ACEOF
20958
20959 fi
20960
20961
20962
20963 if test "$llvm_cv_platform_type" = "Unix" ; then
20964
20965
20966 for ac_header in stdlib.h unistd.h
20967 do
20968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20973   echo $ECHO_N "(cached) $ECHO_C" >&6
20974 fi
20975 ac_res=`eval echo '${'$as_ac_Header'}'`
20976                { echo "$as_me:$LINENO: result: $ac_res" >&5
20977 echo "${ECHO_T}$ac_res" >&6; }
20978 else
20979   # Is the header compilable?
20980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h.  */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h.  */
20988 $ac_includes_default
20989 #include <$ac_header>
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_compile") 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } &&
21005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21006   { (case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_try") 2>&5
21012   ac_status=$?
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); }; } &&
21015          { ac_try='test -s conftest.$ac_objext'
21016   { (case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_try") 2>&5
21022   ac_status=$?
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); }; }; then
21025   ac_header_compiler=yes
21026 else
21027   echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21029
21030         ac_header_compiler=no
21031 fi
21032
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21036
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 #include <$ac_header>
21047 _ACEOF
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } >/dev/null; then
21061   if test -s conftest.err; then
21062     ac_cpp_err=$ac_c_preproc_warn_flag
21063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21064   else
21065     ac_cpp_err=
21066   fi
21067 else
21068   ac_cpp_err=yes
21069 fi
21070 if test -z "$ac_cpp_err"; then
21071   ac_header_preproc=yes
21072 else
21073   echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21075
21076   ac_header_preproc=no
21077 fi
21078
21079 rm -f conftest.err conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21081 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082
21083 # So?  What about this header?
21084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085   yes:no: )
21086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21090     ac_header_preproc=yes
21091     ;;
21092   no:yes:* )
21093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21105     ( cat <<\_ASBOX
21106 ## ------------------------------------ ##
21107 ## Report this to http://llvm.org/bugs/ ##
21108 ## ------------------------------------ ##
21109 _ASBOX
21110      ) | sed "s/^/$as_me: WARNING:     /" >&2
21111     ;;
21112 esac
21113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116   echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118   eval "$as_ac_Header=\$ac_header_preproc"
21119 fi
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121                { echo "$as_me:$LINENO: result: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21123
21124 fi
21125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21126   cat >>confdefs.h <<_ACEOF
21127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21128 _ACEOF
21129
21130 fi
21131
21132 done
21133
21134
21135 for ac_func in getpagesize
21136 do
21137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143   cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21151 #define $ac_func innocuous_$ac_func
21152
21153 /* System header to define __stub macros and hopefully few prototypes,
21154     which can conflict with char $ac_func (); below.
21155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21156     <limits.h> exists even on freestanding compilers.  */
21157
21158 #ifdef __STDC__
21159 # include <limits.h>
21160 #else
21161 # include <assert.h>
21162 #endif
21163
21164 #undef $ac_func
21165
21166 /* Override any GCC internal prototype to avoid an error.
21167    Use char because int might match the return type of a GCC
21168    builtin and then its argument prototype would still apply.  */
21169 #ifdef __cplusplus
21170 extern "C"
21171 #endif
21172 char $ac_func ();
21173 /* The GNU C library defines this for functions which it implements
21174     to always fail with ENOSYS.  Some functions are actually named
21175     something starting with __ and the normal name is an alias.  */
21176 #if defined __stub_$ac_func || defined __stub___$ac_func
21177 choke me
21178 #endif
21179
21180 int
21181 main ()
21182 {
21183 return $ac_func ();
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (ac_try="$ac_link"
21190 case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195   (eval "$ac_link") 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } &&
21202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21203   { (case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_try") 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; } &&
21212          { ac_try='test -s conftest$ac_exeext'
21213   { (case "(($ac_try" in
21214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215   *) ac_try_echo=$ac_try;;
21216 esac
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218   (eval "$ac_try") 2>&5
21219   ac_status=$?
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); }; }; then
21222   eval "$as_ac_var=yes"
21223 else
21224   echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21226
21227         eval "$as_ac_var=no"
21228 fi
21229
21230 rm -f core conftest.err conftest.$ac_objext \
21231       conftest$ac_exeext conftest.$ac_ext
21232 fi
21233 ac_res=`eval echo '${'$as_ac_var'}'`
21234                { echo "$as_me:$LINENO: result: $ac_res" >&5
21235 echo "${ECHO_T}$ac_res" >&6; }
21236 if test `eval echo '${'$as_ac_var'}'` = yes; then
21237   cat >>confdefs.h <<_ACEOF
21238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21239 _ACEOF
21240
21241 fi
21242 done
21243
21244 { echo "$as_me:$LINENO: checking for working mmap" >&5
21245 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21246 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   if test "$cross_compiling" = yes; then
21250   ac_cv_func_mmap_fixed_mapped=no
21251 else
21252   cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h.  */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h.  */
21258 $ac_includes_default
21259 /* malloc might have been renamed as rpl_malloc. */
21260 #undef malloc
21261
21262 /* Thanks to Mike Haertel and Jim Avera for this test.
21263    Here is a matrix of mmap possibilities:
21264         mmap private not fixed
21265         mmap private fixed at somewhere currently unmapped
21266         mmap private fixed at somewhere already mapped
21267         mmap shared not fixed
21268         mmap shared fixed at somewhere currently unmapped
21269         mmap shared fixed at somewhere already mapped
21270    For private mappings, we should verify that changes cannot be read()
21271    back from the file, nor mmap's back from the file at a different
21272    address.  (There have been systems where private was not correctly
21273    implemented like the infamous i386 svr4.0, and systems where the
21274    VM page cache was not coherent with the file system buffer cache
21275    like early versions of FreeBSD and possibly contemporary NetBSD.)
21276    For shared mappings, we should conversely verify that changes get
21277    propagated back to all the places they're supposed to be.
21278
21279    Grep wants private fixed already mapped.
21280    The main things grep needs to know about mmap are:
21281    * does it exist and is it safe to write into the mmap'd area
21282    * how to use it (BSD variants)  */
21283
21284 #include <fcntl.h>
21285 #include <sys/mman.h>
21286
21287 #if !STDC_HEADERS && !HAVE_STDLIB_H
21288 char *malloc ();
21289 #endif
21290
21291 /* This mess was copied from the GNU getpagesize.h.  */
21292 #if !HAVE_GETPAGESIZE
21293 /* Assume that all systems that can run configure have sys/param.h.  */
21294 # if !HAVE_SYS_PARAM_H
21295 #  define HAVE_SYS_PARAM_H 1
21296 # endif
21297
21298 # ifdef _SC_PAGESIZE
21299 #  define getpagesize() sysconf(_SC_PAGESIZE)
21300 # else /* no _SC_PAGESIZE */
21301 #  if HAVE_SYS_PARAM_H
21302 #   include <sys/param.h>
21303 #   ifdef EXEC_PAGESIZE
21304 #    define getpagesize() EXEC_PAGESIZE
21305 #   else /* no EXEC_PAGESIZE */
21306 #    ifdef NBPG
21307 #     define getpagesize() NBPG * CLSIZE
21308 #     ifndef CLSIZE
21309 #      define CLSIZE 1
21310 #     endif /* no CLSIZE */
21311 #    else /* no NBPG */
21312 #     ifdef NBPC
21313 #      define getpagesize() NBPC
21314 #     else /* no NBPC */
21315 #      ifdef PAGESIZE
21316 #       define getpagesize() PAGESIZE
21317 #      endif /* PAGESIZE */
21318 #     endif /* no NBPC */
21319 #    endif /* no NBPG */
21320 #   endif /* no EXEC_PAGESIZE */
21321 #  else /* no HAVE_SYS_PARAM_H */
21322 #   define getpagesize() 8192   /* punt totally */
21323 #  endif /* no HAVE_SYS_PARAM_H */
21324 # endif /* no _SC_PAGESIZE */
21325
21326 #endif /* no HAVE_GETPAGESIZE */
21327
21328 int
21329 main ()
21330 {
21331   char *data, *data2, *data3;
21332   int i, pagesize;
21333   int fd;
21334
21335   pagesize = getpagesize ();
21336
21337   /* First, make a file with some known garbage in it. */
21338   data = (char *) malloc (pagesize);
21339   if (!data)
21340     return 1;
21341   for (i = 0; i < pagesize; ++i)
21342     *(data + i) = rand ();
21343   umask (0);
21344   fd = creat ("conftest.mmap", 0600);
21345   if (fd < 0)
21346     return 1;
21347   if (write (fd, data, pagesize) != pagesize)
21348     return 1;
21349   close (fd);
21350
21351   /* Next, try to mmap the file at a fixed address which already has
21352      something else allocated at it.  If we can, also make sure that
21353      we see the same garbage.  */
21354   fd = open ("conftest.mmap", O_RDWR);
21355   if (fd < 0)
21356     return 1;
21357   data2 = (char *) malloc (2 * pagesize);
21358   if (!data2)
21359     return 1;
21360   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21361   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21362                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21363     return 1;
21364   for (i = 0; i < pagesize; ++i)
21365     if (*(data + i) != *(data2 + i))
21366       return 1;
21367
21368   /* Finally, make sure that changes to the mapped area do not
21369      percolate back to the file as seen by read().  (This is a bug on
21370      some variants of i386 svr4.0.)  */
21371   for (i = 0; i < pagesize; ++i)
21372     *(data2 + i) = *(data2 + i) + 1;
21373   data3 = (char *) malloc (pagesize);
21374   if (!data3)
21375     return 1;
21376   if (read (fd, data3, pagesize) != pagesize)
21377     return 1;
21378   for (i = 0; i < pagesize; ++i)
21379     if (*(data + i) != *(data3 + i))
21380       return 1;
21381   close (fd);
21382   return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389   *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392   (eval "$ac_link") 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396   { (case "(($ac_try" in
21397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398   *) ac_try_echo=$ac_try;;
21399 esac
21400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21401   (eval "$ac_try") 2>&5
21402   ac_status=$?
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); }; }; then
21405   ac_cv_func_mmap_fixed_mapped=yes
21406 else
21407   echo "$as_me: program exited with status $ac_status" >&5
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 ( exit $ac_status )
21412 ac_cv_func_mmap_fixed_mapped=no
21413 fi
21414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21415 fi
21416
21417
21418 fi
21419 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21420 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21422
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_MMAP 1
21425 _ACEOF
21426
21427 fi
21428 rm -f conftest.mmap
21429
21430   { echo "$as_me:$LINENO: checking for mmap of files" >&5
21431 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21432 if test "${ac_cv_func_mmap_file+set}" = set; then
21433   echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435    ac_ext=c
21436 ac_cpp='$CPP $CPPFLAGS'
21437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440
21441   if test "$cross_compiling" = yes; then
21442   ac_cv_func_mmap_file=no
21443 else
21444   cat >conftest.$ac_ext <<_ACEOF
21445
21446     /* confdefs.h.  */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h.  */
21451
21452 #include <sys/types.h>
21453 #include <sys/mman.h>
21454 #include <fcntl.h>
21455
21456 int
21457 main ()
21458 {
21459
21460   int fd;
21461   fd = creat ("foo",0777);
21462   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21463   unlink ("foo");
21464   return (fd != (int) MAP_FAILED);
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_link") 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21480   { (case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_try") 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); }; }; then
21489   ac_cv_func_mmap_file=yes
21490 else
21491   echo "$as_me: program exited with status $ac_status" >&5
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495 ( exit $ac_status )
21496 ac_cv_func_mmap_file=no
21497 fi
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21499 fi
21500
21501
21502   ac_ext=c
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21507
21508
21509 fi
21510 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21511 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21512 if test "$ac_cv_func_mmap_file" = yes; then
21513
21514 cat >>confdefs.h <<\_ACEOF
21515 #define HAVE_MMAP_FILE
21516 _ACEOF
21517
21518    MMAP_FILE=yes
21519
21520 fi
21521
21522   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21523 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21524 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21525   echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527   if test "$llvm_cv_os_type" = "Interix" ; then
21528    ac_cv_need_dev_zero_for_mmap=yes
21529  else
21530    ac_cv_need_dev_zero_for_mmap=no
21531  fi
21532
21533 fi
21534 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21535 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21536 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21537
21538 cat >>confdefs.h <<\_ACEOF
21539 #define NEED_DEV_ZERO_FOR_MMAP 1
21540 _ACEOF
21541
21542 fi
21543
21544   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21545   then
21546     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21547 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21548   fi
21549   if test "$ac_cv_func_mmap_file" = "no"
21550   then
21551     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21552 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21553   fi
21554 fi
21555
21556 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21557 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21558 ac_ext=cpp
21559 ac_cpp='$CXXCPP $CPPFLAGS'
21560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
21564 cat >conftest.$ac_ext <<_ACEOF
21565
21566   /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571
21572     int main() {
21573       volatile unsigned long val = 1;
21574       __sync_synchronize();
21575       __sync_val_compare_and_swap(&val, 1, 0);
21576       __sync_add_and_fetch(&val, 1);
21577       __sync_sub_and_fetch(&val, 1);
21578       return 0;
21579     }
21580
21581
21582 _ACEOF
21583 rm -f conftest.$ac_objext conftest$ac_exeext
21584 if { (ac_try="$ac_link"
21585 case "(($ac_try" in
21586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587   *) ac_try_echo=$ac_try;;
21588 esac
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590   (eval "$ac_link") 2>conftest.er1
21591   ac_status=$?
21592   grep -v '^ *+' conftest.er1 >conftest.err
21593   rm -f conftest.er1
21594   cat conftest.err >&5
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } &&
21597          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21598   { (case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_try") 2>&5
21604   ac_status=$?
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); }; } &&
21607          { ac_try='test -s conftest$ac_exeext'
21608   { (case "(($ac_try" in
21609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610   *) ac_try_echo=$ac_try;;
21611 esac
21612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613   (eval "$ac_try") 2>&5
21614   ac_status=$?
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); }; }; then
21617
21618   { echo "$as_me:$LINENO: result: yes" >&5
21619 echo "${ECHO_T}yes" >&6; }
21620
21621 cat >>confdefs.h <<\_ACEOF
21622 #define LLVM_HAS_ATOMICS 1
21623 _ACEOF
21624
21625
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630
21631   { echo "$as_me:$LINENO: result: no" >&5
21632 echo "${ECHO_T}no" >&6; }
21633
21634 cat >>confdefs.h <<\_ACEOF
21635 #define LLVM_HAS_ATOMICS 0
21636 _ACEOF
21637
21638   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21639 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21640
21641 fi
21642
21643 rm -f core conftest.err conftest.$ac_objext \
21644       conftest$ac_exeext conftest.$ac_ext
21645 ac_ext=c
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21650
21651
21652
21653 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21654   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21655 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21656 if test "${llvm_cv_linux_mixed+set}" = set; then
21657   echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659    ac_ext=c
21660 ac_cpp='$CPP $CPPFLAGS'
21661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21664
21665   cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 #ifndef __x86_64__
21672        error: Not x86-64 even if uname says so!
21673       #endif
21674
21675 int
21676 main ()
21677 {
21678
21679   ;
21680   return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_compile") 2>conftest.er1
21691   ac_status=$?
21692   grep -v '^ *+' conftest.er1 >conftest.err
21693   rm -f conftest.er1
21694   cat conftest.err >&5
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } &&
21697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21698   { (case "(($ac_try" in
21699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700   *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703   (eval "$ac_try") 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; } &&
21707          { ac_try='test -s conftest.$ac_objext'
21708   { (case "(($ac_try" in
21709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710   *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713   (eval "$ac_try") 2>&5
21714   ac_status=$?
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); }; }; then
21717   llvm_cv_linux_mixed=no
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722         llvm_cv_linux_mixed=yes
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726   ac_ext=c
21727 ac_cpp='$CPP $CPPFLAGS'
21728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21731
21732
21733 fi
21734 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21735 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21736
21737   if test "$llvm_cv_linux_mixed" = "yes"; then
21738     llvm_cv_target_arch="x86"
21739     ARCH="x86"
21740   fi
21741 fi
21742
21743
21744 for ac_func in __dso_handle
21745 do
21746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21750   echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752   cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h.  */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h.  */
21758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21760 #define $ac_func innocuous_$ac_func
21761
21762 /* System header to define __stub macros and hopefully few prototypes,
21763     which can conflict with char $ac_func (); below.
21764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21765     <limits.h> exists even on freestanding compilers.  */
21766
21767 #ifdef __STDC__
21768 # include <limits.h>
21769 #else
21770 # include <assert.h>
21771 #endif
21772
21773 #undef $ac_func
21774
21775 /* Override any GCC internal prototype to avoid an error.
21776    Use char because int might match the return type of a GCC
21777    builtin and then its argument prototype would still apply.  */
21778 #ifdef __cplusplus
21779 extern "C"
21780 #endif
21781 char $ac_func ();
21782 /* The GNU C library defines this for functions which it implements
21783     to always fail with ENOSYS.  Some functions are actually named
21784     something starting with __ and the normal name is an alias.  */
21785 #if defined __stub_$ac_func || defined __stub___$ac_func
21786 choke me
21787 #endif
21788
21789 int
21790 main ()
21791 {
21792 return $ac_func ();
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801   *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804   (eval "$ac_link") 2>conftest.er1
21805   ac_status=$?
21806   grep -v '^ *+' conftest.er1 >conftest.err
21807   rm -f conftest.er1
21808   cat conftest.err >&5
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); } &&
21811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21812   { (case "(($ac_try" in
21813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814   *) ac_try_echo=$ac_try;;
21815 esac
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817   (eval "$ac_try") 2>&5
21818   ac_status=$?
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); }; } &&
21821          { ac_try='test -s conftest$ac_exeext'
21822   { (case "(($ac_try" in
21823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824   *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827   (eval "$ac_try") 2>&5
21828   ac_status=$?
21829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830   (exit $ac_status); }; }; then
21831   eval "$as_ac_var=yes"
21832 else
21833   echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836         eval "$as_ac_var=no"
21837 fi
21838
21839 rm -f core conftest.err conftest.$ac_objext \
21840       conftest$ac_exeext conftest.$ac_ext
21841 fi
21842 ac_res=`eval echo '${'$as_ac_var'}'`
21843                { echo "$as_me:$LINENO: result: $ac_res" >&5
21844 echo "${ECHO_T}$ac_res" >&6; }
21845 if test `eval echo '${'$as_ac_var'}'` = yes; then
21846   cat >>confdefs.h <<_ACEOF
21847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21848 _ACEOF
21849
21850 fi
21851 done
21852
21853
21854 SHLIBEXT=$libltdl_cv_shlibext
21855
21856
21857 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21858
21859
21860 if test "${prefix}" = "NONE" ; then
21861   prefix="/usr/local"
21862 fi
21863 eval LLVM_PREFIX="${prefix}";
21864 eval LLVM_BINDIR="${prefix}/bin";
21865 eval LLVM_LIBDIR="${prefix}/lib";
21866 eval LLVM_DATADIR="${prefix}/share/llvm";
21867 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21868 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21869 eval LLVM_INCLUDEDIR="${prefix}/include";
21870 eval LLVM_INFODIR="${prefix}/info";
21871 eval LLVM_MANDIR="${prefix}/man";
21872 LLVM_CONFIGTIME=`date`
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21885   LLVM_CONFIGTIME="(timestamp not enabled)"
21886 fi
21887
21888
21889 cat >>confdefs.h <<_ACEOF
21890 #define LLVM_PREFIX "$LLVM_PREFIX"
21891 _ACEOF
21892
21893
21894 cat >>confdefs.h <<_ACEOF
21895 #define LLVM_BINDIR "$LLVM_BINDIR"
21896 _ACEOF
21897
21898
21899 cat >>confdefs.h <<_ACEOF
21900 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21901 _ACEOF
21902
21903
21904 cat >>confdefs.h <<_ACEOF
21905 #define LLVM_DATADIR "$LLVM_DATADIR"
21906 _ACEOF
21907
21908
21909 cat >>confdefs.h <<_ACEOF
21910 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21911 _ACEOF
21912
21913
21914 cat >>confdefs.h <<_ACEOF
21915 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21916 _ACEOF
21917
21918
21919 cat >>confdefs.h <<_ACEOF
21920 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21921 _ACEOF
21922
21923
21924 cat >>confdefs.h <<_ACEOF
21925 #define LLVM_INFODIR "$LLVM_INFODIR"
21926 _ACEOF
21927
21928
21929 cat >>confdefs.h <<_ACEOF
21930 #define LLVM_MANDIR "$LLVM_MANDIR"
21931 _ACEOF
21932
21933
21934 cat >>confdefs.h <<_ACEOF
21935 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21936 _ACEOF
21937
21938
21939 cat >>confdefs.h <<_ACEOF
21940 #define LLVM_HOSTTRIPLE "$host"
21941 _ACEOF
21942
21943
21944 cat >>confdefs.h <<_ACEOF
21945 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21946 _ACEOF
21947
21948
21949 if test "$BINDINGS_TO_BUILD" = auto ; then
21950   BINDINGS_TO_BUILD=""
21951   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21952     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21953   fi
21954 fi
21955 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21956
21957
21958 ALL_BINDINGS=ocaml
21959
21960
21961 binding_prereqs_failed=0
21962 for a_binding in $BINDINGS_TO_BUILD ; do
21963   case "$a_binding" in
21964   ocaml)
21965     if test "x$OCAMLC" = x ; then
21966       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21967 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21968       binding_prereqs_failed=1
21969     fi
21970     if test "x$OCAMLDEP" = x ; then
21971       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21972 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21973       binding_prereqs_failed=1
21974     fi
21975     if test "x$OCAMLOPT" = x ; then
21976       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21977 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21978           fi
21979     if test "x$with_ocaml_libdir" != xauto ; then
21980       OCAML_LIBDIR=$with_ocaml_libdir
21981
21982     else
21983       ocaml_stdlib="`"$OCAMLC" -where`"
21984       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21985       then
21986         # ocaml stdlib is beneath our prefix; use stdlib
21987         OCAML_LIBDIR=$ocaml_stdlib
21988
21989       else
21990         # ocaml stdlib is outside our prefix; use libdir/ocaml
21991         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21992
21993       fi
21994     fi
21995     ;;
21996   esac
21997 done
21998 if test "$binding_prereqs_failed" = 1 ; then
21999   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22000 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22001    { (exit 1); exit 1; }; }
22002 fi
22003
22004 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22005 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22006 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009    ac_ext=cpp
22010 ac_cpp='$CXXCPP $CPPFLAGS'
22011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014
22015   oldcxxflags="$CXXFLAGS"
22016   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22017   cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22024 int
22025 main ()
22026 {
22027 X<int>().f();
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_compile") 2>conftest.er1
22040   ac_status=$?
22041   grep -v '^ *+' conftest.er1 >conftest.err
22042   rm -f conftest.er1
22043   cat conftest.err >&5
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); } &&
22046          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22047   { (case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_try") 2>&5
22053   ac_status=$?
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); }; } &&
22056          { ac_try='test -s conftest.$ac_objext'
22057   { (case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062   (eval "$ac_try") 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066   llvm_cv_cxx_visibility_inlines_hidden=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071         llvm_cv_cxx_visibility_inlines_hidden=no
22072 fi
22073
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075   CXXFLAGS="$oldcxxflags"
22076   ac_ext=c
22077 ac_cpp='$CPP $CPPFLAGS'
22078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082
22083 fi
22084 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22085 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22086 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22087   ENABLE_VISIBILITY_INLINES_HIDDEN=1
22088
22089 else
22090   ENABLE_VISIBILITY_INLINES_HIDDEN=0
22091
22092 fi
22093
22094
22095 if test "$llvm_cv_link_use_r" = "yes" ; then
22096   RPATH="-Wl,-R"
22097 else
22098   RPATH="-Wl,-rpath"
22099 fi
22100
22101
22102 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22103   RDYNAMIC="-Wl,-export-dynamic"
22104 else
22105   RDYNAMIC=""
22106 fi
22107
22108
22109
22110 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22111
22112
22113
22114
22115
22116
22117 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22118
22119 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22120
22121 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22122
22123 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22124
22125 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22126
22127
22128 ac_config_files="$ac_config_files Makefile.config"
22129
22130
22131 ac_config_files="$ac_config_files llvm.spec"
22132
22133
22134 ac_config_files="$ac_config_files docs/doxygen.cfg"
22135
22136
22137 if test "${clang_src_root}" = ""; then
22138   clang_src_root="$srcdir/tools/clang"
22139 fi
22140 if test -f ${clang_src_root}/README.txt; then
22141     configh="include/clang/Config/config.h"
22142   doxy="docs/doxygen.cfg"
22143   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22144
22145   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22146
22147 fi
22148
22149 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22150
22151
22152 test "x$program_prefix" = "xNONE" && program_prefix=""
22153
22154
22155
22156 ac_config_commands="$ac_config_commands setup"
22157
22158 ac_config_commands="$ac_config_commands Makefile"
22159
22160
22161 ac_config_commands="$ac_config_commands Makefile.common"
22162
22163
22164 ac_config_commands="$ac_config_commands examples/Makefile"
22165
22166
22167 ac_config_commands="$ac_config_commands lib/Makefile"
22168
22169
22170 ac_config_commands="$ac_config_commands runtime/Makefile"
22171
22172
22173 ac_config_commands="$ac_config_commands test/Makefile"
22174
22175
22176 ac_config_commands="$ac_config_commands test/Makefile.tests"
22177
22178
22179 ac_config_commands="$ac_config_commands unittests/Makefile"
22180
22181
22182 ac_config_commands="$ac_config_commands tools/Makefile"
22183
22184
22185 ac_config_commands="$ac_config_commands utils/Makefile"
22186
22187
22188 ac_config_commands="$ac_config_commands projects/Makefile"
22189
22190
22191 ac_config_commands="$ac_config_commands bindings/Makefile"
22192
22193
22194 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22195
22196
22197
22198 cat >confcache <<\_ACEOF
22199 # This file is a shell script that caches the results of configure
22200 # tests run on this system so they can be shared between configure
22201 # scripts and configure runs, see configure's option --config-cache.
22202 # It is not useful on other systems.  If it contains results you don't
22203 # want to keep, you may remove or edit it.
22204 #
22205 # config.status only pays attention to the cache file if you give it
22206 # the --recheck option to rerun configure.
22207 #
22208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22210 # following values.
22211
22212 _ACEOF
22213
22214 # The following way of writing the cache mishandles newlines in values,
22215 # but we know of no workaround that is simple, portable, and efficient.
22216 # So, we kill variables containing newlines.
22217 # Ultrix sh set writes to stderr and can't be redirected directly,
22218 # and sets the high bit in the cache file unless we assign to the vars.
22219 (
22220   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22221     eval ac_val=\$$ac_var
22222     case $ac_val in #(
22223     *${as_nl}*)
22224       case $ac_var in #(
22225       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22226 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22227       esac
22228       case $ac_var in #(
22229       _ | IFS | as_nl) ;; #(
22230       *) $as_unset $ac_var ;;
22231       esac ;;
22232     esac
22233   done
22234
22235   (set) 2>&1 |
22236     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22237     *${as_nl}ac_space=\ *)
22238       # `set' does not quote correctly, so add quotes (double-quote
22239       # substitution turns \\\\ into \\, and sed turns \\ into \).
22240       sed -n \
22241         "s/'/'\\\\''/g;
22242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22243       ;; #(
22244     *)
22245       # `set' quotes correctly as required by POSIX, so do not add quotes.
22246       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22247       ;;
22248     esac |
22249     sort
22250 ) |
22251   sed '
22252      /^ac_cv_env_/b end
22253      t clear
22254      :clear
22255      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22256      t end
22257      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22258      :end' >>confcache
22259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22260   if test -w "$cache_file"; then
22261     test "x$cache_file" != "x/dev/null" &&
22262       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22263 echo "$as_me: updating cache $cache_file" >&6;}
22264     cat confcache >$cache_file
22265   else
22266     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22267 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22268   fi
22269 fi
22270 rm -f confcache
22271
22272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22273 # Let make expand exec_prefix.
22274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22275
22276 DEFS=-DHAVE_CONFIG_H
22277
22278 ac_libobjs=
22279 ac_ltlibobjs=
22280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22281   # 1. Remove the extension, and $U if already installed.
22282   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22283   ac_i=`echo "$ac_i" | sed "$ac_script"`
22284   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22285   #    will be set to the directory where LIBOBJS objects are built.
22286   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22287   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22288 done
22289 LIBOBJS=$ac_libobjs
22290
22291 LTLIBOBJS=$ac_ltlibobjs
22292
22293
22294 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22295   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22296 Usually this means the macro was only invoked conditionally." >&5
22297 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22298 Usually this means the macro was only invoked conditionally." >&2;}
22299    { (exit 1); exit 1; }; }
22300 fi
22301 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22302   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22303 Usually this means the macro was only invoked conditionally." >&5
22304 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22305 Usually this means the macro was only invoked conditionally." >&2;}
22306    { (exit 1); exit 1; }; }
22307 fi
22308
22309 : ${CONFIG_STATUS=./config.status}
22310 ac_clean_files_save=$ac_clean_files
22311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22312 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22313 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22314 cat >$CONFIG_STATUS <<_ACEOF
22315 #! $SHELL
22316 # Generated by $as_me.
22317 # Run this file to recreate the current configuration.
22318 # Compiler output produced by configure, useful for debugging
22319 # configure, is in config.log if it exists.
22320
22321 debug=false
22322 ac_cs_recheck=false
22323 ac_cs_silent=false
22324 SHELL=\${CONFIG_SHELL-$SHELL}
22325 _ACEOF
22326
22327 cat >>$CONFIG_STATUS <<\_ACEOF
22328 ## --------------------- ##
22329 ## M4sh Initialization.  ##
22330 ## --------------------- ##
22331
22332 # Be Bourne compatible
22333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22334   emulate sh
22335   NULLCMD=:
22336   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22337   # is contrary to our usage.  Disable this feature.
22338   alias -g '${1+"$@"}'='"$@"'
22339   setopt NO_GLOB_SUBST
22340 else
22341   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22342 fi
22343 BIN_SH=xpg4; export BIN_SH # for Tru64
22344 DUALCASE=1; export DUALCASE # for MKS sh
22345
22346
22347 # PATH needs CR
22348 # Avoid depending upon Character Ranges.
22349 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22350 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22351 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22352 as_cr_digits='0123456789'
22353 as_cr_alnum=$as_cr_Letters$as_cr_digits
22354
22355 # The user is always right.
22356 if test "${PATH_SEPARATOR+set}" != set; then
22357   echo "#! /bin/sh" >conf$$.sh
22358   echo  "exit 0"   >>conf$$.sh
22359   chmod +x conf$$.sh
22360   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22361     PATH_SEPARATOR=';'
22362   else
22363     PATH_SEPARATOR=:
22364   fi
22365   rm -f conf$$.sh
22366 fi
22367
22368 # Support unset when possible.
22369 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22370   as_unset=unset
22371 else
22372   as_unset=false
22373 fi
22374
22375
22376 # IFS
22377 # We need space, tab and new line, in precisely that order.  Quoting is
22378 # there to prevent editors from complaining about space-tab.
22379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22380 # splitting by setting IFS to empty value.)
22381 as_nl='
22382 '
22383 IFS=" ""        $as_nl"
22384
22385 # Find who we are.  Look in the path if we contain no directory separator.
22386 case $0 in
22387   *[\\/]* ) as_myself=$0 ;;
22388   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22389 for as_dir in $PATH
22390 do
22391   IFS=$as_save_IFS
22392   test -z "$as_dir" && as_dir=.
22393   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22394 done
22395 IFS=$as_save_IFS
22396
22397      ;;
22398 esac
22399 # We did not find ourselves, most probably we were run as `sh COMMAND'
22400 # in which case we are not to be found in the path.
22401 if test "x$as_myself" = x; then
22402   as_myself=$0
22403 fi
22404 if test ! -f "$as_myself"; then
22405   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22406   { (exit 1); exit 1; }
22407 fi
22408
22409 # Work around bugs in pre-3.0 UWIN ksh.
22410 for as_var in ENV MAIL MAILPATH
22411 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22412 done
22413 PS1='$ '
22414 PS2='> '
22415 PS4='+ '
22416
22417 # NLS nuisances.
22418 for as_var in \
22419   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22420   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22421   LC_TELEPHONE LC_TIME
22422 do
22423   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22424     eval $as_var=C; export $as_var
22425   else
22426     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22427   fi
22428 done
22429
22430 # Required to use basename.
22431 if expr a : '\(a\)' >/dev/null 2>&1 &&
22432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22433   as_expr=expr
22434 else
22435   as_expr=false
22436 fi
22437
22438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22439   as_basename=basename
22440 else
22441   as_basename=false
22442 fi
22443
22444
22445 # Name of the executable.
22446 as_me=`$as_basename -- "$0" ||
22447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22448          X"$0" : 'X\(//\)$' \| \
22449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22450 echo X/"$0" |
22451     sed '/^.*\/\([^/][^/]*\)\/*$/{
22452             s//\1/
22453             q
22454           }
22455           /^X\/\(\/\/\)$/{
22456             s//\1/
22457             q
22458           }
22459           /^X\/\(\/\).*/{
22460             s//\1/
22461             q
22462           }
22463           s/.*/./; q'`
22464
22465 # CDPATH.
22466 $as_unset CDPATH
22467
22468
22469
22470   as_lineno_1=$LINENO
22471   as_lineno_2=$LINENO
22472   test "x$as_lineno_1" != "x$as_lineno_2" &&
22473   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22474
22475   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22476   # uniformly replaced by the line number.  The first 'sed' inserts a
22477   # line-number line after each line using $LINENO; the second 'sed'
22478   # does the real work.  The second script uses 'N' to pair each
22479   # line-number line with the line containing $LINENO, and appends
22480   # trailing '-' during substitution so that $LINENO is not a special
22481   # case at line end.
22482   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22483   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22484   # E. McMahon (1931-1989) for sed's syntax.  :-)
22485   sed -n '
22486     p
22487     /[$]LINENO/=
22488   ' <$as_myself |
22489     sed '
22490       s/[$]LINENO.*/&-/
22491       t lineno
22492       b
22493       :lineno
22494       N
22495       :loop
22496       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22497       t loop
22498       s/-\n.*//
22499     ' >$as_me.lineno &&
22500   chmod +x "$as_me.lineno" ||
22501     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22502    { (exit 1); exit 1; }; }
22503
22504   # Don't try to exec as it changes $[0], causing all sort of problems
22505   # (the dirname of $[0] is not the place where we might find the
22506   # original and so on.  Autoconf is especially sensitive to this).
22507   . "./$as_me.lineno"
22508   # Exit status is that of the last command.
22509   exit
22510 }
22511
22512
22513 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22514   as_dirname=dirname
22515 else
22516   as_dirname=false
22517 fi
22518
22519 ECHO_C= ECHO_N= ECHO_T=
22520 case `echo -n x` in
22521 -n*)
22522   case `echo 'x\c'` in
22523   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22524   *)   ECHO_C='\c';;
22525   esac;;
22526 *)
22527   ECHO_N='-n';;
22528 esac
22529
22530 if expr a : '\(a\)' >/dev/null 2>&1 &&
22531    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22532   as_expr=expr
22533 else
22534   as_expr=false
22535 fi
22536
22537 rm -f conf$$ conf$$.exe conf$$.file
22538 if test -d conf$$.dir; then
22539   rm -f conf$$.dir/conf$$.file
22540 else
22541   rm -f conf$$.dir
22542   mkdir conf$$.dir
22543 fi
22544 echo >conf$$.file
22545 if ln -s conf$$.file conf$$ 2>/dev/null; then
22546   as_ln_s='ln -s'
22547   # ... but there are two gotchas:
22548   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22549   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22550   # In both cases, we have to default to `cp -p'.
22551   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22552     as_ln_s='cp -p'
22553 elif ln conf$$.file conf$$ 2>/dev/null; then
22554   as_ln_s=ln
22555 else
22556   as_ln_s='cp -p'
22557 fi
22558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22559 rmdir conf$$.dir 2>/dev/null
22560
22561 if mkdir -p . 2>/dev/null; then
22562   as_mkdir_p=:
22563 else
22564   test -d ./-p && rmdir ./-p
22565   as_mkdir_p=false
22566 fi
22567
22568 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22569 # systems may use methods other than mode bits to determine executability.
22570 cat >conf$$.file <<_ASEOF
22571 #! /bin/sh
22572 exit 0
22573 _ASEOF
22574 chmod +x conf$$.file
22575 if test -x conf$$.file >/dev/null 2>&1; then
22576   as_executable_p="test -x"
22577 else
22578   as_executable_p=:
22579 fi
22580 rm -f conf$$.file
22581
22582 # Sed expression to map a string onto a valid CPP name.
22583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22584
22585 # Sed expression to map a string onto a valid variable name.
22586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22587
22588
22589 exec 6>&1
22590
22591 # Save the log message, to keep $[0] and so on meaningful, and to
22592 # report actual input values of CONFIG_FILES etc. instead of their
22593 # values after options handling.
22594 ac_log="
22595 This file was extended by LLVM $as_me 3.3svn, which was
22596 generated by GNU Autoconf 2.60.  Invocation command line was
22597
22598   CONFIG_FILES    = $CONFIG_FILES
22599   CONFIG_HEADERS  = $CONFIG_HEADERS
22600   CONFIG_LINKS    = $CONFIG_LINKS
22601   CONFIG_COMMANDS = $CONFIG_COMMANDS
22602   $ $0 $@
22603
22604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22605 "
22606
22607 _ACEOF
22608
22609 cat >>$CONFIG_STATUS <<_ACEOF
22610 # Files that config.status was made for.
22611 config_files="$ac_config_files"
22612 config_headers="$ac_config_headers"
22613 config_commands="$ac_config_commands"
22614
22615 _ACEOF
22616
22617 cat >>$CONFIG_STATUS <<\_ACEOF
22618 ac_cs_usage="\
22619 \`$as_me' instantiates files from templates according to the
22620 current configuration.
22621
22622 Usage: $0 [OPTIONS] [FILE]...
22623
22624   -h, --help       print this help, then exit
22625   -V, --version    print version number, then exit
22626   -q, --quiet      do not print progress messages
22627   -d, --debug      don't remove temporary files
22628       --recheck    update $as_me by reconfiguring in the same conditions
22629   --file=FILE[:TEMPLATE]
22630                    instantiate the configuration file FILE
22631   --header=FILE[:TEMPLATE]
22632                    instantiate the configuration header FILE
22633
22634 Configuration files:
22635 $config_files
22636
22637 Configuration headers:
22638 $config_headers
22639
22640 Configuration commands:
22641 $config_commands
22642
22643 Report bugs to <bug-autoconf@gnu.org>."
22644
22645 _ACEOF
22646 cat >>$CONFIG_STATUS <<_ACEOF
22647 ac_cs_version="\\
22648 LLVM config.status 3.3svn
22649 configured by $0, generated by GNU Autoconf 2.60,
22650   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22651
22652 Copyright (C) 2006 Free Software Foundation, Inc.
22653 This config.status script is free software; the Free Software Foundation
22654 gives unlimited permission to copy, distribute and modify it."
22655
22656 ac_pwd='$ac_pwd'
22657 srcdir='$srcdir'
22658 INSTALL='$INSTALL'
22659 _ACEOF
22660
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22662 # If no file are specified by the user, then we need to provide default
22663 # value.  By we need to know if files were specified by the user.
22664 ac_need_defaults=:
22665 while test $# != 0
22666 do
22667   case $1 in
22668   --*=*)
22669     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22670     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22671     ac_shift=:
22672     ;;
22673   *)
22674     ac_option=$1
22675     ac_optarg=$2
22676     ac_shift=shift
22677     ;;
22678   esac
22679
22680   case $ac_option in
22681   # Handling of the options.
22682   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22683     ac_cs_recheck=: ;;
22684   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22685     echo "$ac_cs_version"; exit ;;
22686   --debug | --debu | --deb | --de | --d | -d )
22687     debug=: ;;
22688   --file | --fil | --fi | --f )
22689     $ac_shift
22690     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22691     ac_need_defaults=false;;
22692   --header | --heade | --head | --hea )
22693     $ac_shift
22694     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22695     ac_need_defaults=false;;
22696   --he | --h)
22697     # Conflict between --help and --header
22698     { echo "$as_me: error: ambiguous option: $1
22699 Try \`$0 --help' for more information." >&2
22700    { (exit 1); exit 1; }; };;
22701   --help | --hel | -h )
22702     echo "$ac_cs_usage"; exit ;;
22703   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22704   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22705     ac_cs_silent=: ;;
22706
22707   # This is an error.
22708   -*) { echo "$as_me: error: unrecognized option: $1
22709 Try \`$0 --help' for more information." >&2
22710    { (exit 1); exit 1; }; } ;;
22711
22712   *) ac_config_targets="$ac_config_targets $1"
22713      ac_need_defaults=false ;;
22714
22715   esac
22716   shift
22717 done
22718
22719 ac_configure_extra_args=
22720
22721 if $ac_cs_silent; then
22722   exec 6>/dev/null
22723   ac_configure_extra_args="$ac_configure_extra_args --silent"
22724 fi
22725
22726 _ACEOF
22727 cat >>$CONFIG_STATUS <<_ACEOF
22728 if \$ac_cs_recheck; then
22729   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22730   CONFIG_SHELL=$SHELL
22731   export CONFIG_SHELL
22732   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22733 fi
22734
22735 _ACEOF
22736 cat >>$CONFIG_STATUS <<\_ACEOF
22737 exec 5>>config.log
22738 {
22739   echo
22740   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22741 ## Running $as_me. ##
22742 _ASBOX
22743   echo "$ac_log"
22744 } >&5
22745
22746 _ACEOF
22747 cat >>$CONFIG_STATUS <<_ACEOF
22748 #
22749 # INIT-COMMANDS
22750 #
22751 llvm_src="${srcdir}"
22752
22753 _ACEOF
22754
22755 cat >>$CONFIG_STATUS <<\_ACEOF
22756
22757 # Handling of arguments.
22758 for ac_config_target in $ac_config_targets
22759 do
22760   case $ac_config_target in
22761     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22762     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22763     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22764     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22765     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22766     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22767     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22768     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22769     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22770     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22771     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22772     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22773     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22774     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22775     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22776     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22777     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22778     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22779     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22780     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22781     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22782     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22783     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22784     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22785     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22786     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22787     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22788
22789   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22790 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22791    { (exit 1); exit 1; }; };;
22792   esac
22793 done
22794
22795
22796 # If the user did not use the arguments to specify the items to instantiate,
22797 # then the envvar interface is used.  Set only those that are not.
22798 # We use the long form for the default assignment because of an extremely
22799 # bizarre bug on SunOS 4.1.3.
22800 if $ac_need_defaults; then
22801   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22802   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22803   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22804 fi
22805
22806 # Have a temporary directory for convenience.  Make it in the build tree
22807 # simply because there is no reason against having it here, and in addition,
22808 # creating and moving files from /tmp can sometimes cause problems.
22809 # Hook for its removal unless debugging.
22810 # Note that there is a small window in which the directory will not be cleaned:
22811 # after its creation but before its name has been assigned to `$tmp'.
22812 $debug ||
22813 {
22814   tmp=
22815   trap 'exit_status=$?
22816   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22817 ' 0
22818   trap '{ (exit 1); exit 1; }' 1 2 13 15
22819 }
22820 # Create a (secure) tmp directory for tmp files.
22821
22822 {
22823   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22824   test -n "$tmp" && test -d "$tmp"
22825 }  ||
22826 {
22827   tmp=./conf$$-$RANDOM
22828   (umask 077 && mkdir "$tmp")
22829 } ||
22830 {
22831    echo "$me: cannot create a temporary directory in ." >&2
22832    { (exit 1); exit 1; }
22833 }
22834
22835 #
22836 # Set up the sed scripts for CONFIG_FILES section.
22837 #
22838
22839 # No need to generate the scripts if there are no CONFIG_FILES.
22840 # This happens for instance when ./config.status config.h
22841 if test -n "$CONFIG_FILES"; then
22842
22843 _ACEOF
22844
22845
22846
22847 ac_delim='%!_!# '
22848 for ac_last_try in false false false false false :; do
22849   cat >conf$$subs.sed <<_ACEOF
22850 SHELL!$SHELL$ac_delim
22851 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22852 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22853 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22854 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22855 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22856 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22857 exec_prefix!$exec_prefix$ac_delim
22858 prefix!$prefix$ac_delim
22859 program_transform_name!$program_transform_name$ac_delim
22860 bindir!$bindir$ac_delim
22861 sbindir!$sbindir$ac_delim
22862 libexecdir!$libexecdir$ac_delim
22863 datarootdir!$datarootdir$ac_delim
22864 datadir!$datadir$ac_delim
22865 sysconfdir!$sysconfdir$ac_delim
22866 sharedstatedir!$sharedstatedir$ac_delim
22867 localstatedir!$localstatedir$ac_delim
22868 includedir!$includedir$ac_delim
22869 oldincludedir!$oldincludedir$ac_delim
22870 docdir!$docdir$ac_delim
22871 infodir!$infodir$ac_delim
22872 htmldir!$htmldir$ac_delim
22873 dvidir!$dvidir$ac_delim
22874 pdfdir!$pdfdir$ac_delim
22875 psdir!$psdir$ac_delim
22876 libdir!$libdir$ac_delim
22877 localedir!$localedir$ac_delim
22878 mandir!$mandir$ac_delim
22879 DEFS!$DEFS$ac_delim
22880 ECHO_C!$ECHO_C$ac_delim
22881 ECHO_N!$ECHO_N$ac_delim
22882 ECHO_T!$ECHO_T$ac_delim
22883 LIBS!$LIBS$ac_delim
22884 build_alias!$build_alias$ac_delim
22885 host_alias!$host_alias$ac_delim
22886 target_alias!$target_alias$ac_delim
22887 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22888 CC!$CC$ac_delim
22889 CFLAGS!$CFLAGS$ac_delim
22890 LDFLAGS!$LDFLAGS$ac_delim
22891 CPPFLAGS!$CPPFLAGS$ac_delim
22892 ac_ct_CC!$ac_ct_CC$ac_delim
22893 EXEEXT!$EXEEXT$ac_delim
22894 OBJEXT!$OBJEXT$ac_delim
22895 CXX!$CXX$ac_delim
22896 CXXFLAGS!$CXXFLAGS$ac_delim
22897 ac_ct_CXX!$ac_ct_CXX$ac_delim
22898 CPP!$CPP$ac_delim
22899 subdirs!$subdirs$ac_delim
22900 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22901 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22902 build!$build$ac_delim
22903 build_cpu!$build_cpu$ac_delim
22904 build_vendor!$build_vendor$ac_delim
22905 build_os!$build_os$ac_delim
22906 host!$host$ac_delim
22907 host_cpu!$host_cpu$ac_delim
22908 host_vendor!$host_vendor$ac_delim
22909 host_os!$host_os$ac_delim
22910 target!$target$ac_delim
22911 target_cpu!$target_cpu$ac_delim
22912 target_vendor!$target_vendor$ac_delim
22913 target_os!$target_os$ac_delim
22914 OS!$OS$ac_delim
22915 HOST_OS!$HOST_OS$ac_delim
22916 TARGET_OS!$TARGET_OS$ac_delim
22917 LINKALL!$LINKALL$ac_delim
22918 NOLINKALL!$NOLINKALL$ac_delim
22919 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22920 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22921 ARCH!$ARCH$ac_delim
22922 HOST_ARCH!$HOST_ARCH$ac_delim
22923 ENDIAN!$ENDIAN$ac_delim
22924 GREP!$GREP$ac_delim
22925 EGREP!$EGREP$ac_delim
22926 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22927 BUILD_CC!$BUILD_CC$ac_delim
22928 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22929 BUILD_CXX!$BUILD_CXX$ac_delim
22930 CVSBUILD!$CVSBUILD$ac_delim
22931 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22932 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22933 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22934 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22935 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22936 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22937 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22938 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22939 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22940 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22941 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22942 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22943 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22944 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22945 JIT!$JIT$ac_delim
22946 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22947 _ACEOF
22948
22949   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22950     break
22951   elif $ac_last_try; then
22952     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22954    { (exit 1); exit 1; }; }
22955   else
22956     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22957   fi
22958 done
22959
22960 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22961 if test -n "$ac_eof"; then
22962   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22963   ac_eof=`expr $ac_eof + 1`
22964 fi
22965
22966 cat >>$CONFIG_STATUS <<_ACEOF
22967 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22969 _ACEOF
22970 sed '
22971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22972 s/^/s,@/; s/!/@,|#_!!_#|/
22973 :n
22974 t n
22975 s/'"$ac_delim"'$/,g/; t
22976 s/$/\\/; p
22977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22978 ' >>$CONFIG_STATUS <conf$$subs.sed
22979 rm -f conf$$subs.sed
22980 cat >>$CONFIG_STATUS <<_ACEOF
22981 CEOF$ac_eof
22982 _ACEOF
22983
22984
22985 ac_delim='%!_!# '
22986 for ac_last_try in false false false false false :; do
22987   cat >conf$$subs.sed <<_ACEOF
22988 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22989 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22990 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22991 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22992 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22993 ENABLE_PIC!$ENABLE_PIC$ac_delim
22994 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22995 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22996 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22997 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22998 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22999 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23000 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23001 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23002 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23003 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23004 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23005 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23006 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23007 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23008 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23009 NM!$NM$ac_delim
23010 ifGNUmake!$ifGNUmake$ac_delim
23011 LN_S!$LN_S$ac_delim
23012 CMP!$CMP$ac_delim
23013 CP!$CP$ac_delim
23014 DATE!$DATE$ac_delim
23015 FIND!$FIND$ac_delim
23016 MKDIR!$MKDIR$ac_delim
23017 MV!$MV$ac_delim
23018 RANLIB!$RANLIB$ac_delim
23019 AR!$AR$ac_delim
23020 RM!$RM$ac_delim
23021 SED!$SED$ac_delim
23022 TAR!$TAR$ac_delim
23023 BINPWD!$BINPWD$ac_delim
23024 GRAPHVIZ!$GRAPHVIZ$ac_delim
23025 DOT!$DOT$ac_delim
23026 FDP!$FDP$ac_delim
23027 NEATO!$NEATO$ac_delim
23028 TWOPI!$TWOPI$ac_delim
23029 CIRCO!$CIRCO$ac_delim
23030 GV!$GV$ac_delim
23031 DOTTY!$DOTTY$ac_delim
23032 XDOT_PY!$XDOT_PY$ac_delim
23033 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23034 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23035 INSTALL_DATA!$INSTALL_DATA$ac_delim
23036 BZIP2!$BZIP2$ac_delim
23037 CAT!$CAT$ac_delim
23038 DOXYGEN!$DOXYGEN$ac_delim
23039 GROFF!$GROFF$ac_delim
23040 GZIPBIN!$GZIPBIN$ac_delim
23041 PDFROFF!$PDFROFF$ac_delim
23042 ZIP!$ZIP$ac_delim
23043 OCAMLC!$OCAMLC$ac_delim
23044 OCAMLOPT!$OCAMLOPT$ac_delim
23045 OCAMLDEP!$OCAMLDEP$ac_delim
23046 OCAMLDOC!$OCAMLDOC$ac_delim
23047 GAS!$GAS$ac_delim
23048 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23049 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23050 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23051 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23052 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23053 LIBADD_DL!$LIBADD_DL$ac_delim
23054 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23055 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23056 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23057 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23058 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23059 PYTHON!$PYTHON$ac_delim
23060 USE_UDIS86!$USE_UDIS86$ac_delim
23061 USE_OPROFILE!$USE_OPROFILE$ac_delim
23062 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23063 XML2CONFIG!$XML2CONFIG$ac_delim
23064 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23065 LIBXML2_INC!$LIBXML2_INC$ac_delim
23066 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23067 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23068 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23069 MMAP_FILE!$MMAP_FILE$ac_delim
23070 SHLIBEXT!$SHLIBEXT$ac_delim
23071 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23072 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23073 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23074 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23075 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23076 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23077 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23078 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23079 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23080 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23081 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23082 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23083 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23084 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23085 _ACEOF
23086
23087   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23088     break
23089   elif $ac_last_try; then
23090     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23092    { (exit 1); exit 1; }; }
23093   else
23094     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23095   fi
23096 done
23097
23098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23099 if test -n "$ac_eof"; then
23100   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23101   ac_eof=`expr $ac_eof + 1`
23102 fi
23103
23104 cat >>$CONFIG_STATUS <<_ACEOF
23105 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23107 _ACEOF
23108 sed '
23109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23110 s/^/s,@/; s/!/@,|#_!!_#|/
23111 :n
23112 t n
23113 s/'"$ac_delim"'$/,g/; t
23114 s/$/\\/; p
23115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23116 ' >>$CONFIG_STATUS <conf$$subs.sed
23117 rm -f conf$$subs.sed
23118 cat >>$CONFIG_STATUS <<_ACEOF
23119 CEOF$ac_eof
23120 _ACEOF
23121
23122
23123 ac_delim='%!_!# '
23124 for ac_last_try in false false false false false :; do
23125   cat >conf$$subs.sed <<_ACEOF
23126 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23127 RPATH!$RPATH$ac_delim
23128 RDYNAMIC!$RDYNAMIC$ac_delim
23129 program_prefix!$program_prefix$ac_delim
23130 LIBOBJS!$LIBOBJS$ac_delim
23131 LTLIBOBJS!$LTLIBOBJS$ac_delim
23132 _ACEOF
23133
23134   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23135     break
23136   elif $ac_last_try; then
23137     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23138 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23139    { (exit 1); exit 1; }; }
23140   else
23141     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23142   fi
23143 done
23144
23145 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23146 if test -n "$ac_eof"; then
23147   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23148   ac_eof=`expr $ac_eof + 1`
23149 fi
23150
23151 cat >>$CONFIG_STATUS <<_ACEOF
23152 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23154 _ACEOF
23155 sed '
23156 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23157 s/^/s,@/; s/!/@,|#_!!_#|/
23158 :n
23159 t n
23160 s/'"$ac_delim"'$/,g/; t
23161 s/$/\\/; p
23162 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23163 ' >>$CONFIG_STATUS <conf$$subs.sed
23164 rm -f conf$$subs.sed
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 :end
23167 s/|#_!!_#|//g
23168 CEOF$ac_eof
23169 _ACEOF
23170
23171
23172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23174 # trailing colons and then remove the whole line if VPATH becomes empty
23175 # (actually we leave an empty line to preserve line numbers).
23176 if test "x$srcdir" = x.; then
23177   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23178 s/:*\$(srcdir):*/:/
23179 s/:*\${srcdir}:*/:/
23180 s/:*@srcdir@:*/:/
23181 s/^\([^=]*=[     ]*\):*/\1/
23182 s/:*$//
23183 s/^[^=]*=[       ]*$//
23184 }'
23185 fi
23186
23187 cat >>$CONFIG_STATUS <<\_ACEOF
23188 fi # test -n "$CONFIG_FILES"
23189
23190
23191 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23192 do
23193   case $ac_tag in
23194   :[FHLC]) ac_mode=$ac_tag; continue;;
23195   esac
23196   case $ac_mode$ac_tag in
23197   :[FHL]*:*);;
23198   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23199 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23200    { (exit 1); exit 1; }; };;
23201   :[FH]-) ac_tag=-:-;;
23202   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23203   esac
23204   ac_save_IFS=$IFS
23205   IFS=:
23206   set x $ac_tag
23207   IFS=$ac_save_IFS
23208   shift
23209   ac_file=$1
23210   shift
23211
23212   case $ac_mode in
23213   :L) ac_source=$1;;
23214   :[FH])
23215     ac_file_inputs=
23216     for ac_f
23217     do
23218       case $ac_f in
23219       -) ac_f="$tmp/stdin";;
23220       *) # Look for the file first in the build tree, then in the source tree
23221          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23222          # because $ac_f cannot contain `:'.
23223          test -f "$ac_f" ||
23224            case $ac_f in
23225            [\\/$]*) false;;
23226            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23227            esac ||
23228            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23229 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23230    { (exit 1); exit 1; }; };;
23231       esac
23232       ac_file_inputs="$ac_file_inputs $ac_f"
23233     done
23234
23235     # Let's still pretend it is `configure' which instantiates (i.e., don't
23236     # use $as_me), people would be surprised to read:
23237     #    /* config.h.  Generated by config.status.  */
23238     configure_input="Generated from "`IFS=:
23239           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23240     if test x"$ac_file" != x-; then
23241       configure_input="$ac_file.  $configure_input"
23242       { echo "$as_me:$LINENO: creating $ac_file" >&5
23243 echo "$as_me: creating $ac_file" >&6;}
23244     fi
23245
23246     case $ac_tag in
23247     *:-:* | *:-) cat >"$tmp/stdin";;
23248     esac
23249     ;;
23250   esac
23251
23252   ac_dir=`$as_dirname -- "$ac_file" ||
23253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254          X"$ac_file" : 'X\(//\)[^/]' \| \
23255          X"$ac_file" : 'X\(//\)$' \| \
23256          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23257 echo X"$ac_file" |
23258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259             s//\1/
23260             q
23261           }
23262           /^X\(\/\/\)[^/].*/{
23263             s//\1/
23264             q
23265           }
23266           /^X\(\/\/\)$/{
23267             s//\1/
23268             q
23269           }
23270           /^X\(\/\).*/{
23271             s//\1/
23272             q
23273           }
23274           s/.*/./; q'`
23275   { as_dir="$ac_dir"
23276   case $as_dir in #(
23277   -*) as_dir=./$as_dir;;
23278   esac
23279   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23280     as_dirs=
23281     while :; do
23282       case $as_dir in #(
23283       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23284       *) as_qdir=$as_dir;;
23285       esac
23286       as_dirs="'$as_qdir' $as_dirs"
23287       as_dir=`$as_dirname -- "$as_dir" ||
23288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23289          X"$as_dir" : 'X\(//\)[^/]' \| \
23290          X"$as_dir" : 'X\(//\)$' \| \
23291          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23292 echo X"$as_dir" |
23293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23294             s//\1/
23295             q
23296           }
23297           /^X\(\/\/\)[^/].*/{
23298             s//\1/
23299             q
23300           }
23301           /^X\(\/\/\)$/{
23302             s//\1/
23303             q
23304           }
23305           /^X\(\/\).*/{
23306             s//\1/
23307             q
23308           }
23309           s/.*/./; q'`
23310       test -d "$as_dir" && break
23311     done
23312     test -z "$as_dirs" || eval "mkdir $as_dirs"
23313   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23314 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23315    { (exit 1); exit 1; }; }; }
23316   ac_builddir=.
23317
23318 case "$ac_dir" in
23319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23320 *)
23321   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23322   # A ".." for each directory in $ac_dir_suffix.
23323   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23324   case $ac_top_builddir_sub in
23325   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23326   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23327   esac ;;
23328 esac
23329 ac_abs_top_builddir=$ac_pwd
23330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23331 # for backward compatibility:
23332 ac_top_builddir=$ac_top_build_prefix
23333
23334 case $srcdir in
23335   .)  # We are building in place.
23336     ac_srcdir=.
23337     ac_top_srcdir=$ac_top_builddir_sub
23338     ac_abs_top_srcdir=$ac_pwd ;;
23339   [\\/]* | ?:[\\/]* )  # Absolute name.
23340     ac_srcdir=$srcdir$ac_dir_suffix;
23341     ac_top_srcdir=$srcdir
23342     ac_abs_top_srcdir=$srcdir ;;
23343   *) # Relative name.
23344     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23345     ac_top_srcdir=$ac_top_build_prefix$srcdir
23346     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23347 esac
23348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23349
23350
23351   case $ac_mode in
23352   :F)
23353   #
23354   # CONFIG_FILE
23355   #
23356
23357   case $INSTALL in
23358   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23359   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23360   esac
23361 _ACEOF
23362
23363 cat >>$CONFIG_STATUS <<\_ACEOF
23364 # If the template does not know about datarootdir, expand it.
23365 # FIXME: This hack should be removed a few years after 2.60.
23366 ac_datarootdir_hack=; ac_datarootdir_seen=
23367
23368 case `sed -n '/datarootdir/ {
23369   p
23370   q
23371 }
23372 /@datadir@/p
23373 /@docdir@/p
23374 /@infodir@/p
23375 /@localedir@/p
23376 /@mandir@/p
23377 ' $ac_file_inputs` in
23378 *datarootdir*) ac_datarootdir_seen=yes;;
23379 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23380   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23381 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23382 _ACEOF
23383 cat >>$CONFIG_STATUS <<_ACEOF
23384   ac_datarootdir_hack='
23385   s&@datadir@&$datadir&g
23386   s&@docdir@&$docdir&g
23387   s&@infodir@&$infodir&g
23388   s&@localedir@&$localedir&g
23389   s&@mandir@&$mandir&g
23390     s&\\\${datarootdir}&$datarootdir&g' ;;
23391 esac
23392 _ACEOF
23393
23394 # Neutralize VPATH when `$srcdir' = `.'.
23395 # Shell code in configure.ac might set extrasub.
23396 # FIXME: do we really want to maintain this feature?
23397 cat >>$CONFIG_STATUS <<_ACEOF
23398   sed "$ac_vpsub
23399 $extrasub
23400 _ACEOF
23401 cat >>$CONFIG_STATUS <<\_ACEOF
23402 :t
23403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23404 s&@configure_input@&$configure_input&;t t
23405 s&@top_builddir@&$ac_top_builddir_sub&;t t
23406 s&@srcdir@&$ac_srcdir&;t t
23407 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23408 s&@top_srcdir@&$ac_top_srcdir&;t t
23409 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23410 s&@builddir@&$ac_builddir&;t t
23411 s&@abs_builddir@&$ac_abs_builddir&;t t
23412 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23413 s&@INSTALL@&$ac_INSTALL&;t t
23414 $ac_datarootdir_hack
23415 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23416
23417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23418   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23419   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23420   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23421 which seems to be undefined.  Please make sure it is defined." >&5
23422 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23423 which seems to be undefined.  Please make sure it is defined." >&2;}
23424
23425   rm -f "$tmp/stdin"
23426   case $ac_file in
23427   -) cat "$tmp/out"; rm -f "$tmp/out";;
23428   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23429   esac
23430  ;;
23431   :H)
23432   #
23433   # CONFIG_HEADER
23434   #
23435 _ACEOF
23436
23437 # Transform confdefs.h into a sed script `conftest.defines', that
23438 # substitutes the proper values into config.h.in to produce config.h.
23439 rm -f conftest.defines conftest.tail
23440 # First, append a space to every undef/define line, to ease matching.
23441 echo 's/$/ /' >conftest.defines
23442 # Then, protect against being on the right side of a sed subst, or in
23443 # an unquoted here document, in config.status.  If some macros were
23444 # called several times there might be several #defines for the same
23445 # symbol, which is useless.  But do not sort them, since the last
23446 # AC_DEFINE must be honored.
23447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23448 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23449 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23450 # PARAMS is the parameter list in the macro definition--in most cases, it's
23451 # just an empty string.
23452 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23453 ac_dB='\\)[      (].*,\\1define\\2'
23454 ac_dC=' '
23455 ac_dD=' ,'
23456
23457 uniq confdefs.h |
23458   sed -n '
23459         t rset
23460         :rset
23461         s/^[     ]*#[    ]*define[       ][      ]*//
23462         t ok
23463         d
23464         :ok
23465         s/[\\&,]/\\&/g
23466         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23467         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23468   ' >>conftest.defines
23469
23470 # Remove the space that was appended to ease matching.
23471 # Then replace #undef with comments.  This is necessary, for
23472 # example, in the case of _POSIX_SOURCE, which is predefined and required
23473 # on some systems where configure will not decide to define it.
23474 # (The regexp can be short, since the line contains either #define or #undef.)
23475 echo 's/ $//
23476 s,^[     #]*u.*,/* & */,' >>conftest.defines
23477
23478 # Break up conftest.defines:
23479 ac_max_sed_lines=50
23480
23481 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23482 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23483 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23484 # et cetera.
23485 ac_in='$ac_file_inputs'
23486 ac_out='"$tmp/out1"'
23487 ac_nxt='"$tmp/out2"'
23488
23489 while :
23490 do
23491   # Write a here document:
23492     cat >>$CONFIG_STATUS <<_ACEOF
23493     # First, check the format of the line:
23494     cat >"\$tmp/defines.sed" <<\\CEOF
23495 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23496 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23497 b
23498 :def
23499 _ACEOF
23500   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23501   echo 'CEOF
23502     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23503   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23504   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23505   grep . conftest.tail >/dev/null || break
23506   rm -f conftest.defines
23507   mv conftest.tail conftest.defines
23508 done
23509 rm -f conftest.defines conftest.tail
23510
23511 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23512 cat >>$CONFIG_STATUS <<\_ACEOF
23513   if test x"$ac_file" != x-; then
23514     echo "/* $configure_input  */" >"$tmp/config.h"
23515     cat "$ac_result" >>"$tmp/config.h"
23516     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23517       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23518 echo "$as_me: $ac_file is unchanged" >&6;}
23519     else
23520       rm -f $ac_file
23521       mv "$tmp/config.h" $ac_file
23522     fi
23523   else
23524     echo "/* $configure_input  */"
23525     cat "$ac_result"
23526   fi
23527   rm -f "$tmp/out12"
23528  ;;
23529
23530   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23531 echo "$as_me: executing $ac_file commands" >&6;}
23532  ;;
23533   esac
23534
23535
23536   case $ac_file$ac_mode in
23537     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23538    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23539     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23540    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23541     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23542    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23543     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23544    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23545     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23546    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23547     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23548    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23549     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23550    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23551     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23552    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23553     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23554    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23555     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23556    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23557     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23558    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23559     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23560    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23561     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23562    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23563
23564   esac
23565 done # for ac_tag
23566
23567
23568 { (exit 0); exit 0; }
23569 _ACEOF
23570 chmod +x $CONFIG_STATUS
23571 ac_clean_files=$ac_clean_files_save
23572
23573
23574 # configure is writing to config.log, and then calls config.status.
23575 # config.status does its own redirection, appending to config.log.
23576 # Unfortunately, on DOS this fails, as config.log is still kept open
23577 # by configure, so config.status won't be able to write to it; its
23578 # output is simply discarded.  So we exec the FD to /dev/null,
23579 # effectively closing config.log, so it can be properly (re)opened and
23580 # appended to by config.status.  When coming back to configure, we
23581 # need to make the FD available again.
23582 if test "$no_create" != yes; then
23583   ac_cs_success=:
23584   ac_config_status_args=
23585   test "$silent" = yes &&
23586     ac_config_status_args="$ac_config_status_args --quiet"
23587   exec 5>/dev/null
23588   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23589   exec 5>>config.log
23590   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23591   # would make configure fail if this is the last instruction.
23592   $ac_cs_success || { (exit 1); exit 1; }
23593 fi
23594
23595 #
23596 # CONFIG_SUBDIRS section.
23597 #
23598 if test "$no_recursion" != yes; then
23599
23600   # Remove --cache-file and --srcdir arguments so they do not pile up.
23601   ac_sub_configure_args=
23602   ac_prev=
23603   eval "set x $ac_configure_args"
23604   shift
23605   for ac_arg
23606   do
23607     if test -n "$ac_prev"; then
23608       ac_prev=
23609       continue
23610     fi
23611     case $ac_arg in
23612     -cache-file | --cache-file | --cache-fil | --cache-fi \
23613     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23614       ac_prev=cache_file ;;
23615     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23616     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23617     | --c=*)
23618       ;;
23619     --config-cache | -C)
23620       ;;
23621     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23622       ac_prev=srcdir ;;
23623     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23624       ;;
23625     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23626       ac_prev=prefix ;;
23627     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23628       ;;
23629     *)
23630       case $ac_arg in
23631       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23632       esac
23633       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23634     esac
23635   done
23636
23637   # Always prepend --prefix to ensure using the same prefix
23638   # in subdir configurations.
23639   ac_arg="--prefix=$prefix"
23640   case $ac_arg in
23641   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23642   esac
23643   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23644
23645   ac_popdir=`pwd`
23646   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23647
23648     # Do not complain, so a configure script can configure whichever
23649     # parts of a large source tree are present.
23650     test -d "$srcdir/$ac_dir" || continue
23651
23652     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23653     echo "$as_me:$LINENO: $ac_msg" >&5
23654     echo "$ac_msg" >&6
23655     { as_dir="$ac_dir"
23656   case $as_dir in #(
23657   -*) as_dir=./$as_dir;;
23658   esac
23659   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23660     as_dirs=
23661     while :; do
23662       case $as_dir in #(
23663       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23664       *) as_qdir=$as_dir;;
23665       esac
23666       as_dirs="'$as_qdir' $as_dirs"
23667       as_dir=`$as_dirname -- "$as_dir" ||
23668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669          X"$as_dir" : 'X\(//\)[^/]' \| \
23670          X"$as_dir" : 'X\(//\)$' \| \
23671          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23672 echo X"$as_dir" |
23673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23674             s//\1/
23675             q
23676           }
23677           /^X\(\/\/\)[^/].*/{
23678             s//\1/
23679             q
23680           }
23681           /^X\(\/\/\)$/{
23682             s//\1/
23683             q
23684           }
23685           /^X\(\/\).*/{
23686             s//\1/
23687             q
23688           }
23689           s/.*/./; q'`
23690       test -d "$as_dir" && break
23691     done
23692     test -z "$as_dirs" || eval "mkdir $as_dirs"
23693   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23694 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23695    { (exit 1); exit 1; }; }; }
23696     ac_builddir=.
23697
23698 case "$ac_dir" in
23699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23700 *)
23701   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23702   # A ".." for each directory in $ac_dir_suffix.
23703   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23704   case $ac_top_builddir_sub in
23705   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23706   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23707   esac ;;
23708 esac
23709 ac_abs_top_builddir=$ac_pwd
23710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23711 # for backward compatibility:
23712 ac_top_builddir=$ac_top_build_prefix
23713
23714 case $srcdir in
23715   .)  # We are building in place.
23716     ac_srcdir=.
23717     ac_top_srcdir=$ac_top_builddir_sub
23718     ac_abs_top_srcdir=$ac_pwd ;;
23719   [\\/]* | ?:[\\/]* )  # Absolute name.
23720     ac_srcdir=$srcdir$ac_dir_suffix;
23721     ac_top_srcdir=$srcdir
23722     ac_abs_top_srcdir=$srcdir ;;
23723   *) # Relative name.
23724     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23725     ac_top_srcdir=$ac_top_build_prefix$srcdir
23726     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23727 esac
23728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23729
23730
23731     cd "$ac_dir"
23732
23733     # Check for guested configure; otherwise get Cygnus style configure.
23734     if test -f "$ac_srcdir/configure.gnu"; then
23735       ac_sub_configure=$ac_srcdir/configure.gnu
23736     elif test -f "$ac_srcdir/configure"; then
23737       ac_sub_configure=$ac_srcdir/configure
23738     elif test -f "$ac_srcdir/configure.in"; then
23739       # This should be Cygnus configure.
23740       ac_sub_configure=$ac_aux_dir/configure
23741     else
23742       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23743 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23744       ac_sub_configure=
23745     fi
23746
23747     # The recursion is here.
23748     if test -n "$ac_sub_configure"; then
23749       # Make the cache file name correct relative to the subdirectory.
23750       case $cache_file in
23751       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23752       *) # Relative name.
23753         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23754       esac
23755
23756       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23757 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23758       # The eval makes quoting arguments work.
23759       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23760            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23761         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23762 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23763    { (exit 1); exit 1; }; }
23764     fi
23765
23766     cd "$ac_popdir"
23767   done
23768 fi
23769