LICM: Hoist insertvalue/extractvalue out of loops.
[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 ENABLE_PIC
707 ENABLE_SHARED
708 ENABLE_EMBED_STDCXX
709 ENABLE_TIMESTAMPS
710 ENABLE_BACKTRACES
711 TARGETS_TO_BUILD
712 LLVM_ENUM_TARGETS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
716 OPTIMIZE_OPTION
717 EXTRA_OPTIONS
718 EXTRA_LD_OPTIONS
719 CLANG_SRC_ROOT
720 BINUTILS_INCDIR
721 INTERNAL_PREFIX
722 NM
723 ifGNUmake
724 LN_S
725 CMP
726 CP
727 DATE
728 FIND
729 MKDIR
730 MV
731 RANLIB
732 AR
733 RM
734 SED
735 TAR
736 BINPWD
737 GRAPHVIZ
738 DOT
739 FDP
740 NEATO
741 TWOPI
742 CIRCO
743 GV
744 DOTTY
745 XDOT_PY
746 INSTALL_PROGRAM
747 INSTALL_SCRIPT
748 INSTALL_DATA
749 BZIP2
750 CAT
751 DOXYGEN
752 GROFF
753 GZIPBIN
754 PDFROFF
755 ZIP
756 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 INSTALL_LTDL_TRUE
763 INSTALL_LTDL_FALSE
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
766 LIBADD_DL
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 USE_UDIS86
771 USE_OPROFILE
772 USE_INTEL_JITEVENTS
773 XML2CONFIG
774 LIBXML2_LIBS
775 LIBXML2_INC
776 HAVE_PTHREAD
777 HUGE_VAL_SANITY
778 MMAP_FILE
779 SHLIBEXT
780 SHLIBPATH_VAR
781 LLVM_PREFIX
782 LLVM_BINDIR
783 LLVM_LIBDIR
784 LLVM_DATADIR
785 LLVM_DOCSDIR
786 LLVM_ETCDIR
787 LLVM_INCLUDEDIR
788 LLVM_INFODIR
789 LLVM_MANDIR
790 LLVM_CONFIGTIME
791 BINDINGS_TO_BUILD
792 ALL_BINDINGS
793 OCAML_LIBDIR
794 ENABLE_VISIBILITY_INLINES_HIDDEN
795 RPATH
796 RDYNAMIC
797 program_prefix
798 LIBOBJS
799 LTLIBOBJS'
800 ac_subst_files=''
801       ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 CPP'
812 ac_subdirs_all='projects/llvm-gcc
813 projects/test-suite
814 projects/llvm-test
815 projects/poolalloc
816 projects/llvm-poolalloc
817 projects/sample
818 projects/privbracket
819 projects/llvm-stacker
820 projects/llvm-reopt
821 projects/llvm-java
822 projects/llvm-tv
823 projects/safecode
824 projects/llvm-kernel
825 tools/polly'
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877   # If the previous option needs an argument, assign it.
878   if test -n "$ac_prev"; then
879     eval $ac_prev=\$ac_option
880     ac_prev=
881     continue
882   fi
883
884   case $ac_option in
885   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886   *)    ac_optarg=yes ;;
887   esac
888
889   # Accept the important Cygnus configure options, so we can diagnose typos.
890
891   case $ac_dashdash$ac_option in
892   --)
893     ac_dashdash=yes ;;
894
895   -bindir | --bindir | --bindi | --bind | --bin | --bi)
896     ac_prev=bindir ;;
897   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898     bindir=$ac_optarg ;;
899
900   -build | --build | --buil | --bui | --bu)
901     ac_prev=build_alias ;;
902   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903     build_alias=$ac_optarg ;;
904
905   -cache-file | --cache-file | --cache-fil | --cache-fi \
906   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907     ac_prev=cache_file ;;
908   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910     cache_file=$ac_optarg ;;
911
912   --config-cache | -C)
913     cache_file=config.cache ;;
914
915   -datadir | --datadir | --datadi | --datad)
916     ac_prev=datadir ;;
917   -datadir=* | --datadir=* | --datadi=* | --datad=*)
918     datadir=$ac_optarg ;;
919
920   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921   | --dataroo | --dataro | --datar)
922     ac_prev=datarootdir ;;
923   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925     datarootdir=$ac_optarg ;;
926
927   -disable-* | --disable-*)
928     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929     # Reject names that are not valid shell variable names.
930     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932    { (exit 1); exit 1; }; }
933     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934     eval enable_$ac_feature=no ;;
935
936   -docdir | --docdir | --docdi | --doc | --do)
937     ac_prev=docdir ;;
938   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939     docdir=$ac_optarg ;;
940
941   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942     ac_prev=dvidir ;;
943   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944     dvidir=$ac_optarg ;;
945
946   -enable-* | --enable-*)
947     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951    { (exit 1); exit 1; }; }
952     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953     eval enable_$ac_feature=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package| sed 's/-/_/g'`
1150     eval with_$ac_package=\$ac_optarg ;;
1151
1152   -without-* | --without-*)
1153     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid package name: $ac_package" >&2
1157    { (exit 1); exit 1; }; }
1158     ac_package=`echo $ac_package | sed 's/-/_/g'`
1159     eval with_$ac_package=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) { echo "$as_me: error: unrecognized option: $ac_option
1180 Try \`$0 --help' for more information." >&2
1181    { (exit 1); exit 1; }; }
1182     ;;
1183
1184   *=*)
1185     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189    { (exit 1); exit 1; }; }
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   { echo "$as_me: error: missing argument to $ac_option" >&2
1207    { (exit 1); exit 1; }; }
1208 fi
1209
1210 # Be sure to have absolute directory names.
1211 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212                 datadir sysconfdir sharedstatedir localstatedir includedir \
1213                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214                 libdir localedir mandir
1215 do
1216   eval ac_val=\$$ac_var
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222    { (exit 1); exit 1; }; }
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1237     If a cross compiler is detected then cross compile mode will be used." >&2
1238   elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240   fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252   { echo "$as_me: error: Working directory cannot be determined" >&2
1253    { (exit 1); exit 1; }; }
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255   { echo "$as_me: error: pwd does not report name of working directory" >&2
1256    { (exit 1); exit 1; }; }
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261   ac_srcdir_defaulted=yes
1262   # Try the directory containing this script, then the parent directory.
1263   ac_confdir=`$as_dirname -- "$0" ||
1264 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265          X"$0" : 'X\(//\)[^/]' \| \
1266          X"$0" : 'X\(//\)$' \| \
1267          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268 echo X"$0" |
1269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)[^/].*/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\).*/{
1282             s//\1/
1283             q
1284           }
1285           s/.*/./; q'`
1286   srcdir=$ac_confdir
1287   if test ! -r "$srcdir/$ac_unique_file"; then
1288     srcdir=..
1289   fi
1290 else
1291   ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296    { (exit 1); exit 1; }; }
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301    { (exit 1); exit 1; }; }
1302         pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305   srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_env_${ac_var}_value=\$${ac_var}
1316   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324   # Omit some internal or obsolete options to make the list less imposing.
1325   # This message is too long to be a string in the A/UX 3.1 sh.
1326   cat <<_ACEOF
1327 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337   -h, --help              display this help and exit
1338       --help=short        display options specific to this package
1339       --help=recursive    display the short help of all the included packages
1340   -V, --version           display version information and exit
1341   -q, --quiet, --silent   do not print \`checking...' messages
1342       --cache-file=FILE   cache test results in FILE [disabled]
1343   -C, --config-cache      alias for \`--cache-file=config.cache'
1344   -n, --no-create         do not create output files
1345       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348   --prefix=PREFIX         install architecture-independent files in PREFIX
1349                           [$ac_default_prefix]
1350   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                           [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361   --bindir=DIR           user executables [EPREFIX/bin]
1362   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1363   --libexecdir=DIR       program executables [EPREFIX/libexec]
1364   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1365   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1366   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1367   --libdir=DIR           object code libraries [EPREFIX/lib]
1368   --includedir=DIR       C header files [PREFIX/include]
1369   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1370   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1371   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1372   --infodir=DIR          info documentation [DATAROOTDIR/info]
1373   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1374   --mandir=DIR           man documentation [DATAROOTDIR/man]
1375   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1376   --htmldir=DIR          html documentation [DOCDIR]
1377   --dvidir=DIR           dvi documentation [DOCDIR]
1378   --pdfdir=DIR           pdf documentation [DOCDIR]
1379   --psdir=DIR            ps documentation [DOCDIR]
1380 _ACEOF
1381
1382   cat <<\_ACEOF
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387   --target=TARGET   configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392   case $ac_init_help in
1393      short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1394    esac
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --enable-polly          Use polly if available (default is YES)
1401   --enable-libcpp         Use libc++ if available (default is NO)
1402   --enable-cxx11          Use c++11 if available (default is NO)
1403   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1404   --enable-clang-static-analyzer
1405                           Enable building of clang Static Analyzer (default is
1406                           YES)
1407   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1408   --enable-optimized      Compile with optimizations enabled (default is NO)
1409   --enable-profiling      Compile with profiling enabled (default is NO)
1410   --enable-assertions     Compile with assertion checks enabled (default is
1411                           YES)
1412   --enable-werror         Compile with -Werror enabled (default is NO)
1413   --enable-expensive-checks
1414                           Compile with expensive debug checks enabled (default
1415                           is NO)
1416   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1417                           NO)
1418   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1419                           optimization is on and YES if it's off)
1420   --enable-keep-symbols   Do not strip installed executables)
1421   --enable-jit            Enable Just In Time Compiling (default is YES)
1422   --enable-docs           Build documents (default is YES)
1423   --enable-doxygen        Build doxygen documentation (default is NO)
1424   --enable-threads        Use threads if available (default is YES)
1425   --enable-pthreads       Use pthreads if available (default is YES)
1426   --enable-pic            Build LLVM with Position Independent Code (default
1427                           is YES)
1428   --enable-shared         Build a shared library and link tools against it
1429                           (default is NO)
1430   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1431                           Win32 DLL (default is NO)
1432   --enable-timestamps     Enable embedding timestamp information in build
1433                           (default is YES)
1434   --enable-backtraces     Enable embedding backtraces on crash (default is
1435                           YES)
1436   --enable-targets        Build specific host targets: all or
1437                           target1,target2,... Valid targets are: host, x86,
1438                           x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1439                           msp430, nvptx, and cpp (default=all)
1440   --enable-experimental-targets
1441                           Build experimental host targets: disable or
1442                           target1,target2,... (default=disable)
1443   --enable-bindings       Build specific language bindings:
1444                           all,auto,none,{binding-name} (default=auto)
1445   --enable-libffi         Check for the presence of libffi (default is NO)
1446   --enable-ltdl-install   install libltdl
1447
1448 Optional Packages:
1449   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451   --with-optimize-option  Select the compiler options to use for optimized
1452                           builds
1453   --with-extra-options    Specify additional options to compile LLVM with
1454   --with-extra-ld-options Specify additional options to link LLVM with
1455   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1456                           is stdlib)
1457   --with-clang-srcdir     Directory to the out-of-tree Clang source
1458   --with-clang-resource-dir
1459                           Relative directory from the Clang binary for
1460                           resource files
1461   --with-c-include-dirs   Colon separated list of directories clang will
1462                           search for headers
1463   --with-gcc-toolchain    Directory where gcc is installed.
1464   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1465   --with-binutils-include Specify path to binutils/include/ containing
1466                           plugin-api.h file for gold plugin.
1467   --with-bug-report-url   Specify the URL where bug reports should be
1468                           submitted (default=http://llvm.org/bugs/)
1469   --with-internal-prefix  Installation directory for internal files
1470   --with-udis86=<path>    Use udis86 external x86 disassembler library
1471   --with-oprofile=<prefix>
1472                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1473   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1474
1475
1476 Some influential environment variables:
1477   CC          C compiler command
1478   CFLAGS      C compiler flags
1479   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1480               nonstandard directory <lib dir>
1481   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482               you have headers in a nonstandard directory <include dir>
1483   CXX         C++ compiler command
1484   CXXFLAGS    C++ compiler flags
1485   CPP         C preprocessor
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <http://llvm.org/bugs/>.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496   # If there are subdirs, report their specific --help.
1497   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498     test -d "$ac_dir" || continue
1499     ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1505   # A ".." for each directory in $ac_dir_suffix.
1506   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1507   case $ac_top_builddir_sub in
1508   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510   esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518   .)  # We are building in place.
1519     ac_srcdir=.
1520     ac_top_srcdir=$ac_top_builddir_sub
1521     ac_abs_top_srcdir=$ac_pwd ;;
1522   [\\/]* | ?:[\\/]* )  # Absolute name.
1523     ac_srcdir=$srcdir$ac_dir_suffix;
1524     ac_top_srcdir=$srcdir
1525     ac_abs_top_srcdir=$srcdir ;;
1526   *) # Relative name.
1527     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528     ac_top_srcdir=$ac_top_build_prefix$srcdir
1529     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533     cd "$ac_dir" || { ac_status=$?; continue; }
1534     # Check for guested configure.
1535     if test -f "$ac_srcdir/configure.gnu"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538     elif test -f "$ac_srcdir/configure"; then
1539       echo &&
1540       $SHELL "$ac_srcdir/configure" --help=recursive
1541     else
1542       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543     fi || ac_status=$?
1544     cd "$ac_pwd" || { ac_status=$?; break; }
1545   done
1546 fi
1547
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550   cat <<\_ACEOF
1551 LLVM configure 3.3svn
1552 generated by GNU Autoconf 2.60
1553
1554 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1555 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558
1559 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1560 _ACEOF
1561   exit
1562 fi
1563 cat >config.log <<_ACEOF
1564 This file contains any messages produced by compilers while
1565 running configure, to aid debugging if configure makes a mistake.
1566
1567 It was created by LLVM $as_me 3.3svn, which was
1568 generated by GNU Autoconf 2.60.  Invocation command line was
1569
1570   $ $0 $@
1571
1572 _ACEOF
1573 exec 5>>config.log
1574 {
1575 cat <<_ASUNAME
1576 ## --------- ##
1577 ## Platform. ##
1578 ## --------- ##
1579
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1588
1589 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1590 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1593 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1594 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1595 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1596
1597 _ASUNAME
1598
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1601 do
1602   IFS=$as_save_IFS
1603   test -z "$as_dir" && as_dir=.
1604   echo "PATH: $as_dir"
1605 done
1606 IFS=$as_save_IFS
1607
1608 } >&5
1609
1610 cat >&5 <<_ACEOF
1611
1612
1613 ## ----------- ##
1614 ## Core tests. ##
1615 ## ----------- ##
1616
1617 _ACEOF
1618
1619
1620 # Keep a trace of the command line.
1621 # Strip out --no-create and --no-recursion so they do not pile up.
1622 # Strip out --silent because we don't want to record it for future runs.
1623 # Also quote any args containing shell meta-characters.
1624 # Make two passes to allow for proper duplicate-argument suppression.
1625 ac_configure_args=
1626 ac_configure_args0=
1627 ac_configure_args1=
1628 ac_must_keep_next=false
1629 for ac_pass in 1 2
1630 do
1631   for ac_arg
1632   do
1633     case $ac_arg in
1634     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636     | -silent | --silent | --silen | --sile | --sil)
1637       continue ;;
1638     *\'*)
1639       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1640     esac
1641     case $ac_pass in
1642     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1643     2)
1644       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645       if test $ac_must_keep_next = true; then
1646         ac_must_keep_next=false # Got value, back to normal.
1647       else
1648         case $ac_arg in
1649           *=* | --config-cache | -C | -disable-* | --disable-* \
1650           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652           | -with-* | --with-* | -without-* | --without-* | --x)
1653             case "$ac_configure_args0 " in
1654               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655             esac
1656             ;;
1657           -* ) ac_must_keep_next=true ;;
1658         esac
1659       fi
1660       ac_configure_args="$ac_configure_args '$ac_arg'"
1661       ;;
1662     esac
1663   done
1664 done
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667
1668 # When interrupted or exit'd, cleanup temporary files, and complete
1669 # config.log.  We remove comments because anyway the quotes in there
1670 # would cause problems or look ugly.
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673 trap 'exit_status=$?
1674   # Save into config.log some information that might help in debugging.
1675   {
1676     echo
1677
1678     cat <<\_ASBOX
1679 ## ---------------- ##
1680 ## Cache variables. ##
1681 ## ---------------- ##
1682 _ASBOX
1683     echo
1684     # The following way of writing the cache mishandles newlines in values,
1685 (
1686   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687     eval ac_val=\$$ac_var
1688     case $ac_val in #(
1689     *${as_nl}*)
1690       case $ac_var in #(
1691       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1693       esac
1694       case $ac_var in #(
1695       _ | IFS | as_nl) ;; #(
1696       *) $as_unset $ac_var ;;
1697       esac ;;
1698     esac
1699   done
1700   (set) 2>&1 |
1701     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702     *${as_nl}ac_space=\ *)
1703       sed -n \
1704         "s/'\''/'\''\\\\'\'''\''/g;
1705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706       ;; #(
1707     *)
1708       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709       ;;
1710     esac |
1711     sort
1712 )
1713     echo
1714
1715     cat <<\_ASBOX
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1719 _ASBOX
1720     echo
1721     for ac_var in $ac_subst_vars
1722     do
1723       eval ac_val=\$$ac_var
1724       case $ac_val in
1725       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726       esac
1727       echo "$ac_var='\''$ac_val'\''"
1728     done | sort
1729     echo
1730
1731     if test -n "$ac_subst_files"; then
1732       cat <<\_ASBOX
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1736 _ASBOX
1737       echo
1738       for ac_var in $ac_subst_files
1739       do
1740         eval ac_val=\$$ac_var
1741         case $ac_val in
1742         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743         esac
1744         echo "$ac_var='\''$ac_val'\''"
1745       done | sort
1746       echo
1747     fi
1748
1749     if test -s confdefs.h; then
1750       cat <<\_ASBOX
1751 ## ----------- ##
1752 ## confdefs.h. ##
1753 ## ----------- ##
1754 _ASBOX
1755       echo
1756       cat confdefs.h
1757       echo
1758     fi
1759     test "$ac_signal" != 0 &&
1760       echo "$as_me: caught signal $ac_signal"
1761     echo "$as_me: exit $exit_status"
1762   } >&5
1763   rm -f core *.core core.conftest.* &&
1764     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765     exit $exit_status
1766 ' 0
1767 for ac_signal in 1 2 13 15; do
1768   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1769 done
1770 ac_signal=0
1771
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1774
1775 # Predefined preprocessor variables.
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799 _ACEOF
1800
1801
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805   set x "$CONFIG_SITE"
1806 elif test "x$prefix" != xNONE; then
1807   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1808 else
1809   set x "$ac_default_prefix/share/config.site" \
1810         "$ac_default_prefix/etc/config.site"
1811 fi
1812 shift
1813 for ac_site_file
1814 do
1815   if test -r "$ac_site_file"; then
1816     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
1818     sed 's/^/| /' "$ac_site_file" >&5
1819     . "$ac_site_file"
1820   fi
1821 done
1822
1823 if test -r "$cache_file"; then
1824   # Some versions of bash will fail to source /dev/null (special
1825   # files actually), so we avoid doing that.
1826   if test -f "$cache_file"; then
1827     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828 echo "$as_me: loading cache $cache_file" >&6;}
1829     case $cache_file in
1830       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831       *)                      . "./$cache_file";;
1832     esac
1833   fi
1834 else
1835   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836 echo "$as_me: creating cache $cache_file" >&6;}
1837   >$cache_file
1838 fi
1839
1840 # Check that the precious variables saved in the cache have kept the same
1841 # value.
1842 ac_cache_corrupted=false
1843 for ac_var in $ac_precious_vars; do
1844   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845   eval ac_new_set=\$ac_env_${ac_var}_set
1846   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847   eval ac_new_val=\$ac_env_${ac_var}_value
1848   case $ac_old_set,$ac_new_set in
1849     set,)
1850       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1852       ac_cache_corrupted=: ;;
1853     ,set)
1854       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,);;
1858     *)
1859       if test "x$ac_old_val" != "x$ac_new_val"; then
1860         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1863 echo "$as_me:   former value:  $ac_old_val" >&2;}
1864         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1865 echo "$as_me:   current value: $ac_new_val" >&2;}
1866         ac_cache_corrupted=:
1867       fi;;
1868   esac
1869   # Pass precious variables to config.status.
1870   if test "$ac_new_set" = set; then
1871     case $ac_new_val in
1872     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873     *) ac_arg=$ac_var=$ac_new_val ;;
1874     esac
1875     case " $ac_configure_args " in
1876       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1877       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1878     esac
1879   fi
1880 done
1881 if $ac_cache_corrupted; then
1882   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913 ac_ext=c
1914 ac_cpp='$CPP $CPPFLAGS'
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
1921 cat >>confdefs.h <<\_ACEOF
1922 #define LLVM_VERSION_MAJOR 3
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MINOR 3
1928 _ACEOF
1929
1930
1931 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1932
1933
1934
1935
1936
1937
1938
1939 ac_aux_dir=
1940 for ac_dir in autoconf "$srcdir"/autoconf; do
1941   if test -f "$ac_dir/install-sh"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/install-sh -c"
1944     break
1945   elif test -f "$ac_dir/install.sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install.sh -c"
1948     break
1949   elif test -f "$ac_dir/shtool"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/shtool install -c"
1952     break
1953   fi
1954 done
1955 if test -z "$ac_aux_dir"; then
1956   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1968
1969
1970
1971 if test ${srcdir} != "." ; then
1972   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1973     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1974 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1975    { (exit 1); exit 1; }; }
1976   fi
1977 fi
1978
1979 ac_ext=c
1980 ac_cpp='$CPP $CPPFLAGS'
1981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 if test -n "$ac_tool_prefix"; then
1985   for ac_prog in clang llvm-gcc gcc
1986   do
1987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   if test -n "$CC"; then
1995   ac_cv_prog_CC="$CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2004     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010 IFS=$as_save_IFS
2011
2012 fi
2013 fi
2014 CC=$ac_cv_prog_CC
2015 if test -n "$CC"; then
2016   { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2018 else
2019   { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2021 fi
2022
2023
2024     test -n "$CC" && break
2025   done
2026 fi
2027 if test -z "$CC"; then
2028   ac_ct_CC=$CC
2029   for ac_prog in clang llvm-gcc gcc
2030 do
2031   # Extract the first word of "$ac_prog", so it can be a program name with args.
2032 set dummy $ac_prog; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$ac_ct_CC"; then
2039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2048     ac_cv_prog_ac_ct_CC="$ac_prog"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054 IFS=$as_save_IFS
2055
2056 fi
2057 fi
2058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059 if test -n "$ac_ct_CC"; then
2060   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061 echo "${ECHO_T}$ac_ct_CC" >&6; }
2062 else
2063   { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2065 fi
2066
2067
2068   test -n "$ac_ct_CC" && break
2069 done
2070
2071   if test "x$ac_ct_CC" = x; then
2072     CC=""
2073   else
2074     case $cross_compiling:$ac_tool_warned in
2075 yes:)
2076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet.  If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&5
2079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080 whose name does not start with the host triplet.  If you think this
2081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2082 ac_tool_warned=yes ;;
2083 esac
2084     CC=$ac_ct_CC
2085   fi
2086 fi
2087
2088
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093    { (exit 1); exit 1; }; }
2094
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler=`set X $ac_compile; echo $2`
2098 { (ac_try="$ac_compiler --version >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler --version >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108 { (ac_try="$ac_compiler -v >&5"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114   (eval "$ac_compiler -v >&5") 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118 { (ac_try="$ac_compiler -V >&5"
2119 case "(($ac_try" in
2120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121   *) ac_try_echo=$ac_try;;
2122 esac
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124   (eval "$ac_compiler -V >&5") 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }
2128
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h.  */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h.  */
2135
2136 int
2137 main ()
2138 {
2139
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2148 # of exeext.
2149 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152 #
2153 # List of possible output files, starting from the most likely.
2154 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155 # only as a last resort.  b.out is created by i960 compilers.
2156 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2157 #
2158 # The IRIX 6 linker writes into existing files which may not be
2159 # executable, retaining their permissions.  Remove them first so a
2160 # subsequent execution test works.
2161 ac_rmfiles=
2162 for ac_file in $ac_files
2163 do
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2167   esac
2168 done
2169 rm -f $ac_rmfiles
2170
2171 if { (ac_try="$ac_link_default"
2172 case "(($ac_try" in
2173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174   *) ac_try_echo=$ac_try;;
2175 esac
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177   (eval "$ac_link_default") 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; then
2181   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2184 # so that the user can short-circuit this test for compilers unknown to
2185 # Autoconf.
2186 for ac_file in $ac_files
2187 do
2188   test -f "$ac_file" || continue
2189   case $ac_file in
2190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2191         ;;
2192     [ab].out )
2193         # We found the default executable, but exeext='' is most
2194         # certainly right.
2195         break;;
2196     *.* )
2197         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2198         then :; else
2199            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200         fi
2201         # We set ac_cv_exeext here because the later test for it is not
2202         # safe: cross compilers may not add the suffix if given an `-o'
2203         # argument, so we may need to know it at that point already.
2204         # Even if this section looks crufty: it has the advantage of
2205         # actually working.
2206         break;;
2207     * )
2208         break;;
2209   esac
2210 done
2211 test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
2213 else
2214   echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&2;}
2221    { (exit 77); exit 77; }; }
2222 fi
2223
2224 ac_exeext=$ac_cv_exeext
2225 { echo "$as_me:$LINENO: result: $ac_file" >&5
2226 echo "${ECHO_T}$ac_file" >&6; }
2227
2228 # Check that the compiler produces executables we can run.  If not, either
2229 # the compiler is broken, or we cross compile.
2230 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2232 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233 # If not cross compiling, check that we can run a simple program.
2234 if test "$cross_compiling" != yes; then
2235   if { ac_try='./$ac_file'
2236   { (case "(($ac_try" in
2237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238   *) ac_try_echo=$ac_try;;
2239 esac
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241   (eval "$ac_try") 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245     cross_compiling=no
2246   else
2247     if test "$cross_compiling" = maybe; then
2248         cross_compiling=yes
2249     else
2250         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256    { (exit 1); exit 1; }; }
2257     fi
2258   fi
2259 fi
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2262
2263 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264 ac_clean_files=$ac_clean_files_save
2265 # Check that the compiler produces executables we can run.  If not, either
2266 # the compiler is broken, or we cross compile.
2267 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2269 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6; }
2271
2272 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2274 if { (ac_try="$ac_link"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280   (eval "$ac_link") 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; then
2284   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2287 # `rm'.
2288 for ac_file in conftest.exe conftest conftest.*; do
2289   test -f "$ac_file" || continue
2290   case $ac_file in
2291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2292     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293           break;;
2294     * ) break;;
2295   esac
2296 done
2297 else
2298   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2301 See \`config.log' for more details." >&2;}
2302    { (exit 1); exit 1; }; }
2303 fi
2304
2305 rm -f conftest$ac_cv_exeext
2306 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2307 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2308
2309 rm -f conftest.$ac_ext
2310 EXEEXT=$ac_cv_exeext
2311 ac_exeext=$EXEEXT
2312 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2313 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2314 if test "${ac_cv_objext+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   cat >conftest.$ac_ext <<_ACEOF
2318 /* confdefs.h.  */
2319 _ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h.  */
2323
2324 int
2325 main ()
2326 {
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 rm -f conftest.o conftest.obj
2333 if { (ac_try="$ac_compile"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339   (eval "$ac_compile") 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; then
2343   for ac_file in conftest.o conftest.obj conftest.*; do
2344   test -f "$ac_file" || continue;
2345   case $ac_file in
2346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2347     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2348        break;;
2349   esac
2350 done
2351 else
2352   echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&2;}
2359    { (exit 1); exit 1; }; }
2360 fi
2361
2362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2363 fi
2364 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365 echo "${ECHO_T}$ac_cv_objext" >&6; }
2366 OBJEXT=$ac_cv_objext
2367 ac_objext=$OBJEXT
2368 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2370 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379
2380 int
2381 main ()
2382 {
2383 #ifndef __GNUC__
2384        choke me
2385 #endif
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2393 case "(($ac_try" in
2394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395   *) ac_try_echo=$ac_try;;
2396 esac
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398   (eval "$ac_compile") 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421   (eval "$ac_try") 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; }; then
2425   ac_compiler_gnu=yes
2426 else
2427   echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430         ac_compiler_gnu=no
2431 fi
2432
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2435
2436 fi
2437 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2438 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2439 GCC=`test $ac_compiler_gnu = yes && echo yes`
2440 ac_test_CFLAGS=${CFLAGS+set}
2441 ac_save_CFLAGS=$CFLAGS
2442 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_cc_g+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   ac_save_c_werror_flag=$ac_c_werror_flag
2448    ac_c_werror_flag=yes
2449    ac_cv_prog_cc_g=no
2450    CFLAGS="-g"
2451    cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h.  */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h.  */
2457
2458 int
2459 main ()
2460 {
2461
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (ac_try="$ac_compile"
2468 case "(($ac_try" in
2469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470   *) ac_try_echo=$ac_try;;
2471 esac
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473   (eval "$ac_compile") 2>conftest.er1
2474   ac_status=$?
2475   grep -v '^ *+' conftest.er1 >conftest.err
2476   rm -f conftest.er1
2477   cat conftest.err >&5
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; } &&
2490          { ac_try='test -s conftest.$ac_objext'
2491   { (case "(($ac_try" in
2492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493   *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496   (eval "$ac_try") 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; }; then
2500   ac_cv_prog_cc_g=yes
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505         CFLAGS=""
2506       cat >conftest.$ac_ext <<_ACEOF
2507 /* confdefs.h.  */
2508 _ACEOF
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h.  */
2512
2513 int
2514 main ()
2515 {
2516
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (ac_try="$ac_compile"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_compile") 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536   { (case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_try") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; } &&
2545          { ac_try='test -s conftest.$ac_objext'
2546   { (case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_try") 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   :
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560         ac_c_werror_flag=$ac_save_c_werror_flag
2561          CFLAGS="-g"
2562          cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (case "(($ac_try" in
2603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604   *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607   (eval "$ac_try") 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   ac_cv_prog_cc_g=yes
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 fi
2624
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626    ac_c_werror_flag=$ac_save_c_werror_flag
2627 fi
2628 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2629 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2630 if test "$ac_test_CFLAGS" = set; then
2631   CFLAGS=$ac_save_CFLAGS
2632 elif test $ac_cv_prog_cc_g = yes; then
2633   if test "$GCC" = yes; then
2634     CFLAGS="-g -O2"
2635   else
2636     CFLAGS="-g"
2637   fi
2638 else
2639   if test "$GCC" = yes; then
2640     CFLAGS="-O2"
2641   else
2642     CFLAGS=
2643   fi
2644 fi
2645 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2646 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_cc_c89+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   ac_cv_prog_cc_c89=no
2651 ac_save_CC=$CC
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658 #include <stdarg.h>
2659 #include <stdio.h>
2660 #include <sys/types.h>
2661 #include <sys/stat.h>
2662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2663 struct buf { int x; };
2664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665 static char *e (p, i)
2666      char **p;
2667      int i;
2668 {
2669   return p[i];
2670 }
2671 static char *f (char * (*g) (char **, int), char **p, ...)
2672 {
2673   char *s;
2674   va_list v;
2675   va_start (v,p);
2676   s = g (p, va_arg (v,int));
2677   va_end (v);
2678   return s;
2679 }
2680
2681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2682    function prototypes and stuff, but not '\xHH' hex character constants.
2683    These don't provoke an error unfortunately, instead are silently treated
2684    as 'x'.  The following induces an error, until -std is added to get
2685    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2686    array size at least.  It's necessary to write '\x00'==0 to get something
2687    that's true only with -std.  */
2688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2689
2690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2691    inside strings and character constants.  */
2692 #define FOO(x) 'x'
2693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2694
2695 int test (int i, double x);
2696 struct s1 {int (*f) (int a);};
2697 struct s2 {int (*f) (double a);};
2698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699 int argc;
2700 char **argv;
2701 int
2702 main ()
2703 {
2704 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2710         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2711 do
2712   CC="$ac_save_CC $ac_arg"
2713   rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compile") 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; } &&
2737          { ac_try='test -s conftest.$ac_objext'
2738   { (case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_try") 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   ac_cv_prog_cc_c89=$ac_arg
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752
2753 fi
2754
2755 rm -f core conftest.err conftest.$ac_objext
2756   test "x$ac_cv_prog_cc_c89" != "xno" && break
2757 done
2758 rm -f conftest.$ac_ext
2759 CC=$ac_save_CC
2760
2761 fi
2762 # AC_CACHE_VAL
2763 case "x$ac_cv_prog_cc_c89" in
2764   x)
2765     { echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6; } ;;
2767   xno)
2768     { echo "$as_me:$LINENO: result: unsupported" >&5
2769 echo "${ECHO_T}unsupported" >&6; } ;;
2770   *)
2771     CC="$CC $ac_cv_prog_cc_c89"
2772     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2774 esac
2775
2776
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
2783 ac_ext=cpp
2784 ac_cpp='$CXXCPP $CPPFLAGS'
2785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788 if test -z "$CXX"; then
2789   if test -n "$CCC"; then
2790     CXX=$CCC
2791   else
2792     if test -n "$ac_tool_prefix"; then
2793   for ac_prog in clang++ llvm-g++ g++
2794   do
2795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CXX+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CXX"; then
2803   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CXX=$ac_cv_prog_CXX
2823 if test -n "$CXX"; then
2824   { echo "$as_me:$LINENO: result: $CXX" >&5
2825 echo "${ECHO_T}$CXX" >&6; }
2826 else
2827   { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2829 fi
2830
2831
2832     test -n "$CXX" && break
2833   done
2834 fi
2835 if test -z "$CXX"; then
2836   ac_ct_CXX=$CXX
2837   for ac_prog in clang++ llvm-g++ g++
2838 do
2839   # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   if test -n "$ac_ct_CXX"; then
2847   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_ac_ct_CXX="$ac_prog"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867 if test -n "$ac_ct_CXX"; then
2868   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2869 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2870 else
2871   { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2873 fi
2874
2875
2876   test -n "$ac_ct_CXX" && break
2877 done
2878
2879   if test "x$ac_ct_CXX" = x; then
2880     CXX="g++"
2881   else
2882     case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&5
2887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2888 whose name does not start with the host triplet.  If you think this
2889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892     CXX=$ac_ct_CXX
2893   fi
2894 fi
2895
2896   fi
2897 fi
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (ac_try="$ac_compiler --version >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler --version >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (ac_try="$ac_compiler -v >&5"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compiler -v >&5") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921 { (ac_try="$ac_compiler -V >&5"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_compiler -V >&5") 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }
2931
2932 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2933 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2934 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h.  */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h.  */
2943
2944 int
2945 main ()
2946 {
2947 #ifndef __GNUC__
2948        choke me
2949 #endif
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_compile") 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } &&
2969          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; } &&
2979          { ac_try='test -s conftest.$ac_objext'
2980   { (case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_try") 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; }; then
2989   ac_compiler_gnu=yes
2990 else
2991   echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994         ac_compiler_gnu=no
2995 fi
2996
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999
3000 fi
3001 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3003 GXX=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CXXFLAGS=${CXXFLAGS+set}
3005 ac_save_CXXFLAGS=$CXXFLAGS
3006 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3007 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_cxx_g+set}" = set; then
3009   echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3012    ac_cxx_werror_flag=yes
3013    ac_cv_prog_cxx_g=no
3014    CXXFLAGS="-g"
3015    cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021
3022 int
3023 main ()
3024 {
3025
3026   ;
3027   return 0;
3028 }
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_compile") 2>conftest.er1
3038   ac_status=$?
3039   grep -v '^ *+' conftest.er1 >conftest.err
3040   rm -f conftest.er1
3041   cat conftest.err >&5
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); } &&
3044          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; } &&
3054          { ac_try='test -s conftest.$ac_objext'
3055   { (case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_try") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   ac_cv_prog_cxx_g=yes
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069         CXXFLAGS=""
3070       cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076
3077 int
3078 main ()
3079 {
3080
3081   ;
3082   return 0;
3083 }
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_compile") 2>conftest.er1
3093   ac_status=$?
3094   grep -v '^ *+' conftest.er1 >conftest.err
3095   rm -f conftest.er1
3096   cat conftest.err >&5
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } &&
3099          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; } &&
3109          { ac_try='test -s conftest.$ac_objext'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; }; then
3119   :
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3125          CXXFLAGS="-g"
3126          cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132
3133 int
3134 main ()
3135 {
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_compile") 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } &&
3155          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_try") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   ac_cv_prog_cxx_g=yes
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191 fi
3192 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3194 if test "$ac_test_CXXFLAGS" = set; then
3195   CXXFLAGS=$ac_save_CXXFLAGS
3196 elif test $ac_cv_prog_cxx_g = yes; then
3197   if test "$GXX" = yes; then
3198     CXXFLAGS="-g -O2"
3199   else
3200     CXXFLAGS="-g"
3201   fi
3202 else
3203   if test "$GXX" = yes; then
3204     CXXFLAGS="-O2"
3205   else
3206     CXXFLAGS=
3207   fi
3208 fi
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215 ac_ext=c
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3222 # On Suns, sometimes $CPP names a directory.
3223 if test -n "$CPP" && test -d "$CPP"; then
3224   CPP=
3225 fi
3226 if test -z "$CPP"; then
3227   if test "${ac_cv_prog_CPP+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230       # Double quotes because CPP needs to be expanded
3231     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3232     do
3233       ac_preproc_ok=false
3234 for ac_c_preproc_warn_flag in '' yes
3235 do
3236   # Use a header file that comes with gcc, so configuring glibc
3237   # with a fresh cross-compiler works.
3238   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239   # <limits.h> exists even on freestanding compilers.
3240   # On the NeXT, cc -E runs the code through the compiler's parser,
3241   # not just through cpp. "Syntax error" is here to catch this case.
3242   cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h.  */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h.  */
3248 #ifdef __STDC__
3249 # include <limits.h>
3250 #else
3251 # include <assert.h>
3252 #endif
3253                      Syntax error
3254 _ACEOF
3255 if { (ac_try="$ac_cpp conftest.$ac_ext"
3256 case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262   ac_status=$?
3263   grep -v '^ *+' conftest.er1 >conftest.err
3264   rm -f conftest.er1
3265   cat conftest.err >&5
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } >/dev/null; then
3268   if test -s conftest.err; then
3269     ac_cpp_err=$ac_c_preproc_warn_flag
3270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271   else
3272     ac_cpp_err=
3273   fi
3274 else
3275   ac_cpp_err=yes
3276 fi
3277 if test -z "$ac_cpp_err"; then
3278   :
3279 else
3280   echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283   # Broken: fails on valid input.
3284 continue
3285 fi
3286
3287 rm -f conftest.err conftest.$ac_ext
3288
3289   # OK, works on sane cases.  Now check whether nonexistent headers
3290   # can be detected and how.
3291   cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #include <ac_nonexistent.h>
3298 _ACEOF
3299 if { (ac_try="$ac_cpp conftest.$ac_ext"
3300 case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } >/dev/null; then
3312   if test -s conftest.err; then
3313     ac_cpp_err=$ac_c_preproc_warn_flag
3314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315   else
3316     ac_cpp_err=
3317   fi
3318 else
3319   ac_cpp_err=yes
3320 fi
3321 if test -z "$ac_cpp_err"; then
3322   # Broken: success on invalid input.
3323 continue
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328   # Passes both tests.
3329 ac_preproc_ok=:
3330 break
3331 fi
3332
3333 rm -f conftest.err conftest.$ac_ext
3334
3335 done
3336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337 rm -f conftest.err conftest.$ac_ext
3338 if $ac_preproc_ok; then
3339   break
3340 fi
3341
3342     done
3343     ac_cv_prog_CPP=$CPP
3344
3345 fi
3346   CPP=$ac_cv_prog_CPP
3347 else
3348   ac_cv_prog_CPP=$CPP
3349 fi
3350 { echo "$as_me:$LINENO: result: $CPP" >&5
3351 echo "${ECHO_T}$CPP" >&6; }
3352 ac_preproc_ok=false
3353 for ac_c_preproc_warn_flag in '' yes
3354 do
3355   # Use a header file that comes with gcc, so configuring glibc
3356   # with a fresh cross-compiler works.
3357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358   # <limits.h> exists even on freestanding compilers.
3359   # On the NeXT, cc -E runs the code through the compiler's parser,
3360   # not just through cpp. "Syntax error" is here to catch this case.
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #ifdef __STDC__
3368 # include <limits.h>
3369 #else
3370 # include <assert.h>
3371 #endif
3372                      Syntax error
3373 _ACEOF
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } >/dev/null; then
3387   if test -s conftest.err; then
3388     ac_cpp_err=$ac_c_preproc_warn_flag
3389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390   else
3391     ac_cpp_err=
3392   fi
3393 else
3394   ac_cpp_err=yes
3395 fi
3396 if test -z "$ac_cpp_err"; then
3397   :
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402   # Broken: fails on valid input.
3403 continue
3404 fi
3405
3406 rm -f conftest.err conftest.$ac_ext
3407
3408   # OK, works on sane cases.  Now check whether nonexistent headers
3409   # can be detected and how.
3410   cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416 #include <ac_nonexistent.h>
3417 _ACEOF
3418 if { (ac_try="$ac_cpp conftest.$ac_ext"
3419 case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } >/dev/null; then
3431   if test -s conftest.err; then
3432     ac_cpp_err=$ac_c_preproc_warn_flag
3433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434   else
3435     ac_cpp_err=
3436   fi
3437 else
3438   ac_cpp_err=yes
3439 fi
3440 if test -z "$ac_cpp_err"; then
3441   # Broken: success on invalid input.
3442 continue
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451
3452 rm -f conftest.err conftest.$ac_ext
3453
3454 done
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3458   :
3459 else
3460   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3461 See \`config.log' for more details." >&5
3462 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3463 See \`config.log' for more details." >&2;}
3464    { (exit 1); exit 1; }; }
3465 fi
3466
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472
3473
3474 if test "$CXX" = "clang++" ; then
3475   { echo "$as_me:$LINENO: checking whether clang works" >&5
3476 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3477   ac_ext=cpp
3478 ac_cpp='$CXXCPP $CPPFLAGS'
3479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482
3483
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490 #include <limits>
3491 #if __has_include (<cxxabi.h>)
3492 #include <cxxabi.h>
3493 #endif
3494 #if __has_include (<unwind.h>)
3495 #include <unwind.h>
3496 #endif
3497
3498 int
3499 main ()
3500 {
3501
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3508 case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513   (eval "$ac_compile") 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3521   { (case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_try") 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; } &&
3530          { ac_try='test -s conftest.$ac_objext'
3531   { (case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536   (eval "$ac_try") 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); }; }; then
3540
3541   { echo "$as_me:$LINENO: result: yes" >&5
3542 echo "${ECHO_T}yes" >&6; }
3543
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548
3549   { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3551   { { 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
3552 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;}
3553    { (exit 1); exit 1; }; }
3554
3555 fi
3556
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558   ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564 fi
3565
3566
3567
3568 if test -d ${srcdir}/projects/llvm-gcc ; then
3569   subdirs="$subdirs projects/llvm-gcc"
3570
3571 fi
3572
3573 if test -d ${srcdir}/projects/test-suite ; then
3574   subdirs="$subdirs projects/test-suite"
3575
3576 fi
3577
3578 if test -d ${srcdir}/projects/llvm-test ; then
3579   subdirs="$subdirs projects/llvm-test"
3580
3581 fi
3582
3583 if test -d ${srcdir}/projects/poolalloc ; then
3584   subdirs="$subdirs projects/poolalloc"
3585
3586 fi
3587
3588 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3589   subdirs="$subdirs projects/llvm-poolalloc"
3590
3591 fi
3592
3593 for i in `ls ${srcdir}/projects`
3594 do
3595   if test -d ${srcdir}/projects/${i} ; then
3596     case ${i} in
3597       sample)       subdirs="$subdirs projects/sample"
3598     ;;
3599       privbracket)  subdirs="$subdirs projects/privbracket"
3600  ;;
3601       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3602  ;;
3603       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3604 ;;
3605       llvm-java)    subdirs="$subdirs projects/llvm-java"
3606  ;;
3607       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3608    ;;
3609       safecode)     subdirs="$subdirs projects/safecode"
3610  ;;
3611       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3612  ;;
3613       compiler-rt)       ;;
3614       llvm-gcc)       ;;
3615       test-suite)     ;;
3616       llvm-test)      ;;
3617       poolalloc)      ;;
3618       llvm-poolalloc) ;;
3619       *)
3620         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3621 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3622         ;;
3623     esac
3624   fi
3625 done
3626
3627 # Check whether --enable-polly was given.
3628 if test "${enable_polly+set}" = set; then
3629   enableval=$enable_polly;
3630 else
3631   enableval=default
3632 fi
3633
3634 case "$enableval" in
3635   yes) ENABLE_POLLY=1
3636  ;;
3637   no)  ENABLE_POLLY=0
3638  ;;
3639   default) ENABLE_POLLY=1
3640  ;;
3641   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3642 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3643    { (exit 1); exit 1; }; } ;;
3644 esac
3645
3646
3647 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3648   LLVM_HAS_POLLY=1
3649
3650   subdirs="$subdirs tools/polly"
3651
3652 fi
3653
3654
3655 # Make sure we can run config.sub.
3656 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3657   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3658 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3659    { (exit 1); exit 1; }; }
3660
3661 { echo "$as_me:$LINENO: checking build system type" >&5
3662 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3663 if test "${ac_cv_build+set}" = set; then
3664   echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666   ac_build_alias=$build_alias
3667 test "x$ac_build_alias" = x &&
3668   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3669 test "x$ac_build_alias" = x &&
3670   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3671 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3672    { (exit 1); exit 1; }; }
3673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3674   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3675 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3676    { (exit 1); exit 1; }; }
3677
3678 fi
3679 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3680 echo "${ECHO_T}$ac_cv_build" >&6; }
3681 case $ac_cv_build in
3682 *-*-*) ;;
3683 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3684 echo "$as_me: error: invalid value of canonical build" >&2;}
3685    { (exit 1); exit 1; }; };;
3686 esac
3687 build=$ac_cv_build
3688 ac_save_IFS=$IFS; IFS='-'
3689 set x $ac_cv_build
3690 shift
3691 build_cpu=$1
3692 build_vendor=$2
3693 shift; shift
3694 # Remember, the first character of IFS is used to create $*,
3695 # except with old shells:
3696 build_os=$*
3697 IFS=$ac_save_IFS
3698 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3699
3700
3701 { echo "$as_me:$LINENO: checking host system type" >&5
3702 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3703 if test "${ac_cv_host+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   if test "x$host_alias" = x; then
3707   ac_cv_host=$ac_cv_build
3708 else
3709   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3710     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3711 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3712    { (exit 1); exit 1; }; }
3713 fi
3714
3715 fi
3716 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3717 echo "${ECHO_T}$ac_cv_host" >&6; }
3718 case $ac_cv_host in
3719 *-*-*) ;;
3720 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3721 echo "$as_me: error: invalid value of canonical host" >&2;}
3722    { (exit 1); exit 1; }; };;
3723 esac
3724 host=$ac_cv_host
3725 ac_save_IFS=$IFS; IFS='-'
3726 set x $ac_cv_host
3727 shift
3728 host_cpu=$1
3729 host_vendor=$2
3730 shift; shift
3731 # Remember, the first character of IFS is used to create $*,
3732 # except with old shells:
3733 host_os=$*
3734 IFS=$ac_save_IFS
3735 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3736
3737
3738 { echo "$as_me:$LINENO: checking target system type" >&5
3739 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3740 if test "${ac_cv_target+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   if test "x$target_alias" = x; then
3744   ac_cv_target=$ac_cv_host
3745 else
3746   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3747     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3748 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3749    { (exit 1); exit 1; }; }
3750 fi
3751
3752 fi
3753 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3754 echo "${ECHO_T}$ac_cv_target" >&6; }
3755 case $ac_cv_target in
3756 *-*-*) ;;
3757 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3758 echo "$as_me: error: invalid value of canonical target" >&2;}
3759    { (exit 1); exit 1; }; };;
3760 esac
3761 target=$ac_cv_target
3762 ac_save_IFS=$IFS; IFS='-'
3763 set x $ac_cv_target
3764 shift
3765 target_cpu=$1
3766 target_vendor=$2
3767 shift; shift
3768 # Remember, the first character of IFS is used to create $*,
3769 # except with old shells:
3770 target_os=$*
3771 IFS=$ac_save_IFS
3772 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3773
3774
3775 # The aliases save the names the user supplied, while $host etc.
3776 # will get canonicalized.
3777 test -n "$target_alias" &&
3778   test "$program_prefix$program_suffix$program_transform_name" = \
3779     NONENONEs,x,x, &&
3780   program_prefix=${target_alias}-
3781
3782 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3783 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3784 if test "${llvm_cv_os_type+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   case $host in
3788   *-*-aix*)
3789     llvm_cv_link_all_option="-Wl,--whole-archive"
3790     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3791     llvm_cv_os_type="AIX"
3792     llvm_cv_platform_type="Unix" ;;
3793   *-*-irix*)
3794     llvm_cv_link_all_option="-Wl,--whole-archive"
3795     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3796     llvm_cv_os_type="IRIX"
3797     llvm_cv_platform_type="Unix" ;;
3798   *-*-cygwin*)
3799     llvm_cv_link_all_option="-Wl,--whole-archive"
3800     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3801     llvm_cv_os_type="Cygwin"
3802     llvm_cv_platform_type="Unix" ;;
3803   *-*-darwin*)
3804     llvm_cv_link_all_option="-Wl,-all_load"
3805     llvm_cv_no_link_all_option="-Wl,-noall_load"
3806     llvm_cv_os_type="Darwin"
3807     llvm_cv_platform_type="Unix" ;;
3808   *-*-minix*)
3809     llvm_cv_link_all_option="-Wl,-all_load"
3810     llvm_cv_no_link_all_option="-Wl,-noall_load"
3811     llvm_cv_os_type="Minix"
3812     llvm_cv_platform_type="Unix" ;;
3813   *-*-freebsd* | *-*-kfreebsd-gnu)
3814     llvm_cv_link_all_option="-Wl,--whole-archive"
3815     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3816     llvm_cv_os_type="FreeBSD"
3817     llvm_cv_platform_type="Unix" ;;
3818   *-*-openbsd*)
3819     llvm_cv_link_all_option="-Wl,--whole-archive"
3820     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3821     llvm_cv_os_type="OpenBSD"
3822     llvm_cv_platform_type="Unix" ;;
3823   *-*-netbsd*)
3824     llvm_cv_link_all_option="-Wl,--whole-archive"
3825     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3826     llvm_cv_os_type="NetBSD"
3827     llvm_cv_platform_type="Unix" ;;
3828   *-*-dragonfly*)
3829     llvm_cv_link_all_option="-Wl,--whole-archive"
3830     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831     llvm_cv_os_type="DragonFly"
3832     llvm_cv_platform_type="Unix" ;;
3833   *-*-hpux*)
3834     llvm_cv_link_all_option="-Wl,--whole-archive"
3835     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836     llvm_cv_os_type="HP-UX"
3837     llvm_cv_platform_type="Unix" ;;
3838   *-*-interix*)
3839     llvm_cv_link_all_option="-Wl,--whole-archive"
3840     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841     llvm_cv_os_type="Interix"
3842     llvm_cv_platform_type="Unix" ;;
3843   *-*-linux*)
3844     llvm_cv_link_all_option="-Wl,--whole-archive"
3845     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846     llvm_cv_os_type="Linux"
3847     llvm_cv_platform_type="Unix" ;;
3848   *-*-gnu*)
3849     llvm_cv_link_all_option="-Wl,--whole-archive"
3850     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851     llvm_cv_os_type="GNU"
3852     llvm_cv_platform_type="Unix" ;;
3853   *-*-solaris*)
3854     llvm_cv_link_all_option="-Wl,-z,allextract"
3855     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3856     llvm_cv_os_type="SunOS"
3857     llvm_cv_platform_type="Unix" ;;
3858   *-*-auroraux*)
3859     llvm_cv_link_all_option="-Wl,-z,allextract"
3860     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3861     llvm_cv_os_type="AuroraUX"
3862     llvm_cv_platform_type="Unix" ;;
3863   *-*-win32*)
3864     llvm_cv_link_all_option="-Wl,--whole-archive"
3865     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3866     llvm_cv_os_type="Win32"
3867     llvm_cv_platform_type="Win32" ;;
3868   *-*-mingw*)
3869     llvm_cv_link_all_option="-Wl,--whole-archive"
3870     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3871     llvm_cv_os_type="MingW"
3872     llvm_cv_platform_type="Win32" ;;
3873   *-*-haiku*)
3874     llvm_cv_link_all_option="-Wl,--whole-archive"
3875     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3876     llvm_cv_os_type="Haiku"
3877     llvm_cv_platform_type="Unix" ;;
3878   *-unknown-eabi*)
3879     llvm_cv_link_all_option="-Wl,--whole-archive"
3880     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881     llvm_cv_os_type="Freestanding"
3882     llvm_cv_platform_type="Unix" ;;
3883   *-unknown-elf*)
3884     llvm_cv_link_all_option="-Wl,--whole-archive"
3885     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886     llvm_cv_os_type="Freestanding"
3887     llvm_cv_platform_type="Unix" ;;
3888   *)
3889     llvm_cv_link_all_option=""
3890     llvm_cv_no_link_all_option=""
3891     llvm_cv_os_type="Unknown"
3892     llvm_cv_platform_type="Unknown" ;;
3893 esac
3894 fi
3895 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3896 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3897
3898 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3899 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3900 if test "${llvm_cv_target_os_type+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   case $target in
3904   *-*-aix*)
3905     llvm_cv_target_os_type="AIX" ;;
3906   *-*-irix*)
3907     llvm_cv_target_os_type="IRIX" ;;
3908   *-*-cygwin*)
3909     llvm_cv_target_os_type="Cygwin" ;;
3910   *-*-darwin*)
3911     llvm_cv_target_os_type="Darwin" ;;
3912   *-*-minix*)
3913     llvm_cv_target_os_type="Minix" ;;
3914   *-*-freebsd* | *-*-kfreebsd-gnu)
3915     llvm_cv_target_os_type="FreeBSD" ;;
3916   *-*-openbsd*)
3917     llvm_cv_target_os_type="OpenBSD" ;;
3918   *-*-netbsd*)
3919     llvm_cv_target_os_type="NetBSD" ;;
3920   *-*-dragonfly*)
3921     llvm_cv_target_os_type="DragonFly" ;;
3922   *-*-hpux*)
3923     llvm_cv_target_os_type="HP-UX" ;;
3924   *-*-interix*)
3925     llvm_cv_target_os_type="Interix" ;;
3926   *-*-linux*)
3927     llvm_cv_target_os_type="Linux" ;;
3928   *-*-gnu*)
3929     llvm_cv_target_os_type="GNU" ;;
3930   *-*-solaris*)
3931     llvm_cv_target_os_type="SunOS" ;;
3932   *-*-auroraux*)
3933     llvm_cv_target_os_type="AuroraUX" ;;
3934   *-*-win32*)
3935     llvm_cv_target_os_type="Win32" ;;
3936   *-*-mingw*)
3937     llvm_cv_target_os_type="MingW" ;;
3938   *-*-haiku*)
3939     llvm_cv_target_os_type="Haiku" ;;
3940   *-*-rtems*)
3941     llvm_cv_target_os_type="RTEMS" ;;
3942   *-*-nacl*)
3943     llvm_cv_target_os_type="NativeClient" ;;
3944   *-unknown-eabi*)
3945     llvm_cv_target_os_type="Freestanding" ;;
3946   *)
3947     llvm_cv_target_os_type="Unknown" ;;
3948 esac
3949 fi
3950 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3951 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3952
3953 if test "$llvm_cv_os_type" = "Unknown" ; then
3954   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3955 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3956    { (exit 1); exit 1; }; }
3957 fi
3958
3959 OS=$llvm_cv_os_type
3960
3961 HOST_OS=$llvm_cv_os_type
3962
3963 TARGET_OS=$llvm_cv_target_os_type
3964
3965
3966 LINKALL=$llvm_cv_link_all_option
3967
3968 NOLINKALL=$llvm_cv_no_link_all_option
3969
3970
3971 case $llvm_cv_platform_type in
3972   Unix)
3973
3974 cat >>confdefs.h <<\_ACEOF
3975 #define LLVM_ON_UNIX 1
3976 _ACEOF
3977
3978     LLVM_ON_UNIX=1
3979
3980     LLVM_ON_WIN32=0
3981
3982     ;;
3983   Win32)
3984
3985 cat >>confdefs.h <<\_ACEOF
3986 #define LLVM_ON_WIN32 1
3987 _ACEOF
3988
3989     LLVM_ON_UNIX=0
3990
3991     LLVM_ON_WIN32=1
3992
3993     ;;
3994 esac
3995
3996 { echo "$as_me:$LINENO: checking target architecture" >&5
3997 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3998 if test "${llvm_cv_target_arch+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   case $target in
4002   i?86-*)                 llvm_cv_target_arch="x86" ;;
4003   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4004   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4005   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4006   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4007   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4008   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4009   xcore-*)                llvm_cv_target_arch="XCore" ;;
4010   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4011   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4012   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
4013   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4014   *)                      llvm_cv_target_arch="Unknown" ;;
4015 esac
4016 fi
4017 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4018 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4019
4020 if test "$llvm_cv_target_arch" = "Unknown" ; then
4021   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4022 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4023 fi
4024
4025 case "$llvm_cv_target_arch" in
4026     x86)     LLVM_NATIVE_ARCH="X86" ;;
4027     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4028     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4029 esac
4030
4031 ARCH=$llvm_cv_target_arch
4032
4033
4034 case $host in
4035   i?86-*)                 host_arch="x86" ;;
4036   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4037   sparc*-*)               host_arch="Sparc" ;;
4038   powerpc*-*)             host_arch="PowerPC" ;;
4039   arm*-*)                 host_arch="ARM" ;;
4040   mips-* | mips64-*)      host_arch="Mips" ;;
4041   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4042   xcore-*)                host_arch="XCore" ;;
4043   msp430-*)               host_arch="MSP430" ;;
4044   hexagon-*)              host_arch="Hexagon" ;;
4045   mblaze-*)               host_arch="MBlaze" ;;
4046   *)                      host_arch="Unknown" ;;
4047 esac
4048
4049 if test "$host_arch" = "Unknown" ; then
4050   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4051 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4052 fi
4053
4054 HOST_ARCH=$host_arch
4055
4056
4057
4058
4059 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4060 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_GREP+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   # Extract the first word of "grep ggrep" to use in msg output
4065 if test -z "$GREP"; then
4066 set dummy grep ggrep; ac_prog_name=$2
4067 if test "${ac_cv_path_GREP+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   ac_path_GREP_found=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_prog in grep ggrep; do
4078   for ac_exec_ext in '' $ac_executable_extensions; do
4079     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4081     # Check for GNU ac_path_GREP and select it if it is found.
4082   # Check for GNU $ac_path_GREP
4083 case `"$ac_path_GREP" --version 2>&1` in
4084 *GNU*)
4085   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4086 *)
4087   ac_count=0
4088   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4089   while :
4090   do
4091     cat "conftest.in" "conftest.in" >"conftest.tmp"
4092     mv "conftest.tmp" "conftest.in"
4093     cp "conftest.in" "conftest.nl"
4094     echo 'GREP' >> "conftest.nl"
4095     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097     ac_count=`expr $ac_count + 1`
4098     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099       # Best one so far, save it but keep looking for a better one
4100       ac_cv_path_GREP="$ac_path_GREP"
4101       ac_path_GREP_max=$ac_count
4102     fi
4103     # 10*(2^10) chars as input seems more than enough
4104     test $ac_count -gt 10 && break
4105   done
4106   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109
4110     $ac_path_GREP_found && break 3
4111   done
4112 done
4113
4114 done
4115 IFS=$as_save_IFS
4116
4117
4118 fi
4119
4120 GREP="$ac_cv_path_GREP"
4121 if test -z "$GREP"; then
4122   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124    { (exit 1); exit 1; }; }
4125 fi
4126
4127 else
4128   ac_cv_path_GREP=$GREP
4129 fi
4130
4131
4132 fi
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4135  GREP="$ac_cv_path_GREP"
4136
4137
4138 { echo "$as_me:$LINENO: checking for egrep" >&5
4139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4140 if test "${ac_cv_path_EGREP+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144    then ac_cv_path_EGREP="$GREP -E"
4145    else
4146      # Extract the first word of "egrep" to use in msg output
4147 if test -z "$EGREP"; then
4148 set dummy egrep; ac_prog_name=$2
4149 if test "${ac_cv_path_EGREP+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   ac_path_EGREP_found=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_prog in egrep; do
4160   for ac_exec_ext in '' $ac_executable_extensions; do
4161     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4162     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4163     # Check for GNU ac_path_EGREP and select it if it is found.
4164   # Check for GNU $ac_path_EGREP
4165 case `"$ac_path_EGREP" --version 2>&1` in
4166 *GNU*)
4167   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168 *)
4169   ac_count=0
4170   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4171   while :
4172   do
4173     cat "conftest.in" "conftest.in" >"conftest.tmp"
4174     mv "conftest.tmp" "conftest.in"
4175     cp "conftest.in" "conftest.nl"
4176     echo 'EGREP' >> "conftest.nl"
4177     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179     ac_count=`expr $ac_count + 1`
4180     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181       # Best one so far, save it but keep looking for a better one
4182       ac_cv_path_EGREP="$ac_path_EGREP"
4183       ac_path_EGREP_max=$ac_count
4184     fi
4185     # 10*(2^10) chars as input seems more than enough
4186     test $ac_count -gt 10 && break
4187   done
4188   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189 esac
4190
4191
4192     $ac_path_EGREP_found && break 3
4193   done
4194 done
4195
4196 done
4197 IFS=$as_save_IFS
4198
4199
4200 fi
4201
4202 EGREP="$ac_cv_path_EGREP"
4203 if test -z "$EGREP"; then
4204   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4205 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4206    { (exit 1); exit 1; }; }
4207 fi
4208
4209 else
4210   ac_cv_path_EGREP=$EGREP
4211 fi
4212
4213
4214    fi
4215 fi
4216 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4217 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4218  EGREP="$ac_cv_path_EGREP"
4219
4220
4221 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4222 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4223 if test "${ac_cv_header_stdc+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 #include <stdlib.h>
4233 #include <stdarg.h>
4234 #include <string.h>
4235 #include <float.h>
4236
4237 int
4238 main ()
4239 {
4240
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_compile") 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
4256   cat conftest.err >&5
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } &&
4259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest.$ac_objext'
4270   { (case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_try") 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; }; then
4279   ac_cv_header_stdc=yes
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284         ac_cv_header_stdc=no
4285 fi
4286
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288
4289 if test $ac_cv_header_stdc = yes; then
4290   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 #include <string.h>
4298
4299 _ACEOF
4300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4301   $EGREP "memchr" >/dev/null 2>&1; then
4302   :
4303 else
4304   ac_cv_header_stdc=no
4305 fi
4306 rm -f conftest*
4307
4308 fi
4309
4310 if test $ac_cv_header_stdc = yes; then
4311   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4312   cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 #include <stdlib.h>
4319
4320 _ACEOF
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322   $EGREP "free" >/dev/null 2>&1; then
4323   :
4324 else
4325   ac_cv_header_stdc=no
4326 fi
4327 rm -f conftest*
4328
4329 fi
4330
4331 if test $ac_cv_header_stdc = yes; then
4332   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4333   if test "$cross_compiling" = yes; then
4334   :
4335 else
4336   cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342 #include <ctype.h>
4343 #include <stdlib.h>
4344 #if ((' ' & 0x0FF) == 0x020)
4345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4347 #else
4348 # define ISLOWER(c) \
4349                    (('a' <= (c) && (c) <= 'i') \
4350                      || ('j' <= (c) && (c) <= 'r') \
4351                      || ('s' <= (c) && (c) <= 'z'))
4352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4353 #endif
4354
4355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4356 int
4357 main ()
4358 {
4359   int i;
4360   for (i = 0; i < 256; i++)
4361     if (XOR (islower (i), ISLOWER (i))
4362         || toupper (i) != TOUPPER (i))
4363       return 2;
4364   return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest$ac_exeext
4368 if { (ac_try="$ac_link"
4369 case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_link") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378   { (case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_try") 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   :
4388 else
4389   echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ( exit $ac_status )
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397 fi
4398
4399
4400 fi
4401 fi
4402 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4403 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4404 if test $ac_cv_header_stdc = yes; then
4405
4406 cat >>confdefs.h <<\_ACEOF
4407 #define STDC_HEADERS 1
4408 _ACEOF
4409
4410 fi
4411
4412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4423                   inttypes.h stdint.h unistd.h
4424 do
4425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h.  */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h.  */
4437 $ac_includes_default
4438
4439 #include <$ac_header>
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (ac_try="$ac_compile"
4443 case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_compile") 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; } &&
4465          { ac_try='test -s conftest.$ac_objext'
4466   { (case "(($ac_try" in
4467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468   *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471   (eval "$ac_try") 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; }; then
4475   eval "$as_ac_Header=yes"
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         eval "$as_ac_Header=no"
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 ac_res=`eval echo '${'$as_ac_Header'}'`
4486                { echo "$as_me:$LINENO: result: $ac_res" >&5
4487 echo "${ECHO_T}$ac_res" >&6; }
4488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4489   cat >>confdefs.h <<_ACEOF
4490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491 _ACEOF
4492
4493 fi
4494
4495 done
4496
4497
4498 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4499 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4500 if test "${ac_cv_c_bigendian+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   # See if sys/param.h defines the BYTE_ORDER macro.
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
4510 #include <sys/types.h>
4511 #include <sys/param.h>
4512
4513 int
4514 main ()
4515 {
4516 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4517  bogus endian macros
4518 #endif
4519
4520   ;
4521   return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (ac_try="$ac_compile"
4526 case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531   (eval "$ac_compile") 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } &&
4538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; } &&
4548          { ac_try='test -s conftest.$ac_objext'
4549   { (case "(($ac_try" in
4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551   *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554   (eval "$ac_try") 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; }; then
4558   # It does; now see whether it defined to BIG_ENDIAN or not.
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 #include <sys/types.h>
4566 #include <sys/param.h>
4567
4568 int
4569 main ()
4570 {
4571 #if BYTE_ORDER != BIG_ENDIAN
4572  not big endian
4573 #endif
4574
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (ac_try="$ac_compile"
4581 case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586   (eval "$ac_compile") 2>conftest.er1
4587   ac_status=$?
4588   grep -v '^ *+' conftest.er1 >conftest.err
4589   rm -f conftest.er1
4590   cat conftest.err >&5
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); } &&
4593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594   { (case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_try") 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; } &&
4603          { ac_try='test -s conftest.$ac_objext'
4604   { (case "(($ac_try" in
4605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606   *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609   (eval "$ac_try") 2>&5
4610   ac_status=$?
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); }; }; then
4613   ac_cv_c_bigendian=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618         ac_cv_c_bigendian=no
4619 fi
4620
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 else
4623   echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626         # It does not; compile a test program.
4627 if test "$cross_compiling" = yes; then
4628   # try to guess the endianness by grepping values into an object file
4629   ac_cv_c_bigendian=unknown
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4637 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4638 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4639 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4640 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4641 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4642 int
4643 main ()
4644 {
4645  _ascii (); _ebcdic ();
4646   ;
4647   return 0;
4648 }
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (ac_try="$ac_compile"
4652 case "(($ac_try" in
4653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654   *) ac_try_echo=$ac_try;;
4655 esac
4656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657   (eval "$ac_compile") 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665   { (case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_try") 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; } &&
4674          { ac_try='test -s conftest.$ac_objext'
4675   { (case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680   (eval "$ac_try") 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; }; then
4684   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4685   ac_cv_c_bigendian=yes
4686 fi
4687 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4688   if test "$ac_cv_c_bigendian" = unknown; then
4689     ac_cv_c_bigendian=no
4690   else
4691     # finding both strings is unlikely to happen, but who knows?
4692     ac_cv_c_bigendian=unknown
4693   fi
4694 fi
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699
4700 fi
4701
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 else
4704   cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710 $ac_includes_default
4711 int
4712 main ()
4713 {
4714
4715   /* Are we little or big endian?  From Harbison&Steele.  */
4716   union
4717   {
4718     long int l;
4719     char c[sizeof (long int)];
4720   } u;
4721   u.l = 1;
4722   return u.c[sizeof (long int) - 1] == 1;
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 rm -f conftest$ac_exeext
4729 if { (ac_try="$ac_link"
4730 case "(($ac_try" in
4731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732   *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735   (eval "$ac_link") 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4739   { (case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_try") 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; }; then
4748   ac_cv_c_bigendian=no
4749 else
4750   echo "$as_me: program exited with status $ac_status" >&5
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ( exit $ac_status )
4755 ac_cv_c_bigendian=yes
4756 fi
4757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4758 fi
4759
4760
4761 fi
4762
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 fi
4765 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4766 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4767 case $ac_cv_c_bigendian in
4768   yes)
4769     ENDIAN=big
4770  ;;
4771   no)
4772     ENDIAN=little
4773  ;;
4774   *)
4775     { { echo "$as_me:$LINENO: error: unknown endianness
4776 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4777 echo "$as_me: error: unknown endianness
4778 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4779    { (exit 1); exit 1; }; } ;;
4780 esac
4781
4782
4783 if test "$cross_compiling" = yes; then
4784   LLVM_CROSS_COMPILING=1
4785
4786
4787 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4788 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4789 if test "${ac_cv_build_exeext+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4793   ac_cv_build_exeext=.exe
4794 else
4795   ac_build_prefix=${build_alias}-
4796
4797   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4798 set dummy ${ac_build_prefix}gcc; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   if test -n "$BUILD_CC"; then
4805   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812   for ac_exec_ext in '' $ac_executable_extensions; do
4813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4814     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 BUILD_CC=$ac_cv_prog_BUILD_CC
4825 if test -n "$BUILD_CC"; then
4826   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4827 echo "${ECHO_T}$BUILD_CC" >&6; }
4828 else
4829   { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4831 fi
4832
4833
4834   if test -z "$BUILD_CC"; then
4835      # Extract the first word of "gcc", so it can be a program name with args.
4836 set dummy gcc; ac_word=$2
4837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   if test -n "$BUILD_CC"; then
4843   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850   for ac_exec_ext in '' $ac_executable_extensions; do
4851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4852     ac_cv_prog_BUILD_CC="gcc"
4853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854     break 2
4855   fi
4856 done
4857 done
4858 IFS=$as_save_IFS
4859
4860 fi
4861 fi
4862 BUILD_CC=$ac_cv_prog_BUILD_CC
4863 if test -n "$BUILD_CC"; then
4864   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4865 echo "${ECHO_T}$BUILD_CC" >&6; }
4866 else
4867   { echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6; }
4869 fi
4870
4871
4872      if test -z "$BUILD_CC"; then
4873        # Extract the first word of "cc", so it can be a program name with args.
4874 set dummy cc; ac_word=$2
4875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   if test -n "$BUILD_CC"; then
4881   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4882 else
4883   ac_prog_rejected=no
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889   for ac_exec_ext in '' $ac_executable_extensions; do
4890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4891     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4892        ac_prog_rejected=yes
4893        continue
4894      fi
4895     ac_cv_prog_BUILD_CC="cc"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 if test $ac_prog_rejected = yes; then
4904   # We found a bogon in the path, so make sure we never use it.
4905   set dummy $ac_cv_prog_BUILD_CC
4906   shift
4907   if test $# != 0; then
4908     # We chose a different compiler from the bogus one.
4909     # However, it has the same basename, so the bogon will be chosen
4910     # first if we set BUILD_CC to just the basename; use the full file name.
4911     shift
4912     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4913   fi
4914 fi
4915 fi
4916 fi
4917 BUILD_CC=$ac_cv_prog_BUILD_CC
4918 if test -n "$BUILD_CC"; then
4919   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4920 echo "${ECHO_T}$BUILD_CC" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927      fi
4928   fi
4929   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4930 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4931    { (exit 1); exit 1; }; }
4932   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4933   rm -f conftest*
4934   echo 'int main () { return 0; }' > conftest.$ac_ext
4935   ac_cv_build_exeext=
4936   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4937   (eval $ac_build_link) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; then
4941     for file in conftest.*; do
4942       case $file in
4943       *.c | *.o | *.obj | *.dSYM) ;;
4944       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4945       esac
4946     done
4947   else
4948     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4949 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4950    { (exit 1); exit 1; }; }
4951   fi
4952   rm -f conftest*
4953   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4954 fi
4955 fi
4956
4957 BUILD_EXEEXT=""
4958 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4959 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4960 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4961 ac_build_exeext=$BUILD_EXEEXT
4962
4963   ac_build_prefix=${build_alias}-
4964   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4965 set dummy ${ac_build_prefix}g++; ac_word=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   if test -n "$BUILD_CXX"; then
4972   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979   for ac_exec_ext in '' $ac_executable_extensions; do
4980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4981     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4992 if test -n "$BUILD_CXX"; then
4993   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4994 echo "${ECHO_T}$BUILD_CXX" >&6; }
4995 else
4996   { echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6; }
4998 fi
4999
5000
5001   if test -z "$BUILD_CXX"; then
5002      # Extract the first word of "g++", so it can be a program name with args.
5003 set dummy g++; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   if test -n "$BUILD_CXX"; then
5010   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_prog_BUILD_CXX="g++"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5030 if test -n "$BUILD_CXX"; then
5031   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5032 echo "${ECHO_T}$BUILD_CXX" >&6; }
5033 else
5034   { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5036 fi
5037
5038
5039      if test -z "$BUILD_CXX"; then
5040        # Extract the first word of "c++", so it can be a program name with args.
5041 set dummy c++; ac_word=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5045   echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047   if test -n "$BUILD_CXX"; then
5048   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5049 else
5050   ac_prog_rejected=no
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056   for ac_exec_ext in '' $ac_executable_extensions; do
5057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5058     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5059        ac_prog_rejected=yes
5060        continue
5061      fi
5062     ac_cv_prog_BUILD_CXX="c++"
5063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 if test $ac_prog_rejected = yes; then
5071   # We found a bogon in the path, so make sure we never use it.
5072   set dummy $ac_cv_prog_BUILD_CXX
5073   shift
5074   if test $# != 0; then
5075     # We chose a different compiler from the bogus one.
5076     # However, it has the same basename, so the bogon will be chosen
5077     # first if we set BUILD_CXX to just the basename; use the full file name.
5078     shift
5079     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5080   fi
5081 fi
5082 fi
5083 fi
5084 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5085 if test -n "$BUILD_CXX"; then
5086   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5087 echo "${ECHO_T}$BUILD_CXX" >&6; }
5088 else
5089   { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5091 fi
5092
5093
5094      fi
5095   fi
5096 else
5097   LLVM_CROSS_COMPILING=0
5098
5099 fi
5100
5101 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5102   cvsbuild="yes"
5103   optimize="no"
5104   CVSBUILD=CVSBUILD=1
5105
5106 else
5107   cvsbuild="no"
5108   optimize="yes"
5109 fi
5110
5111
5112 # Check whether --enable-libcpp was given.
5113 if test "${enable_libcpp+set}" = set; then
5114   enableval=$enable_libcpp;
5115 else
5116   enableval=default
5117 fi
5118
5119 case "$enableval" in
5120   yes) ENABLE_LIBCPP=1
5121  ;;
5122   no)  ENABLE_LIBCPP=0
5123  ;;
5124   default) ENABLE_LIBCPP=0
5125 ;;
5126   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5128    { (exit 1); exit 1; }; } ;;
5129 esac
5130
5131 # Check whether --enable-cxx11 was given.
5132 if test "${enable_cxx11+set}" = set; then
5133   enableval=$enable_cxx11;
5134 else
5135   enableval=default
5136 fi
5137
5138 case "$enableval" in
5139   yes) ENABLE_CXX11=1
5140  ;;
5141   no)  ENABLE_CXX11=0
5142  ;;
5143   default) ENABLE_CXX11=0
5144 ;;
5145   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5147    { (exit 1); exit 1; }; } ;;
5148 esac
5149
5150 clang_arcmt="yes"
5151 # Check whether --enable-clang-arcmt was given.
5152 if test "${enable_clang_arcmt+set}" = set; then
5153   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5154 else
5155   enableval="yes"
5156 fi
5157
5158 case "$enableval" in
5159   yes) ENABLE_CLANG_ARCMT=1
5160  ;;
5161   no)  ENABLE_CLANG_ARCMT=0
5162  ;;
5163   default) ENABLE_CLANG_ARCMT=1
5164 ;;
5165   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5166 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5167    { (exit 1); exit 1; }; } ;;
5168 esac
5169
5170 clang_static_analyzer="yes"
5171 # Check whether --enable-clang-static-analyzer was given.
5172 if test "${enable_clang_static_analyzer+set}" = set; then
5173   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5174 else
5175   enableval="yes"
5176 fi
5177
5178 case "$enableval" in
5179   yes) ENABLE_CLANG_STATIC_ANALYZER=1
5180  ;;
5181   no)  ENABLE_CLANG_STATIC_ANALYZER=0
5182  ;;
5183   default) ENABLE_CLANG_STATIC_ANALYZER=1
5184 ;;
5185   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188 esac
5189
5190 # Check whether --enable-clang-rewriter was given.
5191 if test "${enable_clang_rewriter+set}" = set; then
5192   enableval=$enable_clang_rewriter;
5193 else
5194   enableval="yes"
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_CLANG_REWRITER=1
5199  ;;
5200   no)
5201     if test ${clang_arcmt} != "no" ; then
5202       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5203 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5204    { (exit 1); exit 1; }; }
5205     fi
5206     if test ${clang_static_analyzer} != "no" ; then
5207       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5208 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5209    { (exit 1); exit 1; }; }
5210     fi
5211     ENABLE_CLANG_REWRITER=0
5212
5213     ;;
5214   default) ENABLE_CLANG_REWRITER=1
5215 ;;
5216   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219 esac
5220
5221 # Check whether --enable-optimized was given.
5222 if test "${enable_optimized+set}" = set; then
5223   enableval=$enable_optimized;
5224 else
5225   enableval=$optimize
5226 fi
5227
5228 if test ${enableval} = "no" ; then
5229   ENABLE_OPTIMIZED=
5230
5231 else
5232   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5233
5234 fi
5235
5236 # Check whether --enable-profiling was given.
5237 if test "${enable_profiling+set}" = set; then
5238   enableval=$enable_profiling;
5239 else
5240   enableval="no"
5241 fi
5242
5243 if test ${enableval} = "no" ; then
5244   ENABLE_PROFILING=
5245
5246 else
5247   ENABLE_PROFILING=ENABLE_PROFILING=1
5248
5249 fi
5250
5251 # Check whether --enable-assertions was given.
5252 if test "${enable_assertions+set}" = set; then
5253   enableval=$enable_assertions;
5254 else
5255   enableval="yes"
5256 fi
5257
5258 if test ${enableval} = "yes" ; then
5259   DISABLE_ASSERTIONS=
5260
5261 else
5262   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5263
5264 fi
5265
5266 # Check whether --enable-werror was given.
5267 if test "${enable_werror+set}" = set; then
5268   enableval=$enable_werror;
5269 else
5270   enableval="no"
5271 fi
5272
5273 case "$enableval" in
5274   yes) ENABLE_WERROR=1
5275  ;;
5276   no)  ENABLE_WERROR=0
5277  ;;
5278   default) ENABLE_WERROR=0
5279 ;;
5280   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5281 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5282    { (exit 1); exit 1; }; } ;;
5283 esac
5284
5285 # Check whether --enable-expensive-checks was given.
5286 if test "${enable_expensive_checks+set}" = set; then
5287   enableval=$enable_expensive_checks;
5288 else
5289   enableval="no"
5290 fi
5291
5292 if test ${enableval} = "yes" ; then
5293   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5294
5295   EXPENSIVE_CHECKS=yes
5296
5297 else
5298   ENABLE_EXPENSIVE_CHECKS=
5299
5300   EXPENSIVE_CHECKS=no
5301
5302 fi
5303
5304 # Check whether --enable-debug-runtime was given.
5305 if test "${enable_debug_runtime+set}" = set; then
5306   enableval=$enable_debug_runtime;
5307 else
5308   enableval=no
5309 fi
5310
5311 if test ${enableval} = "no" ; then
5312   DEBUG_RUNTIME=
5313
5314 else
5315   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5316
5317 fi
5318
5319 # Check whether --enable-debug-symbols was given.
5320 if test "${enable_debug_symbols+set}" = set; then
5321   enableval=$enable_debug_symbols;
5322 else
5323   enableval=no
5324 fi
5325
5326 if test ${enableval} = "no" ; then
5327   DEBUG_SYMBOLS=
5328
5329 else
5330   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5331
5332 fi
5333
5334 # Check whether --enable-keep-symbols was given.
5335 if test "${enable_keep_symbols+set}" = set; then
5336   enableval=$enable_keep_symbols;
5337 else
5338   enableval=no
5339 fi
5340
5341 if test ${enableval} = "no" ; then
5342   KEEP_SYMBOLS=
5343
5344 else
5345   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5346
5347 fi
5348
5349 # Check whether --enable-jit was given.
5350 if test "${enable_jit+set}" = set; then
5351   enableval=$enable_jit;
5352 else
5353   enableval=default
5354 fi
5355
5356 if test ${enableval} = "no"
5357 then
5358   JIT=
5359
5360 else
5361   case "$llvm_cv_target_arch" in
5362     x86)         TARGET_HAS_JIT=1
5363  ;;
5364     Sparc)       TARGET_HAS_JIT=0
5365  ;;
5366     PowerPC)     TARGET_HAS_JIT=1
5367  ;;
5368     x86_64)      TARGET_HAS_JIT=1
5369  ;;
5370     ARM)         TARGET_HAS_JIT=1
5371  ;;
5372     Mips)        TARGET_HAS_JIT=1
5373  ;;
5374     XCore)       TARGET_HAS_JIT=0
5375  ;;
5376     MSP430)      TARGET_HAS_JIT=0
5377  ;;
5378     Hexagon)     TARGET_HAS_JIT=0
5379  ;;
5380     MBlaze)      TARGET_HAS_JIT=0
5381  ;;
5382     NVPTX)       TARGET_HAS_JIT=0
5383  ;;
5384     *)           TARGET_HAS_JIT=0
5385  ;;
5386   esac
5387 fi
5388
5389 # Check whether --enable-docs was given.
5390 if test "${enable_docs+set}" = set; then
5391   enableval=$enable_docs;
5392 else
5393   enableval=default
5394 fi
5395
5396 case "$enableval" in
5397   yes) ENABLE_DOCS=1
5398  ;;
5399   no)  ENABLE_DOCS=0
5400  ;;
5401   default) ENABLE_DOCS=1
5402  ;;
5403   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5404 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5405    { (exit 1); exit 1; }; } ;;
5406 esac
5407
5408 # Check whether --enable-doxygen was given.
5409 if test "${enable_doxygen+set}" = set; then
5410   enableval=$enable_doxygen;
5411 else
5412   enableval=default
5413 fi
5414
5415 case "$enableval" in
5416   yes) ENABLE_DOXYGEN=1
5417  ;;
5418   no)  ENABLE_DOXYGEN=0
5419  ;;
5420   default) ENABLE_DOXYGEN=0
5421  ;;
5422   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5423 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5424    { (exit 1); exit 1; }; } ;;
5425 esac
5426
5427 # Check whether --enable-threads was given.
5428 if test "${enable_threads+set}" = set; then
5429   enableval=$enable_threads;
5430 else
5431   enableval=default
5432 fi
5433
5434 case "$enableval" in
5435   yes) LLVM_ENABLE_THREADS=1
5436  ;;
5437   no)  LLVM_ENABLE_THREADS=0
5438  ;;
5439   default) LLVM_ENABLE_THREADS=1
5440  ;;
5441   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5442 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5443    { (exit 1); exit 1; }; } ;;
5444 esac
5445
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5448 _ACEOF
5449
5450
5451 # Check whether --enable-pthreads was given.
5452 if test "${enable_pthreads+set}" = set; then
5453   enableval=$enable_pthreads;
5454 else
5455   enableval=default
5456 fi
5457
5458 case "$enableval" in
5459   yes) ENABLE_PTHREADS=1
5460  ;;
5461   no)  ENABLE_PTHREADS=0
5462  ;;
5463   default) ENABLE_PTHREADS=1
5464  ;;
5465   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5466 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5467    { (exit 1); exit 1; }; } ;;
5468 esac
5469
5470 # Check whether --enable-pic was given.
5471 if test "${enable_pic+set}" = set; then
5472   enableval=$enable_pic;
5473 else
5474   enableval=default
5475 fi
5476
5477 case "$enableval" in
5478   yes) ENABLE_PIC=1
5479  ;;
5480   no)  ENABLE_PIC=0
5481  ;;
5482   default) ENABLE_PIC=1
5483  ;;
5484   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5485 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5486    { (exit 1); exit 1; }; } ;;
5487 esac
5488
5489 cat >>confdefs.h <<_ACEOF
5490 #define ENABLE_PIC $ENABLE_PIC
5491 _ACEOF
5492
5493
5494 # Check whether --enable-shared was given.
5495 if test "${enable_shared+set}" = set; then
5496   enableval=$enable_shared;
5497 else
5498   enableval=default
5499 fi
5500
5501 case "$enableval" in
5502   yes) ENABLE_SHARED=1
5503  ;;
5504   no)  ENABLE_SHARED=0
5505  ;;
5506   default) ENABLE_SHARED=0
5507  ;;
5508   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5509 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5510    { (exit 1); exit 1; }; } ;;
5511 esac
5512
5513 # Check whether --enable-embed-stdcxx was given.
5514 if test "${enable_embed_stdcxx+set}" = set; then
5515   enableval=$enable_embed_stdcxx;
5516 else
5517   enableval=default
5518 fi
5519
5520 case "$enableval" in
5521   yes) ENABLE_EMBED_STDCXX=1
5522  ;;
5523   no)  ENABLE_EMBED_STDCXX=0
5524  ;;
5525   default) ENABLE_EMBED_STDCXX=0
5526  ;;
5527   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5528 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5529    { (exit 1); exit 1; }; } ;;
5530 esac
5531
5532 # Check whether --enable-timestamps was given.
5533 if test "${enable_timestamps+set}" = set; then
5534   enableval=$enable_timestamps;
5535 else
5536   enableval=default
5537 fi
5538
5539 case "$enableval" in
5540   yes) ENABLE_TIMESTAMPS=1
5541  ;;
5542   no)  ENABLE_TIMESTAMPS=0
5543  ;;
5544   default) ENABLE_TIMESTAMPS=1
5545  ;;
5546   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5547 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5548    { (exit 1); exit 1; }; } ;;
5549 esac
5550
5551 cat >>confdefs.h <<_ACEOF
5552 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5553 _ACEOF
5554
5555
5556
5557 # Check whether --enable-backtraces was given.
5558 if test "${enable_backtraces+set}" = set; then
5559   enableval=$enable_backtraces;
5560 else
5561   enableval=default
5562 fi
5563
5564 case "$enableval" in
5565   yes) ENABLE_BACKTRACES=1
5566  ;;
5567   no)  ENABLE_BACKTRACES=0
5568  ;;
5569   default) ENABLE_BACKTRACES=1
5570  ;;
5571   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5572 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5573    { (exit 1); exit 1; }; } ;;
5574 esac
5575
5576 cat >>confdefs.h <<_ACEOF
5577 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5578 _ACEOF
5579
5580
5581 TARGETS_TO_BUILD=""
5582 # Check whether --enable-targets was given.
5583 if test "${enable_targets+set}" = set; then
5584   enableval=$enable_targets;
5585 else
5586   enableval=all
5587 fi
5588
5589 if test "$enableval" = host-only ; then
5590   enableval=host
5591 fi
5592 case "$enableval" in
5593   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5594   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5595       case "$a_target" in
5596         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5597         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5598         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5599         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5600         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5601         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5602         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5603         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5604         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5605         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5606         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5607         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5608         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5609         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5610         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5611         host) case "$llvm_cv_target_arch" in
5612             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5613             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5614             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5615             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5616             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5617             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5618             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5619             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5620             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5621             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5622             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5623             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5624 echo "$as_me: error: Can not set target to build" >&2;}
5625    { (exit 1); exit 1; }; } ;;
5626           esac ;;
5627         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5628 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5629    { (exit 1); exit 1; }; } ;;
5630       esac
5631   done
5632   ;;
5633 esac
5634
5635 # Check whether --enable-experimental-targets was given.
5636 if test "${enable_experimental_targets+set}" = set; then
5637   enableval=$enable_experimental_targets;
5638 else
5639   enableval=disable
5640 fi
5641
5642
5643 if test ${enableval} != "disable"
5644 then
5645   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5646 fi
5647
5648 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5649
5650
5651 for a_target in $TARGETS_TO_BUILD; do
5652   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5653
5654 cat >>confdefs.h <<_ACEOF
5655 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5656 _ACEOF
5657
5658     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5659     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5660     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5661     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5662     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5663       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5664     fi
5665     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5666       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5667     fi
5668
5669 cat >>confdefs.h <<_ACEOF
5670 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5671 _ACEOF
5672
5673
5674 cat >>confdefs.h <<_ACEOF
5675 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5676 _ACEOF
5677
5678
5679 cat >>confdefs.h <<_ACEOF
5680 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5681 _ACEOF
5682
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5686 _ACEOF
5687
5688     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5689
5690 cat >>confdefs.h <<_ACEOF
5691 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5692 _ACEOF
5693
5694     fi
5695     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5696
5697 cat >>confdefs.h <<_ACEOF
5698 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5699 _ACEOF
5700
5701     fi
5702   fi
5703 done
5704
5705 LLVM_ENUM_TARGETS=""
5706 LLVM_ENUM_ASM_PRINTERS=""
5707 LLVM_ENUM_ASM_PARSERS=""
5708 LLVM_ENUM_DISASSEMBLERS=""
5709 for target_to_build in $TARGETS_TO_BUILD; do
5710   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5711   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5712     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5713   fi
5714   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5715     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5716   fi
5717   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5718     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5719   fi
5720 done
5721
5722
5723
5724
5725
5726
5727 # Check whether --with-optimize-option was given.
5728 if test "${with_optimize_option+set}" = set; then
5729   withval=$with_optimize_option;
5730 else
5731   withval=default
5732 fi
5733
5734 { echo "$as_me:$LINENO: checking optimization flags" >&5
5735 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5736 case "$withval" in
5737   default)
5738     case "$llvm_cv_os_type" in
5739     FreeBSD) optimize_option=-O2 ;;
5740     MingW) optimize_option=-O2 ;;
5741     *)     optimize_option=-O3 ;;
5742     esac ;;
5743   *) optimize_option="$withval" ;;
5744 esac
5745 OPTIMIZE_OPTION=$optimize_option
5746
5747 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5748 echo "${ECHO_T}$optimize_option" >&6; }
5749
5750
5751 # Check whether --with-extra-options was given.
5752 if test "${with_extra_options+set}" = set; then
5753   withval=$with_extra_options;
5754 else
5755   withval=default
5756 fi
5757
5758 case "$withval" in
5759   default) EXTRA_OPTIONS= ;;
5760   *) EXTRA_OPTIONS=$withval ;;
5761 esac
5762 EXTRA_OPTIONS=$EXTRA_OPTIONS
5763
5764
5765
5766 # Check whether --with-extra-ld-options was given.
5767 if test "${with_extra_ld_options+set}" = set; then
5768   withval=$with_extra_ld_options;
5769 else
5770   withval=default
5771 fi
5772
5773 case "$withval" in
5774   default) EXTRA_LD_OPTIONS= ;;
5775   *) EXTRA_LD_OPTIONS=$withval ;;
5776 esac
5777 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5778
5779
5780 # Check whether --enable-bindings was given.
5781 if test "${enable_bindings+set}" = set; then
5782   enableval=$enable_bindings;
5783 else
5784   enableval=default
5785 fi
5786
5787 BINDINGS_TO_BUILD=""
5788 case "$enableval" in
5789   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5790   all ) BINDINGS_TO_BUILD="ocaml" ;;
5791   none | no) BINDINGS_TO_BUILD="" ;;
5792   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5793       case "$a_binding" in
5794         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5795         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5796 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5797    { (exit 1); exit 1; }; } ;;
5798       esac
5799   done
5800   ;;
5801 esac
5802
5803
5804 # Check whether --with-ocaml-libdir was given.
5805 if test "${with_ocaml_libdir+set}" = set; then
5806   withval=$with_ocaml_libdir;
5807 else
5808   withval=auto
5809 fi
5810
5811 case "$withval" in
5812   auto) with_ocaml_libdir="$withval" ;;
5813   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5814   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5815 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5816    { (exit 1); exit 1; }; } ;;
5817 esac
5818
5819
5820 # Check whether --with-clang-srcdir was given.
5821 if test "${with_clang_srcdir+set}" = set; then
5822   withval=$with_clang_srcdir;
5823 else
5824   withval="-"
5825 fi
5826
5827 case "$withval" in
5828   -) clang_src_root="" ;;
5829   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5830   *) clang_src_root="$ac_pwd/$withval" ;;
5831 esac
5832 CLANG_SRC_ROOT=$clang_src_root
5833
5834
5835
5836 # Check whether --with-clang-resource-dir was given.
5837 if test "${with_clang_resource_dir+set}" = set; then
5838   withval=$with_clang_resource_dir;
5839 else
5840   withval=""
5841 fi
5842
5843
5844 cat >>confdefs.h <<_ACEOF
5845 #define CLANG_RESOURCE_DIR "$withval"
5846 _ACEOF
5847
5848
5849
5850 # Check whether --with-c-include-dirs was given.
5851 if test "${with_c_include_dirs+set}" = set; then
5852   withval=$with_c_include_dirs;
5853 else
5854   withval=""
5855 fi
5856
5857
5858 cat >>confdefs.h <<_ACEOF
5859 #define C_INCLUDE_DIRS "$withval"
5860 _ACEOF
5861
5862
5863 # Clang normally uses the system c++ headers and libraries. With this option,
5864 # clang will use the ones provided by a gcc installation instead. This option should
5865 # be passed the same value that was used with --prefix when configuring gcc.
5866
5867 # Check whether --with-gcc-toolchain was given.
5868 if test "${with_gcc_toolchain+set}" = set; then
5869   withval=$with_gcc_toolchain;
5870 else
5871   withval=""
5872 fi
5873
5874
5875 cat >>confdefs.h <<_ACEOF
5876 #define GCC_INSTALL_PREFIX "$withval"
5877 _ACEOF
5878
5879
5880
5881 # Check whether --with-default-sysroot was given.
5882 if test "${with_default_sysroot+set}" = set; then
5883   withval=$with_default_sysroot;
5884 else
5885   withval=""
5886 fi
5887
5888
5889 cat >>confdefs.h <<_ACEOF
5890 #define DEFAULT_SYSROOT "$withval"
5891 _ACEOF
5892
5893
5894
5895 # Check whether --with-binutils-include was given.
5896 if test "${with_binutils_include+set}" = set; then
5897   withval=$with_binutils_include;
5898 else
5899   withval=default
5900 fi
5901
5902 case "$withval" in
5903   default) WITH_BINUTILS_INCDIR=default ;;
5904   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5905   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5906 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5907    { (exit 1); exit 1; }; } ;;
5908 esac
5909 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5910   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5911
5912   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5913      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5914      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5915 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5916    { (exit 1); exit 1; }; };
5917   fi
5918 fi
5919
5920
5921 # Check whether --with-bug-report-url was given.
5922 if test "${with_bug_report_url+set}" = set; then
5923   withval=$with_bug_report_url;
5924 else
5925   withval="http://llvm.org/bugs/"
5926 fi
5927
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define BUG_REPORT_URL "$withval"
5931 _ACEOF
5932
5933
5934 # Check whether --enable-libffi was given.
5935 if test "${enable_libffi+set}" = set; then
5936   enableval=$enable_libffi; case "$enableval" in
5937     yes) llvm_cv_enable_libffi="yes" ;;
5938     no)  llvm_cv_enable_libffi="no"  ;;
5939     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5940 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5941    { (exit 1); exit 1; }; } ;;
5942   esac
5943 else
5944   llvm_cv_enable_libffi=no
5945 fi
5946
5947
5948
5949 # Check whether --with-internal-prefix was given.
5950 if test "${with_internal_prefix+set}" = set; then
5951   withval=$with_internal_prefix;
5952 else
5953   withval=""
5954 fi
5955
5956 INTERNAL_PREFIX=$withval
5957
5958
5959
5960 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5961 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5962 if test "${lt_cv_path_NM+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$NM"; then
5966   # Let the user override the test.
5967   lt_cv_path_NM="$NM"
5968 else
5969   lt_nm_to_check="${ac_tool_prefix}nm"
5970   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5971     lt_nm_to_check="$lt_nm_to_check nm"
5972   fi
5973   for lt_tmp_nm in $lt_nm_to_check; do
5974     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5975     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5976       IFS="$lt_save_ifs"
5977       test -z "$ac_dir" && ac_dir=.
5978       tmp_nm="$ac_dir/$lt_tmp_nm"
5979       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5980         # Check to see if the nm accepts a BSD-compat flag.
5981         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5982         #   nm: unknown option "B" ignored
5983         # Tru64's nm complains that /dev/null is an invalid object file
5984         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5985         */dev/null* | *'Invalid file or object type'*)
5986           lt_cv_path_NM="$tmp_nm -B"
5987           break
5988           ;;
5989         *)
5990           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5991           */dev/null*)
5992             lt_cv_path_NM="$tmp_nm -p"
5993             break
5994             ;;
5995           *)
5996             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5997             continue # so that we can try to find one that supports BSD flags
5998             ;;
5999           esac
6000           ;;
6001         esac
6002       fi
6003     done
6004     IFS="$lt_save_ifs"
6005   done
6006   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6007 fi
6008 fi
6009 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6010 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6011 NM="$lt_cv_path_NM"
6012
6013
6014
6015 { echo "$as_me:$LINENO: checking for GNU make" >&5
6016 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6017 if test "${llvm_cv_gnu_make_command+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   llvm_cv_gnu_make_command=''
6021  for a in "$MAKE" make gmake gnumake ; do
6022   if test -z "$a" ; then continue ; fi ;
6023   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6024   then
6025    llvm_cv_gnu_make_command=$a ;
6026    break;
6027   fi
6028  done
6029 fi
6030 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6031 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6032  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6033    ifGNUmake='' ;
6034  else
6035    ifGNUmake='#' ;
6036    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6037 echo "${ECHO_T}\"Not found\"" >&6; };
6038  fi
6039
6040
6041 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6042 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6043 LN_S=$as_ln_s
6044 if test "$LN_S" = "ln -s"; then
6045   { echo "$as_me:$LINENO: result: yes" >&5
6046 echo "${ECHO_T}yes" >&6; }
6047 else
6048   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6049 echo "${ECHO_T}no, using $LN_S" >&6; }
6050 fi
6051
6052 # Extract the first word of "cmp", so it can be a program name with args.
6053 set dummy cmp; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_path_CMP+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   case $CMP in
6060   [\\/]* | ?:[\\/]*)
6061   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6062   ;;
6063   *)
6064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6080   ;;
6081 esac
6082 fi
6083 CMP=$ac_cv_path_CMP
6084 if test -n "$CMP"; then
6085   { echo "$as_me:$LINENO: result: $CMP" >&5
6086 echo "${ECHO_T}$CMP" >&6; }
6087 else
6088   { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090 fi
6091
6092
6093 # Extract the first word of "cp", so it can be a program name with args.
6094 set dummy cp; 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_CP+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   case $CP in
6101   [\\/]* | ?:[\\/]*)
6102   ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
6121   ;;
6122 esac
6123 fi
6124 CP=$ac_cv_path_CP
6125 if test -n "$CP"; then
6126   { echo "$as_me:$LINENO: result: $CP" >&5
6127 echo "${ECHO_T}$CP" >&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 "date", so it can be a program name with args.
6135 set dummy date; 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_DATE+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   case $DATE in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_DATE="$DATE" # 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_DATE="$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_DATE" && ac_cv_path_DATE="date"
6162   ;;
6163 esac
6164 fi
6165 DATE=$ac_cv_path_DATE
6166 if test -n "$DATE"; then
6167   { echo "$as_me:$LINENO: result: $DATE" >&5
6168 echo "${ECHO_T}$DATE" >&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 "find", so it can be a program name with args.
6176 set dummy find; 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_FIND+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   case $FIND in
6183   [\\/]* | ?:[\\/]*)
6184   ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND="find"
6203   ;;
6204 esac
6205 fi
6206 FIND=$ac_cv_path_FIND
6207 if test -n "$FIND"; then
6208   { echo "$as_me:$LINENO: result: $FIND" >&5
6209 echo "${ECHO_T}$FIND" >&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 "grep", so it can be a program name with args.
6217 set dummy grep; 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_GREP+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   case $GREP in
6224   [\\/]* | ?:[\\/]*)
6225   ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
6244   ;;
6245 esac
6246 fi
6247 GREP=$ac_cv_path_GREP
6248 if test -n "$GREP"; then
6249   { echo "$as_me:$LINENO: result: $GREP" >&5
6250 echo "${ECHO_T}$GREP" >&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 "mkdir", so it can be a program name with args.
6258 set dummy mkdir; 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_MKDIR+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   case $MKDIR in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
6285   ;;
6286 esac
6287 fi
6288 MKDIR=$ac_cv_path_MKDIR
6289 if test -n "$MKDIR"; then
6290   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6291 echo "${ECHO_T}$MKDIR" >&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 "mv", so it can be a program name with args.
6299 set dummy mv; 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_MV+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $MV in
6306   [\\/]* | ?:[\\/]*)
6307   ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6326   ;;
6327 esac
6328 fi
6329 MV=$ac_cv_path_MV
6330 if test -n "$MV"; then
6331   { echo "$as_me:$LINENO: result: $MV" >&5
6332 echo "${ECHO_T}$MV" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6337
6338
6339 if test -n "$ac_tool_prefix"; then
6340   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_prog_RANLIB+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   if test -n "$RANLIB"; then
6348   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 RANLIB=$ac_cv_prog_RANLIB
6368 if test -n "$RANLIB"; then
6369   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6370 echo "${ECHO_T}$RANLIB" >&6; }
6371 else
6372   { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6375
6376
6377 fi
6378 if test -z "$ac_cv_prog_RANLIB"; then
6379   ac_ct_RANLIB=$RANLIB
6380   # Extract the first word of "ranlib", so it can be a program name with args.
6381 set dummy ranlib; ac_word=$2
6382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   if test -n "$ac_ct_RANLIB"; then
6388   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395   for ac_exec_ext in '' $ac_executable_extensions; do
6396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6397     ac_cv_prog_ac_ct_RANLIB="ranlib"
6398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6408 if test -n "$ac_ct_RANLIB"; then
6409   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6411 else
6412   { echo "$as_me:$LINENO: result: no" >&5
6413 echo "${ECHO_T}no" >&6; }
6414 fi
6415
6416   if test "x$ac_ct_RANLIB" = x; then
6417     RANLIB=":"
6418   else
6419     case $cross_compiling:$ac_tool_warned in
6420 yes:)
6421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6422 whose name does not start with the host triplet.  If you think this
6423 configuration is useful to you, please write to autoconf@gnu.org." >&5
6424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6425 whose name does not start with the host triplet.  If you think this
6426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429     RANLIB=$ac_ct_RANLIB
6430   fi
6431 else
6432   RANLIB="$ac_cv_prog_RANLIB"
6433 fi
6434
6435 if test -n "$ac_tool_prefix"; then
6436   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ar; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_AR+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   if test -n "$AR"; then
6444   ac_cv_prog_AR="$AR" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451   for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_prog_AR="${ac_tool_prefix}ar"
6454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 AR=$ac_cv_prog_AR
6464 if test -n "$AR"; then
6465   { echo "$as_me:$LINENO: result: $AR" >&5
6466 echo "${ECHO_T}$AR" >&6; }
6467 else
6468   { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_AR"; then
6475   ac_ct_AR=$AR
6476   # Extract the first word of "ar", so it can be a program name with args.
6477 set dummy ar; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   if test -n "$ac_ct_AR"; then
6484   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_ac_ct_AR="ar"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6504 if test -n "$ac_ct_AR"; then
6505   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6506 echo "${ECHO_T}$ac_ct_AR" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6510 fi
6511
6512   if test "x$ac_ct_AR" = x; then
6513     AR="false"
6514   else
6515     case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet.  If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&5
6520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521 whose name does not start with the host triplet.  If you think this
6522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525     AR=$ac_ct_AR
6526   fi
6527 else
6528   AR="$ac_cv_prog_AR"
6529 fi
6530
6531 # Extract the first word of "rm", so it can be a program name with args.
6532 set dummy rm; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_RM+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   case $RM in
6539   [\\/]* | ?:[\\/]*)
6540   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6541   ;;
6542   *)
6543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548   for ac_exec_ext in '' $ac_executable_extensions; do
6549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6550     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6559   ;;
6560 esac
6561 fi
6562 RM=$ac_cv_path_RM
6563 if test -n "$RM"; then
6564   { echo "$as_me:$LINENO: result: $RM" >&5
6565 echo "${ECHO_T}$RM" >&6; }
6566 else
6567   { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6569 fi
6570
6571
6572 # Extract the first word of "sed", so it can be a program name with args.
6573 set dummy sed; 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_SED+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   case $SED in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
6600   ;;
6601 esac
6602 fi
6603 SED=$ac_cv_path_SED
6604 if test -n "$SED"; then
6605   { echo "$as_me:$LINENO: result: $SED" >&5
6606 echo "${ECHO_T}$SED" >&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 "tar", so it can be a program name with args.
6614 set dummy tar; 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_TAR+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   case $TAR in
6621   [\\/]* | ?:[\\/]*)
6622   ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
6641   ;;
6642 esac
6643 fi
6644 TAR=$ac_cv_path_TAR
6645 if test -n "$TAR"; then
6646   { echo "$as_me:$LINENO: result: $TAR" >&5
6647 echo "${ECHO_T}$TAR" >&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 "pwd", so it can be a program name with args.
6655 set dummy pwd; 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_BINPWD+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $BINPWD in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
6682   ;;
6683 esac
6684 fi
6685 BINPWD=$ac_cv_path_BINPWD
6686 if test -n "$BINPWD"; then
6687   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6688 echo "${ECHO_T}$BINPWD" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695
6696 # Extract the first word of "Graphviz", so it can be a program name with args.
6697 set dummy Graphviz; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $GRAPHVIZ in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6724   ;;
6725 esac
6726 fi
6727 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6728 if test -n "$GRAPHVIZ"; then
6729   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6730 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_GRAPHVIZ 1
6741 _ACEOF
6742
6743     if test "$llvm_cv_os_type" = "MingW" ; then
6744     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745   fi
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6749 _ACEOF
6750
6751 fi
6752 # Extract the first word of "dot", so it can be a program name with args.
6753 set dummy dot; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_DOT+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   case $DOT in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6780   ;;
6781 esac
6782 fi
6783 DOT=$ac_cv_path_DOT
6784 if test -n "$DOT"; then
6785   { echo "$as_me:$LINENO: result: $DOT" >&5
6786 echo "${ECHO_T}$DOT" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793 if test "$DOT" != "echo dot" ; then
6794
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_DOT 1
6797 _ACEOF
6798
6799     if test "$llvm_cv_os_type" = "MingW" ; then
6800     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801   fi
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6805 _ACEOF
6806
6807 fi
6808 # Extract the first word of "fdp", so it can be a program name with args.
6809 set dummy fdp; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_path_FDP+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   case $FDP in
6816   [\\/]* | ?:[\\/]*)
6817   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6818   ;;
6819   *)
6820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825   for ac_exec_ext in '' $ac_executable_extensions; do
6826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6827     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6836   ;;
6837 esac
6838 fi
6839 FDP=$ac_cv_path_FDP
6840 if test -n "$FDP"; then
6841   { echo "$as_me:$LINENO: result: $FDP" >&5
6842 echo "${ECHO_T}$FDP" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848
6849 if test "$FDP" != "echo fdp" ; then
6850
6851 cat >>confdefs.h <<\_ACEOF
6852 #define HAVE_FDP 1
6853 _ACEOF
6854
6855     if test "$llvm_cv_os_type" = "MingW" ; then
6856     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6857   fi
6858
6859 cat >>confdefs.h <<_ACEOF
6860 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6861 _ACEOF
6862
6863 fi
6864 # Extract the first word of "neato", so it can be a program name with args.
6865 set dummy neato; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_NEATO+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $NEATO in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6874   ;;
6875   *)
6876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881   for ac_exec_ext in '' $ac_executable_extensions; do
6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6892   ;;
6893 esac
6894 fi
6895 NEATO=$ac_cv_path_NEATO
6896 if test -n "$NEATO"; then
6897   { echo "$as_me:$LINENO: result: $NEATO" >&5
6898 echo "${ECHO_T}$NEATO" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904
6905 if test "$NEATO" != "echo neato" ; then
6906
6907 cat >>confdefs.h <<\_ACEOF
6908 #define HAVE_NEATO 1
6909 _ACEOF
6910
6911     if test "$llvm_cv_os_type" = "MingW" ; then
6912     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6913   fi
6914
6915 cat >>confdefs.h <<_ACEOF
6916 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6917 _ACEOF
6918
6919 fi
6920 # Extract the first word of "twopi", so it can be a program name with args.
6921 set dummy twopi; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_TWOPI+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   case $TWOPI in
6928   [\\/]* | ?:[\\/]*)
6929   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6930   ;;
6931   *)
6932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937   for ac_exec_ext in '' $ac_executable_extensions; do
6938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6948   ;;
6949 esac
6950 fi
6951 TWOPI=$ac_cv_path_TWOPI
6952 if test -n "$TWOPI"; then
6953   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6954 echo "${ECHO_T}$TWOPI" >&6; }
6955 else
6956   { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6958 fi
6959
6960
6961 if test "$TWOPI" != "echo twopi" ; then
6962
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_TWOPI 1
6965 _ACEOF
6966
6967     if test "$llvm_cv_os_type" = "MingW" ; then
6968     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6969   fi
6970
6971 cat >>confdefs.h <<_ACEOF
6972 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6973 _ACEOF
6974
6975 fi
6976 # Extract the first word of "circo", so it can be a program name with args.
6977 set dummy circo; ac_word=$2
6978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980 if test "${ac_cv_path_CIRCO+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   case $CIRCO in
6984   [\\/]* | ?:[\\/]*)
6985   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6986   ;;
6987   *)
6988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993   for ac_exec_ext in '' $ac_executable_extensions; do
6994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7004   ;;
7005 esac
7006 fi
7007 CIRCO=$ac_cv_path_CIRCO
7008 if test -n "$CIRCO"; then
7009   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7010 echo "${ECHO_T}$CIRCO" >&6; }
7011 else
7012   { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016
7017 if test "$CIRCO" != "echo circo" ; then
7018
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_CIRCO 1
7021 _ACEOF
7022
7023     if test "$llvm_cv_os_type" = "MingW" ; then
7024     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7025   fi
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7029 _ACEOF
7030
7031 fi
7032 for ac_prog in gv gsview32
7033 do
7034   # Extract the first word of "$ac_prog", so it can be a program name with args.
7035 set dummy $ac_prog; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_GV+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $GV in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   ;;
7062 esac
7063 fi
7064 GV=$ac_cv_path_GV
7065 if test -n "$GV"; then
7066   { echo "$as_me:$LINENO: result: $GV" >&5
7067 echo "${ECHO_T}$GV" >&6; }
7068 else
7069   { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7071 fi
7072
7073
7074   test -n "$GV" && break
7075 done
7076 test -n "$GV" || GV="echo gv"
7077
7078 if test "$GV" != "echo gv" ; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_GV 1
7082 _ACEOF
7083
7084     if test "$llvm_cv_os_type" = "MingW" ; then
7085     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7086   fi
7087
7088 cat >>confdefs.h <<_ACEOF
7089 #define LLVM_PATH_GV "$GV${EXEEXT}"
7090 _ACEOF
7091
7092 fi
7093 # Extract the first word of "dotty", so it can be a program name with args.
7094 set dummy dotty; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_DOTTY+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   case $DOTTY in
7101   [\\/]* | ?:[\\/]*)
7102   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7103   ;;
7104   *)
7105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110   for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7121   ;;
7122 esac
7123 fi
7124 DOTTY=$ac_cv_path_DOTTY
7125 if test -n "$DOTTY"; then
7126   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7127 echo "${ECHO_T}$DOTTY" >&6; }
7128 else
7129   { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7131 fi
7132
7133
7134 if test "$DOTTY" != "echo dotty" ; then
7135
7136 cat >>confdefs.h <<\_ACEOF
7137 #define HAVE_DOTTY 1
7138 _ACEOF
7139
7140     if test "$llvm_cv_os_type" = "MingW" ; then
7141     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7142   fi
7143
7144 cat >>confdefs.h <<_ACEOF
7145 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7146 _ACEOF
7147
7148 fi
7149 # Extract the first word of "xdot.py", so it can be a program name with args.
7150 set dummy xdot.py; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   case $XDOT_PY in
7157   [\\/]* | ?:[\\/]*)
7158   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7159   ;;
7160   *)
7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166   for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7177   ;;
7178 esac
7179 fi
7180 XDOT_PY=$ac_cv_path_XDOT_PY
7181 if test -n "$XDOT_PY"; then
7182   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7183 echo "${ECHO_T}$XDOT_PY" >&6; }
7184 else
7185   { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7187 fi
7188
7189
7190 if test "$XDOT_PY" != "echo xdot.py" ; then
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define HAVE_XDOT_PY 1
7194 _ACEOF
7195
7196     if test "$llvm_cv_os_type" = "MingW" ; then
7197     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7198   fi
7199
7200 cat >>confdefs.h <<_ACEOF
7201 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7202 _ACEOF
7203
7204 fi
7205
7206 # Find a good install program.  We prefer a C program (faster),
7207 # so one script is as good as another.  But avoid the broken or
7208 # incompatible versions:
7209 # SysV /etc/install, /usr/sbin/install
7210 # SunOS /usr/etc/install
7211 # IRIX /sbin/install
7212 # AIX /bin/install
7213 # AmigaOS /C/install, which installs bootblocks on floppy discs
7214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7217 # OS/2's system install, which has a completely different semantic
7218 # ./install, which can be erroneously created by make from ./install.sh.
7219 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7221 if test -z "$INSTALL"; then
7222 if test "${ac_cv_path_install+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   # Account for people who put trailing slashes in PATH elements.
7231 case $as_dir/ in
7232   ./ | .// | /cC/* | \
7233   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7234   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7235   /usr/ucb/* ) ;;
7236   *)
7237     # OSF1 and SCO ODT 3.0 have their own names for install.
7238     # Don't use installbsd from OSF since it installs stuff as root
7239     # by default.
7240     for ac_prog in ginstall scoinst install; do
7241       for ac_exec_ext in '' $ac_executable_extensions; do
7242         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7243           if test $ac_prog = install &&
7244             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7245             # AIX install.  It has an incompatible calling convention.
7246             :
7247           elif test $ac_prog = install &&
7248             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249             # program-specific install script used by HP pwplus--don't use.
7250             :
7251           else
7252             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7253             break 3
7254           fi
7255         fi
7256       done
7257     done
7258     ;;
7259 esac
7260 done
7261 IFS=$as_save_IFS
7262
7263
7264 fi
7265   if test "${ac_cv_path_install+set}" = set; then
7266     INSTALL=$ac_cv_path_install
7267   else
7268     # As a last resort, use the slow shell script.  Don't cache a
7269     # value for INSTALL within a source directory, because that will
7270     # break other packages using the cache if that directory is
7271     # removed, or if the value is a relative name.
7272     INSTALL=$ac_install_sh
7273   fi
7274 fi
7275 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7276 echo "${ECHO_T}$INSTALL" >&6; }
7277
7278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279 # It thinks the first close brace ends the variable substitution.
7280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7281
7282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7283
7284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7285
7286 case "$INSTALL" in
7287  [\\/$]* | ?:[\\/]* ) ;;
7288  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7289 esac
7290
7291 # Extract the first word of "bzip2", so it can be a program name with args.
7292 set dummy bzip2; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_BZIP2+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   case $BZIP2 in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308   for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318   ;;
7319 esac
7320 fi
7321 BZIP2=$ac_cv_path_BZIP2
7322 if test -n "$BZIP2"; then
7323   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7324 echo "${ECHO_T}$BZIP2" >&6; }
7325 else
7326   { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7328 fi
7329
7330
7331 # Extract the first word of "cat", so it can be a program name with args.
7332 set dummy cat; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_CAT+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   case $CAT in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7341   ;;
7342   *)
7343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348   for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358   ;;
7359 esac
7360 fi
7361 CAT=$ac_cv_path_CAT
7362 if test -n "$CAT"; then
7363   { echo "$as_me:$LINENO: result: $CAT" >&5
7364 echo "${ECHO_T}$CAT" >&6; }
7365 else
7366   { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7368 fi
7369
7370
7371 # Extract the first word of "doxygen", so it can be a program name with args.
7372 set dummy doxygen; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   case $DOXYGEN in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7381   ;;
7382   *)
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398   ;;
7399 esac
7400 fi
7401 DOXYGEN=$ac_cv_path_DOXYGEN
7402 if test -n "$DOXYGEN"; then
7403   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7404 echo "${ECHO_T}$DOXYGEN" >&6; }
7405 else
7406   { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7408 fi
7409
7410
7411 # Extract the first word of "groff", so it can be a program name with args.
7412 set dummy groff; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_GROFF+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   case $GROFF in
7419   [\\/]* | ?:[\\/]*)
7420   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7421   ;;
7422   *)
7423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428   for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438   ;;
7439 esac
7440 fi
7441 GROFF=$ac_cv_path_GROFF
7442 if test -n "$GROFF"; then
7443   { echo "$as_me:$LINENO: result: $GROFF" >&5
7444 echo "${ECHO_T}$GROFF" >&6; }
7445 else
7446   { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450
7451 # Extract the first word of "gzip", so it can be a program name with args.
7452 set dummy gzip; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   case $GZIPBIN in
7459   [\\/]* | ?:[\\/]*)
7460   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7461   ;;
7462   *)
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478   ;;
7479 esac
7480 fi
7481 GZIPBIN=$ac_cv_path_GZIPBIN
7482 if test -n "$GZIPBIN"; then
7483   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7484 echo "${ECHO_T}$GZIPBIN" >&6; }
7485 else
7486   { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7488 fi
7489
7490
7491 # Extract the first word of "pdfroff", so it can be a program name with args.
7492 set dummy pdfroff; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_PDFROFF+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $PDFROFF in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   ;;
7519 esac
7520 fi
7521 PDFROFF=$ac_cv_path_PDFROFF
7522 if test -n "$PDFROFF"; then
7523   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7524 echo "${ECHO_T}$PDFROFF" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530
7531 # Extract the first word of "zip", so it can be a program name with args.
7532 set dummy zip; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_ZIP+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   case $ZIP in
7539   [\\/]* | ?:[\\/]*)
7540   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7541   ;;
7542   *)
7543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548   for ac_exec_ext in '' $ac_executable_extensions; do
7549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558   ;;
7559 esac
7560 fi
7561 ZIP=$ac_cv_path_ZIP
7562 if test -n "$ZIP"; then
7563   { echo "$as_me:$LINENO: result: $ZIP" >&5
7564 echo "${ECHO_T}$ZIP" >&6; }
7565 else
7566   { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7568 fi
7569
7570
7571 for ac_prog in ocamlc
7572 do
7573   # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_path_OCAMLC+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   case $OCAMLC in
7581   [\\/]* | ?:[\\/]*)
7582   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7583   ;;
7584   *)
7585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590   for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600   ;;
7601 esac
7602 fi
7603 OCAMLC=$ac_cv_path_OCAMLC
7604 if test -n "$OCAMLC"; then
7605   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7606 echo "${ECHO_T}$OCAMLC" >&6; }
7607 else
7608   { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7610 fi
7611
7612
7613   test -n "$OCAMLC" && break
7614 done
7615
7616 for ac_prog in ocamlopt
7617 do
7618   # Extract the first word of "$ac_prog", so it can be a program name with args.
7619 set dummy $ac_prog; ac_word=$2
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   case $OCAMLOPT in
7626   [\\/]* | ?:[\\/]*)
7627   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7628   ;;
7629   *)
7630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635   for ac_exec_ext in '' $ac_executable_extensions; do
7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645   ;;
7646 esac
7647 fi
7648 OCAMLOPT=$ac_cv_path_OCAMLOPT
7649 if test -n "$OCAMLOPT"; then
7650   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7651 echo "${ECHO_T}$OCAMLOPT" >&6; }
7652 else
7653   { echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6; }
7655 fi
7656
7657
7658   test -n "$OCAMLOPT" && break
7659 done
7660
7661 for ac_prog in ocamldep
7662 do
7663   # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   case $OCAMLDEP in
7671   [\\/]* | ?:[\\/]*)
7672   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7673   ;;
7674   *)
7675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680   for ac_exec_ext in '' $ac_executable_extensions; do
7681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690   ;;
7691 esac
7692 fi
7693 OCAMLDEP=$ac_cv_path_OCAMLDEP
7694 if test -n "$OCAMLDEP"; then
7695   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7696 echo "${ECHO_T}$OCAMLDEP" >&6; }
7697 else
7698   { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7700 fi
7701
7702
7703   test -n "$OCAMLDEP" && break
7704 done
7705
7706 for ac_prog in ocamldoc
7707 do
7708   # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7712 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   case $OCAMLDOC in
7716   [\\/]* | ?:[\\/]*)
7717   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7718   ;;
7719   *)
7720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725   for ac_exec_ext in '' $ac_executable_extensions; do
7726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7727     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729     break 2
7730   fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735   ;;
7736 esac
7737 fi
7738 OCAMLDOC=$ac_cv_path_OCAMLDOC
7739 if test -n "$OCAMLDOC"; then
7740   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7741 echo "${ECHO_T}$OCAMLDOC" >&6; }
7742 else
7743   { echo "$as_me:$LINENO: result: no" >&5
7744 echo "${ECHO_T}no" >&6; }
7745 fi
7746
7747
7748   test -n "$OCAMLDOC" && break
7749 done
7750
7751 for ac_prog in gas as
7752 do
7753   # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_path_GAS+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   case $GAS in
7761   [\\/]* | ?:[\\/]*)
7762   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7763   ;;
7764   *)
7765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770   for ac_exec_ext in '' $ac_executable_extensions; do
7771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780   ;;
7781 esac
7782 fi
7783 GAS=$ac_cv_path_GAS
7784 if test -n "$GAS"; then
7785   { echo "$as_me:$LINENO: result: $GAS" >&5
7786 echo "${ECHO_T}$GAS" >&6; }
7787 else
7788   { echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6; }
7790 fi
7791
7792
7793   test -n "$GAS" && break
7794 done
7795
7796
7797 { echo "$as_me:$LINENO: checking for linker version" >&5
7798 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7799 if test "${llvm_cv_link_version+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802
7803    version_string="$(ld -v 2>&1 | head -1)"
7804
7805    # Check for ld64.
7806    if (echo "$version_string" | grep -q "ld64"); then
7807      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7808    else
7809      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7810    fi
7811
7812 fi
7813 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7814 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7818 _ACEOF
7819
7820
7821
7822 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7823 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7824 if test "${llvm_cv_link_use_r+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827    ac_ext=c
7828 ac_cpp='$CPP $CPPFLAGS'
7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832
7833   oldcflags="$CFLAGS"
7834   CFLAGS="$CFLAGS -Wl,-R."
7835   cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7841
7842 int
7843 main ()
7844 {
7845
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7852 case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_link") 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } &&
7864          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865   { (case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_try") 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; } &&
7874          { ac_try='test -s conftest$ac_exeext'
7875   { (case "(($ac_try" in
7876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877   *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880   (eval "$ac_try") 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   llvm_cv_link_use_r=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889         llvm_cv_link_use_r=no
7890 fi
7891
7892 rm -f core conftest.err conftest.$ac_objext \
7893       conftest$ac_exeext conftest.$ac_ext
7894   CFLAGS="$oldcflags"
7895   ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901
7902 fi
7903 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7904 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7905 if test "$llvm_cv_link_use_r" = yes ; then
7906
7907 cat >>confdefs.h <<\_ACEOF
7908 #define HAVE_LINK_R 1
7909 _ACEOF
7910
7911   fi
7912
7913
7914 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7915 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7916 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919    ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925   oldcflags="$CFLAGS"
7926   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7927   cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933
7934 int
7935 main ()
7936 {
7937
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext conftest$ac_exeext
7943 if { (ac_try="$ac_link"
7944 case "(($ac_try" in
7945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946   *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949   (eval "$ac_link") 2>conftest.er1
7950   ac_status=$?
7951   grep -v '^ *+' conftest.er1 >conftest.err
7952   rm -f conftest.er1
7953   cat conftest.err >&5
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } &&
7956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7957   { (case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_try") 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; } &&
7966          { ac_try='test -s conftest$ac_exeext'
7967   { (case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_try") 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   llvm_cv_link_use_export_dynamic=yes
7977 else
7978   echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981         llvm_cv_link_use_export_dynamic=no
7982 fi
7983
7984 rm -f core conftest.err conftest.$ac_objext \
7985       conftest$ac_exeext conftest.$ac_ext
7986   CFLAGS="$oldcflags"
7987   ac_ext=c
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992
7993
7994 fi
7995 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7996 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7997 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7998
7999 cat >>confdefs.h <<\_ACEOF
8000 #define HAVE_LINK_EXPORT_DYNAMIC 1
8001 _ACEOF
8002
8003   fi
8004
8005
8006 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8007 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8008 if test "${llvm_cv_link_use_version_script+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011    ac_ext=c
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017   oldcflags="$CFLAGS"
8018
8019   # The following code is from the autoconf manual,
8020   # "11.13: Limitations of Usual Tools".
8021   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8022   # Use mktemp if possible; otherwise fall back on mkdir,
8023   # with $RANDOM to make collisions less likely.
8024   : ${TMPDIR=/tmp}
8025   {
8026     tmp=`
8027       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8028     ` &&
8029     test -n "$tmp" && test -d "$tmp"
8030   } || {
8031     tmp=$TMPDIR/foo$$-$RANDOM
8032     (umask 077 && mkdir "$tmp")
8033   } || exit $?
8034
8035   echo "{" > "$tmp/export.map"
8036   echo "  global: main;" >> "$tmp/export.map"
8037   echo "  local: *;" >> "$tmp/export.map"
8038   echo "};" >> "$tmp/export.map"
8039
8040   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047
8048 int
8049 main ()
8050 {
8051
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (ac_try="$ac_link"
8058 case "(($ac_try" in
8059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060   *) ac_try_echo=$ac_try;;
8061 esac
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063   (eval "$ac_link") 2>conftest.er1
8064   ac_status=$?
8065   grep -v '^ *+' conftest.er1 >conftest.err
8066   rm -f conftest.er1
8067   cat conftest.err >&5
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); } &&
8070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8071   { (case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_try") 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); }; } &&
8080          { ac_try='test -s conftest$ac_exeext'
8081   { (case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086   (eval "$ac_try") 2>&5
8087   ac_status=$?
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090   llvm_cv_link_use_version_script=yes
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095         llvm_cv_link_use_version_script=no
8096 fi
8097
8098 rm -f core conftest.err conftest.$ac_objext \
8099       conftest$ac_exeext conftest.$ac_ext
8100   rm "$tmp/export.map"
8101   rmdir "$tmp"
8102   CFLAGS="$oldcflags"
8103   ac_ext=c
8104 ac_cpp='$CPP $CPPFLAGS'
8105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8108
8109
8110 fi
8111 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8112 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8113 if test "$llvm_cv_link_use_version_script" = yes ; then
8114   HAVE_LINK_VERSION_SCRIPT=1
8115
8116   fi
8117
8118
8119
8120
8121 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8122 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8123 if test "${ac_cv_c_const+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126   cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132
8133 int
8134 main ()
8135 {
8136 /* FIXME: Include the comments suggested by Paul. */
8137 #ifndef __cplusplus
8138   /* Ultrix mips cc rejects this.  */
8139   typedef int charset[2];
8140   const charset x;
8141   /* SunOS 4.1.1 cc rejects this.  */
8142   char const *const *ccp;
8143   char **p;
8144   /* NEC SVR4.0.2 mips cc rejects this.  */
8145   struct point {int x, y;};
8146   static struct point const zero = {0,0};
8147   /* AIX XL C 1.02.0.0 rejects this.
8148      It does not let you subtract one const X* pointer from another in
8149      an arm of an if-expression whose if-part is not a constant
8150      expression */
8151   const char *g = "string";
8152   ccp = &g + (g ? g-g : 0);
8153   /* HPUX 7.0 cc rejects these. */
8154   ++ccp;
8155   p = (char**) ccp;
8156   ccp = (char const *const *) p;
8157   { /* SCO 3.2v4 cc rejects this.  */
8158     char *t;
8159     char const *s = 0 ? (char *) 0 : (char const *) 0;
8160
8161     *t++ = 0;
8162     if (s) return 0;
8163   }
8164   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8165     int x[] = {25, 17};
8166     const int *foo = &x[0];
8167     ++foo;
8168   }
8169   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8170     typedef const int *iptr;
8171     iptr p = 0;
8172     ++p;
8173   }
8174   { /* AIX XL C 1.02.0.0 rejects this saying
8175        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8176     struct s { int j; const int *ap[3]; };
8177     struct s *b; b->j = 5;
8178   }
8179   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8180     const int foo = 10;
8181     if (!foo) return 0;
8182   }
8183   return !x[0] && !zero.x;
8184 #endif
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_compile") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205   { (case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_try") 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest.$ac_objext'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   ac_cv_c_const=yes
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229         ac_cv_c_const=no
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8235 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8236 if test $ac_cv_c_const = no; then
8237
8238 cat >>confdefs.h <<\_ACEOF
8239 #define const
8240 _ACEOF
8241
8242 fi
8243
8244
8245
8246
8247
8248
8249 ac_header_dirent=no
8250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8251   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8252 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8255   echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257   cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h.  */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h.  */
8263 #include <sys/types.h>
8264 #include <$ac_hdr>
8265
8266 int
8267 main ()
8268 {
8269 if ((DIR *) 0)
8270 return 0;
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   eval "$as_ac_Header=yes"
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         eval "$as_ac_Header=no"
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 ac_res=`eval echo '${'$as_ac_Header'}'`
8320                { echo "$as_me:$LINENO: result: $ac_res" >&5
8321 echo "${ECHO_T}$ac_res" >&6; }
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323   cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8325 _ACEOF
8326
8327 ac_header_dirent=$ac_hdr; break
8328 fi
8329
8330 done
8331 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8332 if test $ac_header_dirent = dirent.h; then
8333   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8334 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8335 if test "${ac_cv_search_opendir+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   ac_func_search_save_LIBS=$LIBS
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h.  */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h.  */
8345
8346 /* Override any GCC internal prototype to avoid an error.
8347    Use char because int might match the return type of a GCC
8348    builtin and then its argument prototype would still apply.  */
8349 #ifdef __cplusplus
8350 extern "C"
8351 #endif
8352 char opendir ();
8353 int
8354 main ()
8355 {
8356 return opendir ();
8357   ;
8358   return 0;
8359 }
8360 _ACEOF
8361 for ac_lib in '' dir; do
8362   if test -z "$ac_lib"; then
8363     ac_res="none required"
8364   else
8365     ac_res=-l$ac_lib
8366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8367   fi
8368   rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8370 case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_link") 2>conftest.er1
8376   ac_status=$?
8377   grep -v '^ *+' conftest.er1 >conftest.err
8378   rm -f conftest.er1
8379   cat conftest.err >&5
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } &&
8382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8383   { (case "(($ac_try" in
8384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385   *) ac_try_echo=$ac_try;;
8386 esac
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388   (eval "$ac_try") 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; } &&
8392          { ac_try='test -s conftest$ac_exeext'
8393   { (case "(($ac_try" in
8394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395   *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398   (eval "$ac_try") 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   ac_cv_search_opendir=$ac_res
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407
8408 fi
8409
8410 rm -f core conftest.err conftest.$ac_objext \
8411       conftest$ac_exeext
8412   if test "${ac_cv_search_opendir+set}" = set; then
8413   break
8414 fi
8415 done
8416 if test "${ac_cv_search_opendir+set}" = set; then
8417   :
8418 else
8419   ac_cv_search_opendir=no
8420 fi
8421 rm conftest.$ac_ext
8422 LIBS=$ac_func_search_save_LIBS
8423 fi
8424 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8425 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8426 ac_res=$ac_cv_search_opendir
8427 if test "$ac_res" != no; then
8428   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8429
8430 fi
8431
8432 else
8433   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8434 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8435 if test "${ac_cv_search_opendir+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   ac_func_search_save_LIBS=$LIBS
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445
8446 /* Override any GCC internal prototype to avoid an error.
8447    Use char because int might match the return type of a GCC
8448    builtin and then its argument prototype would still apply.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 char opendir ();
8453 int
8454 main ()
8455 {
8456 return opendir ();
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 for ac_lib in '' x; do
8462   if test -z "$ac_lib"; then
8463     ac_res="none required"
8464   else
8465     ac_res=-l$ac_lib
8466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8467   fi
8468   rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8470 case "(($ac_try" in
8471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472   *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475   (eval "$ac_link") 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483   { (case "(($ac_try" in
8484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485   *) ac_try_echo=$ac_try;;
8486 esac
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488   (eval "$ac_try") 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; } &&
8492          { ac_try='test -s conftest$ac_exeext'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   ac_cv_search_opendir=$ac_res
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext \
8511       conftest$ac_exeext
8512   if test "${ac_cv_search_opendir+set}" = set; then
8513   break
8514 fi
8515 done
8516 if test "${ac_cv_search_opendir+set}" = set; then
8517   :
8518 else
8519   ac_cv_search_opendir=no
8520 fi
8521 rm conftest.$ac_ext
8522 LIBS=$ac_func_search_save_LIBS
8523 fi
8524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8526 ac_res=$ac_cv_search_opendir
8527 if test "$ac_res" != no; then
8528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8529
8530 fi
8531
8532 fi
8533
8534
8535 for ac_header in dlfcn.h
8536 do
8537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8539   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 fi
8544 ac_res=`eval echo '${'$as_ac_Header'}'`
8545                { echo "$as_me:$LINENO: result: $ac_res" >&5
8546 echo "${ECHO_T}$ac_res" >&6; }
8547 else
8548   # Is the header compilable?
8549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557 $ac_includes_default
8558 #include <$ac_header>
8559 _ACEOF
8560 rm -f conftest.$ac_objext
8561 if { (ac_try="$ac_compile"
8562 case "(($ac_try" in
8563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564   *) ac_try_echo=$ac_try;;
8565 esac
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567   (eval "$ac_compile") 2>conftest.er1
8568   ac_status=$?
8569   grep -v '^ *+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } &&
8574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575   { (case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_try") 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; } &&
8584          { ac_try='test -s conftest.$ac_objext'
8585   { (case "(($ac_try" in
8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587   *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590   (eval "$ac_try") 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); }; }; then
8594   ac_header_compiler=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599         ac_header_compiler=no
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8604 echo "${ECHO_T}$ac_header_compiler" >&6; }
8605
8606 # Is the header present?
8607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615 #include <$ac_header>
8616 _ACEOF
8617 if { (ac_try="$ac_cpp conftest.$ac_ext"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } >/dev/null; then
8630   if test -s conftest.err; then
8631     ac_cpp_err=$ac_c_preproc_warn_flag
8632     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8633   else
8634     ac_cpp_err=
8635   fi
8636 else
8637   ac_cpp_err=yes
8638 fi
8639 if test -z "$ac_cpp_err"; then
8640   ac_header_preproc=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645   ac_header_preproc=no
8646 fi
8647
8648 rm -f conftest.err conftest.$ac_ext
8649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8650 echo "${ECHO_T}$ac_header_preproc" >&6; }
8651
8652 # So?  What about this header?
8653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8654   yes:no: )
8655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8659     ac_header_preproc=yes
8660     ;;
8661   no:yes:* )
8662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8674     ( cat <<\_ASBOX
8675 ## ------------------------------------ ##
8676 ## Report this to http://llvm.org/bugs/ ##
8677 ## ------------------------------------ ##
8678 _ASBOX
8679      ) | sed "s/^/$as_me: WARNING:     /" >&2
8680     ;;
8681 esac
8682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685   echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687   eval "$as_ac_Header=\$ac_header_preproc"
8688 fi
8689 ac_res=`eval echo '${'$as_ac_Header'}'`
8690                { echo "$as_me:$LINENO: result: $ac_res" >&5
8691 echo "${ECHO_T}$ac_res" >&6; }
8692
8693 fi
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695   cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8697 _ACEOF
8698
8699 fi
8700
8701 done
8702
8703 # Check whether --enable-ltdl-install was given.
8704 if test "${enable_ltdl_install+set}" = set; then
8705   enableval=$enable_ltdl_install;
8706 fi
8707
8708
8709
8710
8711 if test x"${enable_ltdl_install-no}" != xno; then
8712   INSTALL_LTDL_TRUE=
8713   INSTALL_LTDL_FALSE='#'
8714 else
8715   INSTALL_LTDL_TRUE='#'
8716   INSTALL_LTDL_FALSE=
8717 fi
8718
8719
8720
8721 if test x"${enable_ltdl_convenience-no}" != xno; then
8722   CONVENIENCE_LTDL_TRUE=
8723   CONVENIENCE_LTDL_FALSE='#'
8724 else
8725   CONVENIENCE_LTDL_TRUE='#'
8726   CONVENIENCE_LTDL_FALSE=
8727 fi
8728
8729
8730 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8731 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8732 library_names_spec=
8733 libname_spec='lib$name'
8734 soname_spec=
8735 shrext_cmds=".so"
8736 postinstall_cmds=
8737 postuninstall_cmds=
8738 finish_cmds=
8739 finish_eval=
8740 shlibpath_var=
8741 shlibpath_overrides_runpath=unknown
8742 version_type=none
8743 dynamic_linker="$host_os ld.so"
8744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8745 if test "$GCC" = yes; then
8746   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8747   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8748     # if the path contains ";" then we assume it to be the separator
8749     # otherwise default to the standard path separator (i.e. ":") - it is
8750     # assumed that no part of a normal pathname contains ";" but that should
8751     # okay in the real world where ";" in dirpaths is itself problematic.
8752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8753   else
8754     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8755   fi
8756 else
8757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8758 fi
8759 need_lib_prefix=unknown
8760 hardcode_into_libs=no
8761
8762 # when you set need_version to no, make sure it does not cause -set_version
8763 # flags to be left without arguments
8764 need_version=unknown
8765
8766 case $host_os in
8767 aix3*)
8768   version_type=linux
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8770   shlibpath_var=LIBPATH
8771
8772   # AIX 3 has no versioning support, so we append a major version to the name.
8773   soname_spec='${libname}${release}${shared_ext}$major'
8774   ;;
8775
8776 aix4* | aix5*)
8777   version_type=linux
8778   need_lib_prefix=no
8779   need_version=no
8780   hardcode_into_libs=yes
8781   if test "$host_cpu" = ia64; then
8782     # AIX 5 supports IA64
8783     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8784     shlibpath_var=LD_LIBRARY_PATH
8785   else
8786     # With GCC up to 2.95.x, collect2 would create an import file
8787     # for dependence libraries.  The import file would start with
8788     # the line `#! .'.  This would cause the generated library to
8789     # depend on `.', always an invalid library.  This was fixed in
8790     # development snapshots of GCC prior to 3.0.
8791     case $host_os in
8792       aix4 | aix4.[01] | aix4.[01].*)
8793       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8794            echo ' yes '
8795            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8796         :
8797       else
8798         can_build_shared=no
8799       fi
8800       ;;
8801     esac
8802     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8803     # soname into executable. Probably we can add versioning support to
8804     # collect2, so additional links can be useful in future.
8805     if test "$aix_use_runtimelinking" = yes; then
8806       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8807       # instead of lib<name>.a to let people know that these are not
8808       # typical AIX shared libraries.
8809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810     else
8811       # We preserve .a as extension for shared libraries through AIX4.2
8812       # and later when we are not doing run time linking.
8813       library_names_spec='${libname}${release}.a $libname.a'
8814       soname_spec='${libname}${release}${shared_ext}$major'
8815     fi
8816     shlibpath_var=LIBPATH
8817   fi
8818   ;;
8819
8820 amigaos*)
8821   library_names_spec='$libname.ixlibrary $libname.a'
8822   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8823   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'
8824   ;;
8825
8826 beos*)
8827   library_names_spec='${libname}${shared_ext}'
8828   dynamic_linker="$host_os ld.so"
8829   shlibpath_var=LIBRARY_PATH
8830   ;;
8831
8832 bsdi[45]*)
8833   version_type=linux
8834   need_version=no
8835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836   soname_spec='${libname}${release}${shared_ext}$major'
8837   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8838   shlibpath_var=LD_LIBRARY_PATH
8839   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8840   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8841   # the default ld.so.conf also contains /usr/contrib/lib and
8842   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8843   # libtool to hard-code these into programs
8844   ;;
8845
8846 cygwin* | mingw* | pw32*)
8847   version_type=windows
8848   shrext_cmds=".dll"
8849   need_version=no
8850   need_lib_prefix=no
8851
8852   case $GCC,$host_os in
8853   yes,cygwin* | yes,mingw* | yes,pw32*)
8854     library_names_spec='$libname.dll.a'
8855     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8856     postinstall_cmds='base_file=`basename \${file}`~
8857       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8858       dldir=$destdir/`dirname \$dlpath`~
8859       test -d \$dldir || mkdir -p \$dldir~
8860       $install_prog $dir/$dlname \$dldir/$dlname~
8861       chmod a+x \$dldir/$dlname'
8862     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8863       dlpath=$dir/\$dldll~
8864        $rm \$dlpath'
8865     shlibpath_overrides_runpath=yes
8866
8867     case $host_os in
8868     cygwin*)
8869       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8870       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8872       ;;
8873     mingw*)
8874       # MinGW DLLs use traditional 'lib' prefix
8875       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8878         # It is most probably a Windows format PATH printed by
8879         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8880         # path with ; separators, and with drive letters. We can handle the
8881         # drive letters (cygwin fileutils understands them), so leave them,
8882         # especially as we might pass files found there to a mingw objdump,
8883         # which wouldn't understand a cygwinified path. Ahh.
8884         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8885       else
8886         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8887       fi
8888       ;;
8889     pw32*)
8890       # pw32 DLLs use 'pw' prefix rather than 'lib'
8891       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8892       ;;
8893     esac
8894     ;;
8895
8896   *)
8897     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8898     ;;
8899   esac
8900   dynamic_linker='Win32 ld.exe'
8901   # FIXME: first we should search . and the directory the executable is in
8902   shlibpath_var=PATH
8903   ;;
8904
8905 darwin* | rhapsody*)
8906   dynamic_linker="$host_os dyld"
8907   version_type=darwin
8908   need_lib_prefix=no
8909   need_version=no
8910   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8911   soname_spec='${libname}${release}${major}$shared_ext'
8912   shlibpath_overrides_runpath=yes
8913   shlibpath_var=DYLD_LIBRARY_PATH
8914   shrext_cmds='.dylib'
8915   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8916   if test "$GCC" = yes; then
8917     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"`
8918   else
8919     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8920   fi
8921   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8922   ;;
8923
8924 dgux*)
8925   version_type=linux
8926   need_lib_prefix=no
8927   need_version=no
8928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929   soname_spec='${libname}${release}${shared_ext}$major'
8930   shlibpath_var=LD_LIBRARY_PATH
8931   ;;
8932
8933 freebsd1.*)
8934   dynamic_linker=no
8935   ;;
8936
8937 kfreebsd*-gnu)
8938   version_type=linux
8939   need_lib_prefix=no
8940   need_version=no
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   shlibpath_var=LD_LIBRARY_PATH
8944   shlibpath_overrides_runpath=no
8945   hardcode_into_libs=yes
8946   dynamic_linker='GNU ld.so'
8947   ;;
8948
8949 freebsd* | dragonfly*)
8950   # DragonFly does not have aout.  When/if they implement a new
8951   # versioning mechanism, adjust this.
8952   if test -x /usr/bin/objformat; then
8953     objformat=`/usr/bin/objformat`
8954   else
8955     case $host_os in
8956     freebsd[123].*) objformat=aout ;;
8957     *) objformat=elf ;;
8958     esac
8959   fi
8960   version_type=freebsd-$objformat
8961   case $version_type in
8962     freebsd-elf*)
8963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8964       need_version=no
8965       need_lib_prefix=no
8966       ;;
8967     freebsd-*)
8968       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8969       need_version=yes
8970       ;;
8971   esac
8972   shlibpath_var=LD_LIBRARY_PATH
8973   case $host_os in
8974   freebsd2.*)
8975     shlibpath_overrides_runpath=yes
8976     ;;
8977   freebsd3.[01]* | freebsdelf3.[01]*)
8978     shlibpath_overrides_runpath=yes
8979     hardcode_into_libs=yes
8980     ;;
8981   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8982   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8983     shlibpath_overrides_runpath=no
8984     hardcode_into_libs=yes
8985     ;;
8986   freebsd*) # from 4.6 on
8987     shlibpath_overrides_runpath=yes
8988     hardcode_into_libs=yes
8989     ;;
8990   esac
8991   ;;
8992
8993 gnu*)
8994   version_type=linux
8995   need_lib_prefix=no
8996   need_version=no
8997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8998   soname_spec='${libname}${release}${shared_ext}$major'
8999   shlibpath_var=LD_LIBRARY_PATH
9000   hardcode_into_libs=yes
9001   ;;
9002
9003 hpux9* | hpux10* | hpux11*)
9004   # Give a soname corresponding to the major version so that dld.sl refuses to
9005   # link against other versions.
9006   version_type=sunos
9007   need_lib_prefix=no
9008   need_version=no
9009   case $host_cpu in
9010   ia64*)
9011     shrext_cmds='.so'
9012     hardcode_into_libs=yes
9013     dynamic_linker="$host_os dld.so"
9014     shlibpath_var=LD_LIBRARY_PATH
9015     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017     soname_spec='${libname}${release}${shared_ext}$major'
9018     if test "X$HPUX_IA64_MODE" = X32; then
9019       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9020     else
9021       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9022     fi
9023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024     ;;
9025    hppa*64*)
9026      shrext_cmds='.sl'
9027      hardcode_into_libs=yes
9028      dynamic_linker="$host_os dld.sl"
9029      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9030      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032      soname_spec='${libname}${release}${shared_ext}$major'
9033      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9034      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9035      ;;
9036    *)
9037     shrext_cmds='.sl'
9038     dynamic_linker="$host_os dld.sl"
9039     shlibpath_var=SHLIB_PATH
9040     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042     soname_spec='${libname}${release}${shared_ext}$major'
9043     ;;
9044   esac
9045   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9046   postinstall_cmds='chmod 555 $lib'
9047   ;;
9048
9049 interix3*)
9050   version_type=linux
9051   need_lib_prefix=no
9052   need_version=no
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054   soname_spec='${libname}${release}${shared_ext}$major'
9055   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9056   shlibpath_var=LD_LIBRARY_PATH
9057   shlibpath_overrides_runpath=no
9058   hardcode_into_libs=yes
9059   ;;
9060
9061 irix5* | irix6* | nonstopux*)
9062   case $host_os in
9063     nonstopux*) version_type=nonstopux ;;
9064     *)
9065         if test "$lt_cv_prog_gnu_ld" = yes; then
9066                 version_type=linux
9067         else
9068                 version_type=irix
9069         fi ;;
9070   esac
9071   need_lib_prefix=no
9072   need_version=no
9073   soname_spec='${libname}${release}${shared_ext}$major'
9074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9075   case $host_os in
9076   irix5* | nonstopux*)
9077     libsuff= shlibsuff=
9078     ;;
9079   *)
9080     case $LD in # libtool.m4 will add one of these switches to LD
9081     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9082       libsuff= shlibsuff= libmagic=32-bit;;
9083     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9084       libsuff=32 shlibsuff=N32 libmagic=N32;;
9085     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9086       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9087     *) libsuff= shlibsuff= libmagic=never-match;;
9088     esac
9089     ;;
9090   esac
9091   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9092   shlibpath_overrides_runpath=no
9093   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9094   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9095   hardcode_into_libs=yes
9096   ;;
9097
9098 # No shared lib support for Linux oldld, aout, or coff.
9099 linux*oldld* | linux*aout* | linux*coff*)
9100   dynamic_linker=no
9101   ;;
9102
9103 # This must be Linux ELF.
9104 linux*)
9105   version_type=linux
9106   need_lib_prefix=no
9107   need_version=no
9108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109   soname_spec='${libname}${release}${shared_ext}$major'
9110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9111   shlibpath_var=LD_LIBRARY_PATH
9112   shlibpath_overrides_runpath=no
9113   # This implies no fast_install, which is unacceptable.
9114   # Some rework will be needed to allow for fast_install
9115   # before this can be enabled.
9116   hardcode_into_libs=yes
9117
9118   # Append ld.so.conf contents to the search path
9119   if test -f /etc/ld.so.conf; then
9120     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' ' '`
9121     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9122   fi
9123
9124   # We used to test for /lib/ld.so.1 and disable shared libraries on
9125   # powerpc, because MkLinux only supported shared libraries with the
9126   # GNU dynamic linker.  Since this was broken with cross compilers,
9127   # most powerpc-linux boxes support dynamic linking these days and
9128   # people can always --disable-shared, the test was removed, and we
9129   # assume the GNU/Linux dynamic linker is in use.
9130   dynamic_linker='GNU/Linux ld.so'
9131   ;;
9132
9133 knetbsd*-gnu)
9134   version_type=linux
9135   need_lib_prefix=no
9136   need_version=no
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   shlibpath_overrides_runpath=no
9141   hardcode_into_libs=yes
9142   dynamic_linker='GNU ld.so'
9143   ;;
9144
9145 netbsd*)
9146   version_type=sunos
9147   need_lib_prefix=no
9148   need_version=no
9149   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9151     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9152     dynamic_linker='NetBSD (a.out) ld.so'
9153   else
9154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155     soname_spec='${libname}${release}${shared_ext}$major'
9156     dynamic_linker='NetBSD ld.elf_so'
9157   fi
9158   shlibpath_var=LD_LIBRARY_PATH
9159   shlibpath_overrides_runpath=yes
9160   hardcode_into_libs=yes
9161   ;;
9162
9163 newsos6)
9164   version_type=linux
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166   shlibpath_var=LD_LIBRARY_PATH
9167   shlibpath_overrides_runpath=yes
9168   ;;
9169
9170 nto-qnx*)
9171   version_type=linux
9172   need_lib_prefix=no
9173   need_version=no
9174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175   soname_spec='${libname}${release}${shared_ext}$major'
9176   shlibpath_var=LD_LIBRARY_PATH
9177   shlibpath_overrides_runpath=yes
9178   ;;
9179
9180 openbsd* | bitrig*)
9181   version_type=sunos
9182   sys_lib_dlsearch_path_spec="/usr/lib"
9183   need_lib_prefix=no
9184   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9185   case $host_os in
9186     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9187     *)                         need_version=no  ;;
9188   esac
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9193     case $host_os in
9194       openbsd2.[89] | openbsd2.[89].*)
9195         shlibpath_overrides_runpath=no
9196         ;;
9197       *)
9198         shlibpath_overrides_runpath=yes
9199         ;;
9200       esac
9201   else
9202     shlibpath_overrides_runpath=yes
9203   fi
9204   ;;
9205
9206 os2*)
9207   libname_spec='$name'
9208   shrext_cmds=".dll"
9209   need_lib_prefix=no
9210   library_names_spec='$libname${shared_ext} $libname.a'
9211   dynamic_linker='OS/2 ld.exe'
9212   shlibpath_var=LIBPATH
9213   ;;
9214
9215 osf3* | osf4* | osf5*)
9216   version_type=osf
9217   need_lib_prefix=no
9218   need_version=no
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9223   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9224   ;;
9225
9226 solaris*)
9227   version_type=linux
9228   need_lib_prefix=no
9229   need_version=no
9230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   shlibpath_var=LD_LIBRARY_PATH
9233   shlibpath_overrides_runpath=yes
9234   hardcode_into_libs=yes
9235   # ldd complains unless libraries are executable
9236   postinstall_cmds='chmod +x $lib'
9237   ;;
9238
9239 sunos4*)
9240   version_type=sunos
9241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9243   shlibpath_var=LD_LIBRARY_PATH
9244   shlibpath_overrides_runpath=yes
9245   if test "$with_gnu_ld" = yes; then
9246     need_lib_prefix=no
9247   fi
9248   need_version=yes
9249   ;;
9250
9251 sysv4 | sysv4.3*)
9252   version_type=linux
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   case $host_vendor in
9257     sni)
9258       shlibpath_overrides_runpath=no
9259       need_lib_prefix=no
9260       export_dynamic_flag_spec='${wl}-Blargedynsym'
9261       runpath_var=LD_RUN_PATH
9262       ;;
9263     siemens)
9264       need_lib_prefix=no
9265       ;;
9266     motorola)
9267       need_lib_prefix=no
9268       need_version=no
9269       shlibpath_overrides_runpath=no
9270       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9271       ;;
9272   esac
9273   ;;
9274
9275 sysv4*MP*)
9276   if test -d /usr/nec ;then
9277     version_type=linux
9278     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9279     soname_spec='$libname${shared_ext}.$major'
9280     shlibpath_var=LD_LIBRARY_PATH
9281   fi
9282   ;;
9283
9284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9285   version_type=freebsd-elf
9286   need_lib_prefix=no
9287   need_version=no
9288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   hardcode_into_libs=yes
9292   if test "$with_gnu_ld" = yes; then
9293     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9294     shlibpath_overrides_runpath=no
9295   else
9296     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9297     shlibpath_overrides_runpath=yes
9298     case $host_os in
9299       sco3.2v5*)
9300         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9301         ;;
9302     esac
9303   fi
9304   sys_lib_dlsearch_path_spec='/usr/lib'
9305   ;;
9306
9307 uts4*)
9308   version_type=linux
9309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310   soname_spec='${libname}${release}${shared_ext}$major'
9311   shlibpath_var=LD_LIBRARY_PATH
9312   ;;
9313
9314 *)
9315   dynamic_linker=no
9316   ;;
9317 esac
9318 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9319 echo "${ECHO_T}$dynamic_linker" >&6; }
9320 test "$dynamic_linker" = no && can_build_shared=no
9321
9322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9323 if test "$GCC" = yes; then
9324   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9325 fi
9326
9327
9328 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9329 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9330 if test "${libltdl_cv_shlibext+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333
9334 module=yes
9335 eval libltdl_cv_shlibext=$shrext_cmds
9336
9337 fi
9338 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9339 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9340 if test -n "$libltdl_cv_shlibext"; then
9341
9342 cat >>confdefs.h <<_ACEOF
9343 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9344 _ACEOF
9345
9346 fi
9347
9348
9349 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9350 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9351 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   libltdl_cv_shlibpath_var="$shlibpath_var"
9355 fi
9356 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9357 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9358 if test -n "$libltdl_cv_shlibpath_var"; then
9359
9360 cat >>confdefs.h <<_ACEOF
9361 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9362 _ACEOF
9363
9364 fi
9365
9366
9367 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9368 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9369 if test "${libltdl_cv_sys_search_path+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9373 fi
9374 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9375 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9376 if test -n "$libltdl_cv_sys_search_path"; then
9377   sys_search_path=
9378   for dir in $libltdl_cv_sys_search_path; do
9379     if test -z "$sys_search_path"; then
9380       sys_search_path="$dir"
9381     else
9382       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9383     fi
9384   done
9385
9386 cat >>confdefs.h <<_ACEOF
9387 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9388 _ACEOF
9389
9390 fi
9391
9392 { echo "$as_me:$LINENO: checking for objdir" >&5
9393 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9394 if test "${libltdl_cv_objdir+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397   libltdl_cv_objdir="$objdir"
9398   if test -n "$objdir"; then
9399     :
9400   else
9401     rm -f .libs 2>/dev/null
9402     mkdir .libs 2>/dev/null
9403     if test -d .libs; then
9404       libltdl_cv_objdir=.libs
9405     else
9406       # MS-DOS does not allow filenames that begin with a dot.
9407       libltdl_cv_objdir=_libs
9408     fi
9409   rmdir .libs 2>/dev/null
9410   fi
9411
9412 fi
9413 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9414 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9415
9416 cat >>confdefs.h <<_ACEOF
9417 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9418 _ACEOF
9419
9420
9421
9422
9423
9424
9425 # Check for command to grab the raw symbol name followed by C symbol from nm.
9426 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9427 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9428 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431
9432 # These are sane defaults that work on at least a few old systems.
9433 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9434
9435 # Character class describing NM global symbol codes.
9436 symcode='[BCDEGRST]'
9437
9438 # Regexp to match symbols that can be accessed directly from C.
9439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9440
9441 # Transform an extracted symbol line into a proper C declaration
9442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9443
9444 # Transform an extracted symbol line into symbol name and symbol address
9445 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'"
9446
9447 # Define system-specific variables.
9448 case $host_os in
9449 aix*)
9450   symcode='[BCDT]'
9451   ;;
9452 cygwin* | mingw* | pw32*)
9453   symcode='[ABCDGISTW]'
9454   ;;
9455 hpux*) # Its linker distinguishes data from code symbols
9456   if test "$host_cpu" = ia64; then
9457     symcode='[ABCDEGRST]'
9458   fi
9459   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9460   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'"
9461   ;;
9462 linux*)
9463   if test "$host_cpu" = ia64; then
9464     symcode='[ABCDGIRSTW]'
9465     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9466     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'"
9467   fi
9468   ;;
9469 irix* | nonstopux*)
9470   symcode='[BCDEGRST]'
9471   ;;
9472 osf*)
9473   symcode='[BCDEGQRST]'
9474   ;;
9475 solaris*)
9476   symcode='[BDRT]'
9477   ;;
9478 sco3.2v5*)
9479   symcode='[DT]'
9480   ;;
9481 sysv4.2uw2*)
9482   symcode='[DT]'
9483   ;;
9484 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9485   symcode='[ABDT]'
9486   ;;
9487 sysv4)
9488   symcode='[DFNSTU]'
9489   ;;
9490 esac
9491
9492 # Handle CRLF in mingw tool chain
9493 opt_cr=
9494 case $build_os in
9495 mingw*)
9496   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9497   ;;
9498 esac
9499
9500 # If we're using GNU nm, then use its standard symbol codes.
9501 case `$NM -V 2>&1` in
9502 *GNU* | *'with BFD'*)
9503   symcode='[ABCDGIRSTW]' ;;
9504 esac
9505
9506 # Try without a prefix undercore, then with it.
9507 for ac_symprfx in "" "_"; do
9508
9509   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9510   symxfrm="\\1 $ac_symprfx\\2 \\2"
9511
9512   # Write the raw and C identifiers.
9513   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9514
9515   # Check to see that the pipe works correctly.
9516   pipe_works=no
9517
9518   rm -f conftest*
9519   cat > conftest.$ac_ext <<EOF
9520 #ifdef __cplusplus
9521 extern "C" {
9522 #endif
9523 char nm_test_var;
9524 void nm_test_func(){}
9525 #ifdef __cplusplus
9526 }
9527 #endif
9528 int main(){nm_test_var='a';nm_test_func();return(0);}
9529 EOF
9530
9531   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532   (eval $ac_compile) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; then
9536     # Now try to grab the symbols.
9537     nlist=conftest.nm
9538     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9539   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } && test -s "$nlist"; then
9543       # Try sorting and uniquifying the output.
9544       if sort "$nlist" | uniq > "$nlist"T; then
9545         mv -f "$nlist"T "$nlist"
9546       else
9547         rm -f "$nlist"T
9548       fi
9549
9550       # Make sure that we snagged all the symbols we need.
9551       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9552         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9553           cat <<EOF > conftest.$ac_ext
9554 #ifdef __cplusplus
9555 extern "C" {
9556 #endif
9557
9558 EOF
9559           # Now generate the symbol file.
9560           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9561
9562           cat <<EOF >> conftest.$ac_ext
9563 #if defined (__STDC__) && __STDC__
9564 # define lt_ptr_t void *
9565 #else
9566 # define lt_ptr_t char *
9567 # define const
9568 #endif
9569
9570 /* The mapping between symbol names and symbols. */
9571 const struct {
9572   const char *name;
9573   lt_ptr_t address;
9574 }
9575 lt_preloaded_symbols[] =
9576 {
9577 EOF
9578           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9579           cat <<\EOF >> conftest.$ac_ext
9580   {0, (lt_ptr_t) 0}
9581 };
9582
9583 #ifdef __cplusplus
9584 }
9585 #endif
9586 EOF
9587           # Now try linking the two files.
9588           mv conftest.$ac_objext conftstm.$ac_objext
9589           lt_save_LIBS="$LIBS"
9590           lt_save_CFLAGS="$CFLAGS"
9591           LIBS="conftstm.$ac_objext"
9592           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9593           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594   (eval $ac_link) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9598             pipe_works=yes
9599           fi
9600           LIBS="$lt_save_LIBS"
9601           CFLAGS="$lt_save_CFLAGS"
9602         else
9603           echo "cannot find nm_test_func in $nlist" >&5
9604         fi
9605       else
9606         echo "cannot find nm_test_var in $nlist" >&5
9607       fi
9608     else
9609       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9610     fi
9611   else
9612     echo "$progname: failed program was:" >&5
9613     cat conftest.$ac_ext >&5
9614   fi
9615   rm -f conftest* conftst*
9616
9617   # Do not use the global_symbol_pipe unless it works.
9618   if test "$pipe_works" = yes; then
9619     break
9620   else
9621     lt_cv_sys_global_symbol_pipe=
9622   fi
9623 done
9624
9625 fi
9626
9627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9628   lt_cv_sys_global_symbol_to_cdecl=
9629 fi
9630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9631   { echo "$as_me:$LINENO: result: failed" >&5
9632 echo "${ECHO_T}failed" >&6; }
9633 else
9634   { echo "$as_me:$LINENO: result: ok" >&5
9635 echo "${ECHO_T}ok" >&6; }
9636 fi
9637
9638
9639 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9640 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9641 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9645     libltdl_cv_preloaded_symbols=yes
9646   else
9647     libltdl_cv_preloaded_symbols=no
9648   fi
9649
9650 fi
9651 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9652 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9653 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9654
9655 cat >>confdefs.h <<\_ACEOF
9656 #define HAVE_PRELOADED_SYMBOLS 1
9657 _ACEOF
9658
9659 fi
9660
9661 LIBADD_DL=
9662
9663 ac_ext=c
9664 ac_cpp='$CPP $CPPFLAGS'
9665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9668
9669
9670 { echo "$as_me:$LINENO: checking for shl_load" >&5
9671 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9672 if test "${ac_cv_func_shl_load+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675   cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h.  */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h.  */
9681 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9683 #define shl_load innocuous_shl_load
9684
9685 /* System header to define __stub macros and hopefully few prototypes,
9686     which can conflict with char shl_load (); below.
9687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9688     <limits.h> exists even on freestanding compilers.  */
9689
9690 #ifdef __STDC__
9691 # include <limits.h>
9692 #else
9693 # include <assert.h>
9694 #endif
9695
9696 #undef shl_load
9697
9698 /* Override any GCC internal prototype to avoid an error.
9699    Use char because int might match the return type of a GCC
9700    builtin and then its argument prototype would still apply.  */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char shl_load ();
9705 /* The GNU C library defines this for functions which it implements
9706     to always fail with ENOSYS.  Some functions are actually named
9707     something starting with __ and the normal name is an alias.  */
9708 #if defined __stub_shl_load || defined __stub___shl_load
9709 choke me
9710 #endif
9711
9712 int
9713 main ()
9714 {
9715 return shl_load ();
9716   ;
9717   return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724   *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727   (eval "$ac_link") 2>conftest.er1
9728   ac_status=$?
9729   grep -v '^ *+' conftest.er1 >conftest.err
9730   rm -f conftest.er1
9731   cat conftest.err >&5
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735   { (case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_try") 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_try") 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); }; }; then
9754   ac_cv_func_shl_load=yes
9755 else
9756   echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759         ac_cv_func_shl_load=no
9760 fi
9761
9762 rm -f core conftest.err conftest.$ac_objext \
9763       conftest$ac_exeext conftest.$ac_ext
9764 fi
9765 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9766 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9767 if test $ac_cv_func_shl_load = yes; then
9768
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_SHL_LOAD 1
9771 _ACEOF
9772
9773 else
9774   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9775 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   ac_check_lib_save_LIBS=$LIBS
9780 LIBS="-ldld  $LIBS"
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787
9788 /* Override any GCC internal prototype to avoid an error.
9789    Use char because int might match the return type of a GCC
9790    builtin and then its argument prototype would still apply.  */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char shl_load ();
9795 int
9796 main ()
9797 {
9798 return shl_load ();
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9805 case "(($ac_try" in
9806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807   *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810   (eval "$ac_link") 2>conftest.er1
9811   ac_status=$?
9812   grep -v '^ *+' conftest.er1 >conftest.err
9813   rm -f conftest.er1
9814   cat conftest.err >&5
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); } &&
9817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818   { (case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_try") 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); }; } &&
9827          { ac_try='test -s conftest$ac_exeext'
9828   { (case "(($ac_try" in
9829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830   *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833   (eval "$ac_try") 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; }; then
9837   ac_cv_lib_dld_shl_load=yes
9838 else
9839   echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9841
9842         ac_cv_lib_dld_shl_load=no
9843 fi
9844
9845 rm -f core conftest.err conftest.$ac_objext \
9846       conftest$ac_exeext conftest.$ac_ext
9847 LIBS=$ac_check_lib_save_LIBS
9848 fi
9849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9850 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9851 if test $ac_cv_lib_dld_shl_load = yes; then
9852
9853 cat >>confdefs.h <<\_ACEOF
9854 #define HAVE_SHL_LOAD 1
9855 _ACEOF
9856
9857         LIBADD_DL="$LIBADD_DL -ldld"
9858 else
9859   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-ldl  $LIBS"
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872
9873 /* Override any GCC internal prototype to avoid an error.
9874    Use char because int might match the return type of a GCC
9875    builtin and then its argument prototype would still apply.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char dlopen ();
9880 int
9881 main ()
9882 {
9883 return dlopen ();
9884   ;
9885   return 0;
9886 }
9887 _ACEOF
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9890 case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_link") 2>conftest.er1
9896   ac_status=$?
9897   grep -v '^ *+' conftest.er1 >conftest.err
9898   rm -f conftest.er1
9899   cat conftest.err >&5
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } &&
9902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903   { (case "(($ac_try" in
9904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905   *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908   (eval "$ac_try") 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; } &&
9912          { ac_try='test -s conftest$ac_exeext'
9913   { (case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_try") 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_lib_dl_dlopen=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927         ac_cv_lib_dl_dlopen=no
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext \
9931       conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9933 fi
9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9936 if test $ac_cv_lib_dl_dlopen = yes; then
9937
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_LIBDL 1
9940 _ACEOF
9941
9942                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9943 else
9944   cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h.  */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h.  */
9950 #if HAVE_DLFCN_H
9951 #  include <dlfcn.h>
9952 #endif
9953
9954 int
9955 main ()
9956 {
9957 dlopen(0, 0);
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9964 case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_link") 2>conftest.er1
9970   ac_status=$?
9971   grep -v '^ *+' conftest.er1 >conftest.err
9972   rm -f conftest.er1
9973   cat conftest.err >&5
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } &&
9976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977   { (case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_try") 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest$ac_exeext'
9987   { (case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992   (eval "$ac_try") 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; }; then
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_LIBDL 1
9999 _ACEOF
10000  libltdl_cv_func_dlopen="yes"
10001 else
10002   echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10004
10005         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10006 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10007 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-lsvld  $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018
10019 /* Override any GCC internal prototype to avoid an error.
10020    Use char because int might match the return type of a GCC
10021    builtin and then its argument prototype would still apply.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char dlopen ();
10026 int
10027 main ()
10028 {
10029 return dlopen ();
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_link") 2>conftest.er1
10042   ac_status=$?
10043   grep -v '^ *+' conftest.er1 >conftest.err
10044   rm -f conftest.er1
10045   cat conftest.err >&5
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049   { (case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_try") 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_try") 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_cv_lib_svld_dlopen=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073         ac_cv_lib_svld_dlopen=no
10074 fi
10075
10076 rm -f core conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078 LIBS=$ac_check_lib_save_LIBS
10079 fi
10080 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10081 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10082 if test $ac_cv_lib_svld_dlopen = yes; then
10083
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_LIBDL 1
10086 _ACEOF
10087
10088                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10089 else
10090   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-ldld  $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 /* Override any GCC internal prototype to avoid an error.
10105    Use char because int might match the return type of a GCC
10106    builtin and then its argument prototype would still apply.  */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 char dld_link ();
10111 int
10112 main ()
10113 {
10114 return dld_link ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_link") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } &&
10133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134   { (case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_try") 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; } &&
10143          { ac_try='test -s conftest$ac_exeext'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; }; then
10153   ac_cv_lib_dld_dld_link=yes
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158         ac_cv_lib_dld_dld_link=no
10159 fi
10160
10161 rm -f core conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10166 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10167 if test $ac_cv_lib_dld_dld_link = yes; then
10168
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_DLD 1
10171 _ACEOF
10172
10173                 LIBADD_DL="$LIBADD_DL -ldld"
10174 else
10175   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10176 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10177 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   cat >conftest.$ac_ext <<_ACEOF
10181 /* confdefs.h.  */
10182 _ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h.  */
10186 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10188 #define _dyld_func_lookup innocuous__dyld_func_lookup
10189
10190 /* System header to define __stub macros and hopefully few prototypes,
10191     which can conflict with char _dyld_func_lookup (); below.
10192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10193     <limits.h> exists even on freestanding compilers.  */
10194
10195 #ifdef __STDC__
10196 # include <limits.h>
10197 #else
10198 # include <assert.h>
10199 #endif
10200
10201 #undef _dyld_func_lookup
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204    Use char because int might match the return type of a GCC
10205    builtin and then its argument prototype would still apply.  */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char _dyld_func_lookup ();
10210 /* The GNU C library defines this for functions which it implements
10211     to always fail with ENOSYS.  Some functions are actually named
10212     something starting with __ and the normal name is an alias.  */
10213 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10214 choke me
10215 #endif
10216
10217 int
10218 main ()
10219 {
10220 return _dyld_func_lookup ();
10221   ;
10222   return 0;
10223 }
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229   *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232   (eval "$ac_link") 2>conftest.er1
10233   ac_status=$?
10234   grep -v '^ *+' conftest.er1 >conftest.err
10235   rm -f conftest.er1
10236   cat conftest.err >&5
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240   { (case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245   (eval "$ac_try") 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest$ac_exeext'
10250   { (case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_try") 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; }; then
10259   ac_cv_func__dyld_func_lookup=yes
10260 else
10261   echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264         ac_cv_func__dyld_func_lookup=no
10265 fi
10266
10267 rm -f core conftest.err conftest.$ac_objext \
10268       conftest$ac_exeext conftest.$ac_ext
10269 fi
10270 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10271 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10272 if test $ac_cv_func__dyld_func_lookup = yes; then
10273
10274 cat >>confdefs.h <<\_ACEOF
10275 #define HAVE_DYLD 1
10276 _ACEOF
10277
10278 fi
10279
10280
10281 fi
10282
10283
10284 fi
10285
10286
10287 fi
10288
10289 rm -f core conftest.err conftest.$ac_objext \
10290       conftest$ac_exeext conftest.$ac_ext
10291
10292 fi
10293
10294
10295 fi
10296
10297
10298 fi
10299
10300
10301 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10302 then
10303   lt_save_LIBS="$LIBS"
10304   LIBS="$LIBS $LIBADD_DL"
10305
10306 for ac_func in dlerror
10307 do
10308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h.  */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h.  */
10320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10322 #define $ac_func innocuous_$ac_func
10323
10324 /* System header to define __stub macros and hopefully few prototypes,
10325     which can conflict with char $ac_func (); below.
10326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10327     <limits.h> exists even on freestanding compilers.  */
10328
10329 #ifdef __STDC__
10330 # include <limits.h>
10331 #else
10332 # include <assert.h>
10333 #endif
10334
10335 #undef $ac_func
10336
10337 /* Override any GCC internal prototype to avoid an error.
10338    Use char because int might match the return type of a GCC
10339    builtin and then its argument prototype would still apply.  */
10340 #ifdef __cplusplus
10341 extern "C"
10342 #endif
10343 char $ac_func ();
10344 /* The GNU C library defines this for functions which it implements
10345     to always fail with ENOSYS.  Some functions are actually named
10346     something starting with __ and the normal name is an alias.  */
10347 #if defined __stub_$ac_func || defined __stub___$ac_func
10348 choke me
10349 #endif
10350
10351 int
10352 main ()
10353 {
10354 return $ac_func ();
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 rm -f conftest.$ac_objext conftest$ac_exeext
10360 if { (ac_try="$ac_link"
10361 case "(($ac_try" in
10362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363   *) ac_try_echo=$ac_try;;
10364 esac
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366   (eval "$ac_link") 2>conftest.er1
10367   ac_status=$?
10368   grep -v '^ *+' conftest.er1 >conftest.err
10369   rm -f conftest.er1
10370   cat conftest.err >&5
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } &&
10373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374   { (case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_try") 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; } &&
10383          { ac_try='test -s conftest$ac_exeext'
10384   { (case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_try") 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   eval "$as_ac_var=yes"
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398         eval "$as_ac_var=no"
10399 fi
10400
10401 rm -f core conftest.err conftest.$ac_objext \
10402       conftest$ac_exeext conftest.$ac_ext
10403 fi
10404 ac_res=`eval echo '${'$as_ac_var'}'`
10405                { echo "$as_me:$LINENO: result: $ac_res" >&5
10406 echo "${ECHO_T}$ac_res" >&6; }
10407 if test `eval echo '${'$as_ac_var'}'` = yes; then
10408   cat >>confdefs.h <<_ACEOF
10409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10410 _ACEOF
10411
10412 fi
10413 done
10414
10415   LIBS="$lt_save_LIBS"
10416 fi
10417 ac_ext=c
10418 ac_cpp='$CPP $CPPFLAGS'
10419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10422
10423
10424
10425 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10426 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10427 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10428   echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430   ac_cv_sys_symbol_underscore=no
10431   cat > conftest.$ac_ext <<EOF
10432 void nm_test_func(){}
10433 int main(){nm_test_func;return 0;}
10434 EOF
10435   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436   (eval $ac_compile) 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; then
10440     # Now try to grab the symbols.
10441     ac_nlist=conftest.nm
10442     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10443   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } && test -s "$ac_nlist"; then
10447       # See whether the symbols have a leading underscore.
10448       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10449         ac_cv_sys_symbol_underscore=yes
10450       else
10451         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10452           :
10453         else
10454           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10455         fi
10456       fi
10457     else
10458       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10459     fi
10460   else
10461     echo "configure: failed program was:" >&5
10462     cat conftest.c >&5
10463   fi
10464   rm -rf conftest*
10465
10466 fi
10467 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10468 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10469
10470
10471 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10472   if test x"$libltdl_cv_func_dlopen" = xyes ||
10473      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10474         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10475 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10476 if test "${libltdl_cv_need_uscore+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   libltdl_cv_need_uscore=unknown
10480           save_LIBS="$LIBS"
10481           LIBS="$LIBS $LIBADD_DL"
10482           if test "$cross_compiling" = yes; then :
10483   libltdl_cv_need_uscore=cross
10484 else
10485   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10486   lt_status=$lt_dlunknown
10487   cat > conftest.$ac_ext <<EOF
10488 #line 10488 "configure"
10489 #include "confdefs.h"
10490
10491 #if HAVE_DLFCN_H
10492 #include <dlfcn.h>
10493 #endif
10494
10495 #include <stdio.h>
10496
10497 #ifdef RTLD_GLOBAL
10498 #  define LT_DLGLOBAL           RTLD_GLOBAL
10499 #else
10500 #  ifdef DL_GLOBAL
10501 #    define LT_DLGLOBAL         DL_GLOBAL
10502 #  else
10503 #    define LT_DLGLOBAL         0
10504 #  endif
10505 #endif
10506
10507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10508    find out it does not work in some platform. */
10509 #ifndef LT_DLLAZY_OR_NOW
10510 #  ifdef RTLD_LAZY
10511 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10512 #  else
10513 #    ifdef DL_LAZY
10514 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10515 #    else
10516 #      ifdef RTLD_NOW
10517 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10518 #      else
10519 #        ifdef DL_NOW
10520 #          define LT_DLLAZY_OR_NOW      DL_NOW
10521 #        else
10522 #          define LT_DLLAZY_OR_NOW      0
10523 #        endif
10524 #      endif
10525 #    endif
10526 #  endif
10527 #endif
10528
10529 #ifdef __cplusplus
10530 extern "C" void exit (int);
10531 #endif
10532
10533 void fnord() { int i=42;}
10534 int main ()
10535 {
10536   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10537   int status = $lt_dlunknown;
10538
10539   if (self)
10540     {
10541       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10542       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10543       /* dlclose (self); */
10544     }
10545   else
10546     puts (dlerror ());
10547
10548     exit (status);
10549 }
10550 EOF
10551   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552   (eval $ac_link) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556     (./conftest; exit; ) >&5 2>/dev/null
10557     lt_status=$?
10558     case x$lt_status in
10559       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10560       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10561       x$lt_dlunknown|x*)  ;;
10562     esac
10563   else :
10564     # compilation failed
10565
10566   fi
10567 fi
10568 rm -fr conftest*
10569
10570           LIBS="$save_LIBS"
10571
10572 fi
10573 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10574 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10575   fi
10576 fi
10577
10578 if test x"$libltdl_cv_need_uscore" = xyes; then
10579
10580 cat >>confdefs.h <<\_ACEOF
10581 #define NEED_USCORE 1
10582 _ACEOF
10583
10584 fi
10585
10586
10587 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10588 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10589 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   # PORTME does your system automatically load deplibs for dlopen?
10593   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10594   # For now, we just catch OSes we know something about -- in the
10595   # future, we'll try test this programmatically.
10596   libltdl_cv_sys_dlopen_deplibs=unknown
10597   case "$host_os" in
10598   aix3*|aix4.1.*|aix4.2.*)
10599     # Unknown whether this is true for these versions of AIX, but
10600     # we want this `case' here to explicitly catch those versions.
10601     libltdl_cv_sys_dlopen_deplibs=unknown
10602     ;;
10603   aix[45]*)
10604     libltdl_cv_sys_dlopen_deplibs=yes
10605     ;;
10606   darwin*)
10607     # Assuming the user has installed a libdl from somewhere, this is true
10608     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10609     libltdl_cv_sys_dlopen_deplibs=yes
10610     ;;
10611   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10612     # GNU and its variants, using gnu ld.so (Glibc)
10613     libltdl_cv_sys_dlopen_deplibs=yes
10614     ;;
10615   hpux10*|hpux11*)
10616     libltdl_cv_sys_dlopen_deplibs=yes
10617     ;;
10618   interix*)
10619     libltdl_cv_sys_dlopen_deplibs=yes
10620     ;;
10621   irix[12345]*|irix6.[01]*)
10622     # Catch all versions of IRIX before 6.2, and indicate that we don't
10623     # know how it worked for any of those versions.
10624     libltdl_cv_sys_dlopen_deplibs=unknown
10625     ;;
10626   irix*)
10627     # The case above catches anything before 6.2, and it's known that
10628     # at 6.2 and later dlopen does load deplibs.
10629     libltdl_cv_sys_dlopen_deplibs=yes
10630     ;;
10631   netbsd*)
10632     libltdl_cv_sys_dlopen_deplibs=yes
10633     ;;
10634   openbsd*)
10635     libltdl_cv_sys_dlopen_deplibs=yes
10636     ;;
10637   osf[1234]*)
10638     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10639     # it did *not* use an RPATH in a shared library to find objects the
10640     # library depends on, so we explicitly say `no'.
10641     libltdl_cv_sys_dlopen_deplibs=no
10642     ;;
10643   osf5.0|osf5.0a|osf5.1)
10644     # dlopen *does* load deplibs and with the right loader patch applied
10645     # it even uses RPATH in a shared library to search for shared objects
10646     # that the library depends on, but there's no easy way to know if that
10647     # patch is installed.  Since this is the case, all we can really
10648     # say is unknown -- it depends on the patch being installed.  If
10649     # it is, this changes to `yes'.  Without it, it would be `no'.
10650     libltdl_cv_sys_dlopen_deplibs=unknown
10651     ;;
10652   osf*)
10653     # the two cases above should catch all versions of osf <= 5.1.  Read
10654     # the comments above for what we know about them.
10655     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10656     # is used to find them so we can finally say `yes'.
10657     libltdl_cv_sys_dlopen_deplibs=yes
10658     ;;
10659   solaris*)
10660     libltdl_cv_sys_dlopen_deplibs=yes
10661     ;;
10662   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10663     libltdl_cv_sys_dlopen_deplibs=yes
10664     ;;
10665   esac
10666
10667 fi
10668 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10669 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10670 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define LTDL_DLOPEN_DEPLIBS 1
10674 _ACEOF
10675
10676 fi
10677
10678
10679 for ac_header in argz.h
10680 do
10681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 fi
10688 ac_res=`eval echo '${'$as_ac_Header'}'`
10689                { echo "$as_me:$LINENO: result: $ac_res" >&5
10690 echo "${ECHO_T}$ac_res" >&6; }
10691 else
10692   # Is the header compilable?
10693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701 $ac_includes_default
10702 #include <$ac_header>
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_compile") 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } &&
10718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719   { (case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_try") 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; } &&
10728          { ac_try='test -s conftest.$ac_objext'
10729   { (case "(($ac_try" in
10730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731   *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734   (eval "$ac_try") 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; }; then
10738   ac_header_compiler=yes
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743         ac_header_compiler=no
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748 echo "${ECHO_T}$ac_header_compiler" >&6; }
10749
10750 # Is the header present?
10751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 #include <$ac_header>
10760 _ACEOF
10761 if { (ac_try="$ac_cpp conftest.$ac_ext"
10762 case "(($ac_try" in
10763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764   *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10768   ac_status=$?
10769   grep -v '^ *+' conftest.er1 >conftest.err
10770   rm -f conftest.er1
10771   cat conftest.err >&5
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); } >/dev/null; then
10774   if test -s conftest.err; then
10775     ac_cpp_err=$ac_c_preproc_warn_flag
10776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10777   else
10778     ac_cpp_err=
10779   fi
10780 else
10781   ac_cpp_err=yes
10782 fi
10783 if test -z "$ac_cpp_err"; then
10784   ac_header_preproc=yes
10785 else
10786   echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789   ac_header_preproc=no
10790 fi
10791
10792 rm -f conftest.err conftest.$ac_ext
10793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794 echo "${ECHO_T}$ac_header_preproc" >&6; }
10795
10796 # So?  What about this header?
10797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10798   yes:no: )
10799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803     ac_header_preproc=yes
10804     ;;
10805   no:yes:* )
10806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10818     ( cat <<\_ASBOX
10819 ## ------------------------------------ ##
10820 ## Report this to http://llvm.org/bugs/ ##
10821 ## ------------------------------------ ##
10822 _ASBOX
10823      ) | sed "s/^/$as_me: WARNING:     /" >&2
10824     ;;
10825 esac
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   eval "$as_ac_Header=\$ac_header_preproc"
10832 fi
10833 ac_res=`eval echo '${'$as_ac_Header'}'`
10834                { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10836
10837 fi
10838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10839   cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10841 _ACEOF
10842
10843 fi
10844
10845 done
10846
10847
10848 { echo "$as_me:$LINENO: checking for error_t" >&5
10849 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10850 if test "${ac_cv_type_error_t+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10859 #if HAVE_ARGZ_H
10860 #  include <argz.h>
10861 #endif
10862
10863 typedef error_t ac__type_new_;
10864 int
10865 main ()
10866 {
10867 if ((ac__type_new_ *) 0)
10868   return 0;
10869 if (sizeof (ac__type_new_))
10870   return 0;
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext
10876 if { (ac_try="$ac_compile"
10877 case "(($ac_try" in
10878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879   *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882   (eval "$ac_compile") 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890   { (case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_try") 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; } &&
10899          { ac_try='test -s conftest.$ac_objext'
10900   { (case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_try") 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   ac_cv_type_error_t=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914         ac_cv_type_error_t=no
10915 fi
10916
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 fi
10919 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10920 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10921 if test $ac_cv_type_error_t = yes; then
10922
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_ERROR_T 1
10925 _ACEOF
10926
10927
10928 else
10929
10930 cat >>confdefs.h <<\_ACEOF
10931 #define error_t int
10932 _ACEOF
10933
10934 fi
10935
10936
10937
10938
10939
10940
10941
10942 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10943 do
10944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950   cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10958 #define $ac_func innocuous_$ac_func
10959
10960 /* System header to define __stub macros and hopefully few prototypes,
10961     which can conflict with char $ac_func (); below.
10962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10963     <limits.h> exists even on freestanding compilers.  */
10964
10965 #ifdef __STDC__
10966 # include <limits.h>
10967 #else
10968 # include <assert.h>
10969 #endif
10970
10971 #undef $ac_func
10972
10973 /* Override any GCC internal prototype to avoid an error.
10974    Use char because int might match the return type of a GCC
10975    builtin and then its argument prototype would still apply.  */
10976 #ifdef __cplusplus
10977 extern "C"
10978 #endif
10979 char $ac_func ();
10980 /* The GNU C library defines this for functions which it implements
10981     to always fail with ENOSYS.  Some functions are actually named
10982     something starting with __ and the normal name is an alias.  */
10983 #if defined __stub_$ac_func || defined __stub___$ac_func
10984 choke me
10985 #endif
10986
10987 int
10988 main ()
10989 {
10990 return $ac_func ();
10991   ;
10992   return 0;
10993 }
10994 _ACEOF
10995 rm -f conftest.$ac_objext conftest$ac_exeext
10996 if { (ac_try="$ac_link"
10997 case "(($ac_try" in
10998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999   *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002   (eval "$ac_link") 2>conftest.er1
11003   ac_status=$?
11004   grep -v '^ *+' conftest.er1 >conftest.err
11005   rm -f conftest.er1
11006   cat conftest.err >&5
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } &&
11009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11010   { (case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_try") 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; } &&
11019          { ac_try='test -s conftest$ac_exeext'
11020   { (case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_try") 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; }; then
11029   eval "$as_ac_var=yes"
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034         eval "$as_ac_var=no"
11035 fi
11036
11037 rm -f core conftest.err conftest.$ac_objext \
11038       conftest$ac_exeext conftest.$ac_ext
11039 fi
11040 ac_res=`eval echo '${'$as_ac_var'}'`
11041                { echo "$as_me:$LINENO: result: $ac_res" >&5
11042 echo "${ECHO_T}$ac_res" >&6; }
11043 if test `eval echo '${'$as_ac_var'}'` = yes; then
11044   cat >>confdefs.h <<_ACEOF
11045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11046 _ACEOF
11047
11048 fi
11049 done
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11079                   stdio.h unistd.h
11080 do
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 fi
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089                { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11091 else
11092   # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 $ac_includes_default
11102 #include <$ac_header>
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_compile") 2>conftest.er1
11112   ac_status=$?
11113   grep -v '^ *+' conftest.er1 >conftest.err
11114   rm -f conftest.er1
11115   cat conftest.err >&5
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } &&
11118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119   { (case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_try") 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; } &&
11128          { ac_try='test -s conftest.$ac_objext'
11129   { (case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_try") 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }; then
11138   ac_header_compiler=yes
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143         ac_header_compiler=no
11144 fi
11145
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h.  */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h.  */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } >/dev/null; then
11174   if test -s conftest.err; then
11175     ac_cpp_err=$ac_c_preproc_warn_flag
11176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177   else
11178     ac_cpp_err=
11179   fi
11180 else
11181   ac_cpp_err=yes
11182 fi
11183 if test -z "$ac_cpp_err"; then
11184   ac_header_preproc=yes
11185 else
11186   echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189   ac_header_preproc=no
11190 fi
11191
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11195
11196 # So?  What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198   yes:no: )
11199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203     ac_header_preproc=yes
11204     ;;
11205   no:yes:* )
11206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218     ( cat <<\_ASBOX
11219 ## ------------------------------------ ##
11220 ## Report this to http://llvm.org/bugs/ ##
11221 ## ------------------------------------ ##
11222 _ASBOX
11223      ) | sed "s/^/$as_me: WARNING:     /" >&2
11224     ;;
11225 esac
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   eval "$as_ac_Header=\$ac_header_preproc"
11232 fi
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234                { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236
11237 fi
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239   cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11241 _ACEOF
11242
11243 fi
11244
11245 done
11246
11247
11248
11249
11250
11251 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11252 do
11253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 fi
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261                { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 else
11264   # Is the header compilable?
11265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 $ac_includes_default
11274 #include <$ac_header>
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (ac_try="$ac_compile"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_compile") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } &&
11290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291   { (case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_try") 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); }; } &&
11300          { ac_try='test -s conftest.$ac_objext'
11301   { (case "(($ac_try" in
11302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303   *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306   (eval "$ac_try") 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_header_compiler=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315         ac_header_compiler=no
11316 fi
11317
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322 # Is the header present?
11323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325 cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 #include <$ac_header>
11332 _ACEOF
11333 if { (ac_try="$ac_cpp conftest.$ac_ext"
11334 case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } >/dev/null; then
11346   if test -s conftest.err; then
11347     ac_cpp_err=$ac_c_preproc_warn_flag
11348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349   else
11350     ac_cpp_err=
11351   fi
11352 else
11353   ac_cpp_err=yes
11354 fi
11355 if test -z "$ac_cpp_err"; then
11356   ac_header_preproc=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361   ac_header_preproc=no
11362 fi
11363
11364 rm -f conftest.err conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366 echo "${ECHO_T}$ac_header_preproc" >&6; }
11367
11368 # So?  What about this header?
11369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370   yes:no: )
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375     ac_header_preproc=yes
11376     ;;
11377   no:yes:* )
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11381 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11385 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390     ( cat <<\_ASBOX
11391 ## ------------------------------------ ##
11392 ## Report this to http://llvm.org/bugs/ ##
11393 ## ------------------------------------ ##
11394 _ASBOX
11395      ) | sed "s/^/$as_me: WARNING:     /" >&2
11396     ;;
11397 esac
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401   echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403   eval "$as_ac_Header=\$ac_header_preproc"
11404 fi
11405 ac_res=`eval echo '${'$as_ac_Header'}'`
11406                { echo "$as_me:$LINENO: result: $ac_res" >&5
11407 echo "${ECHO_T}$ac_res" >&6; }
11408
11409 fi
11410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11411   cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11413 _ACEOF
11414
11415 fi
11416
11417 done
11418
11419
11420
11421 for ac_header in string.h strings.h
11422 do
11423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 fi
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431                { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11433 else
11434   # Is the header compilable?
11435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 $ac_includes_default
11444 #include <$ac_header>
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450   *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453   (eval "$ac_compile") 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461   { (case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_try") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_header_compiler=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485         ac_header_compiler=no
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490 echo "${ECHO_T}$ac_header_compiler" >&6; }
11491
11492 # Is the header present?
11493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <$ac_header>
11502 _ACEOF
11503 if { (ac_try="$ac_cpp conftest.$ac_ext"
11504 case "(($ac_try" in
11505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506   *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11510   ac_status=$?
11511   grep -v '^ *+' conftest.er1 >conftest.err
11512   rm -f conftest.er1
11513   cat conftest.err >&5
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); } >/dev/null; then
11516   if test -s conftest.err; then
11517     ac_cpp_err=$ac_c_preproc_warn_flag
11518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11519   else
11520     ac_cpp_err=
11521   fi
11522 else
11523   ac_cpp_err=yes
11524 fi
11525 if test -z "$ac_cpp_err"; then
11526   ac_header_preproc=yes
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531   ac_header_preproc=no
11532 fi
11533
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11537
11538 # So?  What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540   yes:no: )
11541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545     ac_header_preproc=yes
11546     ;;
11547   no:yes:* )
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560     ( cat <<\_ASBOX
11561 ## ------------------------------------ ##
11562 ## Report this to http://llvm.org/bugs/ ##
11563 ## ------------------------------------ ##
11564 _ASBOX
11565      ) | sed "s/^/$as_me: WARNING:     /" >&2
11566     ;;
11567 esac
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   eval "$as_ac_Header=\$ac_header_preproc"
11574 fi
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576                { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578
11579 fi
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581   cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 _ACEOF
11584  break
11585 fi
11586
11587 done
11588
11589
11590
11591
11592 for ac_func in strchr index
11593 do
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11608 #define $ac_func innocuous_$ac_func
11609
11610 /* System header to define __stub macros and hopefully few prototypes,
11611     which can conflict with char $ac_func (); below.
11612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613     <limits.h> exists even on freestanding compilers.  */
11614
11615 #ifdef __STDC__
11616 # include <limits.h>
11617 #else
11618 # include <assert.h>
11619 #endif
11620
11621 #undef $ac_func
11622
11623 /* Override any GCC internal prototype to avoid an error.
11624    Use char because int might match the return type of a GCC
11625    builtin and then its argument prototype would still apply.  */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char $ac_func ();
11630 /* The GNU C library defines this for functions which it implements
11631     to always fail with ENOSYS.  Some functions are actually named
11632     something starting with __ and the normal name is an alias.  */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11634 choke me
11635 #endif
11636
11637 int
11638 main ()
11639 {
11640 return $ac_func ();
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649   *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652   (eval "$ac_link") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660   { (case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_try") 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; } &&
11669          { ac_try='test -s conftest$ac_exeext'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   eval "$as_ac_var=yes"
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684         eval "$as_ac_var=no"
11685 fi
11686
11687 rm -f core conftest.err conftest.$ac_objext \
11688       conftest$ac_exeext conftest.$ac_ext
11689 fi
11690 ac_res=`eval echo '${'$as_ac_var'}'`
11691                { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_var'}'` = yes; then
11694   cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11696 _ACEOF
11697  break
11698 fi
11699 done
11700
11701
11702
11703 for ac_func in strrchr rindex
11704 do
11705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709   echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11719 #define $ac_func innocuous_$ac_func
11720
11721 /* System header to define __stub macros and hopefully few prototypes,
11722     which can conflict with char $ac_func (); below.
11723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724     <limits.h> exists even on freestanding compilers.  */
11725
11726 #ifdef __STDC__
11727 # include <limits.h>
11728 #else
11729 # include <assert.h>
11730 #endif
11731
11732 #undef $ac_func
11733
11734 /* Override any GCC internal prototype to avoid an error.
11735    Use char because int might match the return type of a GCC
11736    builtin and then its argument prototype would still apply.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 char $ac_func ();
11741 /* The GNU C library defines this for functions which it implements
11742     to always fail with ENOSYS.  Some functions are actually named
11743     something starting with __ and the normal name is an alias.  */
11744 #if defined __stub_$ac_func || defined __stub___$ac_func
11745 choke me
11746 #endif
11747
11748 int
11749 main ()
11750 {
11751 return $ac_func ();
11752   ;
11753   return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760   *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763   (eval "$ac_link") 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } &&
11770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771   { (case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_try") 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; } &&
11780          { ac_try='test -s conftest$ac_exeext'
11781   { (case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   eval "$as_ac_var=yes"
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795         eval "$as_ac_var=no"
11796 fi
11797
11798 rm -f core conftest.err conftest.$ac_objext \
11799       conftest$ac_exeext conftest.$ac_ext
11800 fi
11801 ac_res=`eval echo '${'$as_ac_var'}'`
11802                { echo "$as_me:$LINENO: result: $ac_res" >&5
11803 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_var'}'` = yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807 _ACEOF
11808  break
11809 fi
11810 done
11811
11812
11813
11814 for ac_func in memcpy bcopy
11815 do
11816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h.  */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h.  */
11828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11830 #define $ac_func innocuous_$ac_func
11831
11832 /* System header to define __stub macros and hopefully few prototypes,
11833     which can conflict with char $ac_func (); below.
11834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835     <limits.h> exists even on freestanding compilers.  */
11836
11837 #ifdef __STDC__
11838 # include <limits.h>
11839 #else
11840 # include <assert.h>
11841 #endif
11842
11843 #undef $ac_func
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846    Use char because int might match the return type of a GCC
11847    builtin and then its argument prototype would still apply.  */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char $ac_func ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined __stub_$ac_func || defined __stub___$ac_func
11856 choke me
11857 #endif
11858
11859 int
11860 main ()
11861 {
11862 return $ac_func ();
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_link") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882   { (case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_try") 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest$ac_exeext'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   eval "$as_ac_var=yes"
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906         eval "$as_ac_var=no"
11907 fi
11908
11909 rm -f core conftest.err conftest.$ac_objext \
11910       conftest$ac_exeext conftest.$ac_ext
11911 fi
11912 ac_res=`eval echo '${'$as_ac_var'}'`
11913                { echo "$as_me:$LINENO: result: $ac_res" >&5
11914 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916   cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 _ACEOF
11919  break
11920 fi
11921 done
11922
11923
11924
11925 for ac_func in memmove strcmp
11926 do
11927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11941 #define $ac_func innocuous_$ac_func
11942
11943 /* System header to define __stub macros and hopefully few prototypes,
11944     which can conflict with char $ac_func (); below.
11945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946     <limits.h> exists even on freestanding compilers.  */
11947
11948 #ifdef __STDC__
11949 # include <limits.h>
11950 #else
11951 # include <assert.h>
11952 #endif
11953
11954 #undef $ac_func
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957    Use char because int might match the return type of a GCC
11958    builtin and then its argument prototype would still apply.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char $ac_func ();
11963 /* The GNU C library defines this for functions which it implements
11964     to always fail with ENOSYS.  Some functions are actually named
11965     something starting with __ and the normal name is an alias.  */
11966 #if defined __stub_$ac_func || defined __stub___$ac_func
11967 choke me
11968 #endif
11969
11970 int
11971 main ()
11972 {
11973 return $ac_func ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (ac_try="$ac_link"
11980 case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_link") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } &&
11992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993   { (case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_try") 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; } &&
12002          { ac_try='test -s conftest$ac_exeext'
12003   { (case "(($ac_try" in
12004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005   *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008   (eval "$ac_try") 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   eval "$as_ac_var=yes"
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017         eval "$as_ac_var=no"
12018 fi
12019
12020 rm -f core conftest.err conftest.$ac_objext \
12021       conftest$ac_exeext conftest.$ac_ext
12022 fi
12023 ac_res=`eval echo '${'$as_ac_var'}'`
12024                { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_var'}'` = yes; then
12027   cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12029 _ACEOF
12030
12031 fi
12032 done
12033
12034
12035
12036
12037 for ac_func in closedir opendir readdir
12038 do
12039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12053 #define $ac_func innocuous_$ac_func
12054
12055 /* System header to define __stub macros and hopefully few prototypes,
12056     which can conflict with char $ac_func (); below.
12057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12058     <limits.h> exists even on freestanding compilers.  */
12059
12060 #ifdef __STDC__
12061 # include <limits.h>
12062 #else
12063 # include <assert.h>
12064 #endif
12065
12066 #undef $ac_func
12067
12068 /* Override any GCC internal prototype to avoid an error.
12069    Use char because int might match the return type of a GCC
12070    builtin and then its argument prototype would still apply.  */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 char $ac_func ();
12075 /* The GNU C library defines this for functions which it implements
12076     to always fail with ENOSYS.  Some functions are actually named
12077     something starting with __ and the normal name is an alias.  */
12078 #if defined __stub_$ac_func || defined __stub___$ac_func
12079 choke me
12080 #endif
12081
12082 int
12083 main ()
12084 {
12085 return $ac_func ();
12086   ;
12087   return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (ac_try="$ac_link"
12092 case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_link") 2>conftest.er1
12098   ac_status=$?
12099   grep -v '^ *+' conftest.er1 >conftest.err
12100   rm -f conftest.er1
12101   cat conftest.err >&5
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105   { (case "(($ac_try" in
12106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107   *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110   (eval "$ac_try") 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; } &&
12114          { ac_try='test -s conftest$ac_exeext'
12115   { (case "(($ac_try" in
12116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117   *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120   (eval "$ac_try") 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   eval "$as_ac_var=yes"
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129         eval "$as_ac_var=no"
12130 fi
12131
12132 rm -f core conftest.err conftest.$ac_objext \
12133       conftest$ac_exeext conftest.$ac_ext
12134 fi
12135 ac_res=`eval echo '${'$as_ac_var'}'`
12136                { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12138 if test `eval echo '${'$as_ac_var'}'` = yes; then
12139   cat >>confdefs.h <<_ACEOF
12140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12141 _ACEOF
12142
12143 fi
12144 done
12145
12146
12147
12148 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12149 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12150
12151 ICC=no
12152 IXX=no
12153 case $CC in
12154   icc*|icpc*)
12155     ICC=yes
12156     IXX=yes
12157     ;;
12158    *)
12159     ;;
12160 esac
12161
12162 if test "$GCC" != "yes" && test "$ICC" != "yes"
12163 then
12164   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12165 echo "$as_me: error: gcc|icc required but not found" >&2;}
12166    { (exit 1); exit 1; }; }
12167 fi
12168
12169 if test "$GXX" != "yes" && test "$IXX" != "yes"
12170 then
12171   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12172 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12173    { (exit 1); exit 1; }; }
12174 fi
12175
12176 if test "$GCC" = "yes"
12177 then
12178   cat >conftest.$ac_ext <<_ACEOF
12179 #if !defined(__GNUC__) || __GNUC__ < 3
12180 #error Unsupported GCC version
12181 #endif
12182
12183 _ACEOF
12184 rm -f conftest.$ac_objext
12185 if { (ac_try="$ac_compile"
12186 case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_compile") 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199   { (case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_try") 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; } &&
12208          { ac_try='test -s conftest.$ac_objext'
12209   { (case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_try") 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218   :
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12224 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12225    { (exit 1); exit 1; }; }
12226 fi
12227
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 fi
12230
12231 if test -z "$llvm_cv_gnu_make_command"
12232 then
12233   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12234 echo "$as_me: error: GNU Make required but not found" >&2;}
12235    { (exit 1); exit 1; }; }
12236 fi
12237
12238 { echo "$as_me:$LINENO: result: ok" >&5
12239 echo "${ECHO_T}ok" >&6; }
12240
12241 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12242 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12243 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12244
12245 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12246
12247 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12248
12249 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12250 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12251
12252
12253
12254 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12255 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12256 if test "${ac_cv_lib_m_sin+set}" = set; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259   ac_check_lib_save_LIBS=$LIBS
12260 LIBS="-lm  $LIBS"
12261 cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h.  */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h.  */
12267
12268 /* Override any GCC internal prototype to avoid an error.
12269    Use char because int might match the return type of a GCC
12270    builtin and then its argument prototype would still apply.  */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 char sin ();
12275 int
12276 main ()
12277 {
12278 return sin ();
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287   *) ac_try_echo=$ac_try;;
12288 esac
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290   (eval "$ac_link") 2>conftest.er1
12291   ac_status=$?
12292   grep -v '^ *+' conftest.er1 >conftest.err
12293   rm -f conftest.er1
12294   cat conftest.err >&5
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } &&
12297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298   { (case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_try") 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; } &&
12307          { ac_try='test -s conftest$ac_exeext'
12308   { (case "(($ac_try" in
12309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310   *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313   (eval "$ac_try") 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   ac_cv_lib_m_sin=yes
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322         ac_cv_lib_m_sin=no
12323 fi
12324
12325 rm -f core conftest.err conftest.$ac_objext \
12326       conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12328 fi
12329 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12330 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12331 if test $ac_cv_lib_m_sin = yes; then
12332   cat >>confdefs.h <<_ACEOF
12333 #define HAVE_LIBM 1
12334 _ACEOF
12335
12336   LIBS="-lm $LIBS"
12337
12338 fi
12339
12340 if test "$llvm_cv_os_type" = "MingW" ; then
12341
12342 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12343 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12344 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12345   echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347   ac_check_lib_save_LIBS=$LIBS
12348 LIBS="-limagehlp  $LIBS"
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h.  */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h.  */
12355
12356
12357 int
12358 main ()
12359 {
12360 return main ();
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369   *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372   (eval "$ac_link") 2>conftest.er1
12373   ac_status=$?
12374   grep -v '^ *+' conftest.er1 >conftest.err
12375   rm -f conftest.er1
12376   cat conftest.err >&5
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380   { (case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_try") 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; } &&
12389          { ac_try='test -s conftest$ac_exeext'
12390   { (case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_try") 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; }; then
12399   ac_cv_lib_imagehlp_main=yes
12400 else
12401   echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404         ac_cv_lib_imagehlp_main=no
12405 fi
12406
12407 rm -f core conftest.err conftest.$ac_objext \
12408       conftest$ac_exeext conftest.$ac_ext
12409 LIBS=$ac_check_lib_save_LIBS
12410 fi
12411 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12412 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12413 if test $ac_cv_lib_imagehlp_main = yes; then
12414   cat >>confdefs.h <<_ACEOF
12415 #define HAVE_LIBIMAGEHLP 1
12416 _ACEOF
12417
12418   LIBS="-limagehlp $LIBS"
12419
12420 fi
12421
12422
12423 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12424 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12425 if test "${ac_cv_lib_psapi_main+set}" = set; then
12426   echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428   ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lpsapi  $LIBS"
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h.  */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h.  */
12436
12437
12438 int
12439 main ()
12440 {
12441 return main ();
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (ac_try="$ac_link"
12448 case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_link") 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } &&
12460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12461   { (case "(($ac_try" in
12462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463   *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466   (eval "$ac_try") 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; } &&
12470          { ac_try='test -s conftest$ac_exeext'
12471   { (case "(($ac_try" in
12472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473   *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476   (eval "$ac_try") 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; }; then
12480   ac_cv_lib_psapi_main=yes
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485         ac_cv_lib_psapi_main=no
12486 fi
12487
12488 rm -f core conftest.err conftest.$ac_objext \
12489       conftest$ac_exeext conftest.$ac_ext
12490 LIBS=$ac_check_lib_save_LIBS
12491 fi
12492 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12493 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12494 if test $ac_cv_lib_psapi_main = yes; then
12495   cat >>confdefs.h <<_ACEOF
12496 #define HAVE_LIBPSAPI 1
12497 _ACEOF
12498
12499   LIBS="-lpsapi $LIBS"
12500
12501 fi
12502
12503 fi
12504
12505 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12506 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12507 if test "${ac_cv_search_dlopen+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   ac_func_search_save_LIBS=$LIBS
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517
12518 /* Override any GCC internal prototype to avoid an error.
12519    Use char because int might match the return type of a GCC
12520    builtin and then its argument prototype would still apply.  */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 char dlopen ();
12525 int
12526 main ()
12527 {
12528 return dlopen ();
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 for ac_lib in '' dl; do
12534   if test -z "$ac_lib"; then
12535     ac_res="none required"
12536   else
12537     ac_res=-l$ac_lib
12538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12539   fi
12540   rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544   *) ac_try_echo=$ac_try;;
12545 esac
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547   (eval "$ac_link") 2>conftest.er1
12548   ac_status=$?
12549   grep -v '^ *+' conftest.er1 >conftest.err
12550   rm -f conftest.er1
12551   cat conftest.err >&5
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); } &&
12554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12555   { (case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_try") 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; } &&
12564          { ac_try='test -s conftest$ac_exeext'
12565   { (case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_try") 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_cv_search_dlopen=$ac_res
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579
12580 fi
12581
12582 rm -f core conftest.err conftest.$ac_objext \
12583       conftest$ac_exeext
12584   if test "${ac_cv_search_dlopen+set}" = set; then
12585   break
12586 fi
12587 done
12588 if test "${ac_cv_search_dlopen+set}" = set; then
12589   :
12590 else
12591   ac_cv_search_dlopen=no
12592 fi
12593 rm conftest.$ac_ext
12594 LIBS=$ac_func_search_save_LIBS
12595 fi
12596 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12597 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12598 ac_res=$ac_cv_search_dlopen
12599 if test "$ac_res" != no; then
12600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12601
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_DLOPEN 1
12604 _ACEOF
12605
12606 else
12607   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12608 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12609 fi
12610
12611
12612 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12613 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12614 if test "${ac_cv_search_clock_gettime+set}" = set; then
12615   echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617   ac_func_search_save_LIBS=$LIBS
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624
12625 /* Override any GCC internal prototype to avoid an error.
12626    Use char because int might match the return type of a GCC
12627    builtin and then its argument prototype would still apply.  */
12628 #ifdef __cplusplus
12629 extern "C"
12630 #endif
12631 char clock_gettime ();
12632 int
12633 main ()
12634 {
12635 return clock_gettime ();
12636   ;
12637   return 0;
12638 }
12639 _ACEOF
12640 for ac_lib in '' rt; do
12641   if test -z "$ac_lib"; then
12642     ac_res="none required"
12643   else
12644     ac_res=-l$ac_lib
12645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12646   fi
12647   rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (ac_try="$ac_link"
12649 case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_link") 2>conftest.er1
12655   ac_status=$?
12656   grep -v '^ *+' conftest.er1 >conftest.err
12657   rm -f conftest.er1
12658   cat conftest.err >&5
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } &&
12661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12662   { (case "(($ac_try" in
12663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664   *) ac_try_echo=$ac_try;;
12665 esac
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667   (eval "$ac_try") 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; } &&
12671          { ac_try='test -s conftest$ac_exeext'
12672   { (case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677   (eval "$ac_try") 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; }; then
12681   ac_cv_search_clock_gettime=$ac_res
12682 else
12683   echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12685
12686
12687 fi
12688
12689 rm -f core conftest.err conftest.$ac_objext \
12690       conftest$ac_exeext
12691   if test "${ac_cv_search_clock_gettime+set}" = set; then
12692   break
12693 fi
12694 done
12695 if test "${ac_cv_search_clock_gettime+set}" = set; then
12696   :
12697 else
12698   ac_cv_search_clock_gettime=no
12699 fi
12700 rm conftest.$ac_ext
12701 LIBS=$ac_func_search_save_LIBS
12702 fi
12703 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12704 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12705 ac_res=$ac_cv_search_clock_gettime
12706 if test "$ac_res" != no; then
12707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12708
12709 fi
12710
12711
12712 if test "$llvm_cv_enable_libffi" = "yes" ; then
12713   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12714 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12715 if test "${ac_cv_search_ffi_call+set}" = set; then
12716   echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718   ac_func_search_save_LIBS=$LIBS
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725
12726 /* Override any GCC internal prototype to avoid an error.
12727    Use char because int might match the return type of a GCC
12728    builtin and then its argument prototype would still apply.  */
12729 #ifdef __cplusplus
12730 extern "C"
12731 #endif
12732 char ffi_call ();
12733 int
12734 main ()
12735 {
12736 return ffi_call ();
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 for ac_lib in '' ffi; do
12742   if test -z "$ac_lib"; then
12743     ac_res="none required"
12744   else
12745     ac_res=-l$ac_lib
12746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12747   fi
12748   rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (ac_try="$ac_link"
12750 case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_link") 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } &&
12762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12763   { (case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_try") 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; } &&
12772          { ac_try='test -s conftest$ac_exeext'
12773   { (case "(($ac_try" in
12774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775   *) ac_try_echo=$ac_try;;
12776 esac
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778   (eval "$ac_try") 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; }; then
12782   ac_cv_search_ffi_call=$ac_res
12783 else
12784   echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787
12788 fi
12789
12790 rm -f core conftest.err conftest.$ac_objext \
12791       conftest$ac_exeext
12792   if test "${ac_cv_search_ffi_call+set}" = set; then
12793   break
12794 fi
12795 done
12796 if test "${ac_cv_search_ffi_call+set}" = set; then
12797   :
12798 else
12799   ac_cv_search_ffi_call=no
12800 fi
12801 rm conftest.$ac_ext
12802 LIBS=$ac_func_search_save_LIBS
12803 fi
12804 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12805 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12806 ac_res=$ac_cv_search_ffi_call
12807 if test "$ac_res" != no; then
12808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12809
12810 cat >>confdefs.h <<\_ACEOF
12811 #define HAVE_FFI_CALL 1
12812 _ACEOF
12813
12814 else
12815   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12816 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12817    { (exit 1); exit 1; }; }
12818 fi
12819
12820 fi
12821
12822 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12823 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12824 if test "${ac_cv_search_mallinfo+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   ac_func_search_save_LIBS=$LIBS
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834
12835 /* Override any GCC internal prototype to avoid an error.
12836    Use char because int might match the return type of a GCC
12837    builtin and then its argument prototype would still apply.  */
12838 #ifdef __cplusplus
12839 extern "C"
12840 #endif
12841 char mallinfo ();
12842 int
12843 main ()
12844 {
12845 return mallinfo ();
12846   ;
12847   return 0;
12848 }
12849 _ACEOF
12850 for ac_lib in '' malloc; do
12851   if test -z "$ac_lib"; then
12852     ac_res="none required"
12853   else
12854     ac_res=-l$ac_lib
12855     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12856   fi
12857   rm -f conftest.$ac_objext conftest$ac_exeext
12858 if { (ac_try="$ac_link"
12859 case "(($ac_try" in
12860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861   *) ac_try_echo=$ac_try;;
12862 esac
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864   (eval "$ac_link") 2>conftest.er1
12865   ac_status=$?
12866   grep -v '^ *+' conftest.er1 >conftest.err
12867   rm -f conftest.er1
12868   cat conftest.err >&5
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); } &&
12871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12872   { (case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877   (eval "$ac_try") 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); }; } &&
12881          { ac_try='test -s conftest$ac_exeext'
12882   { (case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_try") 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; }; then
12891   ac_cv_search_mallinfo=$ac_res
12892 else
12893   echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896
12897 fi
12898
12899 rm -f core conftest.err conftest.$ac_objext \
12900       conftest$ac_exeext
12901   if test "${ac_cv_search_mallinfo+set}" = set; then
12902   break
12903 fi
12904 done
12905 if test "${ac_cv_search_mallinfo+set}" = set; then
12906   :
12907 else
12908   ac_cv_search_mallinfo=no
12909 fi
12910 rm conftest.$ac_ext
12911 LIBS=$ac_func_search_save_LIBS
12912 fi
12913 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12914 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12915 ac_res=$ac_cv_search_mallinfo
12916 if test "$ac_res" != no; then
12917   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12918
12919 cat >>confdefs.h <<\_ACEOF
12920 #define HAVE_MALLINFO 1
12921 _ACEOF
12922
12923 fi
12924
12925
12926 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12927
12928 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12929 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12930 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12931   echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933   ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-lpthread  $LIBS"
12935 cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941
12942 /* Override any GCC internal prototype to avoid an error.
12943    Use char because int might match the return type of a GCC
12944    builtin and then its argument prototype would still apply.  */
12945 #ifdef __cplusplus
12946 extern "C"
12947 #endif
12948 char pthread_mutex_init ();
12949 int
12950 main ()
12951 {
12952 return pthread_mutex_init ();
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_link") 2>conftest.er1
12965   ac_status=$?
12966   grep -v '^ *+' conftest.er1 >conftest.err
12967   rm -f conftest.er1
12968   cat conftest.err >&5
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972   { (case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_try") 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; } &&
12981          { ac_try='test -s conftest$ac_exeext'
12982   { (case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_try") 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   ac_cv_lib_pthread_pthread_mutex_init=yes
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996         ac_cv_lib_pthread_pthread_mutex_init=no
12997 fi
12998
12999 rm -f core conftest.err conftest.$ac_objext \
13000       conftest$ac_exeext conftest.$ac_ext
13001 LIBS=$ac_check_lib_save_LIBS
13002 fi
13003 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13004 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13005 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13006   cat >>confdefs.h <<_ACEOF
13007 #define HAVE_LIBPTHREAD 1
13008 _ACEOF
13009
13010   LIBS="-lpthread $LIBS"
13011
13012 fi
13013
13014   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13015 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13016 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   ac_func_search_save_LIBS=$LIBS
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026
13027 /* Override any GCC internal prototype to avoid an error.
13028    Use char because int might match the return type of a GCC
13029    builtin and then its argument prototype would still apply.  */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 char pthread_mutex_lock ();
13034 int
13035 main ()
13036 {
13037 return pthread_mutex_lock ();
13038   ;
13039   return 0;
13040 }
13041 _ACEOF
13042 for ac_lib in '' pthread; do
13043   if test -z "$ac_lib"; then
13044     ac_res="none required"
13045   else
13046     ac_res=-l$ac_lib
13047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13048   fi
13049   rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053   *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056   (eval "$ac_link") 2>conftest.er1
13057   ac_status=$?
13058   grep -v '^ *+' conftest.er1 >conftest.err
13059   rm -f conftest.er1
13060   cat conftest.err >&5
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } &&
13063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064   { (case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_try") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; } &&
13073          { ac_try='test -s conftest$ac_exeext'
13074   { (case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_try") 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083   ac_cv_search_pthread_mutex_lock=$ac_res
13084 else
13085   echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13087
13088
13089 fi
13090
13091 rm -f core conftest.err conftest.$ac_objext \
13092       conftest$ac_exeext
13093   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13094   break
13095 fi
13096 done
13097 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13098   :
13099 else
13100   ac_cv_search_pthread_mutex_lock=no
13101 fi
13102 rm conftest.$ac_ext
13103 LIBS=$ac_func_search_save_LIBS
13104 fi
13105 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13106 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13107 ac_res=$ac_cv_search_pthread_mutex_lock
13108 if test "$ac_res" != no; then
13109   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13110
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_PTHREAD_MUTEX_LOCK 1
13113 _ACEOF
13114
13115 fi
13116
13117   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13118 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13119 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   ac_func_search_save_LIBS=$LIBS
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h.  */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h.  */
13129
13130 /* Override any GCC internal prototype to avoid an error.
13131    Use char because int might match the return type of a GCC
13132    builtin and then its argument prototype would still apply.  */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char pthread_rwlock_init ();
13137 int
13138 main ()
13139 {
13140 return pthread_rwlock_init ();
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 for ac_lib in '' pthread; do
13146   if test -z "$ac_lib"; then
13147     ac_res="none required"
13148   else
13149     ac_res=-l$ac_lib
13150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13151   fi
13152   rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156   *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159   (eval "$ac_link") 2>conftest.er1
13160   ac_status=$?
13161   grep -v '^ *+' conftest.er1 >conftest.err
13162   rm -f conftest.er1
13163   cat conftest.err >&5
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13167   { (case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_try") 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }; } &&
13176          { ac_try='test -s conftest$ac_exeext'
13177   { (case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_try") 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; }; then
13186   ac_cv_search_pthread_rwlock_init=$ac_res
13187 else
13188   echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191
13192 fi
13193
13194 rm -f core conftest.err conftest.$ac_objext \
13195       conftest$ac_exeext
13196   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13197   break
13198 fi
13199 done
13200 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13201   :
13202 else
13203   ac_cv_search_pthread_rwlock_init=no
13204 fi
13205 rm conftest.$ac_ext
13206 LIBS=$ac_func_search_save_LIBS
13207 fi
13208 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13209 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13210 ac_res=$ac_cv_search_pthread_rwlock_init
13211 if test "$ac_res" != no; then
13212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13213
13214 cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_PTHREAD_RWLOCK_INIT 1
13216 _ACEOF
13217
13218 fi
13219
13220   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13221 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13222 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13223   echo $ECHO_N "(cached) $ECHO_C" >&6
13224 else
13225   ac_func_search_save_LIBS=$LIBS
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h.  */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h.  */
13232
13233 /* Override any GCC internal prototype to avoid an error.
13234    Use char because int might match the return type of a GCC
13235    builtin and then its argument prototype would still apply.  */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 char pthread_getspecific ();
13240 int
13241 main ()
13242 {
13243 return pthread_getspecific ();
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 for ac_lib in '' pthread; do
13249   if test -z "$ac_lib"; then
13250     ac_res="none required"
13251   else
13252     ac_res=-l$ac_lib
13253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13254   fi
13255   rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_link") 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270   { (case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275   (eval "$ac_try") 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; } &&
13279          { ac_try='test -s conftest$ac_exeext'
13280   { (case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_try") 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }; then
13289   ac_cv_search_pthread_getspecific=$ac_res
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294
13295 fi
13296
13297 rm -f core conftest.err conftest.$ac_objext \
13298       conftest$ac_exeext
13299   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13300   break
13301 fi
13302 done
13303 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13304   :
13305 else
13306   ac_cv_search_pthread_getspecific=no
13307 fi
13308 rm conftest.$ac_ext
13309 LIBS=$ac_func_search_save_LIBS
13310 fi
13311 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13312 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13313 ac_res=$ac_cv_search_pthread_getspecific
13314 if test "$ac_res" != no; then
13315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13316
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_PTHREAD_GETSPECIFIC 1
13319 _ACEOF
13320
13321 fi
13322
13323 fi
13324
13325
13326 # Check whether --with-udis86 was given.
13327 if test "${with_udis86+set}" = set; then
13328   withval=$with_udis86;
13329       USE_UDIS86=1
13330
13331       case "$withval" in
13332         /usr/lib|yes) ;;
13333         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13334       esac
13335
13336 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13337 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13338 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   ac_check_lib_save_LIBS=$LIBS
13342 LIBS="-ludis86  $LIBS"
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 /* Override any GCC internal prototype to avoid an error.
13351    Use char because int might match the return type of a GCC
13352    builtin and then its argument prototype would still apply.  */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char ud_init ();
13357 int
13358 main ()
13359 {
13360 return ud_init ();
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369   *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372   (eval "$ac_link") 2>conftest.er1
13373   ac_status=$?
13374   grep -v '^ *+' conftest.er1 >conftest.err
13375   rm -f conftest.er1
13376   cat conftest.err >&5
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } &&
13379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380   { (case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_try") 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; } &&
13389          { ac_try='test -s conftest$ac_exeext'
13390   { (case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_try") 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   ac_cv_lib_udis86_ud_init=yes
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404         ac_cv_lib_udis86_ud_init=no
13405 fi
13406
13407 rm -f core conftest.err conftest.$ac_objext \
13408       conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13410 fi
13411 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13412 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13413 if test $ac_cv_lib_udis86_ud_init = yes; then
13414   cat >>confdefs.h <<_ACEOF
13415 #define HAVE_LIBUDIS86 1
13416 _ACEOF
13417
13418   LIBS="-ludis86 $LIBS"
13419
13420 else
13421
13422         echo "Error! You need to have libudis86 around."
13423         exit -1
13424
13425 fi
13426
13427
13428 else
13429   USE_UDIS86=0
13430
13431 fi
13432
13433
13434 cat >>confdefs.h <<_ACEOF
13435 #define USE_UDIS86 $USE_UDIS86
13436 _ACEOF
13437
13438
13439
13440 # Check whether --with-oprofile was given.
13441 if test "${with_oprofile+set}" = set; then
13442   withval=$with_oprofile;
13443       USE_OPROFILE=1
13444
13445       case "$withval" in
13446         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13447         no) llvm_cv_oppath=
13448             USE_OPROFILE=0
13449  ;;
13450         *) llvm_cv_oppath="${withval}/lib/oprofile"
13451            CPPFLAGS="-I${withval}/include";;
13452       esac
13453       case $llvm_cv_os_type in
13454         Linux)
13455           if test -n "$llvm_cv_oppath" ; then
13456             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13457                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13458 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13459 if test "${ac_cv_search_bfd_init+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   ac_func_search_save_LIBS=$LIBS
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h.  */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h.  */
13469
13470 /* Override any GCC internal prototype to avoid an error.
13471    Use char because int might match the return type of a GCC
13472    builtin and then its argument prototype would still apply.  */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 char bfd_init ();
13477 int
13478 main ()
13479 {
13480 return bfd_init ();
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 for ac_lib in '' bfd; do
13486   if test -z "$ac_lib"; then
13487     ac_res="none required"
13488   else
13489     ac_res=-l$ac_lib
13490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13491   fi
13492   rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_link") 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } &&
13506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507   { (case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_try") 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; } &&
13516          { ac_try='test -s conftest$ac_exeext'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; }; then
13526   ac_cv_search_bfd_init=$ac_res
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531
13532 fi
13533
13534 rm -f core conftest.err conftest.$ac_objext \
13535       conftest$ac_exeext
13536   if test "${ac_cv_search_bfd_init+set}" = set; then
13537   break
13538 fi
13539 done
13540 if test "${ac_cv_search_bfd_init+set}" = set; then
13541   :
13542 else
13543   ac_cv_search_bfd_init=no
13544 fi
13545 rm conftest.$ac_ext
13546 LIBS=$ac_func_search_save_LIBS
13547 fi
13548 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13549 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13550 ac_res=$ac_cv_search_bfd_init
13551 if test "$ac_res" != no; then
13552   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13553
13554 fi
13555
13556             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13557 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13558 if test "${ac_cv_search_op_open_agent+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   ac_func_search_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570    Use char because int might match the return type of a GCC
13571    builtin and then its argument prototype would still apply.  */
13572 #ifdef __cplusplus
13573 extern "C"
13574 #endif
13575 char op_open_agent ();
13576 int
13577 main ()
13578 {
13579 return op_open_agent ();
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 for ac_lib in '' opagent; do
13585   if test -z "$ac_lib"; then
13586     ac_res="none required"
13587   else
13588     ac_res=-l$ac_lib
13589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13590   fi
13591   rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (ac_try="$ac_link"
13593 case "(($ac_try" in
13594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595   *) ac_try_echo=$ac_try;;
13596 esac
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598   (eval "$ac_link") 2>conftest.er1
13599   ac_status=$?
13600   grep -v '^ *+' conftest.er1 >conftest.err
13601   rm -f conftest.er1
13602   cat conftest.err >&5
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } &&
13605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606   { (case "(($ac_try" in
13607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608   *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611   (eval "$ac_try") 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; } &&
13615          { ac_try='test -s conftest$ac_exeext'
13616   { (case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_try") 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }; then
13625   ac_cv_search_op_open_agent=$ac_res
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630
13631 fi
13632
13633 rm -f core conftest.err conftest.$ac_objext \
13634       conftest$ac_exeext
13635   if test "${ac_cv_search_op_open_agent+set}" = set; then
13636   break
13637 fi
13638 done
13639 if test "${ac_cv_search_op_open_agent+set}" = set; then
13640   :
13641 else
13642   ac_cv_search_op_open_agent=no
13643 fi
13644 rm conftest.$ac_ext
13645 LIBS=$ac_func_search_save_LIBS
13646 fi
13647 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13648 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13649 ac_res=$ac_cv_search_op_open_agent
13650 if test "$ac_res" != no; then
13651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13652
13653 else
13654
13655               echo "Error! You need to have libopagent around."
13656               exit -1
13657
13658 fi
13659
13660             if test "${ac_cv_header_opagent_h+set}" = set; then
13661   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13662 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13663 if test "${ac_cv_header_opagent_h+set}" = set; then
13664   echo $ECHO_N "(cached) $ECHO_C" >&6
13665 fi
13666 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13667 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13668 else
13669   # Is the header compilable?
13670 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13671 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h.  */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h.  */
13678 $ac_includes_default
13679 #include <opagent.h>
13680 _ACEOF
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685   *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688   (eval "$ac_compile") 2>conftest.er1
13689   ac_status=$?
13690   grep -v '^ *+' conftest.er1 >conftest.err
13691   rm -f conftest.er1
13692   cat conftest.err >&5
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } &&
13695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13696   { (case "(($ac_try" in
13697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698   *) ac_try_echo=$ac_try;;
13699 esac
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701   (eval "$ac_try") 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; } &&
13705          { ac_try='test -s conftest.$ac_objext'
13706   { (case "(($ac_try" in
13707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708   *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711   (eval "$ac_try") 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); }; }; then
13715   ac_header_compiler=yes
13716 else
13717   echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13719
13720         ac_header_compiler=no
13721 fi
13722
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13725 echo "${ECHO_T}$ac_header_compiler" >&6; }
13726
13727 # Is the header present?
13728 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13729 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 #include <opagent.h>
13737 _ACEOF
13738 if { (ac_try="$ac_cpp conftest.$ac_ext"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } >/dev/null; then
13751   if test -s conftest.err; then
13752     ac_cpp_err=$ac_c_preproc_warn_flag
13753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13754   else
13755     ac_cpp_err=
13756   fi
13757 else
13758   ac_cpp_err=yes
13759 fi
13760 if test -z "$ac_cpp_err"; then
13761   ac_header_preproc=yes
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766   ac_header_preproc=no
13767 fi
13768
13769 rm -f conftest.err conftest.$ac_ext
13770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13771 echo "${ECHO_T}$ac_header_preproc" >&6; }
13772
13773 # So?  What about this header?
13774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13775   yes:no: )
13776     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13777 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13778     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13779 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13780     ac_header_preproc=yes
13781     ;;
13782   no:yes:* )
13783     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13784 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13785     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13786 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13787     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13788 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13789     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13790 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13791     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13792 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13793     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13794 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13795     ( cat <<\_ASBOX
13796 ## ------------------------------------ ##
13797 ## Report this to http://llvm.org/bugs/ ##
13798 ## ------------------------------------ ##
13799 _ASBOX
13800      ) | sed "s/^/$as_me: WARNING:     /" >&2
13801     ;;
13802 esac
13803 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13804 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13805 if test "${ac_cv_header_opagent_h+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808   ac_cv_header_opagent_h=$ac_header_preproc
13809 fi
13810 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13811 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13812
13813 fi
13814 if test $ac_cv_header_opagent_h = yes; then
13815   :
13816 else
13817
13818               echo "Error! You need to have opagent.h around."
13819               exit -1
13820
13821 fi
13822
13823
13824           fi ;;
13825         *)
13826           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13827 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13828    { (exit 1); exit 1; }; } ;;
13829       esac
13830
13831 else
13832
13833       USE_OPROFILE=0
13834
13835
13836 fi
13837
13838
13839 cat >>confdefs.h <<_ACEOF
13840 #define LLVM_USE_OPROFILE $USE_OPROFILE
13841 _ACEOF
13842
13843
13844
13845 # Check whether --with-intel-jitevents was given.
13846 if test "${with_intel_jitevents+set}" = set; then
13847   withval=$with_intel_jitevents;
13848        case "$withval" in
13849           yes) USE_INTEL_JITEVENTS=1
13850 ;;
13851           no)  USE_INTEL_JITEVENTS=0
13852 ;;
13853           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13854 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13855    { (exit 1); exit 1; }; };;
13856        esac
13857
13858       case $llvm_cv_os_type in
13859         Linux|Win32|Cygwin|MingW) ;;
13860         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13861 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13862    { (exit 1); exit 1; }; };;
13863       esac
13864
13865       case "$llvm_cv_target_arch" in
13866         x86|x86_64) ;;
13867         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13868 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13869    { (exit 1); exit 1; }; };;
13870       esac
13871
13872 else
13873
13874       USE_INTEL_JITEVENTS=0
13875
13876
13877 fi
13878
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13882 _ACEOF
13883
13884
13885 for ac_prog in xml2-config
13886 do
13887   # Extract the first word of "$ac_prog", so it can be a program name with args.
13888 set dummy $ac_prog; ac_word=$2
13889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13891 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   if test -n "$XML2CONFIG"; then
13895   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13896 else
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13899 do
13900   IFS=$as_save_IFS
13901   test -z "$as_dir" && as_dir=.
13902   for ac_exec_ext in '' $ac_executable_extensions; do
13903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13904     ac_cv_prog_XML2CONFIG="$ac_prog"
13905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13906     break 2
13907   fi
13908 done
13909 done
13910 IFS=$as_save_IFS
13911
13912 fi
13913 fi
13914 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13915 if test -n "$XML2CONFIG"; then
13916   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13917 echo "${ECHO_T}$XML2CONFIG" >&6; }
13918 else
13919   { echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6; }
13921 fi
13922
13923
13924   test -n "$XML2CONFIG" && break
13925 done
13926
13927
13928 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13929 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13930 if test "x$XML2CONFIG" = "x"; then
13931  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13932 echo "${ECHO_T}xml2-config not found" >&6; }
13933 else
13934  LIBXML2_INC=`$XML2CONFIG --cflags`
13935  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13936 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13937  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13938 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13939 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lxml2  $LIBS"
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950
13951 /* Override any GCC internal prototype to avoid an error.
13952    Use char because int might match the return type of a GCC
13953    builtin and then its argument prototype would still apply.  */
13954 #ifdef __cplusplus
13955 extern "C"
13956 #endif
13957 char xmlReadFile ();
13958 int
13959 main ()
13960 {
13961 return xmlReadFile ();
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (ac_try="$ac_link"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_link") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981   { (case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_try") 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest$ac_exeext'
13991   { (case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_try") 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_lib_xml2_xmlReadFile=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_cv_lib_xml2_xmlReadFile=no
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext \
14009       conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14011 fi
14012 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14013 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14014 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14015
14016 cat >>confdefs.h <<\_ACEOF
14017 #define CLANG_HAVE_LIBXML 1
14018 _ACEOF
14019
14020                                 LIBXML2_LIBS="-lxml2"
14021 fi
14022
14023 fi
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033 ac_header_dirent=no
14034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14035   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14036 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 #include <sys/types.h>
14048 #include <$ac_hdr>
14049
14050 int
14051 main ()
14052 {
14053 if ((DIR *) 0)
14054 return 0;
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (ac_try="$ac_compile"
14061 case "(($ac_try" in
14062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063   *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066   (eval "$ac_compile") 2>conftest.er1
14067   ac_status=$?
14068   grep -v '^ *+' conftest.er1 >conftest.err
14069   rm -f conftest.er1
14070   cat conftest.err >&5
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); } &&
14073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14074   { (case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079   (eval "$ac_try") 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); }; } &&
14083          { ac_try='test -s conftest.$ac_objext'
14084   { (case "(($ac_try" in
14085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086   *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089   (eval "$ac_try") 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; }; then
14093   eval "$as_ac_Header=yes"
14094 else
14095   echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098         eval "$as_ac_Header=no"
14099 fi
14100
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 fi
14103 ac_res=`eval echo '${'$as_ac_Header'}'`
14104                { echo "$as_me:$LINENO: result: $ac_res" >&5
14105 echo "${ECHO_T}$ac_res" >&6; }
14106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107   cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14109 _ACEOF
14110
14111 ac_header_dirent=$ac_hdr; break
14112 fi
14113
14114 done
14115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14116 if test $ac_header_dirent = dirent.h; then
14117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119 if test "${ac_cv_search_opendir+set}" = set; then
14120   echo $ECHO_N "(cached) $ECHO_C" >&6
14121 else
14122   ac_func_search_save_LIBS=$LIBS
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129
14130 /* Override any GCC internal prototype to avoid an error.
14131    Use char because int might match the return type of a GCC
14132    builtin and then its argument prototype would still apply.  */
14133 #ifdef __cplusplus
14134 extern "C"
14135 #endif
14136 char opendir ();
14137 int
14138 main ()
14139 {
14140 return opendir ();
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 for ac_lib in '' dir; do
14146   if test -z "$ac_lib"; then
14147     ac_res="none required"
14148   else
14149     ac_res=-l$ac_lib
14150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14151   fi
14152   rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (ac_try="$ac_link"
14154 case "(($ac_try" in
14155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156   *) ac_try_echo=$ac_try;;
14157 esac
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159   (eval "$ac_link") 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167   { (case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_try") 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); }; } &&
14176          { ac_try='test -s conftest$ac_exeext'
14177   { (case "(($ac_try" in
14178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179   *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182   (eval "$ac_try") 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; }; then
14186   ac_cv_search_opendir=$ac_res
14187 else
14188   echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191
14192 fi
14193
14194 rm -f core conftest.err conftest.$ac_objext \
14195       conftest$ac_exeext
14196   if test "${ac_cv_search_opendir+set}" = set; then
14197   break
14198 fi
14199 done
14200 if test "${ac_cv_search_opendir+set}" = set; then
14201   :
14202 else
14203   ac_cv_search_opendir=no
14204 fi
14205 rm conftest.$ac_ext
14206 LIBS=$ac_func_search_save_LIBS
14207 fi
14208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14210 ac_res=$ac_cv_search_opendir
14211 if test "$ac_res" != no; then
14212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14213
14214 fi
14215
14216 else
14217   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14219 if test "${ac_cv_search_opendir+set}" = set; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   ac_func_search_save_LIBS=$LIBS
14223 cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229
14230 /* Override any GCC internal prototype to avoid an error.
14231    Use char because int might match the return type of a GCC
14232    builtin and then its argument prototype would still apply.  */
14233 #ifdef __cplusplus
14234 extern "C"
14235 #endif
14236 char opendir ();
14237 int
14238 main ()
14239 {
14240 return opendir ();
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 for ac_lib in '' x; do
14246   if test -z "$ac_lib"; then
14247     ac_res="none required"
14248   else
14249     ac_res=-l$ac_lib
14250     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14251   fi
14252   rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256   *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259   (eval "$ac_link") 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } &&
14266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267   { (case "(($ac_try" in
14268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269   *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272   (eval "$ac_try") 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; } &&
14276          { ac_try='test -s conftest$ac_exeext'
14277   { (case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_try") 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; }; then
14286   ac_cv_search_opendir=$ac_res
14287 else
14288   echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291
14292 fi
14293
14294 rm -f core conftest.err conftest.$ac_objext \
14295       conftest$ac_exeext
14296   if test "${ac_cv_search_opendir+set}" = set; then
14297   break
14298 fi
14299 done
14300 if test "${ac_cv_search_opendir+set}" = set; then
14301   :
14302 else
14303   ac_cv_search_opendir=no
14304 fi
14305 rm conftest.$ac_ext
14306 LIBS=$ac_func_search_save_LIBS
14307 fi
14308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14310 ac_res=$ac_cv_search_opendir
14311 if test "$ac_res" != no; then
14312   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14313
14314 fi
14315
14316 fi
14317
14318 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14319 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14320 if test "${ac_cv_header_mmap_anon+set}" = set; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323    ac_ext=c
14324 ac_cpp='$CPP $CPPFLAGS'
14325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328
14329   cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335 #include <sys/mman.h>
14336 #include <unistd.h>
14337 #include <fcntl.h>
14338 int
14339 main ()
14340 {
14341 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353   (eval "$ac_compile") 2>conftest.er1
14354   ac_status=$?
14355   grep -v '^ *+' conftest.er1 >conftest.err
14356   rm -f conftest.er1
14357   cat conftest.err >&5
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); } &&
14360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361   { (case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_try") 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; } &&
14370          { ac_try='test -s conftest.$ac_objext'
14371   { (case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_try") 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; }; then
14380   ac_cv_header_mmap_anon=yes
14381 else
14382   echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385         ac_cv_header_mmap_anon=no
14386 fi
14387
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389   ac_ext=c
14390 ac_cpp='$CPP $CPPFLAGS'
14391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394
14395
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14398 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14399 if test "$ac_cv_header_mmap_anon" = yes; then
14400
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_MMAP_ANONYMOUS 1
14403 _ACEOF
14404
14405 fi
14406
14407 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14408 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14409 if test "${ac_cv_header_stat_broken+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h.  */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h.  */
14418 #include <sys/types.h>
14419 #include <sys/stat.h>
14420
14421 #if defined S_ISBLK && defined S_IFDIR
14422 # if S_ISBLK (S_IFDIR)
14423 You lose.
14424 # endif
14425 #endif
14426
14427 #if defined S_ISBLK && defined S_IFCHR
14428 # if S_ISBLK (S_IFCHR)
14429 You lose.
14430 # endif
14431 #endif
14432
14433 #if defined S_ISLNK && defined S_IFREG
14434 # if S_ISLNK (S_IFREG)
14435 You lose.
14436 # endif
14437 #endif
14438
14439 #if defined S_ISSOCK && defined S_IFREG
14440 # if S_ISSOCK (S_IFREG)
14441 You lose.
14442 # endif
14443 #endif
14444
14445 _ACEOF
14446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447   $EGREP "You lose" >/dev/null 2>&1; then
14448   ac_cv_header_stat_broken=yes
14449 else
14450   ac_cv_header_stat_broken=no
14451 fi
14452 rm -f conftest*
14453
14454 fi
14455 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14456 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14457 if test $ac_cv_header_stat_broken = yes; then
14458
14459 cat >>confdefs.h <<\_ACEOF
14460 #define STAT_MACROS_BROKEN 1
14461 _ACEOF
14462
14463 fi
14464
14465 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14466 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14467 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476 #include <sys/types.h>
14477 #include <sys/wait.h>
14478 #ifndef WEXITSTATUS
14479 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14480 #endif
14481 #ifndef WIFEXITED
14482 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14483 #endif
14484
14485 int
14486 main ()
14487 {
14488   int s;
14489   wait (&s);
14490   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext
14496 if { (ac_try="$ac_compile"
14497 case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_compile") 2>conftest.er1
14503   ac_status=$?
14504   grep -v '^ *+' conftest.er1 >conftest.err
14505   rm -f conftest.er1
14506   cat conftest.err >&5
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } &&
14509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510   { (case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_try") 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_try") 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); }; }; then
14529   ac_cv_header_sys_wait_h=yes
14530 else
14531   echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534         ac_cv_header_sys_wait_h=no
14535 fi
14536
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14540 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14541 if test $ac_cv_header_sys_wait_h = yes; then
14542
14543 cat >>confdefs.h <<\_ACEOF
14544 #define HAVE_SYS_WAIT_H 1
14545 _ACEOF
14546
14547 fi
14548
14549 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14550 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14551 if test "${ac_cv_header_time+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560 #include <sys/types.h>
14561 #include <sys/time.h>
14562 #include <time.h>
14563
14564 int
14565 main ()
14566 {
14567 if ((struct tm *) 0)
14568 return 0;
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580   (eval "$ac_compile") 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } &&
14587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588   { (case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_try") 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; } &&
14597          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14607   ac_cv_header_time=yes
14608 else
14609   echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612         ac_cv_header_time=no
14613 fi
14614
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 fi
14617 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14618 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14619 if test $ac_cv_header_time = yes; then
14620
14621 cat >>confdefs.h <<\_ACEOF
14622 #define TIME_WITH_SYS_TIME 1
14623 _ACEOF
14624
14625 fi
14626
14627
14628
14629
14630
14631
14632
14633
14634 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14635 do
14636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14638   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 fi
14643 ac_res=`eval echo '${'$as_ac_Header'}'`
14644                { echo "$as_me:$LINENO: result: $ac_res" >&5
14645 echo "${ECHO_T}$ac_res" >&6; }
14646 else
14647   # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656 $ac_includes_default
14657 #include <$ac_header>
14658 _ACEOF
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663   *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666   (eval "$ac_compile") 2>conftest.er1
14667   ac_status=$?
14668   grep -v '^ *+' conftest.er1 >conftest.err
14669   rm -f conftest.er1
14670   cat conftest.err >&5
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } &&
14673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14674   { (case "(($ac_try" in
14675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676   *) ac_try_echo=$ac_try;;
14677 esac
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679   (eval "$ac_try") 2>&5
14680   ac_status=$?
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); }; } &&
14683          { ac_try='test -s conftest.$ac_objext'
14684   { (case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_try") 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693   ac_header_compiler=yes
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698         ac_header_compiler=no
14699 fi
14700
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14703 echo "${ECHO_T}$ac_header_compiler" >&6; }
14704
14705 # Is the header present?
14706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 #include <$ac_header>
14715 _ACEOF
14716 if { (ac_try="$ac_cpp conftest.$ac_ext"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } >/dev/null; then
14729   if test -s conftest.err; then
14730     ac_cpp_err=$ac_c_preproc_warn_flag
14731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14732   else
14733     ac_cpp_err=
14734   fi
14735 else
14736   ac_cpp_err=yes
14737 fi
14738 if test -z "$ac_cpp_err"; then
14739   ac_header_preproc=yes
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744   ac_header_preproc=no
14745 fi
14746
14747 rm -f conftest.err conftest.$ac_ext
14748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14749 echo "${ECHO_T}$ac_header_preproc" >&6; }
14750
14751 # So?  What about this header?
14752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14753   yes:no: )
14754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14758     ac_header_preproc=yes
14759     ;;
14760   no:yes:* )
14761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14773     ( cat <<\_ASBOX
14774 ## ------------------------------------ ##
14775 ## Report this to http://llvm.org/bugs/ ##
14776 ## ------------------------------------ ##
14777 _ASBOX
14778      ) | sed "s/^/$as_me: WARNING:     /" >&2
14779     ;;
14780 esac
14781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   eval "$as_ac_Header=\$ac_header_preproc"
14787 fi
14788 ac_res=`eval echo '${'$as_ac_Header'}'`
14789                { echo "$as_me:$LINENO: result: $ac_res" >&5
14790 echo "${ECHO_T}$ac_res" >&6; }
14791
14792 fi
14793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14794   cat >>confdefs.h <<_ACEOF
14795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14796 _ACEOF
14797
14798 fi
14799
14800 done
14801
14802
14803
14804
14805
14806
14807
14808 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14809 do
14810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14815   echo $ECHO_N "(cached) $ECHO_C" >&6
14816 fi
14817 ac_res=`eval echo '${'$as_ac_Header'}'`
14818                { echo "$as_me:$LINENO: result: $ac_res" >&5
14819 echo "${ECHO_T}$ac_res" >&6; }
14820 else
14821   # Is the header compilable?
14822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h.  */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h.  */
14830 $ac_includes_default
14831 #include <$ac_header>
14832 _ACEOF
14833 rm -f conftest.$ac_objext
14834 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848   { (case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_try") 2>&5
14854   ac_status=$?
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); }; } &&
14857          { ac_try='test -s conftest.$ac_objext'
14858   { (case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_try") 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   ac_header_compiler=yes
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872         ac_header_compiler=no
14873 fi
14874
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14877 echo "${ECHO_T}$ac_header_compiler" >&6; }
14878
14879 # Is the header present?
14880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 #include <$ac_header>
14889 _ACEOF
14890 if { (ac_try="$ac_cpp conftest.$ac_ext"
14891 case "(($ac_try" in
14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893   *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } >/dev/null; then
14903   if test -s conftest.err; then
14904     ac_cpp_err=$ac_c_preproc_warn_flag
14905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14906   else
14907     ac_cpp_err=
14908   fi
14909 else
14910   ac_cpp_err=yes
14911 fi
14912 if test -z "$ac_cpp_err"; then
14913   ac_header_preproc=yes
14914 else
14915   echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918   ac_header_preproc=no
14919 fi
14920
14921 rm -f conftest.err conftest.$ac_ext
14922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14923 echo "${ECHO_T}$ac_header_preproc" >&6; }
14924
14925 # So?  What about this header?
14926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14927   yes:no: )
14928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14932     ac_header_preproc=yes
14933     ;;
14934   no:yes:* )
14935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14947     ( cat <<\_ASBOX
14948 ## ------------------------------------ ##
14949 ## Report this to http://llvm.org/bugs/ ##
14950 ## ------------------------------------ ##
14951 _ASBOX
14952      ) | sed "s/^/$as_me: WARNING:     /" >&2
14953     ;;
14954 esac
14955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960   eval "$as_ac_Header=\$ac_header_preproc"
14961 fi
14962 ac_res=`eval echo '${'$as_ac_Header'}'`
14963                { echo "$as_me:$LINENO: result: $ac_res" >&5
14964 echo "${ECHO_T}$ac_res" >&6; }
14965
14966 fi
14967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14968   cat >>confdefs.h <<_ACEOF
14969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14970 _ACEOF
14971
14972 fi
14973
14974 done
14975
14976
14977
14978 for ac_header in utime.h windows.h
14979 do
14980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14982   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 fi
14987 ac_res=`eval echo '${'$as_ac_Header'}'`
14988                { echo "$as_me:$LINENO: result: $ac_res" >&5
14989 echo "${ECHO_T}$ac_res" >&6; }
14990 else
14991   # Is the header compilable?
14992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 $ac_includes_default
15001 #include <$ac_header>
15002 _ACEOF
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007   *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010   (eval "$ac_compile") 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } &&
15017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018   { (case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023   (eval "$ac_try") 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; } &&
15027          { ac_try='test -s conftest.$ac_objext'
15028   { (case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_try") 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037   ac_header_compiler=yes
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042         ac_header_compiler=no
15043 fi
15044
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15047 echo "${ECHO_T}$ac_header_compiler" >&6; }
15048
15049 # Is the header present?
15050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h.  */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h.  */
15058 #include <$ac_header>
15059 _ACEOF
15060 if { (ac_try="$ac_cpp conftest.$ac_ext"
15061 case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15067   ac_status=$?
15068   grep -v '^ *+' conftest.er1 >conftest.err
15069   rm -f conftest.er1
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); } >/dev/null; then
15073   if test -s conftest.err; then
15074     ac_cpp_err=$ac_c_preproc_warn_flag
15075     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15076   else
15077     ac_cpp_err=
15078   fi
15079 else
15080   ac_cpp_err=yes
15081 fi
15082 if test -z "$ac_cpp_err"; then
15083   ac_header_preproc=yes
15084 else
15085   echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15087
15088   ac_header_preproc=no
15089 fi
15090
15091 rm -f conftest.err conftest.$ac_ext
15092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093 echo "${ECHO_T}$ac_header_preproc" >&6; }
15094
15095 # So?  What about this header?
15096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15097   yes:no: )
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15102     ac_header_preproc=yes
15103     ;;
15104   no:yes:* )
15105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15117     ( cat <<\_ASBOX
15118 ## ------------------------------------ ##
15119 ## Report this to http://llvm.org/bugs/ ##
15120 ## ------------------------------------ ##
15121 _ASBOX
15122      ) | sed "s/^/$as_me: WARNING:     /" >&2
15123     ;;
15124 esac
15125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   eval "$as_ac_Header=\$ac_header_preproc"
15131 fi
15132 ac_res=`eval echo '${'$as_ac_Header'}'`
15133                { echo "$as_me:$LINENO: result: $ac_res" >&5
15134 echo "${ECHO_T}$ac_res" >&6; }
15135
15136 fi
15137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15138   cat >>confdefs.h <<_ACEOF
15139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15140 _ACEOF
15141
15142 fi
15143
15144 done
15145
15146
15147
15148
15149
15150
15151 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15152 do
15153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 fi
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161                { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15163 else
15164   # Is the header compilable?
15165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 $ac_includes_default
15174 #include <$ac_header>
15175 _ACEOF
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_compile") 2>conftest.er1
15184   ac_status=$?
15185   grep -v '^ *+' conftest.er1 >conftest.err
15186   rm -f conftest.er1
15187   cat conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191   { (case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_try") 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest.$ac_objext'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_header_compiler=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215         ac_header_compiler=no
15216 fi
15217
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220 echo "${ECHO_T}$ac_header_compiler" >&6; }
15221
15222 # Is the header present?
15223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15225 cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 #include <$ac_header>
15232 _ACEOF
15233 if { (ac_try="$ac_cpp conftest.$ac_ext"
15234 case "(($ac_try" in
15235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236   *) ac_try_echo=$ac_try;;
15237 esac
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15240   ac_status=$?
15241   grep -v '^ *+' conftest.er1 >conftest.err
15242   rm -f conftest.er1
15243   cat conftest.err >&5
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } >/dev/null; then
15246   if test -s conftest.err; then
15247     ac_cpp_err=$ac_c_preproc_warn_flag
15248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15249   else
15250     ac_cpp_err=
15251   fi
15252 else
15253   ac_cpp_err=yes
15254 fi
15255 if test -z "$ac_cpp_err"; then
15256   ac_header_preproc=yes
15257 else
15258   echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261   ac_header_preproc=no
15262 fi
15263
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15267
15268 # So?  What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15270   yes:no: )
15271     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15275     ac_header_preproc=yes
15276     ;;
15277   no:yes:* )
15278     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15280     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15282     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15284     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15288     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15290     ( cat <<\_ASBOX
15291 ## ------------------------------------ ##
15292 ## Report this to http://llvm.org/bugs/ ##
15293 ## ------------------------------------ ##
15294 _ASBOX
15295      ) | sed "s/^/$as_me: WARNING:     /" >&2
15296     ;;
15297 esac
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303   eval "$as_ac_Header=\$ac_header_preproc"
15304 fi
15305 ac_res=`eval echo '${'$as_ac_Header'}'`
15306                { echo "$as_me:$LINENO: result: $ac_res" >&5
15307 echo "${ECHO_T}$ac_res" >&6; }
15308
15309 fi
15310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15311   cat >>confdefs.h <<_ACEOF
15312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15313 _ACEOF
15314
15315 fi
15316
15317 done
15318
15319
15320
15321
15322
15323 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15324 do
15325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330   echo $ECHO_N "(cached) $ECHO_C" >&6
15331 fi
15332 ac_res=`eval echo '${'$as_ac_Header'}'`
15333                { echo "$as_me:$LINENO: result: $ac_res" >&5
15334 echo "${ECHO_T}$ac_res" >&6; }
15335 else
15336   # Is the header compilable?
15337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h.  */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h.  */
15345 $ac_includes_default
15346 #include <$ac_header>
15347 _ACEOF
15348 rm -f conftest.$ac_objext
15349 if { (ac_try="$ac_compile"
15350 case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_compile") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } &&
15362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15363   { (case "(($ac_try" in
15364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365   *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368   (eval "$ac_try") 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); }; } &&
15372          { ac_try='test -s conftest.$ac_objext'
15373   { (case "(($ac_try" in
15374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375   *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378   (eval "$ac_try") 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; }; then
15382   ac_header_compiler=yes
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387         ac_header_compiler=no
15388 fi
15389
15390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15392 echo "${ECHO_T}$ac_header_compiler" >&6; }
15393
15394 # Is the header present?
15395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403 #include <$ac_header>
15404 _ACEOF
15405 if { (ac_try="$ac_cpp conftest.$ac_ext"
15406 case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } >/dev/null; then
15418   if test -s conftest.err; then
15419     ac_cpp_err=$ac_c_preproc_warn_flag
15420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15421   else
15422     ac_cpp_err=
15423   fi
15424 else
15425   ac_cpp_err=yes
15426 fi
15427 if test -z "$ac_cpp_err"; then
15428   ac_header_preproc=yes
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433   ac_header_preproc=no
15434 fi
15435
15436 rm -f conftest.err conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15438 echo "${ECHO_T}$ac_header_preproc" >&6; }
15439
15440 # So?  What about this header?
15441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15442   yes:no: )
15443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15447     ac_header_preproc=yes
15448     ;;
15449   no:yes:* )
15450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15462     ( cat <<\_ASBOX
15463 ## ------------------------------------ ##
15464 ## Report this to http://llvm.org/bugs/ ##
15465 ## ------------------------------------ ##
15466 _ASBOX
15467      ) | sed "s/^/$as_me: WARNING:     /" >&2
15468     ;;
15469 esac
15470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473   echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475   eval "$as_ac_Header=\$ac_header_preproc"
15476 fi
15477 ac_res=`eval echo '${'$as_ac_Header'}'`
15478                { echo "$as_me:$LINENO: result: $ac_res" >&5
15479 echo "${ECHO_T}$ac_res" >&6; }
15480
15481 fi
15482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15483   cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15485 _ACEOF
15486
15487 fi
15488
15489 done
15490
15491
15492 for ac_header in valgrind/valgrind.h
15493 do
15494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 fi
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502                { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504 else
15505   # Is the header compilable?
15506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514 $ac_includes_default
15515 #include <$ac_header>
15516 _ACEOF
15517 rm -f conftest.$ac_objext
15518 if { (ac_try="$ac_compile"
15519 case "(($ac_try" in
15520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521   *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524   (eval "$ac_compile") 2>conftest.er1
15525   ac_status=$?
15526   grep -v '^ *+' conftest.er1 >conftest.err
15527   rm -f conftest.er1
15528   cat conftest.err >&5
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15532   { (case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_try") 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; } &&
15541          { ac_try='test -s conftest.$ac_objext'
15542   { (case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_try") 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; }; then
15551   ac_header_compiler=yes
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556         ac_header_compiler=no
15557 fi
15558
15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561 echo "${ECHO_T}$ac_header_compiler" >&6; }
15562
15563 # Is the header present?
15564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15566 cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572 #include <$ac_header>
15573 _ACEOF
15574 if { (ac_try="$ac_cpp conftest.$ac_ext"
15575 case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15581   ac_status=$?
15582   grep -v '^ *+' conftest.er1 >conftest.err
15583   rm -f conftest.er1
15584   cat conftest.err >&5
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } >/dev/null; then
15587   if test -s conftest.err; then
15588     ac_cpp_err=$ac_c_preproc_warn_flag
15589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15590   else
15591     ac_cpp_err=
15592   fi
15593 else
15594   ac_cpp_err=yes
15595 fi
15596 if test -z "$ac_cpp_err"; then
15597   ac_header_preproc=yes
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602   ac_header_preproc=no
15603 fi
15604
15605 rm -f conftest.err conftest.$ac_ext
15606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607 echo "${ECHO_T}$ac_header_preproc" >&6; }
15608
15609 # So?  What about this header?
15610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611   yes:no: )
15612     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616     ac_header_preproc=yes
15617     ;;
15618   no:yes:* )
15619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15622 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15626 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15631     ( cat <<\_ASBOX
15632 ## ------------------------------------ ##
15633 ## Report this to http://llvm.org/bugs/ ##
15634 ## ------------------------------------ ##
15635 _ASBOX
15636      ) | sed "s/^/$as_me: WARNING:     /" >&2
15637     ;;
15638 esac
15639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642   echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644   eval "$as_ac_Header=\$ac_header_preproc"
15645 fi
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647                { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15649
15650 fi
15651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15652   cat >>confdefs.h <<_ACEOF
15653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15654 _ACEOF
15655
15656 fi
15657
15658 done
15659
15660
15661 for ac_header in fenv.h
15662 do
15663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668   echo $ECHO_N "(cached) $ECHO_C" >&6
15669 fi
15670 ac_res=`eval echo '${'$as_ac_Header'}'`
15671                { echo "$as_me:$LINENO: result: $ac_res" >&5
15672 echo "${ECHO_T}$ac_res" >&6; }
15673 else
15674   # Is the header compilable?
15675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 $ac_includes_default
15684 #include <$ac_header>
15685 _ACEOF
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_compile") 2>conftest.er1
15694   ac_status=$?
15695   grep -v '^ *+' conftest.er1 >conftest.err
15696   rm -f conftest.er1
15697   cat conftest.err >&5
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } &&
15700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701   { (case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_try") 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; } &&
15710          { ac_try='test -s conftest.$ac_objext'
15711   { (case "(($ac_try" in
15712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713   *) ac_try_echo=$ac_try;;
15714 esac
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716   (eval "$ac_try") 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); }; }; then
15720   ac_header_compiler=yes
15721 else
15722   echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725         ac_header_compiler=no
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15730 echo "${ECHO_T}$ac_header_compiler" >&6; }
15731
15732 # Is the header present?
15733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 #include <$ac_header>
15742 _ACEOF
15743 if { (ac_try="$ac_cpp conftest.$ac_ext"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } >/dev/null; then
15756   if test -s conftest.err; then
15757     ac_cpp_err=$ac_c_preproc_warn_flag
15758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15759   else
15760     ac_cpp_err=
15761   fi
15762 else
15763   ac_cpp_err=yes
15764 fi
15765 if test -z "$ac_cpp_err"; then
15766   ac_header_preproc=yes
15767 else
15768   echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771   ac_header_preproc=no
15772 fi
15773
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15777
15778 # So?  What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15780   yes:no: )
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15785     ac_header_preproc=yes
15786     ;;
15787   no:yes:* )
15788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15800     ( cat <<\_ASBOX
15801 ## ------------------------------------ ##
15802 ## Report this to http://llvm.org/bugs/ ##
15803 ## ------------------------------------ ##
15804 _ASBOX
15805      ) | sed "s/^/$as_me: WARNING:     /" >&2
15806     ;;
15807 esac
15808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811   echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813   eval "$as_ac_Header=\$ac_header_preproc"
15814 fi
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816                { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15818
15819 fi
15820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821   cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15823 _ACEOF
15824
15825 fi
15826
15827 done
15828
15829 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15830
15831 for ac_header in pthread.h
15832 do
15833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838   echo $ECHO_N "(cached) $ECHO_C" >&6
15839 fi
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841                { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15843 else
15844   # Is the header compilable?
15845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 $ac_includes_default
15854 #include <$ac_header>
15855 _ACEOF
15856 rm -f conftest.$ac_objext
15857 if { (ac_try="$ac_compile"
15858 case "(($ac_try" in
15859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860   *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863   (eval "$ac_compile") 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871   { (case "(($ac_try" in
15872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873   *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876   (eval "$ac_try") 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; } &&
15880          { ac_try='test -s conftest.$ac_objext'
15881   { (case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886   (eval "$ac_try") 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; }; then
15890   ac_header_compiler=yes
15891 else
15892   echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895         ac_header_compiler=no
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900 echo "${ECHO_T}$ac_header_compiler" >&6; }
15901
15902 # Is the header present?
15903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 #include <$ac_header>
15912 _ACEOF
15913 if { (ac_try="$ac_cpp conftest.$ac_ext"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } >/dev/null; then
15926   if test -s conftest.err; then
15927     ac_cpp_err=$ac_c_preproc_warn_flag
15928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15929   else
15930     ac_cpp_err=
15931   fi
15932 else
15933   ac_cpp_err=yes
15934 fi
15935 if test -z "$ac_cpp_err"; then
15936   ac_header_preproc=yes
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941   ac_header_preproc=no
15942 fi
15943
15944 rm -f conftest.err conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6; }
15947
15948 # So?  What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15950   yes:no: )
15951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955     ac_header_preproc=yes
15956     ;;
15957   no:yes:* )
15958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15970     ( cat <<\_ASBOX
15971 ## ------------------------------------ ##
15972 ## Report this to http://llvm.org/bugs/ ##
15973 ## ------------------------------------ ##
15974 _ASBOX
15975      ) | sed "s/^/$as_me: WARNING:     /" >&2
15976     ;;
15977 esac
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   eval "$as_ac_Header=\$ac_header_preproc"
15984 fi
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986                { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988
15989 fi
15990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15991   cat >>confdefs.h <<_ACEOF
15992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15993 _ACEOF
15994  HAVE_PTHREAD=1
15995
15996 else
15997   HAVE_PTHREAD=0
15998
15999 fi
16000
16001 done
16002
16003 else
16004   HAVE_PTHREAD=0
16005
16006 fi
16007
16008 if test "$llvm_cv_enable_libffi" = "yes" ; then
16009
16010
16011 for ac_header in ffi.h ffi/ffi.h
16012 do
16013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018   echo $ECHO_N "(cached) $ECHO_C" >&6
16019 fi
16020 ac_res=`eval echo '${'$as_ac_Header'}'`
16021                { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 else
16024   # Is the header compilable?
16025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16027 cat >conftest.$ac_ext <<_ACEOF
16028 /* confdefs.h.  */
16029 _ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h.  */
16033 $ac_includes_default
16034 #include <$ac_header>
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (ac_try="$ac_compile"
16038 case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_compile") 2>conftest.er1
16044   ac_status=$?
16045   grep -v '^ *+' conftest.er1 >conftest.err
16046   rm -f conftest.er1
16047   cat conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } &&
16050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16051   { (case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_try") 2>&5
16057   ac_status=$?
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); }; } &&
16060          { ac_try='test -s conftest.$ac_objext'
16061   { (case "(($ac_try" in
16062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063   *) ac_try_echo=$ac_try;;
16064 esac
16065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066   (eval "$ac_try") 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; }; then
16070   ac_header_compiler=yes
16071 else
16072   echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075         ac_header_compiler=no
16076 fi
16077
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16080 echo "${ECHO_T}$ac_header_compiler" >&6; }
16081
16082 # Is the header present?
16083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16091 #include <$ac_header>
16092 _ACEOF
16093 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16106   if test -s conftest.err; then
16107     ac_cpp_err=$ac_c_preproc_warn_flag
16108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16109   else
16110     ac_cpp_err=
16111   fi
16112 else
16113   ac_cpp_err=yes
16114 fi
16115 if test -z "$ac_cpp_err"; then
16116   ac_header_preproc=yes
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121   ac_header_preproc=no
16122 fi
16123
16124 rm -f conftest.err conftest.$ac_ext
16125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126 echo "${ECHO_T}$ac_header_preproc" >&6; }
16127
16128 # So?  What about this header?
16129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16130   yes:no: )
16131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16135     ac_header_preproc=yes
16136     ;;
16137   no:yes:* )
16138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16150     ( cat <<\_ASBOX
16151 ## ------------------------------------ ##
16152 ## Report this to http://llvm.org/bugs/ ##
16153 ## ------------------------------------ ##
16154 _ASBOX
16155      ) | sed "s/^/$as_me: WARNING:     /" >&2
16156     ;;
16157 esac
16158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163   eval "$as_ac_Header=\$ac_header_preproc"
16164 fi
16165 ac_res=`eval echo '${'$as_ac_Header'}'`
16166                { echo "$as_me:$LINENO: result: $ac_res" >&5
16167 echo "${ECHO_T}$ac_res" >&6; }
16168
16169 fi
16170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16171   cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16173 _ACEOF
16174
16175 fi
16176
16177 done
16178
16179 fi
16180
16181
16182 for ac_header in CrashReporterClient.h
16183 do
16184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 fi
16191 ac_res=`eval echo '${'$as_ac_Header'}'`
16192                { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16194 else
16195   # Is the header compilable?
16196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 $ac_includes_default
16205 #include <$ac_header>
16206 _ACEOF
16207 rm -f conftest.$ac_objext
16208 if { (ac_try="$ac_compile"
16209 case "(($ac_try" in
16210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211   *) ac_try_echo=$ac_try;;
16212 esac
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214   (eval "$ac_compile") 2>conftest.er1
16215   ac_status=$?
16216   grep -v '^ *+' conftest.er1 >conftest.err
16217   rm -f conftest.er1
16218   cat conftest.err >&5
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } &&
16221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222   { (case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_try") 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; } &&
16231          { ac_try='test -s conftest.$ac_objext'
16232   { (case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_try") 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; }; then
16241   ac_header_compiler=yes
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246         ac_header_compiler=no
16247 fi
16248
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16252
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262 #include <$ac_header>
16263 _ACEOF
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267   *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271   ac_status=$?
16272   grep -v '^ *+' conftest.er1 >conftest.err
16273   rm -f conftest.er1
16274   cat conftest.err >&5
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } >/dev/null; then
16277   if test -s conftest.err; then
16278     ac_cpp_err=$ac_c_preproc_warn_flag
16279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16280   else
16281     ac_cpp_err=
16282   fi
16283 else
16284   ac_cpp_err=yes
16285 fi
16286 if test -z "$ac_cpp_err"; then
16287   ac_header_preproc=yes
16288 else
16289   echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292   ac_header_preproc=no
16293 fi
16294
16295 rm -f conftest.err conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297 echo "${ECHO_T}$ac_header_preproc" >&6; }
16298
16299 # So?  What about this header?
16300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16301   yes:no: )
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306     ac_header_preproc=yes
16307     ;;
16308   no:yes:* )
16309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16321     ( cat <<\_ASBOX
16322 ## ------------------------------------ ##
16323 ## Report this to http://llvm.org/bugs/ ##
16324 ## ------------------------------------ ##
16325 _ASBOX
16326      ) | sed "s/^/$as_me: WARNING:     /" >&2
16327     ;;
16328 esac
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334   eval "$as_ac_Header=\$ac_header_preproc"
16335 fi
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337                { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16339
16340 fi
16341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342   cat >>confdefs.h <<_ACEOF
16343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344 _ACEOF
16345
16346 fi
16347
16348 done
16349
16350
16351 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16352 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16353 cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359 extern const char *__crashreporter_info__;
16360       int main() {
16361         __crashreporter_info__ = "test";
16362         return 0;
16363       }
16364
16365 _ACEOF
16366 rm -f conftest.$ac_objext conftest$ac_exeext
16367 if { (ac_try="$ac_link"
16368 case "(($ac_try" in
16369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370   *) ac_try_echo=$ac_try;;
16371 esac
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373   (eval "$ac_link") 2>conftest.er1
16374   ac_status=$?
16375   grep -v '^ *+' conftest.er1 >conftest.err
16376   rm -f conftest.er1
16377   cat conftest.err >&5
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); } &&
16380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16381   { (case "(($ac_try" in
16382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383   *) ac_try_echo=$ac_try;;
16384 esac
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386   (eval "$ac_try") 2>&5
16387   ac_status=$?
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); }; } &&
16390          { ac_try='test -s conftest$ac_exeext'
16391   { (case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_try") 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); }; }; then
16400   { echo "$as_me:$LINENO: result: yes" >&5
16401 echo "${ECHO_T}yes" >&6; }
16402
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_CRASHREPORTER_INFO 1
16405 _ACEOF
16406
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411         { echo "$as_me:$LINENO: result: no" >&5
16412 echo "${ECHO_T}no" >&6; }
16413
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_CRASHREPORTER_INFO 0
16416 _ACEOF
16417
16418 fi
16419
16420 rm -f core conftest.err conftest.$ac_objext \
16421       conftest$ac_exeext conftest.$ac_ext
16422
16423
16424
16425   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16426 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16427 if test "${ac_cv_huge_val_sanity+set}" = set; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430
16431     ac_ext=cpp
16432 ac_cpp='$CXXCPP $CPPFLAGS'
16433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16436
16437     ac_save_CXXFLAGS=$CXXFLAGS
16438     CXXFLAGS="$CXXFLAGS -pedantic"
16439     if test "$cross_compiling" = yes; then
16440   ac_cv_huge_val_sanity=yes
16441 else
16442   cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h.  */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h.  */
16448 #include <math.h>
16449 int
16450 main ()
16451 {
16452 double x = HUGE_VAL; return x != x;
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest$ac_exeext
16458 if { (ac_try="$ac_link"
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_link") 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; }; then
16477   ac_cv_huge_val_sanity=yes
16478 else
16479   echo "$as_me: program exited with status $ac_status" >&5
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ( exit $ac_status )
16484 ac_cv_huge_val_sanity=no
16485 fi
16486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16487 fi
16488
16489
16490     CXXFLAGS=$ac_save_CXXFLAGS
16491     ac_ext=c
16492 ac_cpp='$CPP $CPPFLAGS'
16493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16496
16497
16498 fi
16499 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16500 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16501   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16502
16503
16504 { echo "$as_me:$LINENO: checking for pid_t" >&5
16505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16506 if test "${ac_cv_type_pid_t+set}" = set; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 else
16509   cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515 $ac_includes_default
16516 typedef pid_t ac__type_new_;
16517 int
16518 main ()
16519 {
16520 if ((ac__type_new_ *) 0)
16521   return 0;
16522 if (sizeof (ac__type_new_))
16523   return 0;
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 rm -f conftest.$ac_objext
16529 if { (ac_try="$ac_compile"
16530 case "(($ac_try" in
16531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532   *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535   (eval "$ac_compile") 2>conftest.er1
16536   ac_status=$?
16537   grep -v '^ *+' conftest.er1 >conftest.err
16538   rm -f conftest.er1
16539   cat conftest.err >&5
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); } &&
16542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16543   { (case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548   (eval "$ac_try") 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); }; } &&
16552          { ac_try='test -s conftest.$ac_objext'
16553   { (case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_try") 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; }; then
16562   ac_cv_type_pid_t=yes
16563 else
16564   echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567         ac_cv_type_pid_t=no
16568 fi
16569
16570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 fi
16572 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16573 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16574 if test $ac_cv_type_pid_t = yes; then
16575   :
16576 else
16577
16578 cat >>confdefs.h <<_ACEOF
16579 #define pid_t int
16580 _ACEOF
16581
16582 fi
16583
16584 { echo "$as_me:$LINENO: checking for size_t" >&5
16585 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16586 if test "${ac_cv_type_size_t+set}" = set; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h.  */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h.  */
16595 $ac_includes_default
16596 typedef size_t ac__type_new_;
16597 int
16598 main ()
16599 {
16600 if ((ac__type_new_ *) 0)
16601   return 0;
16602 if (sizeof (ac__type_new_))
16603   return 0;
16604   ;
16605   return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext
16609 if { (ac_try="$ac_compile"
16610 case "(($ac_try" in
16611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612   *) ac_try_echo=$ac_try;;
16613 esac
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615   (eval "$ac_compile") 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16623   { (case "(($ac_try" in
16624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625   *) ac_try_echo=$ac_try;;
16626 esac
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628   (eval "$ac_try") 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); }; } &&
16632          { ac_try='test -s conftest.$ac_objext'
16633   { (case "(($ac_try" in
16634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635   *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638   (eval "$ac_try") 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; }; then
16642   ac_cv_type_size_t=yes
16643 else
16644   echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16646
16647         ac_cv_type_size_t=no
16648 fi
16649
16650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651 fi
16652 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16653 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16654 if test $ac_cv_type_size_t = yes; then
16655   :
16656 else
16657
16658 cat >>confdefs.h <<_ACEOF
16659 #define size_t unsigned int
16660 _ACEOF
16661
16662 fi
16663
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define RETSIGTYPE void
16667 _ACEOF
16668
16669 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16670 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16671 if test "${ac_cv_struct_tm+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680 #include <sys/types.h>
16681 #include <time.h>
16682
16683 int
16684 main ()
16685 {
16686 struct tm *tp; tp->tm_sec;
16687   ;
16688   return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698   (eval "$ac_compile") 2>conftest.er1
16699   ac_status=$?
16700   grep -v '^ *+' conftest.er1 >conftest.err
16701   rm -f conftest.er1
16702   cat conftest.err >&5
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } &&
16705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706   { (case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_try") 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest.$ac_objext'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_cv_struct_tm=time.h
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730         ac_cv_struct_tm=sys/time.h
16731 fi
16732
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 fi
16735 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16736 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16737 if test $ac_cv_struct_tm = sys/time.h; then
16738
16739 cat >>confdefs.h <<\_ACEOF
16740 #define TM_IN_SYS_TIME 1
16741 _ACEOF
16742
16743 fi
16744
16745 { echo "$as_me:$LINENO: checking for int64_t" >&5
16746 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16747 if test "${ac_cv_type_int64_t+set}" = set; then
16748   echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750   cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756 $ac_includes_default
16757 typedef int64_t ac__type_new_;
16758 int
16759 main ()
16760 {
16761 if ((ac__type_new_ *) 0)
16762   return 0;
16763 if (sizeof (ac__type_new_))
16764   return 0;
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext
16770 if { (ac_try="$ac_compile"
16771 case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_compile") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } &&
16783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16784   { (case "(($ac_try" in
16785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786   *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789   (eval "$ac_try") 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; } &&
16793          { ac_try='test -s conftest.$ac_objext'
16794   { (case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799   (eval "$ac_try") 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; }; then
16803   ac_cv_type_int64_t=yes
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808         ac_cv_type_int64_t=no
16809 fi
16810
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 fi
16813 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16814 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16815 if test $ac_cv_type_int64_t = yes; then
16816
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_INT64_T 1
16819 _ACEOF
16820
16821
16822 else
16823   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16824 echo "$as_me: error: Type int64_t required but not found" >&2;}
16825    { (exit 1); exit 1; }; }
16826 fi
16827
16828 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16829 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16830 if test "${ac_cv_type_uint64_t+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 $ac_includes_default
16840 typedef uint64_t ac__type_new_;
16841 int
16842 main ()
16843 {
16844 if ((ac__type_new_ *) 0)
16845   return 0;
16846 if (sizeof (ac__type_new_))
16847   return 0;
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_compile") 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; } &&
16876          { ac_try='test -s conftest.$ac_objext'
16877   { (case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_try") 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   ac_cv_type_uint64_t=yes
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891         ac_cv_type_uint64_t=no
16892 fi
16893
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 fi
16896 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16897 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16898 if test $ac_cv_type_uint64_t = yes; then
16899
16900 cat >>confdefs.h <<_ACEOF
16901 #define HAVE_UINT64_T 1
16902 _ACEOF
16903
16904
16905 else
16906   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16907 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16908 if test "${ac_cv_type_u_int64_t+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917 $ac_includes_default
16918 typedef u_int64_t ac__type_new_;
16919 int
16920 main ()
16921 {
16922 if ((ac__type_new_ *) 0)
16923   return 0;
16924 if (sizeof (ac__type_new_))
16925   return 0;
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937   (eval "$ac_compile") 2>conftest.er1
16938   ac_status=$?
16939   grep -v '^ *+' conftest.er1 >conftest.err
16940   rm -f conftest.er1
16941   cat conftest.err >&5
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } &&
16944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945   { (case "(($ac_try" in
16946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947   *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950   (eval "$ac_try") 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); }; } &&
16954          { ac_try='test -s conftest.$ac_objext'
16955   { (case "(($ac_try" in
16956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957   *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960   (eval "$ac_try") 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   ac_cv_type_u_int64_t=yes
16965 else
16966   echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969         ac_cv_type_u_int64_t=no
16970 fi
16971
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 fi
16974 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16975 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16976 if test $ac_cv_type_u_int64_t = yes; then
16977
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_U_INT64_T 1
16980 _ACEOF
16981
16982
16983 else
16984   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16985 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16986    { (exit 1); exit 1; }; }
16987 fi
16988
16989 fi
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17001 do
17002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008   cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h.  */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h.  */
17014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17016 #define $ac_func innocuous_$ac_func
17017
17018 /* System header to define __stub macros and hopefully few prototypes,
17019     which can conflict with char $ac_func (); below.
17020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021     <limits.h> exists even on freestanding compilers.  */
17022
17023 #ifdef __STDC__
17024 # include <limits.h>
17025 #else
17026 # include <assert.h>
17027 #endif
17028
17029 #undef $ac_func
17030
17031 /* Override any GCC internal prototype to avoid an error.
17032    Use char because int might match the return type of a GCC
17033    builtin and then its argument prototype would still apply.  */
17034 #ifdef __cplusplus
17035 extern "C"
17036 #endif
17037 char $ac_func ();
17038 /* The GNU C library defines this for functions which it implements
17039     to always fail with ENOSYS.  Some functions are actually named
17040     something starting with __ and the normal name is an alias.  */
17041 #if defined __stub_$ac_func || defined __stub___$ac_func
17042 choke me
17043 #endif
17044
17045 int
17046 main ()
17047 {
17048 return $ac_func ();
17049   ;
17050   return 0;
17051 }
17052 _ACEOF
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (ac_try="$ac_link"
17055 case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_link") 2>conftest.er1
17061   ac_status=$?
17062   grep -v '^ *+' conftest.er1 >conftest.err
17063   rm -f conftest.er1
17064   cat conftest.err >&5
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); } &&
17067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17068   { (case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_try") 2>&5
17074   ac_status=$?
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); }; } &&
17077          { ac_try='test -s conftest$ac_exeext'
17078   { (case "(($ac_try" in
17079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080   *) ac_try_echo=$ac_try;;
17081 esac
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083   (eval "$ac_try") 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; }; then
17087   eval "$as_ac_var=yes"
17088 else
17089   echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092         eval "$as_ac_var=no"
17093 fi
17094
17095 rm -f core conftest.err conftest.$ac_objext \
17096       conftest$ac_exeext conftest.$ac_ext
17097 fi
17098 ac_res=`eval echo '${'$as_ac_var'}'`
17099                { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17101 if test `eval echo '${'$as_ac_var'}'` = yes; then
17102   cat >>confdefs.h <<_ACEOF
17103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17104 _ACEOF
17105
17106 fi
17107 done
17108
17109
17110
17111
17112
17113 for ac_func in powf fmodf strtof round
17114 do
17115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17129 #define $ac_func innocuous_$ac_func
17130
17131 /* System header to define __stub macros and hopefully few prototypes,
17132     which can conflict with char $ac_func (); below.
17133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134     <limits.h> exists even on freestanding compilers.  */
17135
17136 #ifdef __STDC__
17137 # include <limits.h>
17138 #else
17139 # include <assert.h>
17140 #endif
17141
17142 #undef $ac_func
17143
17144 /* Override any GCC internal prototype to avoid an error.
17145    Use char because int might match the return type of a GCC
17146    builtin and then its argument prototype would still apply.  */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char $ac_func ();
17151 /* The GNU C library defines this for functions which it implements
17152     to always fail with ENOSYS.  Some functions are actually named
17153     something starting with __ and the normal name is an alias.  */
17154 #if defined __stub_$ac_func || defined __stub___$ac_func
17155 choke me
17156 #endif
17157
17158 int
17159 main ()
17160 {
17161 return $ac_func ();
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (ac_try="$ac_link"
17168 case "(($ac_try" in
17169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170   *) ac_try_echo=$ac_try;;
17171 esac
17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173   (eval "$ac_link") 2>conftest.er1
17174   ac_status=$?
17175   grep -v '^ *+' conftest.er1 >conftest.err
17176   rm -f conftest.er1
17177   cat conftest.err >&5
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); } &&
17180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181   { (case "(($ac_try" in
17182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183   *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186   (eval "$ac_try") 2>&5
17187   ac_status=$?
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); }; } &&
17190          { ac_try='test -s conftest$ac_exeext'
17191   { (case "(($ac_try" in
17192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193   *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196   (eval "$ac_try") 2>&5
17197   ac_status=$?
17198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199   (exit $ac_status); }; }; then
17200   eval "$as_ac_var=yes"
17201 else
17202   echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205         eval "$as_ac_var=no"
17206 fi
17207
17208 rm -f core conftest.err conftest.$ac_objext \
17209       conftest$ac_exeext conftest.$ac_ext
17210 fi
17211 ac_res=`eval echo '${'$as_ac_var'}'`
17212                { echo "$as_me:$LINENO: result: $ac_res" >&5
17213 echo "${ECHO_T}$ac_res" >&6; }
17214 if test `eval echo '${'$as_ac_var'}'` = yes; then
17215   cat >>confdefs.h <<_ACEOF
17216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17217 _ACEOF
17218
17219 fi
17220 done
17221
17222
17223
17224
17225
17226
17227 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17228 do
17229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17233   echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235   cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17243 #define $ac_func innocuous_$ac_func
17244
17245 /* System header to define __stub macros and hopefully few prototypes,
17246     which can conflict with char $ac_func (); below.
17247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17248     <limits.h> exists even on freestanding compilers.  */
17249
17250 #ifdef __STDC__
17251 # include <limits.h>
17252 #else
17253 # include <assert.h>
17254 #endif
17255
17256 #undef $ac_func
17257
17258 /* Override any GCC internal prototype to avoid an error.
17259    Use char because int might match the return type of a GCC
17260    builtin and then its argument prototype would still apply.  */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 char $ac_func ();
17265 /* The GNU C library defines this for functions which it implements
17266     to always fail with ENOSYS.  Some functions are actually named
17267     something starting with __ and the normal name is an alias.  */
17268 #if defined __stub_$ac_func || defined __stub___$ac_func
17269 choke me
17270 #endif
17271
17272 int
17273 main ()
17274 {
17275 return $ac_func ();
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (ac_try="$ac_link"
17282 case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287   (eval "$ac_link") 2>conftest.er1
17288   ac_status=$?
17289   grep -v '^ *+' conftest.er1 >conftest.err
17290   rm -f conftest.er1
17291   cat conftest.err >&5
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17295   { (case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest$ac_exeext'
17305   { (case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_try") 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   eval "$as_ac_var=yes"
17315 else
17316   echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319         eval "$as_ac_var=no"
17320 fi
17321
17322 rm -f core conftest.err conftest.$ac_objext \
17323       conftest$ac_exeext conftest.$ac_ext
17324 fi
17325 ac_res=`eval echo '${'$as_ac_var'}'`
17326                { echo "$as_me:$LINENO: result: $ac_res" >&5
17327 echo "${ECHO_T}$ac_res" >&6; }
17328 if test `eval echo '${'$as_ac_var'}'` = yes; then
17329   cat >>confdefs.h <<_ACEOF
17330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17331 _ACEOF
17332
17333 fi
17334 done
17335
17336
17337
17338
17339 for ac_func in isatty mkdtemp mkstemp
17340 do
17341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347   cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h.  */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h.  */
17353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17355 #define $ac_func innocuous_$ac_func
17356
17357 /* System header to define __stub macros and hopefully few prototypes,
17358     which can conflict with char $ac_func (); below.
17359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17360     <limits.h> exists even on freestanding compilers.  */
17361
17362 #ifdef __STDC__
17363 # include <limits.h>
17364 #else
17365 # include <assert.h>
17366 #endif
17367
17368 #undef $ac_func
17369
17370 /* Override any GCC internal prototype to avoid an error.
17371    Use char because int might match the return type of a GCC
17372    builtin and then its argument prototype would still apply.  */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 char $ac_func ();
17377 /* The GNU C library defines this for functions which it implements
17378     to always fail with ENOSYS.  Some functions are actually named
17379     something starting with __ and the normal name is an alias.  */
17380 #if defined __stub_$ac_func || defined __stub___$ac_func
17381 choke me
17382 #endif
17383
17384 int
17385 main ()
17386 {
17387 return $ac_func ();
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_link") 2>conftest.er1
17400   ac_status=$?
17401   grep -v '^ *+' conftest.er1 >conftest.err
17402   rm -f conftest.er1
17403   cat conftest.err >&5
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } &&
17406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17407   { (case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_try") 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest$ac_exeext'
17417   { (case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_try") 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; }; then
17426   eval "$as_ac_var=yes"
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431         eval "$as_ac_var=no"
17432 fi
17433
17434 rm -f core conftest.err conftest.$ac_objext \
17435       conftest$ac_exeext conftest.$ac_ext
17436 fi
17437 ac_res=`eval echo '${'$as_ac_var'}'`
17438                { echo "$as_me:$LINENO: result: $ac_res" >&5
17439 echo "${ECHO_T}$ac_res" >&6; }
17440 if test `eval echo '${'$as_ac_var'}'` = yes; then
17441   cat >>confdefs.h <<_ACEOF
17442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17443 _ACEOF
17444
17445 fi
17446 done
17447
17448
17449
17450
17451
17452
17453
17454
17455 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17456 do
17457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17471 #define $ac_func innocuous_$ac_func
17472
17473 /* System header to define __stub macros and hopefully few prototypes,
17474     which can conflict with char $ac_func (); below.
17475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476     <limits.h> exists even on freestanding compilers.  */
17477
17478 #ifdef __STDC__
17479 # include <limits.h>
17480 #else
17481 # include <assert.h>
17482 #endif
17483
17484 #undef $ac_func
17485
17486 /* Override any GCC internal prototype to avoid an error.
17487    Use char because int might match the return type of a GCC
17488    builtin and then its argument prototype would still apply.  */
17489 #ifdef __cplusplus
17490 extern "C"
17491 #endif
17492 char $ac_func ();
17493 /* The GNU C library defines this for functions which it implements
17494     to always fail with ENOSYS.  Some functions are actually named
17495     something starting with __ and the normal name is an alias.  */
17496 #if defined __stub_$ac_func || defined __stub___$ac_func
17497 choke me
17498 #endif
17499
17500 int
17501 main ()
17502 {
17503 return $ac_func ();
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext conftest$ac_exeext
17509 if { (ac_try="$ac_link"
17510 case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515   (eval "$ac_link") 2>conftest.er1
17516   ac_status=$?
17517   grep -v '^ *+' conftest.er1 >conftest.err
17518   rm -f conftest.er1
17519   cat conftest.err >&5
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } &&
17522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523   { (case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_try") 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; } &&
17532          { ac_try='test -s conftest$ac_exeext'
17533   { (case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_try") 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; }; then
17542   eval "$as_ac_var=yes"
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         eval "$as_ac_var=no"
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext \
17551       conftest$ac_exeext conftest.$ac_ext
17552 fi
17553 ac_res=`eval echo '${'$as_ac_var'}'`
17554                { echo "$as_me:$LINENO: result: $ac_res" >&5
17555 echo "${ECHO_T}$ac_res" >&6; }
17556 if test `eval echo '${'$as_ac_var'}'` = yes; then
17557   cat >>confdefs.h <<_ACEOF
17558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17559 _ACEOF
17560
17561 fi
17562 done
17563
17564
17565
17566
17567
17568 for ac_func in strerror strerror_r setenv arc4random
17569 do
17570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17574   echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576   cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h.  */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h.  */
17582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17584 #define $ac_func innocuous_$ac_func
17585
17586 /* System header to define __stub macros and hopefully few prototypes,
17587     which can conflict with char $ac_func (); below.
17588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589     <limits.h> exists even on freestanding compilers.  */
17590
17591 #ifdef __STDC__
17592 # include <limits.h>
17593 #else
17594 # include <assert.h>
17595 #endif
17596
17597 #undef $ac_func
17598
17599 /* Override any GCC internal prototype to avoid an error.
17600    Use char because int might match the return type of a GCC
17601    builtin and then its argument prototype would still apply.  */
17602 #ifdef __cplusplus
17603 extern "C"
17604 #endif
17605 char $ac_func ();
17606 /* The GNU C library defines this for functions which it implements
17607     to always fail with ENOSYS.  Some functions are actually named
17608     something starting with __ and the normal name is an alias.  */
17609 #if defined __stub_$ac_func || defined __stub___$ac_func
17610 choke me
17611 #endif
17612
17613 int
17614 main ()
17615 {
17616 return $ac_func ();
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_link") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } &&
17635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636   { (case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_try") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } &&
17645          { ac_try='test -s conftest$ac_exeext'
17646   { (case "(($ac_try" in
17647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648   *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651   (eval "$ac_try") 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; }; then
17655   eval "$as_ac_var=yes"
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660         eval "$as_ac_var=no"
17661 fi
17662
17663 rm -f core conftest.err conftest.$ac_objext \
17664       conftest$ac_exeext conftest.$ac_ext
17665 fi
17666 ac_res=`eval echo '${'$as_ac_var'}'`
17667                { echo "$as_me:$LINENO: result: $ac_res" >&5
17668 echo "${ECHO_T}$ac_res" >&6; }
17669 if test `eval echo '${'$as_ac_var'}'` = yes; then
17670   cat >>confdefs.h <<_ACEOF
17671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17672 _ACEOF
17673
17674 fi
17675 done
17676
17677
17678
17679
17680
17681 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17682 do
17683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17697 #define $ac_func innocuous_$ac_func
17698
17699 /* System header to define __stub macros and hopefully few prototypes,
17700     which can conflict with char $ac_func (); below.
17701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702     <limits.h> exists even on freestanding compilers.  */
17703
17704 #ifdef __STDC__
17705 # include <limits.h>
17706 #else
17707 # include <assert.h>
17708 #endif
17709
17710 #undef $ac_func
17711
17712 /* Override any GCC internal prototype to avoid an error.
17713    Use char because int might match the return type of a GCC
17714    builtin and then its argument prototype would still apply.  */
17715 #ifdef __cplusplus
17716 extern "C"
17717 #endif
17718 char $ac_func ();
17719 /* The GNU C library defines this for functions which it implements
17720     to always fail with ENOSYS.  Some functions are actually named
17721     something starting with __ and the normal name is an alias.  */
17722 #if defined __stub_$ac_func || defined __stub___$ac_func
17723 choke me
17724 #endif
17725
17726 int
17727 main ()
17728 {
17729 return $ac_func ();
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (ac_try="$ac_link"
17736 case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_link") 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } &&
17748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17749   { (case "(($ac_try" in
17750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751   *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754   (eval "$ac_try") 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; } &&
17758          { ac_try='test -s conftest$ac_exeext'
17759   { (case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_try") 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   eval "$as_ac_var=yes"
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773         eval "$as_ac_var=no"
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext \
17777       conftest$ac_exeext conftest.$ac_ext
17778 fi
17779 ac_res=`eval echo '${'$as_ac_var'}'`
17780                { echo "$as_me:$LINENO: result: $ac_res" >&5
17781 echo "${ECHO_T}$ac_res" >&6; }
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783   cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785 _ACEOF
17786
17787 fi
17788 done
17789
17790
17791
17792
17793
17794
17795 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17796 do
17797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17801   echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803   cat >conftest.$ac_ext <<_ACEOF
17804 /* confdefs.h.  */
17805 _ACEOF
17806 cat confdefs.h >>conftest.$ac_ext
17807 cat >>conftest.$ac_ext <<_ACEOF
17808 /* end confdefs.h.  */
17809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17811 #define $ac_func innocuous_$ac_func
17812
17813 /* System header to define __stub macros and hopefully few prototypes,
17814     which can conflict with char $ac_func (); below.
17815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17816     <limits.h> exists even on freestanding compilers.  */
17817
17818 #ifdef __STDC__
17819 # include <limits.h>
17820 #else
17821 # include <assert.h>
17822 #endif
17823
17824 #undef $ac_func
17825
17826 /* Override any GCC internal prototype to avoid an error.
17827    Use char because int might match the return type of a GCC
17828    builtin and then its argument prototype would still apply.  */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char $ac_func ();
17833 /* The GNU C library defines this for functions which it implements
17834     to always fail with ENOSYS.  Some functions are actually named
17835     something starting with __ and the normal name is an alias.  */
17836 #if defined __stub_$ac_func || defined __stub___$ac_func
17837 choke me
17838 #endif
17839
17840 int
17841 main ()
17842 {
17843 return $ac_func ();
17844   ;
17845   return 0;
17846 }
17847 _ACEOF
17848 rm -f conftest.$ac_objext conftest$ac_exeext
17849 if { (ac_try="$ac_link"
17850 case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_link") 2>conftest.er1
17856   ac_status=$?
17857   grep -v '^ *+' conftest.er1 >conftest.err
17858   rm -f conftest.er1
17859   cat conftest.err >&5
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); } &&
17862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17863   { (case "(($ac_try" in
17864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865   *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868   (eval "$ac_try") 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; } &&
17872          { ac_try='test -s conftest$ac_exeext'
17873   { (case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_try") 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; }; then
17882   eval "$as_ac_var=yes"
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887         eval "$as_ac_var=no"
17888 fi
17889
17890 rm -f core conftest.err conftest.$ac_objext \
17891       conftest$ac_exeext conftest.$ac_ext
17892 fi
17893 ac_res=`eval echo '${'$as_ac_var'}'`
17894                { echo "$as_me:$LINENO: result: $ac_res" >&5
17895 echo "${ECHO_T}$ac_res" >&6; }
17896 if test `eval echo '${'$as_ac_var'}'` = yes; then
17897   cat >>confdefs.h <<_ACEOF
17898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17899 _ACEOF
17900
17901 fi
17902 done
17903
17904 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17905 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17906 if test "${llvm_cv_c_printf_a+set}" = set; then
17907   echo $ECHO_N "(cached) $ECHO_C" >&6
17908 else
17909   ac_ext=c
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
17915  if test "$cross_compiling" = yes; then
17916   llvmac_cv_c_printf_a=no
17917 else
17918   cat >conftest.$ac_ext <<_ACEOF
17919
17920   /* confdefs.h.  */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h.  */
17925
17926 #include <stdio.h>
17927 #include <stdlib.h>
17928
17929 int
17930 main ()
17931 {
17932
17933 volatile double A, B;
17934 char Buffer[100];
17935 A = 1;
17936 A /= 10.0;
17937 sprintf(Buffer, "%a", A);
17938 B = atof(Buffer);
17939 if (A != B)
17940   return (1);
17941 if (A != 0x1.999999999999ap-4)
17942   return (1);
17943 return (0);
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest$ac_exeext
17949 if { (ac_try="$ac_link"
17950 case "(($ac_try" in
17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952   *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955   (eval "$ac_link") 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17959   { (case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964   (eval "$ac_try") 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   llvm_cv_c_printf_a=yes
17969 else
17970   echo "$as_me: program exited with status $ac_status" >&5
17971 echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974 ( exit $ac_status )
17975 llvmac_cv_c_printf_a=no
17976 fi
17977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17978 fi
17979
17980
17981  ac_ext=c
17982 ac_cpp='$CPP $CPPFLAGS'
17983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17986
17987 fi
17988 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17989 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17990  if test "$llvm_cv_c_printf_a" = "yes"; then
17991
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_PRINTF_A 1
17994 _ACEOF
17995
17996  fi
17997
17998
17999 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18000 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18001 if test "${ac_cv_func_rand48+set}" = set; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   ac_ext=cpp
18005 ac_cpp='$CXXCPP $CPPFLAGS'
18006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18009
18010    cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016 #include <stdlib.h>
18017 int
18018 main ()
18019 {
18020 srand48(0);lrand48();drand48();
18021   ;
18022   return 0;
18023 }
18024 _ACEOF
18025 rm -f conftest.$ac_objext
18026 if { (ac_try="$ac_compile"
18027 case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_compile") 2>conftest.er1
18033   ac_status=$?
18034   grep -v '^ *+' conftest.er1 >conftest.err
18035   rm -f conftest.er1
18036   cat conftest.err >&5
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); } &&
18039          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18040   { (case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_try") 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; } &&
18049          { ac_try='test -s conftest.$ac_objext'
18050   { (case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055   (eval "$ac_try") 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; }; then
18059   ac_cv_func_rand48=yes
18060 else
18061   echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064         ac_cv_func_rand48=no
18065 fi
18066
18067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18068   ac_ext=c
18069 ac_cpp='$CPP $CPPFLAGS'
18070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073
18074 fi
18075 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18076 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18077
18078 if test "$ac_cv_func_rand48" = "yes" ; then
18079
18080 cat >>confdefs.h <<\_ACEOF
18081 #define HAVE_RAND48 1
18082 _ACEOF
18083
18084 fi
18085
18086
18087 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18088 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18089 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18090   echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092   cat >conftest.$ac_ext <<_ACEOF
18093 /* confdefs.h.  */
18094 _ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h.  */
18098 $ac_includes_default
18099 int
18100 main ()
18101 {
18102 #ifndef strerror_s
18103   char *p = (char *) strerror_s;
18104   return !p;
18105 #endif
18106
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext
18112 if { (ac_try="$ac_compile"
18113 case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118   (eval "$ac_compile") 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } &&
18125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18135          { ac_try='test -s conftest.$ac_objext'
18136   { (case "(($ac_try" in
18137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138   *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141   (eval "$ac_try") 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; }; then
18145   ac_cv_have_decl_strerror_s=yes
18146 else
18147   echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150         ac_cv_have_decl_strerror_s=no
18151 fi
18152
18153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18154 fi
18155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18156 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18157 if test $ac_cv_have_decl_strerror_s = yes; then
18158
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_DECL_STRERROR_S 1
18161 _ACEOF
18162
18163
18164 else
18165   cat >>confdefs.h <<_ACEOF
18166 #define HAVE_DECL_STRERROR_S 0
18167 _ACEOF
18168
18169
18170 fi
18171
18172
18173
18174 if test "$llvm_cv_os_type" = "MingW" ; then
18175   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18176 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18177 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lgcc  $LIBS"
18182 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h.  */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h.  */
18188
18189 /* Override any GCC internal prototype to avoid an error.
18190    Use char because int might match the return type of a GCC
18191    builtin and then its argument prototype would still apply.  */
18192 #ifdef __cplusplus
18193 extern "C"
18194 #endif
18195 char _alloca ();
18196 int
18197 main ()
18198 {
18199 return _alloca ();
18200   ;
18201   return 0;
18202 }
18203 _ACEOF
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (ac_try="$ac_link"
18206 case "(($ac_try" in
18207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208   *) ac_try_echo=$ac_try;;
18209 esac
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211   (eval "$ac_link") 2>conftest.er1
18212   ac_status=$?
18213   grep -v '^ *+' conftest.er1 >conftest.err
18214   rm -f conftest.er1
18215   cat conftest.err >&5
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } &&
18218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; } &&
18228          { ac_try='test -s conftest$ac_exeext'
18229   { (case "(($ac_try" in
18230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231   *) ac_try_echo=$ac_try;;
18232 esac
18233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234   (eval "$ac_try") 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; }; then
18238   ac_cv_lib_gcc__alloca=yes
18239 else
18240   echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243         ac_cv_lib_gcc__alloca=no
18244 fi
18245
18246 rm -f core conftest.err conftest.$ac_objext \
18247       conftest$ac_exeext conftest.$ac_ext
18248 LIBS=$ac_check_lib_save_LIBS
18249 fi
18250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18251 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18252 if test $ac_cv_lib_gcc__alloca = yes; then
18253
18254 cat >>confdefs.h <<\_ACEOF
18255 #define HAVE__ALLOCA 1
18256 _ACEOF
18257
18258 fi
18259
18260   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18261 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18262 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18263   echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265   ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-lgcc  $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273
18274 /* Override any GCC internal prototype to avoid an error.
18275    Use char because int might match the return type of a GCC
18276    builtin and then its argument prototype would still apply.  */
18277 #ifdef __cplusplus
18278 extern "C"
18279 #endif
18280 char __alloca ();
18281 int
18282 main ()
18283 {
18284 return __alloca ();
18285   ;
18286   return 0;
18287 }
18288 _ACEOF
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if { (ac_try="$ac_link"
18291 case "(($ac_try" in
18292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293   *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296   (eval "$ac_link") 2>conftest.er1
18297   ac_status=$?
18298   grep -v '^ *+' conftest.er1 >conftest.err
18299   rm -f conftest.er1
18300   cat conftest.err >&5
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); } &&
18303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18304   { (case "(($ac_try" in
18305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306   *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309   (eval "$ac_try") 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }; } &&
18313          { ac_try='test -s conftest$ac_exeext'
18314   { (case "(($ac_try" in
18315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316   *) ac_try_echo=$ac_try;;
18317 esac
18318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319   (eval "$ac_try") 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); }; }; then
18323   ac_cv_lib_gcc___alloca=yes
18324 else
18325   echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18327
18328         ac_cv_lib_gcc___alloca=no
18329 fi
18330
18331 rm -f core conftest.err conftest.$ac_objext \
18332       conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18334 fi
18335 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18336 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18337 if test $ac_cv_lib_gcc___alloca = yes; then
18338
18339 cat >>confdefs.h <<\_ACEOF
18340 #define HAVE___ALLOCA 1
18341 _ACEOF
18342
18343 fi
18344
18345   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18346 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18347 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18348   echo $ECHO_N "(cached) $ECHO_C" >&6
18349 else
18350   ac_check_lib_save_LIBS=$LIBS
18351 LIBS="-lgcc  $LIBS"
18352 cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358
18359 /* Override any GCC internal prototype to avoid an error.
18360    Use char because int might match the return type of a GCC
18361    builtin and then its argument prototype would still apply.  */
18362 #ifdef __cplusplus
18363 extern "C"
18364 #endif
18365 char __chkstk ();
18366 int
18367 main ()
18368 {
18369 return __chkstk ();
18370   ;
18371   return 0;
18372 }
18373 _ACEOF
18374 rm -f conftest.$ac_objext conftest$ac_exeext
18375 if { (ac_try="$ac_link"
18376 case "(($ac_try" in
18377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378   *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381   (eval "$ac_link") 2>conftest.er1
18382   ac_status=$?
18383   grep -v '^ *+' conftest.er1 >conftest.err
18384   rm -f conftest.er1
18385   cat conftest.err >&5
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } &&
18388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18389   { (case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394   (eval "$ac_try") 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; } &&
18398          { ac_try='test -s conftest$ac_exeext'
18399   { (case "(($ac_try" in
18400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401   *) ac_try_echo=$ac_try;;
18402 esac
18403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404   (eval "$ac_try") 2>&5
18405   ac_status=$?
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; }; then
18408   ac_cv_lib_gcc___chkstk=yes
18409 else
18410   echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413         ac_cv_lib_gcc___chkstk=no
18414 fi
18415
18416 rm -f core conftest.err conftest.$ac_objext \
18417       conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18419 fi
18420 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18421 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18422 if test $ac_cv_lib_gcc___chkstk = yes; then
18423
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE___CHKSTK 1
18426 _ACEOF
18427
18428 fi
18429
18430   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18431 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18432 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18433   echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435   ac_check_lib_save_LIBS=$LIBS
18436 LIBS="-lgcc  $LIBS"
18437 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443
18444 /* Override any GCC internal prototype to avoid an error.
18445    Use char because int might match the return type of a GCC
18446    builtin and then its argument prototype would still apply.  */
18447 #ifdef __cplusplus
18448 extern "C"
18449 #endif
18450 char ___chkstk ();
18451 int
18452 main ()
18453 {
18454 return ___chkstk ();
18455   ;
18456   return 0;
18457 }
18458 _ACEOF
18459 rm -f conftest.$ac_objext conftest$ac_exeext
18460 if { (ac_try="$ac_link"
18461 case "(($ac_try" in
18462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463   *) ac_try_echo=$ac_try;;
18464 esac
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466   (eval "$ac_link") 2>conftest.er1
18467   ac_status=$?
18468   grep -v '^ *+' conftest.er1 >conftest.err
18469   rm -f conftest.er1
18470   cat conftest.err >&5
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); } &&
18473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18474   { (case "(($ac_try" in
18475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476   *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479   (eval "$ac_try") 2>&5
18480   ac_status=$?
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); }; } &&
18483          { ac_try='test -s conftest$ac_exeext'
18484   { (case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_try") 2>&5
18490   ac_status=$?
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); }; }; then
18493   ac_cv_lib_gcc____chkstk=yes
18494 else
18495   echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498         ac_cv_lib_gcc____chkstk=no
18499 fi
18500
18501 rm -f core conftest.err conftest.$ac_objext \
18502       conftest$ac_exeext conftest.$ac_ext
18503 LIBS=$ac_check_lib_save_LIBS
18504 fi
18505 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18506 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18507 if test $ac_cv_lib_gcc____chkstk = yes; then
18508
18509 cat >>confdefs.h <<\_ACEOF
18510 #define HAVE____CHKSTK 1
18511 _ACEOF
18512
18513 fi
18514
18515
18516   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18517 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18518 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lgcc  $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h.  */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h.  */
18529
18530 /* Override any GCC internal prototype to avoid an error.
18531    Use char because int might match the return type of a GCC
18532    builtin and then its argument prototype would still apply.  */
18533 #ifdef __cplusplus
18534 extern "C"
18535 #endif
18536 char __ashldi3 ();
18537 int
18538 main ()
18539 {
18540 return __ashldi3 ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_link") 2>conftest.er1
18553   ac_status=$?
18554   grep -v '^ *+' conftest.er1 >conftest.err
18555   rm -f conftest.er1
18556   cat conftest.err >&5
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); } &&
18559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18560   { (case "(($ac_try" in
18561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562   *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565   (eval "$ac_try") 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; } &&
18569          { ac_try='test -s conftest$ac_exeext'
18570   { (case "(($ac_try" in
18571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572   *) ac_try_echo=$ac_try;;
18573 esac
18574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575   (eval "$ac_try") 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; }; then
18579   ac_cv_lib_gcc___ashldi3=yes
18580 else
18581   echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18583
18584         ac_cv_lib_gcc___ashldi3=no
18585 fi
18586
18587 rm -f core conftest.err conftest.$ac_objext \
18588       conftest$ac_exeext conftest.$ac_ext
18589 LIBS=$ac_check_lib_save_LIBS
18590 fi
18591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18592 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18593 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18594
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE___ASHLDI3 1
18597 _ACEOF
18598
18599 fi
18600
18601   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18602 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18603 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18604   echo $ECHO_N "(cached) $ECHO_C" >&6
18605 else
18606   ac_check_lib_save_LIBS=$LIBS
18607 LIBS="-lgcc  $LIBS"
18608 cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h.  */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h.  */
18614
18615 /* Override any GCC internal prototype to avoid an error.
18616    Use char because int might match the return type of a GCC
18617    builtin and then its argument prototype would still apply.  */
18618 #ifdef __cplusplus
18619 extern "C"
18620 #endif
18621 char __ashrdi3 ();
18622 int
18623 main ()
18624 {
18625 return __ashrdi3 ();
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext conftest$ac_exeext
18631 if { (ac_try="$ac_link"
18632 case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637   (eval "$ac_link") 2>conftest.er1
18638   ac_status=$?
18639   grep -v '^ *+' conftest.er1 >conftest.err
18640   rm -f conftest.er1
18641   cat conftest.err >&5
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); } &&
18644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18645   { (case "(($ac_try" in
18646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647   *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650   (eval "$ac_try") 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; } &&
18654          { ac_try='test -s conftest$ac_exeext'
18655   { (case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_try") 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; }; then
18664   ac_cv_lib_gcc___ashrdi3=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669         ac_cv_lib_gcc___ashrdi3=no
18670 fi
18671
18672 rm -f core conftest.err conftest.$ac_objext \
18673       conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18675 fi
18676 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18677 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18678 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18679
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE___ASHRDI3 1
18682 _ACEOF
18683
18684 fi
18685
18686   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18687 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18688 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18689   echo $ECHO_N "(cached) $ECHO_C" >&6
18690 else
18691   ac_check_lib_save_LIBS=$LIBS
18692 LIBS="-lgcc  $LIBS"
18693 cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699
18700 /* Override any GCC internal prototype to avoid an error.
18701    Use char because int might match the return type of a GCC
18702    builtin and then its argument prototype would still apply.  */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char __divdi3 ();
18707 int
18708 main ()
18709 {
18710 return __divdi3 ();
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719   *) ac_try_echo=$ac_try;;
18720 esac
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722   (eval "$ac_link") 2>conftest.er1
18723   ac_status=$?
18724   grep -v '^ *+' conftest.er1 >conftest.err
18725   rm -f conftest.er1
18726   cat conftest.err >&5
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); } &&
18729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18730   { (case "(($ac_try" in
18731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732   *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735   (eval "$ac_try") 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; } &&
18739          { ac_try='test -s conftest$ac_exeext'
18740   { (case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_try") 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; }; then
18749   ac_cv_lib_gcc___divdi3=yes
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754         ac_cv_lib_gcc___divdi3=no
18755 fi
18756
18757 rm -f core conftest.err conftest.$ac_objext \
18758       conftest$ac_exeext conftest.$ac_ext
18759 LIBS=$ac_check_lib_save_LIBS
18760 fi
18761 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18762 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18763 if test $ac_cv_lib_gcc___divdi3 = yes; then
18764
18765 cat >>confdefs.h <<\_ACEOF
18766 #define HAVE___DIVDI3 1
18767 _ACEOF
18768
18769 fi
18770
18771   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18772 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18773 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18774   echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776   ac_check_lib_save_LIBS=$LIBS
18777 LIBS="-lgcc  $LIBS"
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h.  */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h.  */
18784
18785 /* Override any GCC internal prototype to avoid an error.
18786    Use char because int might match the return type of a GCC
18787    builtin and then its argument prototype would still apply.  */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 char __fixdfdi ();
18792 int
18793 main ()
18794 {
18795 return __fixdfdi ();
18796   ;
18797   return 0;
18798 }
18799 _ACEOF
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804   *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807   (eval "$ac_link") 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18815   { (case "(($ac_try" in
18816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817   *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820   (eval "$ac_try") 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; } &&
18824          { ac_try='test -s conftest$ac_exeext'
18825   { (case "(($ac_try" in
18826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827   *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830   (eval "$ac_try") 2>&5
18831   ac_status=$?
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); }; }; then
18834   ac_cv_lib_gcc___fixdfdi=yes
18835 else
18836   echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18838
18839         ac_cv_lib_gcc___fixdfdi=no
18840 fi
18841
18842 rm -f core conftest.err conftest.$ac_objext \
18843       conftest$ac_exeext conftest.$ac_ext
18844 LIBS=$ac_check_lib_save_LIBS
18845 fi
18846 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18847 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18848 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18849
18850 cat >>confdefs.h <<\_ACEOF
18851 #define HAVE___FIXDFDI 1
18852 _ACEOF
18853
18854 fi
18855
18856   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18857 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18858 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18859   echo $ECHO_N "(cached) $ECHO_C" >&6
18860 else
18861   ac_check_lib_save_LIBS=$LIBS
18862 LIBS="-lgcc  $LIBS"
18863 cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869
18870 /* Override any GCC internal prototype to avoid an error.
18871    Use char because int might match the return type of a GCC
18872    builtin and then its argument prototype would still apply.  */
18873 #ifdef __cplusplus
18874 extern "C"
18875 #endif
18876 char __fixsfdi ();
18877 int
18878 main ()
18879 {
18880 return __fixsfdi ();
18881   ;
18882   return 0;
18883 }
18884 _ACEOF
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889   *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892   (eval "$ac_link") 2>conftest.er1
18893   ac_status=$?
18894   grep -v '^ *+' conftest.er1 >conftest.err
18895   rm -f conftest.er1
18896   cat conftest.err >&5
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); } &&
18899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18900   { (case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_try") 2>&5
18906   ac_status=$?
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); }; } &&
18909          { ac_try='test -s conftest$ac_exeext'
18910   { (case "(($ac_try" in
18911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912   *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915   (eval "$ac_try") 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; }; then
18919   ac_cv_lib_gcc___fixsfdi=yes
18920 else
18921   echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924         ac_cv_lib_gcc___fixsfdi=no
18925 fi
18926
18927 rm -f core conftest.err conftest.$ac_objext \
18928       conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18930 fi
18931 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18932 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18933 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18934
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE___FIXSFDI 1
18937 _ACEOF
18938
18939 fi
18940
18941   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18942 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18943 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18944   echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946   ac_check_lib_save_LIBS=$LIBS
18947 LIBS="-lgcc  $LIBS"
18948 cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h.  */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h.  */
18954
18955 /* Override any GCC internal prototype to avoid an error.
18956    Use char because int might match the return type of a GCC
18957    builtin and then its argument prototype would still apply.  */
18958 #ifdef __cplusplus
18959 extern "C"
18960 #endif
18961 char __floatdidf ();
18962 int
18963 main ()
18964 {
18965 return __floatdidf ();
18966   ;
18967   return 0;
18968 }
18969 _ACEOF
18970 rm -f conftest.$ac_objext conftest$ac_exeext
18971 if { (ac_try="$ac_link"
18972 case "(($ac_try" in
18973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974   *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977   (eval "$ac_link") 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } &&
18984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985   { (case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_try") 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }; } &&
18994          { ac_try='test -s conftest$ac_exeext'
18995   { (case "(($ac_try" in
18996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997   *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000   (eval "$ac_try") 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; }; then
19004   ac_cv_lib_gcc___floatdidf=yes
19005 else
19006   echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009         ac_cv_lib_gcc___floatdidf=no
19010 fi
19011
19012 rm -f core conftest.err conftest.$ac_objext \
19013       conftest$ac_exeext conftest.$ac_ext
19014 LIBS=$ac_check_lib_save_LIBS
19015 fi
19016 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19017 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19018 if test $ac_cv_lib_gcc___floatdidf = yes; then
19019
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE___FLOATDIDF 1
19022 _ACEOF
19023
19024 fi
19025
19026   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19027 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19028 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031   ac_check_lib_save_LIBS=$LIBS
19032 LIBS="-lgcc  $LIBS"
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h.  */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h.  */
19039
19040 /* Override any GCC internal prototype to avoid an error.
19041    Use char because int might match the return type of a GCC
19042    builtin and then its argument prototype would still apply.  */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char __lshrdi3 ();
19047 int
19048 main ()
19049 {
19050 return __lshrdi3 ();
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_link") 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19070   { (case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_try") 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; } &&
19079          { ac_try='test -s conftest$ac_exeext'
19080   { (case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085   (eval "$ac_try") 2>&5
19086   ac_status=$?
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); }; }; then
19089   ac_cv_lib_gcc___lshrdi3=yes
19090 else
19091   echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094         ac_cv_lib_gcc___lshrdi3=no
19095 fi
19096
19097 rm -f core conftest.err conftest.$ac_objext \
19098       conftest$ac_exeext conftest.$ac_ext
19099 LIBS=$ac_check_lib_save_LIBS
19100 fi
19101 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19102 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19103 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19104
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE___LSHRDI3 1
19107 _ACEOF
19108
19109 fi
19110
19111   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19112 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19113 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19114   echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116   ac_check_lib_save_LIBS=$LIBS
19117 LIBS="-lgcc  $LIBS"
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124
19125 /* Override any GCC internal prototype to avoid an error.
19126    Use char because int might match the return type of a GCC
19127    builtin and then its argument prototype would still apply.  */
19128 #ifdef __cplusplus
19129 extern "C"
19130 #endif
19131 char __moddi3 ();
19132 int
19133 main ()
19134 {
19135 return __moddi3 ();
19136   ;
19137   return 0;
19138 }
19139 _ACEOF
19140 rm -f conftest.$ac_objext conftest$ac_exeext
19141 if { (ac_try="$ac_link"
19142 case "(($ac_try" in
19143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144   *) ac_try_echo=$ac_try;;
19145 esac
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147   (eval "$ac_link") 2>conftest.er1
19148   ac_status=$?
19149   grep -v '^ *+' conftest.er1 >conftest.err
19150   rm -f conftest.er1
19151   cat conftest.err >&5
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); } &&
19154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19155   { (case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_try") 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); }; } &&
19164          { ac_try='test -s conftest$ac_exeext'
19165   { (case "(($ac_try" in
19166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167   *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170   (eval "$ac_try") 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); }; }; then
19174   ac_cv_lib_gcc___moddi3=yes
19175 else
19176   echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179         ac_cv_lib_gcc___moddi3=no
19180 fi
19181
19182 rm -f core conftest.err conftest.$ac_objext \
19183       conftest$ac_exeext conftest.$ac_ext
19184 LIBS=$ac_check_lib_save_LIBS
19185 fi
19186 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19187 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19188 if test $ac_cv_lib_gcc___moddi3 = yes; then
19189
19190 cat >>confdefs.h <<\_ACEOF
19191 #define HAVE___MODDI3 1
19192 _ACEOF
19193
19194 fi
19195
19196   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19197 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19198 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19199   echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201   ac_check_lib_save_LIBS=$LIBS
19202 LIBS="-lgcc  $LIBS"
19203 cat >conftest.$ac_ext <<_ACEOF
19204 /* confdefs.h.  */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h.  */
19209
19210 /* Override any GCC internal prototype to avoid an error.
19211    Use char because int might match the return type of a GCC
19212    builtin and then its argument prototype would still apply.  */
19213 #ifdef __cplusplus
19214 extern "C"
19215 #endif
19216 char __udivdi3 ();
19217 int
19218 main ()
19219 {
19220 return __udivdi3 ();
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_link") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; } &&
19249          { ac_try='test -s conftest$ac_exeext'
19250   { (case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_try") 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259   ac_cv_lib_gcc___udivdi3=yes
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264         ac_cv_lib_gcc___udivdi3=no
19265 fi
19266
19267 rm -f core conftest.err conftest.$ac_objext \
19268       conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19270 fi
19271 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19272 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19273 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19274
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE___UDIVDI3 1
19277 _ACEOF
19278
19279 fi
19280
19281   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19282 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19283 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   ac_check_lib_save_LIBS=$LIBS
19287 LIBS="-lgcc  $LIBS"
19288 cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294
19295 /* Override any GCC internal prototype to avoid an error.
19296    Use char because int might match the return type of a GCC
19297    builtin and then its argument prototype would still apply.  */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char __umoddi3 ();
19302 int
19303 main ()
19304 {
19305 return __umoddi3 ();
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (ac_try="$ac_link"
19312 case "(($ac_try" in
19313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314   *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317   (eval "$ac_link") 2>conftest.er1
19318   ac_status=$?
19319   grep -v '^ *+' conftest.er1 >conftest.err
19320   rm -f conftest.er1
19321   cat conftest.err >&5
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } &&
19324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19325   { (case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_try") 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; } &&
19334          { ac_try='test -s conftest$ac_exeext'
19335   { (case "(($ac_try" in
19336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337   *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340   (eval "$ac_try") 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344   ac_cv_lib_gcc___umoddi3=yes
19345 else
19346   echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349         ac_cv_lib_gcc___umoddi3=no
19350 fi
19351
19352 rm -f core conftest.err conftest.$ac_objext \
19353       conftest$ac_exeext conftest.$ac_ext
19354 LIBS=$ac_check_lib_save_LIBS
19355 fi
19356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19357 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19358 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19359
19360 cat >>confdefs.h <<\_ACEOF
19361 #define HAVE___UMODDI3 1
19362 _ACEOF
19363
19364 fi
19365
19366
19367   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19368 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19369 if test "${ac_cv_lib_gcc___main+set}" = set; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   ac_check_lib_save_LIBS=$LIBS
19373 LIBS="-lgcc  $LIBS"
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380
19381 /* Override any GCC internal prototype to avoid an error.
19382    Use char because int might match the return type of a GCC
19383    builtin and then its argument prototype would still apply.  */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char __main ();
19388 int
19389 main ()
19390 {
19391 return __main ();
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (ac_try="$ac_link"
19398 case "(($ac_try" in
19399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400   *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403   (eval "$ac_link") 2>conftest.er1
19404   ac_status=$?
19405   grep -v '^ *+' conftest.er1 >conftest.err
19406   rm -f conftest.er1
19407   cat conftest.err >&5
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } &&
19410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19411   { (case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_try") 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; } &&
19420          { ac_try='test -s conftest$ac_exeext'
19421   { (case "(($ac_try" in
19422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423   *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426   (eval "$ac_try") 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430   ac_cv_lib_gcc___main=yes
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435         ac_cv_lib_gcc___main=no
19436 fi
19437
19438 rm -f core conftest.err conftest.$ac_objext \
19439       conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19441 fi
19442 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19443 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19444 if test $ac_cv_lib_gcc___main = yes; then
19445
19446 cat >>confdefs.h <<\_ACEOF
19447 #define HAVE___MAIN 1
19448 _ACEOF
19449
19450 fi
19451
19452   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19453 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19454 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   ac_check_lib_save_LIBS=$LIBS
19458 LIBS="-lgcc  $LIBS"
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465
19466 /* Override any GCC internal prototype to avoid an error.
19467    Use char because int might match the return type of a GCC
19468    builtin and then its argument prototype would still apply.  */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 char __cmpdi2 ();
19473 int
19474 main ()
19475 {
19476 return __cmpdi2 ();
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (ac_try="$ac_link"
19483 case "(($ac_try" in
19484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485   *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488   (eval "$ac_link") 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } &&
19495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19496   { (case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_try") 2>&5
19502   ac_status=$?
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); }; } &&
19505          { ac_try='test -s conftest$ac_exeext'
19506   { (case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_try") 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; }; then
19515   ac_cv_lib_gcc___cmpdi2=yes
19516 else
19517   echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19519
19520         ac_cv_lib_gcc___cmpdi2=no
19521 fi
19522
19523 rm -f core conftest.err conftest.$ac_objext \
19524       conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_lib_save_LIBS
19526 fi
19527 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19528 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19529 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE___CMPDI2 1
19533 _ACEOF
19534
19535 fi
19536
19537 fi
19538
19539 if test "$llvm_cv_os_type" = "MingW" ; then
19540   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19541 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19542   cat >conftest.$ac_ext <<_ACEOF
19543 #include <windows.h>
19544 #include <imagehlp.h>
19545 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19546 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19547 _ACEOF
19548 rm -f conftest.$ac_objext
19549 if { (ac_try="$ac_compile"
19550 case "(($ac_try" in
19551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552   *) ac_try_echo=$ac_try;;
19553 esac
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555   (eval "$ac_compile") 2>conftest.er1
19556   ac_status=$?
19557   grep -v '^ *+' conftest.er1 >conftest.err
19558   rm -f conftest.er1
19559   cat conftest.err >&5
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); } &&
19562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19563   { (case "(($ac_try" in
19564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565   *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568   (eval "$ac_try") 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; } &&
19572          { ac_try='test -s conftest.$ac_objext'
19573   { (case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578   (eval "$ac_try") 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; }; then
19582
19583   { echo "$as_me:$LINENO: result: yes" >&5
19584 echo "${ECHO_T}yes" >&6; }
19585   llvm_cv_win32_elmcb_pcstr="PCSTR"
19586
19587 else
19588   echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19590
19591
19592   { echo "$as_me:$LINENO: result: no" >&5
19593 echo "${ECHO_T}no" >&6; }
19594   llvm_cv_win32_elmcb_pcstr="PSTR"
19595
19596 fi
19597
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599
19600 cat >>confdefs.h <<_ACEOF
19601 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19602 _ACEOF
19603
19604 fi
19605
19606
19607 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19608 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19609 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612   ac_ext=cpp
19613 ac_cpp='$CXXCPP $CPPFLAGS'
19614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19617
19618    cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624 #include <math.h>
19625 int
19626 main ()
19627 {
19628 float f; isnan(f);
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 rm -f conftest.$ac_objext
19634 if { (ac_try="$ac_compile"
19635 case "(($ac_try" in
19636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637   *) ac_try_echo=$ac_try;;
19638 esac
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640   (eval "$ac_compile") 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } &&
19647          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19648   { (case "(($ac_try" in
19649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650   *) ac_try_echo=$ac_try;;
19651 esac
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653   (eval "$ac_try") 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; } &&
19657          { ac_try='test -s conftest.$ac_objext'
19658   { (case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_try") 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; }; then
19667   ac_cv_func_isnan_in_math_h=yes
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672         ac_cv_func_isnan_in_math_h=no
19673 fi
19674
19675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19676   ac_ext=c
19677 ac_cpp='$CPP $CPPFLAGS'
19678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681
19682 fi
19683 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19684 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19685
19686
19687 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE_ISNAN_IN_MATH_H 1
19691 _ACEOF
19692
19693 fi
19694
19695 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19696 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19697 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19698   echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700   ac_ext=cpp
19701 ac_cpp='$CXXCPP $CPPFLAGS'
19702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705
19706    cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712 #include <cmath>
19713 int
19714 main ()
19715 {
19716 float f; isnan(f);
19717   ;
19718   return 0;
19719 }
19720 _ACEOF
19721 rm -f conftest.$ac_objext
19722 if { (ac_try="$ac_compile"
19723 case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_compile") 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } &&
19735          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19736   { (case "(($ac_try" in
19737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738   *) ac_try_echo=$ac_try;;
19739 esac
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741   (eval "$ac_try") 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest.$ac_objext'
19746   { (case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_try") 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_cv_func_isnan_in_cmath=yes
19756 else
19757   echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760         ac_cv_func_isnan_in_cmath=no
19761 fi
19762
19763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19764   ac_ext=c
19765 ac_cpp='$CPP $CPPFLAGS'
19766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
19770 fi
19771 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19772 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19773
19774 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19775
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_ISNAN_IN_CMATH 1
19778 _ACEOF
19779
19780 fi
19781
19782 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19783 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19784 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   ac_ext=cpp
19788 ac_cpp='$CXXCPP $CPPFLAGS'
19789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19792
19793    cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 #include <cmath>
19800 int
19801 main ()
19802 {
19803 float f; std::isnan(f);
19804   ;
19805   return 0;
19806 }
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (ac_try="$ac_compile"
19810 case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_compile") 2>conftest.er1
19816   ac_status=$?
19817   grep -v '^ *+' conftest.er1 >conftest.err
19818   rm -f conftest.er1
19819   cat conftest.err >&5
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } &&
19822          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19823   { (case "(($ac_try" in
19824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825   *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828   (eval "$ac_try") 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); }; } &&
19832          { ac_try='test -s conftest.$ac_objext'
19833   { (case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_try") 2>&5
19839   ac_status=$?
19840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841   (exit $ac_status); }; }; then
19842   ac_cv_func_std_isnan_in_cmath=yes
19843 else
19844   echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19846
19847         ac_cv_func_std_isnan_in_cmath=no
19848 fi
19849
19850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851   ac_ext=c
19852 ac_cpp='$CPP $CPPFLAGS'
19853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19856
19857 fi
19858 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19859 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19860
19861 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19862
19863 cat >>confdefs.h <<\_ACEOF
19864 #define HAVE_STD_ISNAN_IN_CMATH 1
19865 _ACEOF
19866
19867 fi
19868
19869
19870 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19871 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19872 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875   ac_ext=cpp
19876 ac_cpp='$CXXCPP $CPPFLAGS'
19877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19880
19881    cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h.  */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h.  */
19887 #include <math.h>
19888 int
19889 main ()
19890 {
19891 float f; isinf(f);
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (ac_try="$ac_compile"
19898 case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_compile") 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } &&
19910          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19911   { (case "(($ac_try" in
19912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913   *) ac_try_echo=$ac_try;;
19914 esac
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916   (eval "$ac_try") 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; } &&
19920          { ac_try='test -s conftest.$ac_objext'
19921   { (case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_try") 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_func_isinf_in_math_h=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935         ac_cv_func_isinf_in_math_h=no
19936 fi
19937
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939   ac_ext=c
19940 ac_cpp='$CPP $CPPFLAGS'
19941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944
19945 fi
19946 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19947 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19948
19949 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19950
19951 cat >>confdefs.h <<\_ACEOF
19952 #define HAVE_ISINF_IN_MATH_H 1
19953 _ACEOF
19954
19955 fi
19956
19957 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19958 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19959 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962   ac_ext=cpp
19963 ac_cpp='$CXXCPP $CPPFLAGS'
19964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19967
19968    cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 #include <cmath>
19975 int
19976 main ()
19977 {
19978 float f; isinf(f);
19979   ;
19980   return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987   *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990   (eval "$ac_compile") 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } &&
19997          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19998   { (case "(($ac_try" in
19999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000   *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003   (eval "$ac_try") 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; } &&
20007          { ac_try='test -s conftest.$ac_objext'
20008   { (case "(($ac_try" in
20009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010   *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013   (eval "$ac_try") 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); }; }; then
20017   ac_cv_func_isinf_in_cmath=yes
20018 else
20019   echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022         ac_cv_func_isinf_in_cmath=no
20023 fi
20024
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026   ac_ext=c
20027 ac_cpp='$CPP $CPPFLAGS'
20028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20031
20032 fi
20033 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20034 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20035
20036 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20037
20038 cat >>confdefs.h <<\_ACEOF
20039 #define HAVE_ISINF_IN_CMATH 1
20040 _ACEOF
20041
20042 fi
20043
20044 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20045 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20046 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20047   echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049   ac_ext=cpp
20050 ac_cpp='$CXXCPP $CPPFLAGS'
20051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20054
20055    cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061 #include <cmath>
20062 int
20063 main ()
20064 {
20065 float f; std::isinf(f);
20066   ;
20067   return 0;
20068 }
20069 _ACEOF
20070 rm -f conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074   *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077   (eval "$ac_compile") 2>conftest.er1
20078   ac_status=$?
20079   grep -v '^ *+' conftest.er1 >conftest.err
20080   rm -f conftest.er1
20081   cat conftest.err >&5
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); } &&
20084          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20085   { (case "(($ac_try" in
20086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087   *) ac_try_echo=$ac_try;;
20088 esac
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090   (eval "$ac_try") 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; } &&
20094          { ac_try='test -s conftest.$ac_objext'
20095   { (case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_try") 2>&5
20101   ac_status=$?
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); }; }; then
20104   ac_cv_func_std_isinf_in_cmath=yes
20105 else
20106   echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20108
20109         ac_cv_func_std_isinf_in_cmath=no
20110 fi
20111
20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113   ac_ext=c
20114 ac_cpp='$CPP $CPPFLAGS'
20115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20118
20119 fi
20120 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20121 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20122
20123 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20124
20125 cat >>confdefs.h <<\_ACEOF
20126 #define HAVE_STD_ISINF_IN_CMATH 1
20127 _ACEOF
20128
20129 fi
20130
20131 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20132 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20133 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20134   echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136   ac_ext=cpp
20137 ac_cpp='$CXXCPP $CPPFLAGS'
20138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20141
20142    cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 #include <ieeefp.h>
20149 int
20150 main ()
20151 {
20152 float f; finite(f);
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (ac_try="$ac_compile"
20159 case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_compile") 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } &&
20171          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20172   { (case "(($ac_try" in
20173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174   *) ac_try_echo=$ac_try;;
20175 esac
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177   (eval "$ac_try") 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; } &&
20181          { ac_try='test -s conftest.$ac_objext'
20182   { (case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_try") 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }; then
20191   ac_cv_func_finite_in_ieeefp_h=yes
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196         ac_cv_func_finite_in_ieeefp_h=no
20197 fi
20198
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200   ac_ext=c
20201 ac_cpp='$CPP $CPPFLAGS'
20202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20205
20206 fi
20207 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20208 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20209
20210 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_FINITE_IN_IEEEFP_H 1
20214 _ACEOF
20215
20216 fi
20217
20218
20219
20220 if test "$llvm_cv_platform_type" = "Unix" ; then
20221
20222
20223 for ac_header in stdlib.h unistd.h
20224 do
20225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20227   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230   echo $ECHO_N "(cached) $ECHO_C" >&6
20231 fi
20232 ac_res=`eval echo '${'$as_ac_Header'}'`
20233                { echo "$as_me:$LINENO: result: $ac_res" >&5
20234 echo "${ECHO_T}$ac_res" >&6; }
20235 else
20236   # Is the header compilable?
20237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20239 cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245 $ac_includes_default
20246 #include <$ac_header>
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_compile") 2>conftest.er1
20256   ac_status=$?
20257   grep -v '^ *+' conftest.er1 >conftest.err
20258   rm -f conftest.er1
20259   cat conftest.err >&5
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); } &&
20262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263   { (case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_try") 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; } &&
20272          { ac_try='test -s conftest.$ac_objext'
20273   { (case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_try") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_header_compiler=yes
20283 else
20284   echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287         ac_header_compiler=no
20288 fi
20289
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20292 echo "${ECHO_T}$ac_header_compiler" >&6; }
20293
20294 # Is the header present?
20295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h.  */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h.  */
20303 #include <$ac_header>
20304 _ACEOF
20305 if { (ac_try="$ac_cpp conftest.$ac_ext"
20306 case "(($ac_try" in
20307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308   *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20312   ac_status=$?
20313   grep -v '^ *+' conftest.er1 >conftest.err
20314   rm -f conftest.er1
20315   cat conftest.err >&5
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } >/dev/null; then
20318   if test -s conftest.err; then
20319     ac_cpp_err=$ac_c_preproc_warn_flag
20320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20321   else
20322     ac_cpp_err=
20323   fi
20324 else
20325   ac_cpp_err=yes
20326 fi
20327 if test -z "$ac_cpp_err"; then
20328   ac_header_preproc=yes
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333   ac_header_preproc=no
20334 fi
20335
20336 rm -f conftest.err conftest.$ac_ext
20337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20338 echo "${ECHO_T}$ac_header_preproc" >&6; }
20339
20340 # So?  What about this header?
20341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20342   yes:no: )
20343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20347     ac_header_preproc=yes
20348     ;;
20349   no:yes:* )
20350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20362     ( cat <<\_ASBOX
20363 ## ------------------------------------ ##
20364 ## Report this to http://llvm.org/bugs/ ##
20365 ## ------------------------------------ ##
20366 _ASBOX
20367      ) | sed "s/^/$as_me: WARNING:     /" >&2
20368     ;;
20369 esac
20370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375   eval "$as_ac_Header=\$ac_header_preproc"
20376 fi
20377 ac_res=`eval echo '${'$as_ac_Header'}'`
20378                { echo "$as_me:$LINENO: result: $ac_res" >&5
20379 echo "${ECHO_T}$ac_res" >&6; }
20380
20381 fi
20382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20383   cat >>confdefs.h <<_ACEOF
20384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20385 _ACEOF
20386
20387 fi
20388
20389 done
20390
20391
20392 for ac_func in getpagesize
20393 do
20394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20398   echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400   cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20408 #define $ac_func innocuous_$ac_func
20409
20410 /* System header to define __stub macros and hopefully few prototypes,
20411     which can conflict with char $ac_func (); below.
20412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413     <limits.h> exists even on freestanding compilers.  */
20414
20415 #ifdef __STDC__
20416 # include <limits.h>
20417 #else
20418 # include <assert.h>
20419 #endif
20420
20421 #undef $ac_func
20422
20423 /* Override any GCC internal prototype to avoid an error.
20424    Use char because int might match the return type of a GCC
20425    builtin and then its argument prototype would still apply.  */
20426 #ifdef __cplusplus
20427 extern "C"
20428 #endif
20429 char $ac_func ();
20430 /* The GNU C library defines this for functions which it implements
20431     to always fail with ENOSYS.  Some functions are actually named
20432     something starting with __ and the normal name is an alias.  */
20433 #if defined __stub_$ac_func || defined __stub___$ac_func
20434 choke me
20435 #endif
20436
20437 int
20438 main ()
20439 {
20440 return $ac_func ();
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_link") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } &&
20459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460   { (case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_try") 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; } &&
20469          { ac_try='test -s conftest$ac_exeext'
20470   { (case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_try") 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; }; then
20479   eval "$as_ac_var=yes"
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484         eval "$as_ac_var=no"
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext \
20488       conftest$ac_exeext conftest.$ac_ext
20489 fi
20490 ac_res=`eval echo '${'$as_ac_var'}'`
20491                { echo "$as_me:$LINENO: result: $ac_res" >&5
20492 echo "${ECHO_T}$ac_res" >&6; }
20493 if test `eval echo '${'$as_ac_var'}'` = yes; then
20494   cat >>confdefs.h <<_ACEOF
20495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20496 _ACEOF
20497
20498 fi
20499 done
20500
20501 { echo "$as_me:$LINENO: checking for working mmap" >&5
20502 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20503 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506   if test "$cross_compiling" = yes; then
20507   ac_cv_func_mmap_fixed_mapped=no
20508 else
20509   cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515 $ac_includes_default
20516 /* malloc might have been renamed as rpl_malloc. */
20517 #undef malloc
20518
20519 /* Thanks to Mike Haertel and Jim Avera for this test.
20520    Here is a matrix of mmap possibilities:
20521         mmap private not fixed
20522         mmap private fixed at somewhere currently unmapped
20523         mmap private fixed at somewhere already mapped
20524         mmap shared not fixed
20525         mmap shared fixed at somewhere currently unmapped
20526         mmap shared fixed at somewhere already mapped
20527    For private mappings, we should verify that changes cannot be read()
20528    back from the file, nor mmap's back from the file at a different
20529    address.  (There have been systems where private was not correctly
20530    implemented like the infamous i386 svr4.0, and systems where the
20531    VM page cache was not coherent with the file system buffer cache
20532    like early versions of FreeBSD and possibly contemporary NetBSD.)
20533    For shared mappings, we should conversely verify that changes get
20534    propagated back to all the places they're supposed to be.
20535
20536    Grep wants private fixed already mapped.
20537    The main things grep needs to know about mmap are:
20538    * does it exist and is it safe to write into the mmap'd area
20539    * how to use it (BSD variants)  */
20540
20541 #include <fcntl.h>
20542 #include <sys/mman.h>
20543
20544 #if !STDC_HEADERS && !HAVE_STDLIB_H
20545 char *malloc ();
20546 #endif
20547
20548 /* This mess was copied from the GNU getpagesize.h.  */
20549 #if !HAVE_GETPAGESIZE
20550 /* Assume that all systems that can run configure have sys/param.h.  */
20551 # if !HAVE_SYS_PARAM_H
20552 #  define HAVE_SYS_PARAM_H 1
20553 # endif
20554
20555 # ifdef _SC_PAGESIZE
20556 #  define getpagesize() sysconf(_SC_PAGESIZE)
20557 # else /* no _SC_PAGESIZE */
20558 #  if HAVE_SYS_PARAM_H
20559 #   include <sys/param.h>
20560 #   ifdef EXEC_PAGESIZE
20561 #    define getpagesize() EXEC_PAGESIZE
20562 #   else /* no EXEC_PAGESIZE */
20563 #    ifdef NBPG
20564 #     define getpagesize() NBPG * CLSIZE
20565 #     ifndef CLSIZE
20566 #      define CLSIZE 1
20567 #     endif /* no CLSIZE */
20568 #    else /* no NBPG */
20569 #     ifdef NBPC
20570 #      define getpagesize() NBPC
20571 #     else /* no NBPC */
20572 #      ifdef PAGESIZE
20573 #       define getpagesize() PAGESIZE
20574 #      endif /* PAGESIZE */
20575 #     endif /* no NBPC */
20576 #    endif /* no NBPG */
20577 #   endif /* no EXEC_PAGESIZE */
20578 #  else /* no HAVE_SYS_PARAM_H */
20579 #   define getpagesize() 8192   /* punt totally */
20580 #  endif /* no HAVE_SYS_PARAM_H */
20581 # endif /* no _SC_PAGESIZE */
20582
20583 #endif /* no HAVE_GETPAGESIZE */
20584
20585 int
20586 main ()
20587 {
20588   char *data, *data2, *data3;
20589   int i, pagesize;
20590   int fd;
20591
20592   pagesize = getpagesize ();
20593
20594   /* First, make a file with some known garbage in it. */
20595   data = (char *) malloc (pagesize);
20596   if (!data)
20597     return 1;
20598   for (i = 0; i < pagesize; ++i)
20599     *(data + i) = rand ();
20600   umask (0);
20601   fd = creat ("conftest.mmap", 0600);
20602   if (fd < 0)
20603     return 1;
20604   if (write (fd, data, pagesize) != pagesize)
20605     return 1;
20606   close (fd);
20607
20608   /* Next, try to mmap the file at a fixed address which already has
20609      something else allocated at it.  If we can, also make sure that
20610      we see the same garbage.  */
20611   fd = open ("conftest.mmap", O_RDWR);
20612   if (fd < 0)
20613     return 1;
20614   data2 = (char *) malloc (2 * pagesize);
20615   if (!data2)
20616     return 1;
20617   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20618   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20619                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20620     return 1;
20621   for (i = 0; i < pagesize; ++i)
20622     if (*(data + i) != *(data2 + i))
20623       return 1;
20624
20625   /* Finally, make sure that changes to the mapped area do not
20626      percolate back to the file as seen by read().  (This is a bug on
20627      some variants of i386 svr4.0.)  */
20628   for (i = 0; i < pagesize; ++i)
20629     *(data2 + i) = *(data2 + i) + 1;
20630   data3 = (char *) malloc (pagesize);
20631   if (!data3)
20632     return 1;
20633   if (read (fd, data3, pagesize) != pagesize)
20634     return 1;
20635   for (i = 0; i < pagesize; ++i)
20636     if (*(data + i) != *(data3 + i))
20637       return 1;
20638   close (fd);
20639   return 0;
20640 }
20641 _ACEOF
20642 rm -f conftest$ac_exeext
20643 if { (ac_try="$ac_link"
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_link") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20653   { (case "(($ac_try" in
20654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655   *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658   (eval "$ac_try") 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; }; then
20662   ac_cv_func_mmap_fixed_mapped=yes
20663 else
20664   echo "$as_me: program exited with status $ac_status" >&5
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668 ( exit $ac_status )
20669 ac_cv_func_mmap_fixed_mapped=no
20670 fi
20671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20672 fi
20673
20674
20675 fi
20676 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20677 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20679
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_MMAP 1
20682 _ACEOF
20683
20684 fi
20685 rm -f conftest.mmap
20686
20687   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20688 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20689 if test "${ac_cv_func_mmap_file+set}" = set; then
20690   echo $ECHO_N "(cached) $ECHO_C" >&6
20691 else
20692    ac_ext=c
20693 ac_cpp='$CPP $CPPFLAGS'
20694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
20698   if test "$cross_compiling" = yes; then
20699   ac_cv_func_mmap_file=no
20700 else
20701   cat >conftest.$ac_ext <<_ACEOF
20702
20703     /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708
20709 #include <sys/types.h>
20710 #include <sys/mman.h>
20711 #include <fcntl.h>
20712
20713 int
20714 main ()
20715 {
20716
20717   int fd;
20718   fd = creat ("foo",0777);
20719   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20720   unlink ("foo");
20721   return (fd != (int) MAP_FAILED);
20722   ;
20723   return 0;
20724 }
20725 _ACEOF
20726 rm -f conftest$ac_exeext
20727 if { (ac_try="$ac_link"
20728 case "(($ac_try" in
20729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730   *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733   (eval "$ac_link") 2>&5
20734   ac_status=$?
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20737   { (case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_try") 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   ac_cv_func_mmap_file=yes
20747 else
20748   echo "$as_me: program exited with status $ac_status" >&5
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752 ( exit $ac_status )
20753 ac_cv_func_mmap_file=no
20754 fi
20755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20756 fi
20757
20758
20759   ac_ext=c
20760 ac_cpp='$CPP $CPPFLAGS'
20761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764
20765
20766 fi
20767 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20768 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20769 if test "$ac_cv_func_mmap_file" = yes; then
20770
20771 cat >>confdefs.h <<\_ACEOF
20772 #define HAVE_MMAP_FILE
20773 _ACEOF
20774
20775    MMAP_FILE=yes
20776
20777 fi
20778
20779   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20780 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20781 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20782   echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784   if test "$llvm_cv_os_type" = "Interix" ; then
20785    ac_cv_need_dev_zero_for_mmap=yes
20786  else
20787    ac_cv_need_dev_zero_for_mmap=no
20788  fi
20789
20790 fi
20791 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20792 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20793 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20794
20795 cat >>confdefs.h <<\_ACEOF
20796 #define NEED_DEV_ZERO_FOR_MMAP 1
20797 _ACEOF
20798
20799 fi
20800
20801   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20802   then
20803     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20804 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20805   fi
20806   if test "$ac_cv_func_mmap_file" = "no"
20807   then
20808     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20809 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20810   fi
20811 fi
20812
20813 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20814 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20815 ac_ext=cpp
20816 ac_cpp='$CXXCPP $CPPFLAGS'
20817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20820
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827 int main() {
20828         volatile unsigned long val = 1;
20829         __sync_synchronize();
20830         __sync_val_compare_and_swap(&val, 1, 0);
20831         __sync_add_and_fetch(&val, 1);
20832         __sync_sub_and_fetch(&val, 1);
20833         return 0;
20834       }
20835
20836 _ACEOF
20837 rm -f conftest.$ac_objext conftest$ac_exeext
20838 if { (ac_try="$ac_link"
20839 case "(($ac_try" in
20840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841   *) ac_try_echo=$ac_try;;
20842 esac
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844   (eval "$ac_link") 2>conftest.er1
20845   ac_status=$?
20846   grep -v '^ *+' conftest.er1 >conftest.err
20847   rm -f conftest.er1
20848   cat conftest.err >&5
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } &&
20851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20852   { (case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_try") 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); }; } &&
20861          { ac_try='test -s conftest$ac_exeext'
20862   { (case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867   (eval "$ac_try") 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871   ac_ext=c
20872 ac_cpp='$CPP $CPPFLAGS'
20873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20876
20877   { echo "$as_me:$LINENO: result: yes" >&5
20878 echo "${ECHO_T}yes" >&6; }
20879
20880 cat >>confdefs.h <<\_ACEOF
20881 #define LLVM_HAS_ATOMICS 1
20882 _ACEOF
20883
20884 else
20885   echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888         { echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6; }
20890
20891 cat >>confdefs.h <<\_ACEOF
20892 #define LLVM_HAS_ATOMICS 0
20893 _ACEOF
20894
20895   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20896 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20897 fi
20898
20899 rm -f core conftest.err conftest.$ac_objext \
20900       conftest$ac_exeext conftest.$ac_ext
20901
20902
20903 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20904   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20905 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20906 if test "${llvm_cv_linux_mixed+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909    ac_ext=c
20910 ac_cpp='$CPP $CPPFLAGS'
20911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
20915   cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h.  */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h.  */
20921 #ifndef __x86_64__
20922        error: Not x86-64 even if uname says so!
20923       #endif
20924
20925 int
20926 main ()
20927 {
20928
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest.$ac_objext
20934 if { (ac_try="$ac_compile"
20935 case "(($ac_try" in
20936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937   *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940   (eval "$ac_compile") 2>conftest.er1
20941   ac_status=$?
20942   grep -v '^ *+' conftest.er1 >conftest.err
20943   rm -f conftest.er1
20944   cat conftest.err >&5
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } &&
20947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948   { (case "(($ac_try" in
20949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950   *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953   (eval "$ac_try") 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; } &&
20957          { ac_try='test -s conftest.$ac_objext'
20958   { (case "(($ac_try" in
20959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960   *) ac_try_echo=$ac_try;;
20961 esac
20962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963   (eval "$ac_try") 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; }; then
20967   llvm_cv_linux_mixed=no
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972         llvm_cv_linux_mixed=yes
20973 fi
20974
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976   ac_ext=c
20977 ac_cpp='$CPP $CPPFLAGS'
20978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20981
20982
20983 fi
20984 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20985 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20986
20987   if test "$llvm_cv_linux_mixed" = "yes"; then
20988     llvm_cv_target_arch="x86"
20989     ARCH="x86"
20990   fi
20991 fi
20992
20993
20994 for ac_func in __dso_handle
20995 do
20996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21010 #define $ac_func innocuous_$ac_func
21011
21012 /* System header to define __stub macros and hopefully few prototypes,
21013     which can conflict with char $ac_func (); below.
21014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21015     <limits.h> exists even on freestanding compilers.  */
21016
21017 #ifdef __STDC__
21018 # include <limits.h>
21019 #else
21020 # include <assert.h>
21021 #endif
21022
21023 #undef $ac_func
21024
21025 /* Override any GCC internal prototype to avoid an error.
21026    Use char because int might match the return type of a GCC
21027    builtin and then its argument prototype would still apply.  */
21028 #ifdef __cplusplus
21029 extern "C"
21030 #endif
21031 char $ac_func ();
21032 /* The GNU C library defines this for functions which it implements
21033     to always fail with ENOSYS.  Some functions are actually named
21034     something starting with __ and the normal name is an alias.  */
21035 #if defined __stub_$ac_func || defined __stub___$ac_func
21036 choke me
21037 #endif
21038
21039 int
21040 main ()
21041 {
21042 return $ac_func ();
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
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_link") 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); } &&
21061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21062   { (case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_try") 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest$ac_exeext'
21072   { (case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_try") 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; }; then
21081   eval "$as_ac_var=yes"
21082 else
21083   echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21085
21086         eval "$as_ac_var=no"
21087 fi
21088
21089 rm -f core conftest.err conftest.$ac_objext \
21090       conftest$ac_exeext conftest.$ac_ext
21091 fi
21092 ac_res=`eval echo '${'$as_ac_var'}'`
21093                { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 if test `eval echo '${'$as_ac_var'}'` = yes; then
21096   cat >>confdefs.h <<_ACEOF
21097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21098 _ACEOF
21099
21100 fi
21101 done
21102
21103
21104 SHLIBEXT=$libltdl_cv_shlibext
21105
21106
21107 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21108
21109
21110 if test "${prefix}" = "NONE" ; then
21111   prefix="/usr/local"
21112 fi
21113 eval LLVM_PREFIX="${prefix}";
21114 eval LLVM_BINDIR="${prefix}/bin";
21115 eval LLVM_LIBDIR="${prefix}/lib";
21116 eval LLVM_DATADIR="${prefix}/share/llvm";
21117 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21118 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21119 eval LLVM_INCLUDEDIR="${prefix}/include";
21120 eval LLVM_INFODIR="${prefix}/info";
21121 eval LLVM_MANDIR="${prefix}/man";
21122 LLVM_CONFIGTIME=`date`
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21135   LLVM_CONFIGTIME="(timestamp not enabled)"
21136 fi
21137
21138
21139 cat >>confdefs.h <<_ACEOF
21140 #define LLVM_PREFIX "$LLVM_PREFIX"
21141 _ACEOF
21142
21143
21144 cat >>confdefs.h <<_ACEOF
21145 #define LLVM_BINDIR "$LLVM_BINDIR"
21146 _ACEOF
21147
21148
21149 cat >>confdefs.h <<_ACEOF
21150 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21151 _ACEOF
21152
21153
21154 cat >>confdefs.h <<_ACEOF
21155 #define LLVM_DATADIR "$LLVM_DATADIR"
21156 _ACEOF
21157
21158
21159 cat >>confdefs.h <<_ACEOF
21160 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21161 _ACEOF
21162
21163
21164 cat >>confdefs.h <<_ACEOF
21165 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21166 _ACEOF
21167
21168
21169 cat >>confdefs.h <<_ACEOF
21170 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21171 _ACEOF
21172
21173
21174 cat >>confdefs.h <<_ACEOF
21175 #define LLVM_INFODIR "$LLVM_INFODIR"
21176 _ACEOF
21177
21178
21179 cat >>confdefs.h <<_ACEOF
21180 #define LLVM_MANDIR "$LLVM_MANDIR"
21181 _ACEOF
21182
21183
21184 cat >>confdefs.h <<_ACEOF
21185 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21186 _ACEOF
21187
21188
21189 cat >>confdefs.h <<_ACEOF
21190 #define LLVM_HOSTTRIPLE "$host"
21191 _ACEOF
21192
21193
21194 cat >>confdefs.h <<_ACEOF
21195 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21196 _ACEOF
21197
21198
21199 if test "$BINDINGS_TO_BUILD" = auto ; then
21200   BINDINGS_TO_BUILD=""
21201   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21202     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21203   fi
21204 fi
21205 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21206
21207
21208 ALL_BINDINGS=ocaml
21209
21210
21211 binding_prereqs_failed=0
21212 for a_binding in $BINDINGS_TO_BUILD ; do
21213   case "$a_binding" in
21214   ocaml)
21215     if test "x$OCAMLC" = x ; then
21216       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21217 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21218       binding_prereqs_failed=1
21219     fi
21220     if test "x$OCAMLDEP" = x ; then
21221       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21222 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21223       binding_prereqs_failed=1
21224     fi
21225     if test "x$OCAMLOPT" = x ; then
21226       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21227 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21228           fi
21229     if test "x$with_ocaml_libdir" != xauto ; then
21230       OCAML_LIBDIR=$with_ocaml_libdir
21231
21232     else
21233       ocaml_stdlib="`"$OCAMLC" -where`"
21234       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21235       then
21236         # ocaml stdlib is beneath our prefix; use stdlib
21237         OCAML_LIBDIR=$ocaml_stdlib
21238
21239       else
21240         # ocaml stdlib is outside our prefix; use libdir/ocaml
21241         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21242
21243       fi
21244     fi
21245     ;;
21246   esac
21247 done
21248 if test "$binding_prereqs_failed" = 1 ; then
21249   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21250 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21251    { (exit 1); exit 1; }; }
21252 fi
21253
21254 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21255 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21256 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259    ac_ext=cpp
21260 ac_cpp='$CXXCPP $CPPFLAGS'
21261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21264
21265   oldcxxflags="$CXXFLAGS"
21266   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21267   cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21274 int
21275 main ()
21276 {
21277 X<int>().f();
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 rm -f conftest.$ac_objext
21283 if { (ac_try="$ac_compile"
21284 case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289   (eval "$ac_compile") 2>conftest.er1
21290   ac_status=$?
21291   grep -v '^ *+' conftest.er1 >conftest.err
21292   rm -f conftest.er1
21293   cat conftest.err >&5
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } &&
21296          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21297   { (case "(($ac_try" in
21298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299   *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302   (eval "$ac_try") 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); }; } &&
21306          { ac_try='test -s conftest.$ac_objext'
21307   { (case "(($ac_try" in
21308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309   *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312   (eval "$ac_try") 2>&5
21313   ac_status=$?
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); }; }; then
21316   llvm_cv_cxx_visibility_inlines_hidden=yes
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321         llvm_cv_cxx_visibility_inlines_hidden=no
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325   CXXFLAGS="$oldcxxflags"
21326   ac_ext=c
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21331
21332
21333 fi
21334 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21335 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21336 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21337   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21338
21339 else
21340   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21341
21342 fi
21343
21344
21345 if test "$llvm_cv_link_use_r" = "yes" ; then
21346   RPATH="-Wl,-R"
21347 else
21348   RPATH="-Wl,-rpath"
21349 fi
21350
21351
21352 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21353   RDYNAMIC="-Wl,-export-dynamic"
21354 else
21355   RDYNAMIC=""
21356 fi
21357
21358
21359
21360 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21361
21362
21363
21364
21365
21366
21367 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21368
21369 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21370
21371 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21372
21373 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21374
21375 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21376
21377
21378 ac_config_files="$ac_config_files Makefile.config"
21379
21380
21381 ac_config_files="$ac_config_files llvm.spec"
21382
21383
21384 ac_config_files="$ac_config_files docs/doxygen.cfg"
21385
21386
21387 if test "${clang_src_root}" = ""; then
21388   clang_src_root="$srcdir/tools/clang"
21389 fi
21390 if test -f ${clang_src_root}/README.txt; then
21391     configh="include/clang/Config/config.h"
21392   doxy="docs/doxygen.cfg"
21393   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21394
21395   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21396
21397 fi
21398
21399 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21400
21401
21402 test "x$program_prefix" = "xNONE" && program_prefix=""
21403
21404
21405
21406 ac_config_commands="$ac_config_commands setup"
21407
21408 ac_config_commands="$ac_config_commands Makefile"
21409
21410
21411 ac_config_commands="$ac_config_commands Makefile.common"
21412
21413
21414 ac_config_commands="$ac_config_commands examples/Makefile"
21415
21416
21417 ac_config_commands="$ac_config_commands lib/Makefile"
21418
21419
21420 ac_config_commands="$ac_config_commands runtime/Makefile"
21421
21422
21423 ac_config_commands="$ac_config_commands test/Makefile"
21424
21425
21426 ac_config_commands="$ac_config_commands test/Makefile.tests"
21427
21428
21429 ac_config_commands="$ac_config_commands unittests/Makefile"
21430
21431
21432 ac_config_commands="$ac_config_commands tools/Makefile"
21433
21434
21435 ac_config_commands="$ac_config_commands utils/Makefile"
21436
21437
21438 ac_config_commands="$ac_config_commands projects/Makefile"
21439
21440
21441 ac_config_commands="$ac_config_commands bindings/Makefile"
21442
21443
21444 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21445
21446
21447
21448 cat >confcache <<\_ACEOF
21449 # This file is a shell script that caches the results of configure
21450 # tests run on this system so they can be shared between configure
21451 # scripts and configure runs, see configure's option --config-cache.
21452 # It is not useful on other systems.  If it contains results you don't
21453 # want to keep, you may remove or edit it.
21454 #
21455 # config.status only pays attention to the cache file if you give it
21456 # the --recheck option to rerun configure.
21457 #
21458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21460 # following values.
21461
21462 _ACEOF
21463
21464 # The following way of writing the cache mishandles newlines in values,
21465 # but we know of no workaround that is simple, portable, and efficient.
21466 # So, we kill variables containing newlines.
21467 # Ultrix sh set writes to stderr and can't be redirected directly,
21468 # and sets the high bit in the cache file unless we assign to the vars.
21469 (
21470   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21471     eval ac_val=\$$ac_var
21472     case $ac_val in #(
21473     *${as_nl}*)
21474       case $ac_var in #(
21475       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21476 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21477       esac
21478       case $ac_var in #(
21479       _ | IFS | as_nl) ;; #(
21480       *) $as_unset $ac_var ;;
21481       esac ;;
21482     esac
21483   done
21484
21485   (set) 2>&1 |
21486     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21487     *${as_nl}ac_space=\ *)
21488       # `set' does not quote correctly, so add quotes (double-quote
21489       # substitution turns \\\\ into \\, and sed turns \\ into \).
21490       sed -n \
21491         "s/'/'\\\\''/g;
21492           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21493       ;; #(
21494     *)
21495       # `set' quotes correctly as required by POSIX, so do not add quotes.
21496       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21497       ;;
21498     esac |
21499     sort
21500 ) |
21501   sed '
21502      /^ac_cv_env_/b end
21503      t clear
21504      :clear
21505      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21506      t end
21507      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21508      :end' >>confcache
21509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21510   if test -w "$cache_file"; then
21511     test "x$cache_file" != "x/dev/null" &&
21512       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21513 echo "$as_me: updating cache $cache_file" >&6;}
21514     cat confcache >$cache_file
21515   else
21516     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21517 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21518   fi
21519 fi
21520 rm -f confcache
21521
21522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21523 # Let make expand exec_prefix.
21524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21525
21526 DEFS=-DHAVE_CONFIG_H
21527
21528 ac_libobjs=
21529 ac_ltlibobjs=
21530 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21531   # 1. Remove the extension, and $U if already installed.
21532   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21533   ac_i=`echo "$ac_i" | sed "$ac_script"`
21534   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21535   #    will be set to the directory where LIBOBJS objects are built.
21536   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21537   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21538 done
21539 LIBOBJS=$ac_libobjs
21540
21541 LTLIBOBJS=$ac_ltlibobjs
21542
21543
21544 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21545   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21546 Usually this means the macro was only invoked conditionally." >&5
21547 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21548 Usually this means the macro was only invoked conditionally." >&2;}
21549    { (exit 1); exit 1; }; }
21550 fi
21551 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21552   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21553 Usually this means the macro was only invoked conditionally." >&5
21554 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21555 Usually this means the macro was only invoked conditionally." >&2;}
21556    { (exit 1); exit 1; }; }
21557 fi
21558
21559 : ${CONFIG_STATUS=./config.status}
21560 ac_clean_files_save=$ac_clean_files
21561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21562 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21563 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21564 cat >$CONFIG_STATUS <<_ACEOF
21565 #! $SHELL
21566 # Generated by $as_me.
21567 # Run this file to recreate the current configuration.
21568 # Compiler output produced by configure, useful for debugging
21569 # configure, is in config.log if it exists.
21570
21571 debug=false
21572 ac_cs_recheck=false
21573 ac_cs_silent=false
21574 SHELL=\${CONFIG_SHELL-$SHELL}
21575 _ACEOF
21576
21577 cat >>$CONFIG_STATUS <<\_ACEOF
21578 ## --------------------- ##
21579 ## M4sh Initialization.  ##
21580 ## --------------------- ##
21581
21582 # Be Bourne compatible
21583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21584   emulate sh
21585   NULLCMD=:
21586   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21587   # is contrary to our usage.  Disable this feature.
21588   alias -g '${1+"$@"}'='"$@"'
21589   setopt NO_GLOB_SUBST
21590 else
21591   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21592 fi
21593 BIN_SH=xpg4; export BIN_SH # for Tru64
21594 DUALCASE=1; export DUALCASE # for MKS sh
21595
21596
21597 # PATH needs CR
21598 # Avoid depending upon Character Ranges.
21599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21602 as_cr_digits='0123456789'
21603 as_cr_alnum=$as_cr_Letters$as_cr_digits
21604
21605 # The user is always right.
21606 if test "${PATH_SEPARATOR+set}" != set; then
21607   echo "#! /bin/sh" >conf$$.sh
21608   echo  "exit 0"   >>conf$$.sh
21609   chmod +x conf$$.sh
21610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21611     PATH_SEPARATOR=';'
21612   else
21613     PATH_SEPARATOR=:
21614   fi
21615   rm -f conf$$.sh
21616 fi
21617
21618 # Support unset when possible.
21619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21620   as_unset=unset
21621 else
21622   as_unset=false
21623 fi
21624
21625
21626 # IFS
21627 # We need space, tab and new line, in precisely that order.  Quoting is
21628 # there to prevent editors from complaining about space-tab.
21629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21630 # splitting by setting IFS to empty value.)
21631 as_nl='
21632 '
21633 IFS=" ""        $as_nl"
21634
21635 # Find who we are.  Look in the path if we contain no directory separator.
21636 case $0 in
21637   *[\\/]* ) as_myself=$0 ;;
21638   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21639 for as_dir in $PATH
21640 do
21641   IFS=$as_save_IFS
21642   test -z "$as_dir" && as_dir=.
21643   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21644 done
21645 IFS=$as_save_IFS
21646
21647      ;;
21648 esac
21649 # We did not find ourselves, most probably we were run as `sh COMMAND'
21650 # in which case we are not to be found in the path.
21651 if test "x$as_myself" = x; then
21652   as_myself=$0
21653 fi
21654 if test ! -f "$as_myself"; then
21655   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21656   { (exit 1); exit 1; }
21657 fi
21658
21659 # Work around bugs in pre-3.0 UWIN ksh.
21660 for as_var in ENV MAIL MAILPATH
21661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21662 done
21663 PS1='$ '
21664 PS2='> '
21665 PS4='+ '
21666
21667 # NLS nuisances.
21668 for as_var in \
21669   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21670   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21671   LC_TELEPHONE LC_TIME
21672 do
21673   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21674     eval $as_var=C; export $as_var
21675   else
21676     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21677   fi
21678 done
21679
21680 # Required to use basename.
21681 if expr a : '\(a\)' >/dev/null 2>&1 &&
21682    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21683   as_expr=expr
21684 else
21685   as_expr=false
21686 fi
21687
21688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21689   as_basename=basename
21690 else
21691   as_basename=false
21692 fi
21693
21694
21695 # Name of the executable.
21696 as_me=`$as_basename -- "$0" ||
21697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21698          X"$0" : 'X\(//\)$' \| \
21699          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21700 echo X/"$0" |
21701     sed '/^.*\/\([^/][^/]*\)\/*$/{
21702             s//\1/
21703             q
21704           }
21705           /^X\/\(\/\/\)$/{
21706             s//\1/
21707             q
21708           }
21709           /^X\/\(\/\).*/{
21710             s//\1/
21711             q
21712           }
21713           s/.*/./; q'`
21714
21715 # CDPATH.
21716 $as_unset CDPATH
21717
21718
21719
21720   as_lineno_1=$LINENO
21721   as_lineno_2=$LINENO
21722   test "x$as_lineno_1" != "x$as_lineno_2" &&
21723   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21724
21725   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21726   # uniformly replaced by the line number.  The first 'sed' inserts a
21727   # line-number line after each line using $LINENO; the second 'sed'
21728   # does the real work.  The second script uses 'N' to pair each
21729   # line-number line with the line containing $LINENO, and appends
21730   # trailing '-' during substitution so that $LINENO is not a special
21731   # case at line end.
21732   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21733   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21734   # E. McMahon (1931-1989) for sed's syntax.  :-)
21735   sed -n '
21736     p
21737     /[$]LINENO/=
21738   ' <$as_myself |
21739     sed '
21740       s/[$]LINENO.*/&-/
21741       t lineno
21742       b
21743       :lineno
21744       N
21745       :loop
21746       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21747       t loop
21748       s/-\n.*//
21749     ' >$as_me.lineno &&
21750   chmod +x "$as_me.lineno" ||
21751     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21752    { (exit 1); exit 1; }; }
21753
21754   # Don't try to exec as it changes $[0], causing all sort of problems
21755   # (the dirname of $[0] is not the place where we might find the
21756   # original and so on.  Autoconf is especially sensitive to this).
21757   . "./$as_me.lineno"
21758   # Exit status is that of the last command.
21759   exit
21760 }
21761
21762
21763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21764   as_dirname=dirname
21765 else
21766   as_dirname=false
21767 fi
21768
21769 ECHO_C= ECHO_N= ECHO_T=
21770 case `echo -n x` in
21771 -n*)
21772   case `echo 'x\c'` in
21773   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21774   *)   ECHO_C='\c';;
21775   esac;;
21776 *)
21777   ECHO_N='-n';;
21778 esac
21779
21780 if expr a : '\(a\)' >/dev/null 2>&1 &&
21781    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21782   as_expr=expr
21783 else
21784   as_expr=false
21785 fi
21786
21787 rm -f conf$$ conf$$.exe conf$$.file
21788 if test -d conf$$.dir; then
21789   rm -f conf$$.dir/conf$$.file
21790 else
21791   rm -f conf$$.dir
21792   mkdir conf$$.dir
21793 fi
21794 echo >conf$$.file
21795 if ln -s conf$$.file conf$$ 2>/dev/null; then
21796   as_ln_s='ln -s'
21797   # ... but there are two gotchas:
21798   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21799   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21800   # In both cases, we have to default to `cp -p'.
21801   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21802     as_ln_s='cp -p'
21803 elif ln conf$$.file conf$$ 2>/dev/null; then
21804   as_ln_s=ln
21805 else
21806   as_ln_s='cp -p'
21807 fi
21808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21809 rmdir conf$$.dir 2>/dev/null
21810
21811 if mkdir -p . 2>/dev/null; then
21812   as_mkdir_p=:
21813 else
21814   test -d ./-p && rmdir ./-p
21815   as_mkdir_p=false
21816 fi
21817
21818 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21819 # systems may use methods other than mode bits to determine executability.
21820 cat >conf$$.file <<_ASEOF
21821 #! /bin/sh
21822 exit 0
21823 _ASEOF
21824 chmod +x conf$$.file
21825 if test -x conf$$.file >/dev/null 2>&1; then
21826   as_executable_p="test -x"
21827 else
21828   as_executable_p=:
21829 fi
21830 rm -f conf$$.file
21831
21832 # Sed expression to map a string onto a valid CPP name.
21833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21834
21835 # Sed expression to map a string onto a valid variable name.
21836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21837
21838
21839 exec 6>&1
21840
21841 # Save the log message, to keep $[0] and so on meaningful, and to
21842 # report actual input values of CONFIG_FILES etc. instead of their
21843 # values after options handling.
21844 ac_log="
21845 This file was extended by LLVM $as_me 3.3svn, which was
21846 generated by GNU Autoconf 2.60.  Invocation command line was
21847
21848   CONFIG_FILES    = $CONFIG_FILES
21849   CONFIG_HEADERS  = $CONFIG_HEADERS
21850   CONFIG_LINKS    = $CONFIG_LINKS
21851   CONFIG_COMMANDS = $CONFIG_COMMANDS
21852   $ $0 $@
21853
21854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21855 "
21856
21857 _ACEOF
21858
21859 cat >>$CONFIG_STATUS <<_ACEOF
21860 # Files that config.status was made for.
21861 config_files="$ac_config_files"
21862 config_headers="$ac_config_headers"
21863 config_commands="$ac_config_commands"
21864
21865 _ACEOF
21866
21867 cat >>$CONFIG_STATUS <<\_ACEOF
21868 ac_cs_usage="\
21869 \`$as_me' instantiates files from templates according to the
21870 current configuration.
21871
21872 Usage: $0 [OPTIONS] [FILE]...
21873
21874   -h, --help       print this help, then exit
21875   -V, --version    print version number, then exit
21876   -q, --quiet      do not print progress messages
21877   -d, --debug      don't remove temporary files
21878       --recheck    update $as_me by reconfiguring in the same conditions
21879   --file=FILE[:TEMPLATE]
21880                    instantiate the configuration file FILE
21881   --header=FILE[:TEMPLATE]
21882                    instantiate the configuration header FILE
21883
21884 Configuration files:
21885 $config_files
21886
21887 Configuration headers:
21888 $config_headers
21889
21890 Configuration commands:
21891 $config_commands
21892
21893 Report bugs to <bug-autoconf@gnu.org>."
21894
21895 _ACEOF
21896 cat >>$CONFIG_STATUS <<_ACEOF
21897 ac_cs_version="\\
21898 LLVM config.status 3.3svn
21899 configured by $0, generated by GNU Autoconf 2.60,
21900   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21901
21902 Copyright (C) 2006 Free Software Foundation, Inc.
21903 This config.status script is free software; the Free Software Foundation
21904 gives unlimited permission to copy, distribute and modify it."
21905
21906 ac_pwd='$ac_pwd'
21907 srcdir='$srcdir'
21908 INSTALL='$INSTALL'
21909 _ACEOF
21910
21911 cat >>$CONFIG_STATUS <<\_ACEOF
21912 # If no file are specified by the user, then we need to provide default
21913 # value.  By we need to know if files were specified by the user.
21914 ac_need_defaults=:
21915 while test $# != 0
21916 do
21917   case $1 in
21918   --*=*)
21919     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21920     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21921     ac_shift=:
21922     ;;
21923   *)
21924     ac_option=$1
21925     ac_optarg=$2
21926     ac_shift=shift
21927     ;;
21928   esac
21929
21930   case $ac_option in
21931   # Handling of the options.
21932   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21933     ac_cs_recheck=: ;;
21934   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21935     echo "$ac_cs_version"; exit ;;
21936   --debug | --debu | --deb | --de | --d | -d )
21937     debug=: ;;
21938   --file | --fil | --fi | --f )
21939     $ac_shift
21940     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21941     ac_need_defaults=false;;
21942   --header | --heade | --head | --hea )
21943     $ac_shift
21944     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21945     ac_need_defaults=false;;
21946   --he | --h)
21947     # Conflict between --help and --header
21948     { echo "$as_me: error: ambiguous option: $1
21949 Try \`$0 --help' for more information." >&2
21950    { (exit 1); exit 1; }; };;
21951   --help | --hel | -h )
21952     echo "$ac_cs_usage"; exit ;;
21953   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21954   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21955     ac_cs_silent=: ;;
21956
21957   # This is an error.
21958   -*) { echo "$as_me: error: unrecognized option: $1
21959 Try \`$0 --help' for more information." >&2
21960    { (exit 1); exit 1; }; } ;;
21961
21962   *) ac_config_targets="$ac_config_targets $1"
21963      ac_need_defaults=false ;;
21964
21965   esac
21966   shift
21967 done
21968
21969 ac_configure_extra_args=
21970
21971 if $ac_cs_silent; then
21972   exec 6>/dev/null
21973   ac_configure_extra_args="$ac_configure_extra_args --silent"
21974 fi
21975
21976 _ACEOF
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 if \$ac_cs_recheck; then
21979   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21980   CONFIG_SHELL=$SHELL
21981   export CONFIG_SHELL
21982   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21983 fi
21984
21985 _ACEOF
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21987 exec 5>>config.log
21988 {
21989   echo
21990   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21991 ## Running $as_me. ##
21992 _ASBOX
21993   echo "$ac_log"
21994 } >&5
21995
21996 _ACEOF
21997 cat >>$CONFIG_STATUS <<_ACEOF
21998 #
21999 # INIT-COMMANDS
22000 #
22001 llvm_src="${srcdir}"
22002
22003 _ACEOF
22004
22005 cat >>$CONFIG_STATUS <<\_ACEOF
22006
22007 # Handling of arguments.
22008 for ac_config_target in $ac_config_targets
22009 do
22010   case $ac_config_target in
22011     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22012     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22013     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22014     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22015     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22016     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22017     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22018     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22019     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22020     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22021     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22022     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22023     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22024     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22025     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22026     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22027     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22028     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22029     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22030     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22031     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22032     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22033     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22034     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22035     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22036     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22037     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22038
22039   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22040 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22041    { (exit 1); exit 1; }; };;
22042   esac
22043 done
22044
22045
22046 # If the user did not use the arguments to specify the items to instantiate,
22047 # then the envvar interface is used.  Set only those that are not.
22048 # We use the long form for the default assignment because of an extremely
22049 # bizarre bug on SunOS 4.1.3.
22050 if $ac_need_defaults; then
22051   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22052   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22053   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22054 fi
22055
22056 # Have a temporary directory for convenience.  Make it in the build tree
22057 # simply because there is no reason against having it here, and in addition,
22058 # creating and moving files from /tmp can sometimes cause problems.
22059 # Hook for its removal unless debugging.
22060 # Note that there is a small window in which the directory will not be cleaned:
22061 # after its creation but before its name has been assigned to `$tmp'.
22062 $debug ||
22063 {
22064   tmp=
22065   trap 'exit_status=$?
22066   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22067 ' 0
22068   trap '{ (exit 1); exit 1; }' 1 2 13 15
22069 }
22070 # Create a (secure) tmp directory for tmp files.
22071
22072 {
22073   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22074   test -n "$tmp" && test -d "$tmp"
22075 }  ||
22076 {
22077   tmp=./conf$$-$RANDOM
22078   (umask 077 && mkdir "$tmp")
22079 } ||
22080 {
22081    echo "$me: cannot create a temporary directory in ." >&2
22082    { (exit 1); exit 1; }
22083 }
22084
22085 #
22086 # Set up the sed scripts for CONFIG_FILES section.
22087 #
22088
22089 # No need to generate the scripts if there are no CONFIG_FILES.
22090 # This happens for instance when ./config.status config.h
22091 if test -n "$CONFIG_FILES"; then
22092
22093 _ACEOF
22094
22095
22096
22097 ac_delim='%!_!# '
22098 for ac_last_try in false false false false false :; do
22099   cat >conf$$subs.sed <<_ACEOF
22100 SHELL!$SHELL$ac_delim
22101 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22102 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22103 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22104 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22105 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22106 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22107 exec_prefix!$exec_prefix$ac_delim
22108 prefix!$prefix$ac_delim
22109 program_transform_name!$program_transform_name$ac_delim
22110 bindir!$bindir$ac_delim
22111 sbindir!$sbindir$ac_delim
22112 libexecdir!$libexecdir$ac_delim
22113 datarootdir!$datarootdir$ac_delim
22114 datadir!$datadir$ac_delim
22115 sysconfdir!$sysconfdir$ac_delim
22116 sharedstatedir!$sharedstatedir$ac_delim
22117 localstatedir!$localstatedir$ac_delim
22118 includedir!$includedir$ac_delim
22119 oldincludedir!$oldincludedir$ac_delim
22120 docdir!$docdir$ac_delim
22121 infodir!$infodir$ac_delim
22122 htmldir!$htmldir$ac_delim
22123 dvidir!$dvidir$ac_delim
22124 pdfdir!$pdfdir$ac_delim
22125 psdir!$psdir$ac_delim
22126 libdir!$libdir$ac_delim
22127 localedir!$localedir$ac_delim
22128 mandir!$mandir$ac_delim
22129 DEFS!$DEFS$ac_delim
22130 ECHO_C!$ECHO_C$ac_delim
22131 ECHO_N!$ECHO_N$ac_delim
22132 ECHO_T!$ECHO_T$ac_delim
22133 LIBS!$LIBS$ac_delim
22134 build_alias!$build_alias$ac_delim
22135 host_alias!$host_alias$ac_delim
22136 target_alias!$target_alias$ac_delim
22137 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22138 CC!$CC$ac_delim
22139 CFLAGS!$CFLAGS$ac_delim
22140 LDFLAGS!$LDFLAGS$ac_delim
22141 CPPFLAGS!$CPPFLAGS$ac_delim
22142 ac_ct_CC!$ac_ct_CC$ac_delim
22143 EXEEXT!$EXEEXT$ac_delim
22144 OBJEXT!$OBJEXT$ac_delim
22145 CXX!$CXX$ac_delim
22146 CXXFLAGS!$CXXFLAGS$ac_delim
22147 ac_ct_CXX!$ac_ct_CXX$ac_delim
22148 CPP!$CPP$ac_delim
22149 subdirs!$subdirs$ac_delim
22150 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22151 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22152 build!$build$ac_delim
22153 build_cpu!$build_cpu$ac_delim
22154 build_vendor!$build_vendor$ac_delim
22155 build_os!$build_os$ac_delim
22156 host!$host$ac_delim
22157 host_cpu!$host_cpu$ac_delim
22158 host_vendor!$host_vendor$ac_delim
22159 host_os!$host_os$ac_delim
22160 target!$target$ac_delim
22161 target_cpu!$target_cpu$ac_delim
22162 target_vendor!$target_vendor$ac_delim
22163 target_os!$target_os$ac_delim
22164 OS!$OS$ac_delim
22165 HOST_OS!$HOST_OS$ac_delim
22166 TARGET_OS!$TARGET_OS$ac_delim
22167 LINKALL!$LINKALL$ac_delim
22168 NOLINKALL!$NOLINKALL$ac_delim
22169 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22170 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22171 ARCH!$ARCH$ac_delim
22172 HOST_ARCH!$HOST_ARCH$ac_delim
22173 ENDIAN!$ENDIAN$ac_delim
22174 GREP!$GREP$ac_delim
22175 EGREP!$EGREP$ac_delim
22176 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22177 BUILD_CC!$BUILD_CC$ac_delim
22178 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22179 BUILD_CXX!$BUILD_CXX$ac_delim
22180 CVSBUILD!$CVSBUILD$ac_delim
22181 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22182 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22183 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22184 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22185 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22186 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22187 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22188 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22189 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22190 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22191 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22192 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22193 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22194 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22195 JIT!$JIT$ac_delim
22196 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22197 _ACEOF
22198
22199   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22200     break
22201   elif $ac_last_try; then
22202     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22203 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22204    { (exit 1); exit 1; }; }
22205   else
22206     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22207   fi
22208 done
22209
22210 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22211 if test -n "$ac_eof"; then
22212   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22213   ac_eof=`expr $ac_eof + 1`
22214 fi
22215
22216 cat >>$CONFIG_STATUS <<_ACEOF
22217 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22219 _ACEOF
22220 sed '
22221 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22222 s/^/s,@/; s/!/@,|#_!!_#|/
22223 :n
22224 t n
22225 s/'"$ac_delim"'$/,g/; t
22226 s/$/\\/; p
22227 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22228 ' >>$CONFIG_STATUS <conf$$subs.sed
22229 rm -f conf$$subs.sed
22230 cat >>$CONFIG_STATUS <<_ACEOF
22231 CEOF$ac_eof
22232 _ACEOF
22233
22234
22235 ac_delim='%!_!# '
22236 for ac_last_try in false false false false false :; do
22237   cat >conf$$subs.sed <<_ACEOF
22238 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22239 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22240 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22241 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22242 ENABLE_PIC!$ENABLE_PIC$ac_delim
22243 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22244 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22245 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22246 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22247 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22248 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22249 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22250 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22251 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22252 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22253 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22254 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22255 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22256 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22257 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22258 NM!$NM$ac_delim
22259 ifGNUmake!$ifGNUmake$ac_delim
22260 LN_S!$LN_S$ac_delim
22261 CMP!$CMP$ac_delim
22262 CP!$CP$ac_delim
22263 DATE!$DATE$ac_delim
22264 FIND!$FIND$ac_delim
22265 MKDIR!$MKDIR$ac_delim
22266 MV!$MV$ac_delim
22267 RANLIB!$RANLIB$ac_delim
22268 AR!$AR$ac_delim
22269 RM!$RM$ac_delim
22270 SED!$SED$ac_delim
22271 TAR!$TAR$ac_delim
22272 BINPWD!$BINPWD$ac_delim
22273 GRAPHVIZ!$GRAPHVIZ$ac_delim
22274 DOT!$DOT$ac_delim
22275 FDP!$FDP$ac_delim
22276 NEATO!$NEATO$ac_delim
22277 TWOPI!$TWOPI$ac_delim
22278 CIRCO!$CIRCO$ac_delim
22279 GV!$GV$ac_delim
22280 DOTTY!$DOTTY$ac_delim
22281 XDOT_PY!$XDOT_PY$ac_delim
22282 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22283 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22284 INSTALL_DATA!$INSTALL_DATA$ac_delim
22285 BZIP2!$BZIP2$ac_delim
22286 CAT!$CAT$ac_delim
22287 DOXYGEN!$DOXYGEN$ac_delim
22288 GROFF!$GROFF$ac_delim
22289 GZIPBIN!$GZIPBIN$ac_delim
22290 PDFROFF!$PDFROFF$ac_delim
22291 ZIP!$ZIP$ac_delim
22292 OCAMLC!$OCAMLC$ac_delim
22293 OCAMLOPT!$OCAMLOPT$ac_delim
22294 OCAMLDEP!$OCAMLDEP$ac_delim
22295 OCAMLDOC!$OCAMLDOC$ac_delim
22296 GAS!$GAS$ac_delim
22297 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22298 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22299 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22300 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22301 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22302 LIBADD_DL!$LIBADD_DL$ac_delim
22303 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22304 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22305 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22306 USE_UDIS86!$USE_UDIS86$ac_delim
22307 USE_OPROFILE!$USE_OPROFILE$ac_delim
22308 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22309 XML2CONFIG!$XML2CONFIG$ac_delim
22310 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22311 LIBXML2_INC!$LIBXML2_INC$ac_delim
22312 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22313 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22314 MMAP_FILE!$MMAP_FILE$ac_delim
22315 SHLIBEXT!$SHLIBEXT$ac_delim
22316 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22317 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22318 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22319 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22320 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22321 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22322 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22323 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22324 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22325 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22326 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22327 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22328 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22329 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22330 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22331 RPATH!$RPATH$ac_delim
22332 RDYNAMIC!$RDYNAMIC$ac_delim
22333 program_prefix!$program_prefix$ac_delim
22334 LIBOBJS!$LIBOBJS$ac_delim
22335 _ACEOF
22336
22337   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22338     break
22339   elif $ac_last_try; then
22340     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22341 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22342    { (exit 1); exit 1; }; }
22343   else
22344     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22345   fi
22346 done
22347
22348 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22349 if test -n "$ac_eof"; then
22350   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22351   ac_eof=`expr $ac_eof + 1`
22352 fi
22353
22354 cat >>$CONFIG_STATUS <<_ACEOF
22355 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22357 _ACEOF
22358 sed '
22359 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22360 s/^/s,@/; s/!/@,|#_!!_#|/
22361 :n
22362 t n
22363 s/'"$ac_delim"'$/,g/; t
22364 s/$/\\/; p
22365 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22366 ' >>$CONFIG_STATUS <conf$$subs.sed
22367 rm -f conf$$subs.sed
22368 cat >>$CONFIG_STATUS <<_ACEOF
22369 CEOF$ac_eof
22370 _ACEOF
22371
22372
22373 ac_delim='%!_!# '
22374 for ac_last_try in false false false false false :; do
22375   cat >conf$$subs.sed <<_ACEOF
22376 LTLIBOBJS!$LTLIBOBJS$ac_delim
22377 _ACEOF
22378
22379   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
22380     break
22381   elif $ac_last_try; then
22382     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22383 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22384    { (exit 1); exit 1; }; }
22385   else
22386     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22387   fi
22388 done
22389
22390 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22391 if test -n "$ac_eof"; then
22392   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22393   ac_eof=`expr $ac_eof + 1`
22394 fi
22395
22396 cat >>$CONFIG_STATUS <<_ACEOF
22397 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22399 _ACEOF
22400 sed '
22401 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22402 s/^/s,@/; s/!/@,|#_!!_#|/
22403 :n
22404 t n
22405 s/'"$ac_delim"'$/,g/; t
22406 s/$/\\/; p
22407 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22408 ' >>$CONFIG_STATUS <conf$$subs.sed
22409 rm -f conf$$subs.sed
22410 cat >>$CONFIG_STATUS <<_ACEOF
22411 :end
22412 s/|#_!!_#|//g
22413 CEOF$ac_eof
22414 _ACEOF
22415
22416
22417 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22418 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22419 # trailing colons and then remove the whole line if VPATH becomes empty
22420 # (actually we leave an empty line to preserve line numbers).
22421 if test "x$srcdir" = x.; then
22422   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22423 s/:*\$(srcdir):*/:/
22424 s/:*\${srcdir}:*/:/
22425 s/:*@srcdir@:*/:/
22426 s/^\([^=]*=[     ]*\):*/\1/
22427 s/:*$//
22428 s/^[^=]*=[       ]*$//
22429 }'
22430 fi
22431
22432 cat >>$CONFIG_STATUS <<\_ACEOF
22433 fi # test -n "$CONFIG_FILES"
22434
22435
22436 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22437 do
22438   case $ac_tag in
22439   :[FHLC]) ac_mode=$ac_tag; continue;;
22440   esac
22441   case $ac_mode$ac_tag in
22442   :[FHL]*:*);;
22443   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22444 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22445    { (exit 1); exit 1; }; };;
22446   :[FH]-) ac_tag=-:-;;
22447   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22448   esac
22449   ac_save_IFS=$IFS
22450   IFS=:
22451   set x $ac_tag
22452   IFS=$ac_save_IFS
22453   shift
22454   ac_file=$1
22455   shift
22456
22457   case $ac_mode in
22458   :L) ac_source=$1;;
22459   :[FH])
22460     ac_file_inputs=
22461     for ac_f
22462     do
22463       case $ac_f in
22464       -) ac_f="$tmp/stdin";;
22465       *) # Look for the file first in the build tree, then in the source tree
22466          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22467          # because $ac_f cannot contain `:'.
22468          test -f "$ac_f" ||
22469            case $ac_f in
22470            [\\/$]*) false;;
22471            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22472            esac ||
22473            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22474 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22475    { (exit 1); exit 1; }; };;
22476       esac
22477       ac_file_inputs="$ac_file_inputs $ac_f"
22478     done
22479
22480     # Let's still pretend it is `configure' which instantiates (i.e., don't
22481     # use $as_me), people would be surprised to read:
22482     #    /* config.h.  Generated by config.status.  */
22483     configure_input="Generated from "`IFS=:
22484           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22485     if test x"$ac_file" != x-; then
22486       configure_input="$ac_file.  $configure_input"
22487       { echo "$as_me:$LINENO: creating $ac_file" >&5
22488 echo "$as_me: creating $ac_file" >&6;}
22489     fi
22490
22491     case $ac_tag in
22492     *:-:* | *:-) cat >"$tmp/stdin";;
22493     esac
22494     ;;
22495   esac
22496
22497   ac_dir=`$as_dirname -- "$ac_file" ||
22498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22499          X"$ac_file" : 'X\(//\)[^/]' \| \
22500          X"$ac_file" : 'X\(//\)$' \| \
22501          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22502 echo X"$ac_file" |
22503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22504             s//\1/
22505             q
22506           }
22507           /^X\(\/\/\)[^/].*/{
22508             s//\1/
22509             q
22510           }
22511           /^X\(\/\/\)$/{
22512             s//\1/
22513             q
22514           }
22515           /^X\(\/\).*/{
22516             s//\1/
22517             q
22518           }
22519           s/.*/./; q'`
22520   { as_dir="$ac_dir"
22521   case $as_dir in #(
22522   -*) as_dir=./$as_dir;;
22523   esac
22524   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22525     as_dirs=
22526     while :; do
22527       case $as_dir in #(
22528       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529       *) as_qdir=$as_dir;;
22530       esac
22531       as_dirs="'$as_qdir' $as_dirs"
22532       as_dir=`$as_dirname -- "$as_dir" ||
22533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534          X"$as_dir" : 'X\(//\)[^/]' \| \
22535          X"$as_dir" : 'X\(//\)$' \| \
22536          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22537 echo X"$as_dir" |
22538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539             s//\1/
22540             q
22541           }
22542           /^X\(\/\/\)[^/].*/{
22543             s//\1/
22544             q
22545           }
22546           /^X\(\/\/\)$/{
22547             s//\1/
22548             q
22549           }
22550           /^X\(\/\).*/{
22551             s//\1/
22552             q
22553           }
22554           s/.*/./; q'`
22555       test -d "$as_dir" && break
22556     done
22557     test -z "$as_dirs" || eval "mkdir $as_dirs"
22558   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560    { (exit 1); exit 1; }; }; }
22561   ac_builddir=.
22562
22563 case "$ac_dir" in
22564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22565 *)
22566   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22567   # A ".." for each directory in $ac_dir_suffix.
22568   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22569   case $ac_top_builddir_sub in
22570   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22572   esac ;;
22573 esac
22574 ac_abs_top_builddir=$ac_pwd
22575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22576 # for backward compatibility:
22577 ac_top_builddir=$ac_top_build_prefix
22578
22579 case $srcdir in
22580   .)  # We are building in place.
22581     ac_srcdir=.
22582     ac_top_srcdir=$ac_top_builddir_sub
22583     ac_abs_top_srcdir=$ac_pwd ;;
22584   [\\/]* | ?:[\\/]* )  # Absolute name.
22585     ac_srcdir=$srcdir$ac_dir_suffix;
22586     ac_top_srcdir=$srcdir
22587     ac_abs_top_srcdir=$srcdir ;;
22588   *) # Relative name.
22589     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22590     ac_top_srcdir=$ac_top_build_prefix$srcdir
22591     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22592 esac
22593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22594
22595
22596   case $ac_mode in
22597   :F)
22598   #
22599   # CONFIG_FILE
22600   #
22601
22602   case $INSTALL in
22603   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22605   esac
22606 _ACEOF
22607
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 # If the template does not know about datarootdir, expand it.
22610 # FIXME: This hack should be removed a few years after 2.60.
22611 ac_datarootdir_hack=; ac_datarootdir_seen=
22612
22613 case `sed -n '/datarootdir/ {
22614   p
22615   q
22616 }
22617 /@datadir@/p
22618 /@docdir@/p
22619 /@infodir@/p
22620 /@localedir@/p
22621 /@mandir@/p
22622 ' $ac_file_inputs` in
22623 *datarootdir*) ac_datarootdir_seen=yes;;
22624 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22625   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22626 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22627 _ACEOF
22628 cat >>$CONFIG_STATUS <<_ACEOF
22629   ac_datarootdir_hack='
22630   s&@datadir@&$datadir&g
22631   s&@docdir@&$docdir&g
22632   s&@infodir@&$infodir&g
22633   s&@localedir@&$localedir&g
22634   s&@mandir@&$mandir&g
22635     s&\\\${datarootdir}&$datarootdir&g' ;;
22636 esac
22637 _ACEOF
22638
22639 # Neutralize VPATH when `$srcdir' = `.'.
22640 # Shell code in configure.ac might set extrasub.
22641 # FIXME: do we really want to maintain this feature?
22642 cat >>$CONFIG_STATUS <<_ACEOF
22643   sed "$ac_vpsub
22644 $extrasub
22645 _ACEOF
22646 cat >>$CONFIG_STATUS <<\_ACEOF
22647 :t
22648 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22649 s&@configure_input@&$configure_input&;t t
22650 s&@top_builddir@&$ac_top_builddir_sub&;t t
22651 s&@srcdir@&$ac_srcdir&;t t
22652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22653 s&@top_srcdir@&$ac_top_srcdir&;t t
22654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22655 s&@builddir@&$ac_builddir&;t t
22656 s&@abs_builddir@&$ac_abs_builddir&;t t
22657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22658 s&@INSTALL@&$ac_INSTALL&;t t
22659 $ac_datarootdir_hack
22660 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22661
22662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22663   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22664   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22665   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22666 which seems to be undefined.  Please make sure it is defined." >&5
22667 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22668 which seems to be undefined.  Please make sure it is defined." >&2;}
22669
22670   rm -f "$tmp/stdin"
22671   case $ac_file in
22672   -) cat "$tmp/out"; rm -f "$tmp/out";;
22673   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22674   esac
22675  ;;
22676   :H)
22677   #
22678   # CONFIG_HEADER
22679   #
22680 _ACEOF
22681
22682 # Transform confdefs.h into a sed script `conftest.defines', that
22683 # substitutes the proper values into config.h.in to produce config.h.
22684 rm -f conftest.defines conftest.tail
22685 # First, append a space to every undef/define line, to ease matching.
22686 echo 's/$/ /' >conftest.defines
22687 # Then, protect against being on the right side of a sed subst, or in
22688 # an unquoted here document, in config.status.  If some macros were
22689 # called several times there might be several #defines for the same
22690 # symbol, which is useless.  But do not sort them, since the last
22691 # AC_DEFINE must be honored.
22692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22693 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22694 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22695 # PARAMS is the parameter list in the macro definition--in most cases, it's
22696 # just an empty string.
22697 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22698 ac_dB='\\)[      (].*,\\1define\\2'
22699 ac_dC=' '
22700 ac_dD=' ,'
22701
22702 uniq confdefs.h |
22703   sed -n '
22704         t rset
22705         :rset
22706         s/^[     ]*#[    ]*define[       ][      ]*//
22707         t ok
22708         d
22709         :ok
22710         s/[\\&,]/\\&/g
22711         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22712         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22713   ' >>conftest.defines
22714
22715 # Remove the space that was appended to ease matching.
22716 # Then replace #undef with comments.  This is necessary, for
22717 # example, in the case of _POSIX_SOURCE, which is predefined and required
22718 # on some systems where configure will not decide to define it.
22719 # (The regexp can be short, since the line contains either #define or #undef.)
22720 echo 's/ $//
22721 s,^[     #]*u.*,/* & */,' >>conftest.defines
22722
22723 # Break up conftest.defines:
22724 ac_max_sed_lines=50
22725
22726 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22727 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22728 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22729 # et cetera.
22730 ac_in='$ac_file_inputs'
22731 ac_out='"$tmp/out1"'
22732 ac_nxt='"$tmp/out2"'
22733
22734 while :
22735 do
22736   # Write a here document:
22737     cat >>$CONFIG_STATUS <<_ACEOF
22738     # First, check the format of the line:
22739     cat >"\$tmp/defines.sed" <<\\CEOF
22740 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22741 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22742 b
22743 :def
22744 _ACEOF
22745   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22746   echo 'CEOF
22747     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22748   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22749   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22750   grep . conftest.tail >/dev/null || break
22751   rm -f conftest.defines
22752   mv conftest.tail conftest.defines
22753 done
22754 rm -f conftest.defines conftest.tail
22755
22756 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22757 cat >>$CONFIG_STATUS <<\_ACEOF
22758   if test x"$ac_file" != x-; then
22759     echo "/* $configure_input  */" >"$tmp/config.h"
22760     cat "$ac_result" >>"$tmp/config.h"
22761     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22762       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22763 echo "$as_me: $ac_file is unchanged" >&6;}
22764     else
22765       rm -f $ac_file
22766       mv "$tmp/config.h" $ac_file
22767     fi
22768   else
22769     echo "/* $configure_input  */"
22770     cat "$ac_result"
22771   fi
22772   rm -f "$tmp/out12"
22773  ;;
22774
22775   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22776 echo "$as_me: executing $ac_file commands" >&6;}
22777  ;;
22778   esac
22779
22780
22781   case $ac_file$ac_mode in
22782     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22783    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22784     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22785    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22786     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22787    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22788     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22789    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22790     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22791    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22792     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22793    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22794     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22795    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22796     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22797    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22798     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22799    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22800     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22801    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22802     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22803    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22804     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22805    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22806     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22807    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22808
22809   esac
22810 done # for ac_tag
22811
22812
22813 { (exit 0); exit 0; }
22814 _ACEOF
22815 chmod +x $CONFIG_STATUS
22816 ac_clean_files=$ac_clean_files_save
22817
22818
22819 # configure is writing to config.log, and then calls config.status.
22820 # config.status does its own redirection, appending to config.log.
22821 # Unfortunately, on DOS this fails, as config.log is still kept open
22822 # by configure, so config.status won't be able to write to it; its
22823 # output is simply discarded.  So we exec the FD to /dev/null,
22824 # effectively closing config.log, so it can be properly (re)opened and
22825 # appended to by config.status.  When coming back to configure, we
22826 # need to make the FD available again.
22827 if test "$no_create" != yes; then
22828   ac_cs_success=:
22829   ac_config_status_args=
22830   test "$silent" = yes &&
22831     ac_config_status_args="$ac_config_status_args --quiet"
22832   exec 5>/dev/null
22833   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22834   exec 5>>config.log
22835   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22836   # would make configure fail if this is the last instruction.
22837   $ac_cs_success || { (exit 1); exit 1; }
22838 fi
22839
22840 #
22841 # CONFIG_SUBDIRS section.
22842 #
22843 if test "$no_recursion" != yes; then
22844
22845   # Remove --cache-file and --srcdir arguments so they do not pile up.
22846   ac_sub_configure_args=
22847   ac_prev=
22848   eval "set x $ac_configure_args"
22849   shift
22850   for ac_arg
22851   do
22852     if test -n "$ac_prev"; then
22853       ac_prev=
22854       continue
22855     fi
22856     case $ac_arg in
22857     -cache-file | --cache-file | --cache-fil | --cache-fi \
22858     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22859       ac_prev=cache_file ;;
22860     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22861     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22862     | --c=*)
22863       ;;
22864     --config-cache | -C)
22865       ;;
22866     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22867       ac_prev=srcdir ;;
22868     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22869       ;;
22870     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22871       ac_prev=prefix ;;
22872     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22873       ;;
22874     *)
22875       case $ac_arg in
22876       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22877       esac
22878       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22879     esac
22880   done
22881
22882   # Always prepend --prefix to ensure using the same prefix
22883   # in subdir configurations.
22884   ac_arg="--prefix=$prefix"
22885   case $ac_arg in
22886   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22887   esac
22888   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22889
22890   ac_popdir=`pwd`
22891   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22892
22893     # Do not complain, so a configure script can configure whichever
22894     # parts of a large source tree are present.
22895     test -d "$srcdir/$ac_dir" || continue
22896
22897     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22898     echo "$as_me:$LINENO: $ac_msg" >&5
22899     echo "$ac_msg" >&6
22900     { as_dir="$ac_dir"
22901   case $as_dir in #(
22902   -*) as_dir=./$as_dir;;
22903   esac
22904   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22905     as_dirs=
22906     while :; do
22907       case $as_dir in #(
22908       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22909       *) as_qdir=$as_dir;;
22910       esac
22911       as_dirs="'$as_qdir' $as_dirs"
22912       as_dir=`$as_dirname -- "$as_dir" ||
22913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22914          X"$as_dir" : 'X\(//\)[^/]' \| \
22915          X"$as_dir" : 'X\(//\)$' \| \
22916          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22917 echo X"$as_dir" |
22918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22919             s//\1/
22920             q
22921           }
22922           /^X\(\/\/\)[^/].*/{
22923             s//\1/
22924             q
22925           }
22926           /^X\(\/\/\)$/{
22927             s//\1/
22928             q
22929           }
22930           /^X\(\/\).*/{
22931             s//\1/
22932             q
22933           }
22934           s/.*/./; q'`
22935       test -d "$as_dir" && break
22936     done
22937     test -z "$as_dirs" || eval "mkdir $as_dirs"
22938   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22940    { (exit 1); exit 1; }; }; }
22941     ac_builddir=.
22942
22943 case "$ac_dir" in
22944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22945 *)
22946   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22947   # A ".." for each directory in $ac_dir_suffix.
22948   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22949   case $ac_top_builddir_sub in
22950   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22951   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22952   esac ;;
22953 esac
22954 ac_abs_top_builddir=$ac_pwd
22955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22956 # for backward compatibility:
22957 ac_top_builddir=$ac_top_build_prefix
22958
22959 case $srcdir in
22960   .)  # We are building in place.
22961     ac_srcdir=.
22962     ac_top_srcdir=$ac_top_builddir_sub
22963     ac_abs_top_srcdir=$ac_pwd ;;
22964   [\\/]* | ?:[\\/]* )  # Absolute name.
22965     ac_srcdir=$srcdir$ac_dir_suffix;
22966     ac_top_srcdir=$srcdir
22967     ac_abs_top_srcdir=$srcdir ;;
22968   *) # Relative name.
22969     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22970     ac_top_srcdir=$ac_top_build_prefix$srcdir
22971     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22972 esac
22973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22974
22975
22976     cd "$ac_dir"
22977
22978     # Check for guested configure; otherwise get Cygnus style configure.
22979     if test -f "$ac_srcdir/configure.gnu"; then
22980       ac_sub_configure=$ac_srcdir/configure.gnu
22981     elif test -f "$ac_srcdir/configure"; then
22982       ac_sub_configure=$ac_srcdir/configure
22983     elif test -f "$ac_srcdir/configure.in"; then
22984       # This should be Cygnus configure.
22985       ac_sub_configure=$ac_aux_dir/configure
22986     else
22987       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22989       ac_sub_configure=
22990     fi
22991
22992     # The recursion is here.
22993     if test -n "$ac_sub_configure"; then
22994       # Make the cache file name correct relative to the subdirectory.
22995       case $cache_file in
22996       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22997       *) # Relative name.
22998         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22999       esac
23000
23001       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23002 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23003       # The eval makes quoting arguments work.
23004       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23005            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23006         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23007 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23008    { (exit 1); exit 1; }; }
23009     fi
23010
23011     cd "$ac_popdir"
23012   done
23013 fi
23014